Meta_GUIMaterial
A GUIMaterial is a material that can specify its draw layer, so it may appear above or below other types of object.
Public Types
Property index.
Idx_LayerValue | vec2i - Layer to draw in. X = a Layer, Y = offset within the layer (higher values are drawn later) |
Idx_Colour | vec4f - Colour of the material (RGBA 0.0f to 1.0f) |
Idx_Texture | link - Texture to apply |
Idx_DepthWrite | bool - Whether to write to the depth buffer |
Idx_DepthTest | bool - Whether to draw with depth testing (false will draw above all previously drawn objects regardless of their depth) |
Idx_SubPixelAntiAlias | bool - Whether to enable AA |
Idx_PremultipliedAlpha | bool - Whether to use premultiplied alpha |
Values for the X element of Idx_LayerValue.
Opaque | Draws in the Opaque layer (Symbols - C: "LayerOpaque" , Lua: __GUIMaterial_LayerOpaque ) |
Transparent | Draws in the Transparent layer (Symbols - C: "LayerTransparent" , Lua: __GUIMaterial_LayerTransparent ) |
SceneOverlay | Draws in the Scene Overlay layer (Symbols - C: "LayerSceneOverlay" , Lua: __GUIMaterial_LayerSceneOverlay ) |
ViewOverlay | Draws in the View Overlay layer (Symbols - C: "LayerViewOverlay" , Lua: __GUIMaterial_LayerViewOverlay ) |