Type Alias: 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:496
References a shader and specifies input values if needed.
Properties
shaderRef
shaderRef: AssetRef<Shader>;
Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:500
UUID of the referenced shader.
isDoubleSided
isDoubleSided: boolean;
Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:505
Whether the material is double sided or not.
Default Value
false;
dataJSON
dataJSON: ShaderDataObject;
Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:509
Input values as described in the referenced shader in their original JSON format.
constantsJSON
constantsJSON: ShaderDataObject;
Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:513
Specialization constants values as described in the referenced shader in their original JSON format.