class PBRSpecularGlossinessMaterial extends Internals.PBRBaseSimpleMaterial
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
Instantiates a new PBRSpecularGlossinessMaterial instance.
* @param name The material name
Name | Type | Description | |
---|---|---|---|
name | string | The material name | |
scene | Scene | The scene the material will be use in. |
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 the specular color of the material. This indicates how reflective is the material (none to mirror).
Specifies the glossiness of the material. This indicates "how sharp is the reflection".
Specifies both the specular color RGB and the glossiness A of the material per pixels.
Return the currrent class name of the material.
Return the active textures of the material.
Name | Type | Description | |
---|---|---|---|
texture | BaseTexture |
Name | Type | Description | |
---|---|---|---|
name | string |
Serialize the material to a parsable JSON object.
Parses a JSON object correponding to the serialize function.
Name | Type | Description | |
---|---|---|---|
source | any | ||
scene | Scene | ||
rootUrl | string |