API

Hierarchy (View Summary)

Index
  • Instantiates a Mix Material in the given scene

    Parameters

    • name: string

      The friendly name of the material

    • Optionalscene: any

      The scene to add the material to

    • forceGLSL: boolean = false

      Use the GLSL code generation for the shader (even on WebGPU). Default is false

    Returns MixMaterial

diffuseColor: any = ...

Uniforms

specularColor: any = ...
specularPower: number = 64
diffuseTexture1: Texture
diffuseTexture2: Texture
diffuseTexture3: Texture
diffuseTexture4: Texture
diffuseTexture5: Texture
diffuseTexture6: Texture
diffuseTexture7: Texture
diffuseTexture8: Texture
disableLighting: boolean
maxSimultaneousLights: number
mixTexture1: BaseTexture
mixTexture2: BaseTexture
  • Parameters

    • mesh: AbstractMesh
    • subMesh: SubMesh
    • OptionaluseInstances: boolean

    Returns boolean