Factory and registry for Material objects.
Lua full name: lysa.MaterialManager
|
| StandardMaterial | create_standard () |
| | Creates and returns a new StandardMaterial with default PBR values. More...
|
| |
| ShaderMaterial | create_shader (frag: string, vert: string, param_count: integer, stage: integer) |
| | Creates a ShaderMaterial with custom frag/vert shaders, parameter count, and pipeline stage. More...
|
| |
| ShaderMaterial | create_shader (frag: string, vert: string, param_count: integer) |
| | Creates a ShaderMaterial with custom frag/vert shaders and parameter count (default stage). More...
|
| |
| ShaderMaterial | create_shader (frag: string, param_count: integer, stage: integer) |
| | Creates a ShaderMaterial with a fragment shader, parameter count, and pipeline stage (default vert shader). More...
|
| |
| ShaderMaterial | create_shader (frag: string, param_count: integer) |
| | Creates a ShaderMaterial with a fragment shader and parameter count (default vert shader and stage). More...
|
| |
| ShaderMaterial | create_shader (frag: string) |
| | Creates a ShaderMaterial with only a fragment shader (default vert shader, parameter count, and stage). More...
|
| |
| Material | get (id: integer) |
| | Returns the material with the given id. More...
|
| |
| nil | upload_parameters (mat: ShaderMaterial) |
| | Schedules an upload of the parameters SSBO block for the given ShaderMaterial to the GPU. More...
|
| |
| nil | destroy (id: integer) |
| | Destroys the material with the given id and releases its GPU resources. More...
|
| |
| nil | destroy (mat: StandardMaterial) |
| | Destroys the given StandardMaterial and releases its GPU resources. More...
|
| |
| nil | destroy (mat: ShaderMaterial) |
| | Destroys the given ShaderMaterial and releases its GPU resources. More...
|
| |
| nil | destroy (ids: integer[]) |
| | Destroys all materials in the list and releases their GPU resources. More...
|
| |