Skip to content

Commit c594dea

Browse files
authored
Solari: Enable directional light soft shadows (#22253)
Another last minute defaults change for Solari (I need to make these proper configs soon...)
1 parent 0a2e645 commit c594dea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_solari/src/scene/sampling.wgsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ fn resolve_light_sample(light_sample: LightSample, light_source: LightSource) ->
127127
if light_source.kind == LIGHT_SOURCE_KIND_DIRECTIONAL {
128128
let directional_light = directional_lights[light_source.id];
129129

130-
#ifdef DIRECTIONAL_LIGHT_SOFT_SHADOWS
130+
#ifndef NO_DIRECTIONAL_LIGHT_SOFT_SHADOWS
131131
// Sample a random direction within a cone whose base is the sun approximated as a disk
132132
// https://www.realtimerendering.com/raytracinggems/unofficial_RayTracingGems_v1.9.pdf#0004286901.INDD%3ASec30%3A305
133133
var rng = light_sample.seed;

0 commit comments

Comments
 (0)