Make 3D editor gizmos and debug shapes ignore fog

This makes them easier to see in their intended colors in scenes with fog.
This commit is contained in:
Hugo Locurcio 2023-09-27 00:45:57 +02:00
parent 251fb83d53
commit fcbf7011cc
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
15 changed files with 68 additions and 17 deletions

View file

@ -458,6 +458,7 @@ MeshInstance3D *MeshInstance3D::create_debug_tangents_node() {
sm->set_shading_mode(StandardMaterial3D::SHADING_MODE_UNSHADED);
sm->set_flag(StandardMaterial3D::FLAG_SRGB_VERTEX_COLOR, true);
sm->set_flag(StandardMaterial3D::FLAG_ALBEDO_FROM_VERTEX_COLOR, true);
sm->set_flag(StandardMaterial3D::FLAG_DISABLE_FOG, true);
Ref<ArrayMesh> am;
am.instantiate();