Interface SceneMaterialParams

interface SceneMaterialParams {
    color?: Vec3;
    colorTextureId?: string;
    emissiveTextureId?: string;
    id: string;
    metallicRoughnessTextureId?: string;
    normalsTextureId?: string;
    occlusionTextureId?: string;
    opacity?: number;
}

Properties

color?: Vec3

Color of the material, as RGB components in the range 0.0 to 1.0.

colorTextureId?: string

ID of a color texture created previously with SceneModel.createTexture.

A color texture has color in RGB and alpha in A.

emissiveTextureId?: string

ID of an emissive color texture created previously with SceneModel.createTexture.

An emissive texture has RGBA components, with emissive factors in RGB.

id: string

ID for the texture set.

metallicRoughnessTextureId?: string

ID of a metallic-roughness texture created previously with SceneModel.createTexture.

A metallic-roughness texture has RGBA components, with the metallic factor in R, and the roughness factor in G.

normalsTextureId?: string

ID of a normal map texture created previously with SceneModel.createTexture.

A normal map texture has RGBA components, with the normal map vectors in RGB.

occlusionTextureId?: string

ID of an ambient occlusion texture created previously with SceneModel.createTexture.

An occlusion texture has RGBA components, with occlusion factor in R,

opacity?: number

Opacity of the material, in the range 0.0 to 1.0.