Defines the materials to be used by the vim loader and allows for material injection.

Constructors

  • Parameters

    • Optionalopaque: StandardMaterial
    • Optionaltransparent: StandardMaterial
    • Optionalsimple: Material
    • Optionalwireframe: LineBasicMaterial
    • Optionalghost: Material
    • Optionalmask: ShaderMaterial
    • Optionaloutline: OutlineMaterial
    • Optionalmerge: MergeMaterial
    • OptionalskyBox: SkyboxMaterial

    Returns ViewerMaterials

Properties

ghost: Material

Material used to show traces of hidden objects.

mask: ShaderMaterial

Material used to filter out what is not selected for selection outline effect.

merge: MergeMaterial

Material used to merge outline effect with scene render.

opaque: StandardMaterial

Material used for opaque model geometry.

outline: OutlineMaterial

Material used for selection outline effect.

simple: Material

Material used for maximum performance.

skyBox: SkyboxMaterial

Material used for the skybox effect.

transparent: StandardMaterial

Material used for transparent model geometry.

wireframe: LineBasicMaterial

Material used when creating wireframe geometry of the model.

instance: ViewerMaterials

Accessors

Methods