![]() |
Lysa
0.0
Lysa 3D Engine
|
A material driven by custom vertex and fragment shaders.
Inherits from: Material
Lua full name: lysa.ShaderMaterial
Public Member Functions | |
| nil | set_parameter (index: integer, value: float4) |
| Sets a shader float4 parameter at the given slot index. More... | |
| float4 | get_parameter (index: integer) |
| Returns the shader float4 parameter at the given slot index. More... | |
Properties | |
| string | frag_file_name |
| Virtual path to the fragment shader source file. (read-only) | |
| string | vert_file_name |
| Virtual path to the vertex shader source file. (read-only) | |
| integer | rendering_phase |
| Rendering stage for this material (see lysa.RenderingPhase). (read-only) | |
| integer | parameter_count |
| Number of float4 parameter slots available to the shaders. (read-only) | |
|
Sets a shader float4 parameter at the given slot index.
| index | integer |
| value | float4 |
|
| string frag_file_name |
Virtual path to the fragment shader source file. (read-only)
| string vert_file_name |
Virtual path to the vertex shader source file. (read-only)
| integer rendering_phase |
Rendering stage for this material (see lysa.RenderingPhase). (read-only)
| integer parameter_count |
Number of float4 parameter slots available to the shaders. (read-only)