GltfSpecGloss
Archived glTF extension for specular/glossy materials.
Archived glTF extension for specular/glossy materials.
KHR_materials_pbrSpecularGlossiness is an archived glTF extension. This means that it is deprecated and not recommended for new files. However, it is still supported for loading old files.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
GltfSpecGlossConstructor
public GltfSpecGloss();Properties5
DiffuseFactorProperty
public Color DiffuseFactor { get; set; }The reflected diffuse factor of the material.
DiffuseImgProperty
public Image DiffuseImg { get; set; }The diffuse texture.
GlossFactorProperty
public float GlossFactor { get; set; }The glossiness or smoothness of the material.
SpecGlossImgProperty
public Image SpecGlossImg { get; set; }The specular-glossiness texture.
SpecularFactorProperty
public Color SpecularFactor { get; set; }The specular RGB color of the material. The alpha channel is unused.
Methods10
GetDiffuseFactorColor
public Color GetDiffuseFactor();Returns
ColorGetDiffuseImgImage
public Image GetDiffuseImg();Returns
ImageGetGlossFactorfloat
public float GetGlossFactor();Returns
floatGetSpecGlossImgImage
public Image GetSpecGlossImg();Returns
ImageGetSpecularFactorColor
public Color GetSpecularFactor();Returns
ColorSetDiffuseFactorvoid
public void SetDiffuseFactor(Color diffuseFactor);| Name | Type | Default |
|---|---|---|
diffuseFactor | Color | — |
SetDiffuseImgvoid
public void SetDiffuseImg(Image diffuseImg);| Name | Type | Default |
|---|---|---|
diffuseImg | Image | — |
SetGlossFactorvoid
public void SetGlossFactor(float glossFactor);| Name | Type | Default |
|---|---|---|
glossFactor | float | — |
SetSpecGlossImgvoid
public void SetSpecGlossImg(Image specGlossImg);| Name | Type | Default |
|---|---|---|
specGlossImg | Image | — |
SetSpecularFactorvoid
public void SetSpecularFactor(Color specularFactor);| Name | Type | Default |
|---|---|---|
specularFactor | Color | — |
Reckfell Engine documentationBack to top ↑