Skip to main content

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

NameTypeDescription
shaderRefAssetRef<Shader>UUID of the referenced shader.
isDoubleSidedbooleanWhether the material is double sided or not.
dataJSONShaderDataObjectInput values as described in the referenced shader in their original JSON format.
constantsJSONShaderDataObjectSpecialization constants values as described in the referenced shader in their original JSON format.