2022-03-15 13:29:32 +01:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-05-01 12:46:55 +02:00
<class name= "GLTFSpecGloss" inherits= "Resource" version= "3.6" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../../../doc/class.xsd" >
2022-03-15 13:29:32 +01:00
<brief_description >
</brief_description>
<description >
2022-08-08 19:45:06 +02:00
[b]Note:[/b] This class is only compiled in editor builds. Run-time glTF loading and saving is [i]not[/i] available in exported projects. References to [GLTFSpecGloss] within a script will cause an error in an exported project.
2022-03-15 13:29:32 +01:00
</description>
<tutorials >
2023-05-01 12:46:55 +02:00
<link title= "KHR_materials_pbrSpecularGlossiness GLTF extension spec" > https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Archived/KHR_materials_pbrSpecularGlossiness</link>
2022-03-15 13:29:32 +01:00
</tutorials>
2022-08-08 19:45:06 +02:00
<methods >
</methods>
2022-03-15 13:29:32 +01:00
<members >
2022-08-08 19:45:06 +02:00
<member name= "diffuse_factor" type= "Color" setter= "set_diffuse_factor" getter= "get_diffuse_factor" default= "Color( 1, 1, 1, 1 )" >
2023-05-01 12:46:55 +02:00
The reflected diffuse factor of the material.
2022-03-15 13:29:32 +01:00
</member>
<member name= "diffuse_img" type= "Image" setter= "set_diffuse_img" getter= "get_diffuse_img" >
2023-05-01 12:46:55 +02:00
The diffuse texture.
2022-03-15 13:29:32 +01:00
</member>
<member name= "gloss_factor" type= "float" setter= "set_gloss_factor" getter= "get_gloss_factor" default= "1.0" >
2023-05-01 12:46:55 +02:00
The glossiness or smoothness of the material.
2022-03-15 13:29:32 +01:00
</member>
<member name= "spec_gloss_img" type= "Image" setter= "set_spec_gloss_img" getter= "get_spec_gloss_img" >
2023-05-01 12:46:55 +02:00
The specular-glossiness texture.
2022-03-15 13:29:32 +01:00
</member>
2022-08-08 19:45:06 +02:00
<member name= "specular_factor" type= "Color" setter= "set_specular_factor" getter= "get_specular_factor" default= "Color( 1, 1, 1, 1 )" >
2023-05-01 12:46:55 +02:00
The specular RGB color of the material. The alpha channel is unused.
2022-03-15 13:29:32 +01:00
</member>
</members>
2022-08-08 19:45:06 +02:00
<constants >
</constants>
2022-03-15 13:29:32 +01:00
</class>