Class SimpleMaterial
Hierarchy (View Summary)
- WebXRSpatialLayerType
- SimpleMaterial
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 SimpleMaterial
- name: string
Accessors
diffuse Texture
diffuseTexture: BaseTexture
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 SimpleMaterial
dispose
-
Parameters
OptionalforceDisposeEffect: boolean
Returns void
get Active Textures
-
Returns BaseTexture[]
get Alpha Test Texture
-
Returns Nullable<BaseTexture>
get Animatables
-
Returns IAnimatable[]
get Class Name
-
Returns string
has Texture
-
Parameters
- texture: BaseTexture
Returns boolean
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 SimpleMaterial
Instantiates a Simple Material in the given scene