Skip to main content

Material

@3dverse/livelink v0.8.10


@3dverse/livelink / Components / Material

Type Alias: Material

Material: object

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:483

References a shader and specifies input values if needed.

Type declaration

shaderRef

shaderRef: AssetRef<Shader>

UUID of the referenced shader.

isDoubleSided

isDoubleSided: boolean

Whether the material is double sided or not.

Default Value

false;

dataJSON

dataJSON: ShaderDataObject

Input values as described in the referenced shader in their original JSON format.

constantsJSON

constantsJSON: ShaderDataObject

Specialization constants values as described in the referenced shader in their original JSON format.