TwoSidedShaderProgram3D
Package: Libraries.Game.Graphics.Shaders.Programs · Inherits from: Libraries.Language.Object, Libraries.Game.Graphics.Shaders.Programs.ShaderProgram
TwoSidedShaderProgram3D draws 3D models the way the default 3D program does, but without hiding the backs of faces. The Vulkan painter uses it on its own for models with a two-sided material, such as leaves and grass cards; programs don't need to set it. It is Vulkan only.
Example Code
use Libraries.Game.Graphics.Shaders.Programs.TwoSidedShaderProgram3D
TwoSidedShaderProgram3D program
program:Compile()
Inherited Actions
22 actions from Libraries.Game.Graphics.Shaders.Programs.ShaderProgram
- Add(Libraries.Game.Graphics.Shaders.Shader shader)
- Begin()
- Compile()
- Dispose()
- Draw(Libraries.Game.Graphics.Mesh mesh, Libraries.Game.Graphics.Camera camera, integer startIndex, integer totalIndices)
- Draw(Libraries.Game.Graphics.Drawable drawable, integer startIndex, integer totalIndices)
- Draw(Libraries.Game.Graphics.Mesh mesh, Libraries.Game.Graphics.Camera camera, integer startIndex, integer totalIndices, Libraries.Containers.Array<integer> vertexLocations)
- Draw(Libraries.Game.Graphics.Drawable drawable)
- End()
- GetID()
- GetName()
- GetShaderIterator()
- GetShaderMapping()
- GetShaderProgramStrategy()
- IsCompiled()
- IsOpenGLProgram()
- IsVulkanProgram()
- Reload()
- Remove(Libraries.Game.Graphics.Shaders.Shader shader)
- Render(Libraries.Game.Graphics.Renderable renderable)
- SetName(text name)
- SetShaderMapping(Libraries.Game.Graphics.Shaders.ShaderMapping shaderMapping)