diff --git a/docs/Materials.html b/docs/Materials.html index 3074c25852..bc3386cc1f 100644 --- a/docs/Materials.html +++ b/docs/Materials.html @@ -840,22 +840,18 @@ blending mode specified by the postLightingBlending material option

-This alternative lighting model exists to comply with legacy standards. +This alternative lighting model exists to comply with legacy standards. Since it is not a +physically-based formulation, we do not recommend using it except when loading legacy assets.

-Similar to cloth, it encompasses all the parameters previously defined for the standard -lit mode except for metallic and reflectance, and adds a sheenColor parameter. The sheen -color to directly control the specular color of the material. - -

- -This is not a physically-based formulation, so we do not recommend using the specularGlossiness -model except when loading legacy assets. +This model encompasses the parameters previously defined for the standard lit mode except for +metallic, reflectance, and roughness. It adds parameters for specularColor and glossiness.

- + +
Parameter Definition
baseColor Surface diffuse color
sheenColor Surface specular color
specularColor Specular tint (defaults to black)
glossiness Glossiness (defaults to 0.0)
 Table 10: Properties of the specular-glossiness shading model

@@ -864,7 +860,8 @@ The type and range of each property is described in - + +
Property Type Range Note
baseColor float4 [0..1] Pre-multiplied linear RGB
sheenColor float3 [0..1] Linear RGB
specularColor float3 [0..1] Linear RGB
glossiness float [0..1] Inverse of roughness

 Table 11: Range and type of the specular-glossiness model's properties

@@ -1713,8 +1710,8 @@ plastic with bump mapping: // no other field is available with the unlit shading model float roughness; // default: 1.0 -float metallic; // default: 0.0, not available with cloth or specularGlossiness -float reflectance; // default: 0.5, not available with cloth or specularGlossiness + float metallic; // default: 0.0, not available with cloth or specularGlossiness + float reflectance; // default: 0.5, not available with cloth or specularGlossiness float ambientOcclusion; // default: 0.0 // not available when the shading model is subsurface or cloth @@ -1730,11 +1727,12 @@ plastic with bump mapping: float3 subsurfaceColor; // default: float3(1.0) // only available when the shading model is cloth - float3 sheenColor; // default: sqrt(baseColor) for cloth + float3 sheenColor; // default: sqrt(baseColor) float3 subsurfaceColor; // default: float3(0.0) // only available when the shading model is specularGlossiness - float3 sheenColor; // default: float3(0.0) + float3 specularColor; // default: float3(0.0) + float glossiness; // default: 0.0 // not available when the shading model is unlit // must be set before calling prepareMaterial()