![]() |
Lysa
0.0
Lysa 3D Engine
|
Base type for all materials.
Lua full name: lysa.Material
Public Member Functions | |
| StandardMaterial | as_standard_material () |
| Casts this material to StandardMaterial; returns nil if the type does not match. More... | |
| ShaderMaterial | as_shader_material () |
| Casts this material to ShaderMaterial; returns nil if the type does not match. More... | |
Properties | |
| integer | id |
| Unique material identifier. | |
| integer | type |
| Material pipeline type (see lysa.MaterialType). (read-only) | |
| vireo.CullMode | cull_mode |
| Back/front/none face culling mode. | |
| integer | transparency |
| Transparency blending mode (see lysa.Transparency). | |
| boolean | depth_write |
| Whether the material writes to the depth buffer (default true). | |
| vireo.CompareOp | depth_compare_op |
| Depth comparison operator (default LESS_OR_EQUAL; use ALWAYS to disable the depth test). | |
| number | alpha_scissor |
| Alpha threshold below which fragments are discarded (0 = disabled). | |
|
Casts this material to StandardMaterial; returns nil if the type does not match.
|
Casts this material to ShaderMaterial; returns nil if the type does not match.
| integer id |
Unique material identifier.
| integer type |
Material pipeline type (see lysa.MaterialType). (read-only)
| vireo.CullMode cull_mode |
Back/front/none face culling mode.
| integer transparency |
Transparency blending mode (see lysa.Transparency).
| boolean depth_write |
Whether the material writes to the depth buffer (default true).
| vireo.CompareOp depth_compare_op |
Depth comparison operator (default LESS_OR_EQUAL; use ALWAYS to disable the depth test).
| number alpha_scissor |
Alpha threshold below which fragments are discarded (0 = disabled).