Skip to content

Latest commit

 

History

History
147 lines (89 loc) · 5.36 KB

class_gltfspecgloss.rst

File metadata and controls

147 lines (89 loc) · 5.36 KB
github_url:hide

GLTFSpecGloss

Inherits: :ref:`Resource<class_Resource>` < :ref:`RefCounted<class_RefCounted>` < :ref:`Object<class_Object>`

Archived GLTF extension for specular/glossy materials.

.. rst-class:: classref-introduction-group

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.

.. rst-class:: classref-introduction-group

Tutorials

.. rst-class:: classref-reftable-group

Properties

:ref:`Color<class_Color>` :ref:`diffuse_factor<class_GLTFSpecGloss_property_diffuse_factor>` Color(1, 1, 1, 1)
:ref:`Image<class_Image>` :ref:`diffuse_img<class_GLTFSpecGloss_property_diffuse_img>`  
:ref:`float<class_float>` :ref:`gloss_factor<class_GLTFSpecGloss_property_gloss_factor>` 1.0
:ref:`Image<class_Image>` :ref:`spec_gloss_img<class_GLTFSpecGloss_property_spec_gloss_img>`  
:ref:`Color<class_Color>` :ref:`specular_factor<class_GLTFSpecGloss_property_specular_factor>` Color(1, 1, 1, 1)
.. rst-class:: classref-section-separator


.. rst-class:: classref-descriptions-group

Property Descriptions

.. rst-class:: classref-property

:ref:`Color<class_Color>` diffuse_factor = Color(1, 1, 1, 1)

.. rst-class:: classref-property-setget

The reflected diffuse factor of the material.

.. rst-class:: classref-item-separator


.. rst-class:: classref-property

:ref:`Image<class_Image>` diffuse_img

.. rst-class:: classref-property-setget

The diffuse texture.

.. rst-class:: classref-item-separator


.. rst-class:: classref-property

:ref:`float<class_float>` gloss_factor = 1.0

.. rst-class:: classref-property-setget

The glossiness or smoothness of the material.

.. rst-class:: classref-item-separator


.. rst-class:: classref-property

:ref:`Image<class_Image>` spec_gloss_img

.. rst-class:: classref-property-setget

The specular-glossiness texture.

.. rst-class:: classref-item-separator


.. rst-class:: classref-property

:ref:`Color<class_Color>` specular_factor = Color(1, 1, 1, 1)

.. rst-class:: classref-property-setget

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