mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Tweak SpatialMaterial's default metallic and roughness texture channels
To follow the glTF 2.0 specification in all cases (including outside of imported glTF scenes), the blue channel is now used for metallic and the green channel is now used for roughness.
This commit is contained in:
@@ -2320,8 +2320,8 @@ SpatialMaterial::SpatialMaterial() :
|
||||
|
||||
set_ao_light_affect(0.0);
|
||||
|
||||
set_metallic_texture_channel(TEXTURE_CHANNEL_RED);
|
||||
set_roughness_texture_channel(TEXTURE_CHANNEL_RED);
|
||||
set_metallic_texture_channel(TEXTURE_CHANNEL_BLUE);
|
||||
set_roughness_texture_channel(TEXTURE_CHANNEL_GREEN);
|
||||
set_ao_texture_channel(TEXTURE_CHANNEL_RED);
|
||||
set_refraction_texture_channel(TEXTURE_CHANNEL_RED);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user