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.
Checking the stable version of the documentation...
GLTFSpecGloss¶
继承: Resource < RefCounted < Object
已归档的 GLTF 扩展,用于镜面/光泽材质。
描述¶
KHR_materials_pbrSpecularGlossiness 是一个已归档的 GLTF 扩展。这意味着它已被弃用,不推荐用于新文件。但是,它仍然被支持用于加载旧文件。
教程¶
属性¶
|
||
|
||
|
属性说明¶
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)
材质的镜面反射 RGB 颜色。不使用 Alpha 通道。