Class GradientMaterial
Hierarchy (View Summary)
- WebXRSpatialLayerType
- GradientMaterial
Constructors
constructor
-
Parameters
- name: string
The friendly name of the material
Optionalscene: anyThe 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
- name: string
Properties
bottom Color
bottomColor: any = ...
bottom Color Alpha
bottomColorAlpha: number = 1.0
offset
offset: number = 0
scale
scale: number = 1.0
smoothness
smoothness: number = 1.0
top Color
topColor: any = ...
top Color Alpha
topColorAlpha: number = 1.0
Accessors
disable Lighting
disableLighting: boolean
max Simultaneous Lights
maxSimultaneousLights: number
Methods
bind For Sub Mesh
-
Parameters
- world: Matrix
- mesh: Mesh
- subMesh: SubMesh
Returns void
clone
-
Parameters
- name: string
Returns GradientMaterial
dispose
-
Parameters
OptionalforceDisposeEffect: boolean
Returns void
get Alpha Test Texture
-
Returns Nullable<BaseTexture>
get Animatables
-
Returns IAnimatable[]
get Class Name
-
Returns string
is Ready For Sub Mesh
-
Parameters
- mesh: AbstractMesh
- subMesh: SubMesh
OptionaluseInstances: boolean
Returns boolean
need Alpha Blending
-
Returns boolean
need Alpha Testing
-
Returns boolean
serialize
-
Returns any
StaticParse
-
Parameters
- source: any
- scene: Scene
- rootUrl: string
Returns GradientMaterial
Instantiates a Gradient Material in the given scene