Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

GLTFSpecGloss

Hérite de : Resource < RefCounted < Object

Archived glTF extension for specular/glossy materials.

Description

KHR_materials_pbrSpecularGlossiness est une extension glTF archivée. Cela signifie qu'elle est obsolète et non recommandée pour de nouveaux fichiers. Cependant, elle est toujours supportée pour le chargement de vieux fichiers.

Tutoriels

Propriétés

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)


Descriptions des propriétés

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

  • void set_diffuse_factor(value: Color)

  • Color get_diffuse_factor()

The reflected diffuse factor of the material.


Image diffuse_img 🔗

  • void set_diffuse_img(value: Image)

  • Image get_diffuse_img()

La texture de diffusion.


float gloss_factor = 1.0 🔗

  • void set_gloss_factor(value: float)

  • float get_gloss_factor()

The glossiness or smoothness of the material.


Image spec_gloss_img 🔗

  • void set_spec_gloss_img(value: Image)

  • Image get_spec_gloss_img()

The specular-glossiness texture.


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

  • void set_specular_factor(value: Color)

  • Color get_specular_factor()

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