GLTFSpecGloss

Inherits: Resource < Reference < Object

Description

Note: This class is only compiled in editor builds. Run-time glTF loading and saving is not available in exported projects. References to GLTFSpecGloss within a script will cause an error in an exported project.

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

Color diffuse_factor = Color( 1, 1, 1, 1 )

  • void set_diffuse_factor ( Color value )

  • Color get_diffuse_factor ( )

The reflected diffuse factor of the material.


Image diffuse_img

  • void set_diffuse_img ( Image value )

  • Image get_diffuse_img ( )

The diffuse texture.


float gloss_factor = 1.0

  • void set_gloss_factor ( float value )

  • float get_gloss_factor ( )

The glossiness or smoothness of the material.


Image spec_gloss_img

  • void set_spec_gloss_img ( Image value )

  • Image get_spec_gloss_img ( )

The specular-glossiness texture.


Color specular_factor = Color( 1, 1, 1, 1 )

  • void set_specular_factor ( Color value )

  • Color get_specular_factor ( )

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