Skip to content

Commit

Permalink
Merge pull request godotengine#83863 from Calinou/editor-lightmap-pro…
Browse files Browse the repository at this point in the history
…be-gizmo-improve-display

Improve display for lightmap probes in the editor
  • Loading branch information
clayjohn authored Oct 18, 2024
2 parents 80f0b33 + 8e0c0d7 commit 44fa552
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion editor/plugins/gizmos/lightmap_gi_gizmo_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ LightmapGIGizmoPlugin::LightmapGIGizmoPlugin() {

Ref<StandardMaterial3D> mat = memnew(StandardMaterial3D);
mat->set_shading_mode(StandardMaterial3D::SHADING_MODE_UNSHADED);
mat->set_cull_mode(StandardMaterial3D::CULL_DISABLED);
// Fade out probes when camera gets too close to them.
mat->set_distance_fade(StandardMaterial3D::DISTANCE_FADE_PIXEL_DITHER);
mat->set_distance_fade_min_distance(0.5);
mat->set_distance_fade_max_distance(1.5);
mat->set_flag(StandardMaterial3D::FLAG_ALBEDO_FROM_VERTEX_COLOR, true);
mat->set_flag(StandardMaterial3D::FLAG_SRGB_VERTEX_COLOR, false);
mat->set_flag(StandardMaterial3D::FLAG_DISABLE_FOG, true);
Expand Down

0 comments on commit 44fa552

Please sign in to comment.