Lysa  0.0
Lysa 3D Engine
ShaderMaterial Class Referenceabstract

Detailed Description

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)
 

Member Function Documentation

nil set_parameter ( integer  index,
float4  value)

Sets a shader float4 parameter at the given slot index.

Parameters
indexinteger
valuefloat4
float4 get_parameter ( integer  index)

Returns the shader float4 parameter at the given slot index.

Parameters
indexinteger
Returns
float4

Property Documentation

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)