Class MaterialSpecular
This extension allows configuring the specular reflection.
Inherited Members
Namespace: Unity.Cloud.Gltfast.Objects
Assembly: Unity.Cloud.Gltfast.dll
Syntax
[MovedFrom(true, "GLTFast.Schema", "glTFast", null)]
public class MaterialSpecular
Properties
SpecularColorFactor
The F0 color of the specular reflection (linear RGB).
Declaration
[JsonIgnore]
public Color SpecularColorFactor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
See Also
SpecularColorTexture
A texture that defines the F0 color of the specular reflection, stored in the RGB channels and encoded in sRGB. This texture will be multiplied by specularColorFactor.
Declaration
[JsonPropertyName("specularColorTexture")]
public TextureInfo SpecularColorTexture { get; set; }
Property Value
| Type | Description |
|---|---|
| TextureInfo |
See Also
SpecularFactor
The strength of the specular reflection.
Declaration
[JsonIgnore]
public float SpecularFactor { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
See Also
SpecularTexture
A texture that defines the strength of the specular reflection, stored in the alpha (A) channel. This will be multiplied by specularFactor.
Declaration
[JsonPropertyName("specularTexture")]
public TextureInfo SpecularTexture { get; set; }
Property Value
| Type | Description |
|---|---|
| TextureInfo |