Skip to content

Commit c90fa87

Browse files
committed
Solari: Disable world cache jitter
1 parent 64c7bec commit c90fa87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_solari/src/realtime/world_cache_query.wgsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fn query_world_cache(world_position_in: vec3<f32>, world_normal: vec3<f32>, view
5151
var cell_size = get_cell_size(world_position, view_position);
5252

5353
// https://tomclabault.github.io/blog/2025/regir, jitter_world_position_tangent_plane
54-
#ifndef NO_JITTER_WORLD_CACHE
54+
#ifdef JITTER_WORLD_CACHE
5555
let TBN = orthonormalize(world_normal);
5656
let offset = (rand_vec2f(rng) * 2.0 - 1.0) * cell_size * 0.5;
5757
world_position += offset.x * TBN[0] + offset.y * TBN[1];

0 commit comments

Comments
 (0)