Material
type Material = {
shaderRef: AssetRef<Shader>;
isDoubleSided: boolean;
dataJSON: ShaderDataObject;
constantsJSON: ShaderDataObject;
};
Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:506
References a shader and specifies input values if needed.
Type declaration
Name | Type | Description |
---|---|---|
shaderRef | AssetRef <Shader > | UUID of the referenced shader. |
isDoubleSided | boolean | Whether the material is double sided or not. |
dataJSON | ShaderDataObject | Input values as described in the referenced shader in their original JSON format. |
constantsJSON | ShaderDataObject | Specialization constants values as described in the referenced shader in their original JSON format. |