API

Class SimpleMaterial

Hierarchy (View Summary)

Index
  • Instantiates a Simple 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 SimpleMaterial

diffuseColor: any = ...
diffuseTexture: BaseTexture
disableLighting: boolean
maxSimultaneousLights: number