API

Class GradientMaterial

Hierarchy (View Summary)

Index
  • Instantiates a Gradient 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 GradientMaterial

bottomColor: any = ...
bottomColorAlpha: number = 1.0
offset: number = 0
scale: number = 1.0
smoothness: number = 1.0
topColor: any = ...
topColorAlpha: number = 1.0
disableLighting: boolean
maxSimultaneousLights: number