MaterialProperties

Interface MaterialPropertiesExperimental

Experimental. May be changed in the future without notice.

The properties of a material entity in the webvis context.

interface MaterialProperties {
    baseColor?: [number, number, number];
    emissiveColor?: [number, number, number];
    metallic?: number;
    name?: string;
    opacity?: number;
    roughness?: number;
}

Properties

baseColor?: [number, number, number]

The base color of the material specified by an RGB array, where each channel's value ranges from 0 to 1.

[1,1,1]
emissiveColor?: [number, number, number]

The emissive color of the material specified by an RGB array, where each channel's value ranges from 0 to 1.

[0,0,0]
metallic?: number

The metallic property of the material specified in the range from 0 to 1.

0
name?: string

The name of the material.

undefined
opacity?: number

The opacity of the material specified in the range from 0 to 1.

1.0
roughness?: number

The roughness of the material specified in the range from 0 to 1.

0.5

Did you find this page useful? Please give it a rating:
Thank you for rating this page!
Any issues or feedback?
What kind of problem would you like to report?
Please tell us more about what's wrong: