The PBR material of BJS following the specular glossiness convention.
This fits to the PBR convention in the GLTF definition: https://github.com/KhronosGroup/glTF/tree/2.0/extensions/Khronos/KHR_materials_pbrSpecularGlossiness
Gets or sets a boolean indicating that the material is allowed to do shader hot swapping. This means that the material can keep using a previous shader while a new one is being compiled. This is mostly used when shader parallel compilation is supported (true by default)
Gets the alpha value of the material
Defines the alpha limits in alpha test mode.
Gets the value of the alpha mode
Stores the animations for the material
Gets the back-face culling state
Specifies if the ready state should be checked on each call
Specifies if the ready state should be checked once
Specifies the diffuse color of the material.
Specifies the diffuse texture of the material. This can also contains the opcity value in its alpha channel.
Specifies if depth writing should be disabled
If sets to true, disables all the lights affecting the material.
Specifies if the material should be serialized
If sets to true and backfaceCulling is false, normals will be flipped on the backside.
Emissivie color used to self-illuminate the model.
Emissivie texture used to self-illuminate the model.
Environment Texture used in the material (this is use for both reflection and environment lighting).
Sets the material fill mode
Gets the value of the fog enabled state
Specifies if depth writing should be forced
Callback triggered to get the render target textures
Specifies the glossiness of the material. This indicates "how sharp is the reflection".
Gets a boolean indicating that current material needs to register RTT
The ID of the material
If sets to true, x component of normal map value will invert (x = 1.0 - x).
If sets to true, y component of normal map value will invert (y = 1.0 - y).
Specifies if updates for the material been locked
Stores the pre-calculated light information of a mesh in a texture.
Number of Simultaneous lights allowed on the material.
Gets or sets user defined metadata
The name of the material
Gets the depth pre-pass value
Normal map used in the model.
Occlusion Channel Strenght.
Occlusion Texture of the material (adding extra occlusion effects).
Called during a bind event
An event triggered when the material is bound
Callback triggered when the material is compiled
Called during a dispose event
An event triggered when the material is disposed
Callback triggered when an error occurs
An event triggered when the material is unbound
Stores the size of points
Sets the state of point cloud mode
For internal use only. Please do not use.
Specifies if there should be a separate pass for culling
Stores the value for side orientation
Specifies the specular color of the material. This indicates how reflective is the material (none to mirror).
Specifies both the specular color RGB and the glossiness A of the material per pixels.
The state of the material
Sets the transparency mode of the material.
Gets or sets the unique id of the material
If true, the light map contains occlusion information instead of lighting info.
Enabled the use of logarithmic depth buffers, which is good for wide depth buffers.
Sets the state of wireframe mode
Stores the z offset value
The all dirty flag value
The dirty attribute flag value
Returns the clock-wise side orientation
Returns the counter clock-wise side orientation
The dirty fresnel flag value
PBRMaterialLightFalloff gltf: light is falling off as described in the gltf moving to PBR document to enhance interoperability with other engines.
PBRMaterialLightFalloff Physical: light is falling off following the inverse squared distance law.
PBRMaterialLightFalloff Standard: light is falling off like in the standard material to enhance interoperability with other materials.
The dirty light flag value
Returns the line list draw mode
Returns the line loop draw mode
Returns the line strip draw mode
The dirty misc flag value
Returns the point fill mode
Returns the point list draw mode
The dirty texture flag value
Returns the triangle fan draw mode
Returns the triangle fill mode
Returns the triangle strip draw mode
Returns the wireframe mode
Binds the given normal matrix to the active effect
the matrix to bind
Binds the given world matrix to the active effect
the matrix to bind
Binds the view matrix to the effect
defines the effect to bind the view matrix to
Binds the view projection matrix to the effect
defines the effect to bind the view projection matrix to
Initializes the uniform buffer layout for the shader.
Makes a duplicate of the current material.
name to use for the new material.
Disposes the resources of the material.
Forces the disposal of effects.
Forces the disposal of all textures.
Force shader compilation
defines the mesh that will use this material
defines additional options for compiling the shaders
a promise that resolves when the compilation completes
Locks updates for the material
Return the active textures of the material.
Gets the texture used for the alpha test.
Returns the animatable textures.
Gets the meshes bound to the material
an array of meshes bound to the material
Return the currrent class name of the material.
Returns the current scene
Checks to see if a texture is used in the material.
Base texture to use.
Specifies if the material uses metallic roughness workflow.
boolean specifiying if the material uses metallic roughness workflow.
Specifies that the submesh is ready to be used.
A submesh of the BJS mesh. Used to check if it is ready.
Specifies that instances should be used.
Marks a define in the material to indicate that it needs to be re-computed
defines a flag used to determine which parts of the material have to be marked as dirty
Marks the material to indicate that it needs to be re-calculated
Specifies whether or not this material should be rendered in alpha blend mode.
Specifies if the mesh will require alpha blending.
Specifies whether or not this material should be rendered in alpha test mode.
Serialize the material to a parsable JSON object.
Returns a string representation of the current material
defines a boolean indicating which levels of logging is desired
a string with material information
Unbinds the textures.
Unlocks updates for the material
Generated using TypeDoc