Renderable

Variables

Name

Type

Description

mesh

Mesh*

The memory address of the Mesh.

material

Material

The Material to use.

fragmentShader

std::string

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.

Name

Type

Description

Possible values

modelPath

String

The path to the model.

Any path to a model.

primitiveIndex

Number

The primitive index in the model.

Any number.

materialPath

String

The path to the material.

Any path to a material.

fragmentShaderPath

String

The path to the fragment shader.

Any path to a fragment shader.

isVisible

Boolean

Specifies if the Entity is visible.

Any boolean (true or false).

castsShadows

Boolean

Specifies if the Entity casts shadows.

Any boolean (true or false).