GLTFSpecGloss

Inherits: Resource < RefCounted < Object

Archived GLTF extension for specular/glossy materials.

Description

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.

Tutorials

Properties

Color

diffuse_factor

Color(1, 1, 1, 1)

Image

diffuse_img

float

gloss_factor

1.0

Image

spec_gloss_img

Color

specular_factor

Color(1, 1, 1, 1)

Property Descriptions

Default

Color(1, 1, 1, 1)

Setter

set_diffuse_factor(value)

Getter

get_diffuse_factor()

The reflected diffuse factor of the material.


Setter

set_diffuse_img(value)

Getter

get_diffuse_img()

The diffuse texture.


Default

1.0

Setter

set_gloss_factor(value)

Getter

get_gloss_factor()

The glossiness or smoothness of the material.


Setter

set_spec_gloss_img(value)

Getter

get_spec_gloss_img()

The specular-glossiness texture.


Default

Color(1, 1, 1, 1)

Setter

set_specular_factor(value)

Getter

get_specular_factor()

The specular RGB color of the material. The alpha channel is unused.