Renderable
Variables
Name |
Type |
Description |
|---|---|---|
mesh |
Mesh* |
The memory address of the Mesh. |
material |
The Material to use. |
|
fragmentShader |
The custom /types/fragment_shader/index to use. If empty, the graphics module’s default fragment shader will be used. |
|
isVisible |
bool |
Specifies if the Entity is visible. |
castsShadows |
bool |
Specifies if the Entity casts shadows. |
Notes
The Entity will still cast shadows if castsShadows is true and isVisible is false.
JSON for the .ntsn - Scene scene file format:
Name |
Type |
Description |
Possible values |
||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
renderable |
Array of Object |
The Renderable Component. |
|