Class TriPlanarMaterial
Hierarchy (View Summary)
- WebXRSpatialLayerType
- TriPlanarMaterial
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 TriPlanarMaterial
- name: string
Properties
diffuse Color
diffuseColor: any = ...
mix Texture
mixTexture: BaseTexture
specular Color
specularColor: any = ...
specular Power
specularPower: number = 64
tile Size
tileSize: number = 1
Accessors
diffuse Texture X
diffuseTextureX: BaseTexture
diffuse Texture Y
diffuseTextureY: BaseTexture
diffuse Texture Z
diffuseTextureZ: BaseTexture
disable Lighting
disableLighting: boolean
max Simultaneous Lights
maxSimultaneousLights: number
normal Texture X
normalTextureX: BaseTexture
normal Texture Y
normalTextureY: BaseTexture
normal Texture Z
normalTextureZ: BaseTexture
Methods
bind For Sub Mesh
-
Parameters
- world: Matrix
- mesh: Mesh
- subMesh: SubMesh
Returns void
clone
-
Parameters
- name: string
Returns TriPlanarMaterial
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 TriPlanarMaterial
Instantiates a TriPlanar Material in the given scene