Skip to content

Commit 215e2e3

Browse files
committed
disable shadow casting for scene gizmo
1 parent da0c391 commit 215e2e3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

editor/src/scene_viewer/gizmo.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,10 @@ impl SceneGizmo {
103103
EnvironmentLightingSource::AmbientColor;
104104
scene.rendering_options.ambient_lighting_color = Color::repeat_opaque(120);
105105

106-
DirectionalLightBuilder::new(BaseLightBuilder::new(BaseBuilder::new()))
107-
.build(&mut scene.graph);
106+
DirectionalLightBuilder::new(BaseLightBuilder::new(
107+
BaseBuilder::new().with_cast_shadows(false),
108+
))
109+
.build(&mut scene.graph);
108110

109111
let pos_x;
110112
let neg_x;

0 commit comments

Comments
 (0)