Warning

Nightly releases are generated automatically from the latest source code and are intended for experimental purposes only. These builds may contain incomplete or untested features, bugs, or security vulnerabilities, and as such, are not for production use. Users should be aware that nightly releases may cause unexpected behavior, data loss, or system instability. Use of these releases is at the user's own risk, and it is advised to have adequate backups before testing. The software is provided as is with no guarantees or support.

MaterialProperties

Type Alias MaterialPropertiesExperimental

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

Experimental. May be changed in the future without notice.

The properties of a material entity in the webvis context.

Type declaration

  • OptionalbaseColor?: [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]
    
  • OptionalemissiveColor?: [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]
    
  • Optionalmetallic?: number

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

    0
    
  • Optionalname?: string

    The name of the material.

    undefined
    
  • Optionalopacity?: number

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

    1.0
    
  • Optionalroughness?: number

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

    0.5