Skip to content

Commit 8056c56

Browse files
authored
Stabler Solari world cache (#20980)
# Objective - Make the world cache a little more stable, with less random "blooming" of light. ## Solution - Use a slower blending rate for world cache updates. This increases stability, at the cost of making the world cache slower to react to changes in the scene. ## Testing - Ran the solari example before and after, and observed less artifacts.
1 parent 0991cba commit 8056c56

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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
@@ -1,7 +1,7 @@
11
#define_import_path bevy_solari::world_cache
22

33
/// How responsive the world cache is to changes in lighting (higher is less responsive, lower is more responsive)
4-
const WORLD_CACHE_MAX_TEMPORAL_SAMPLES: f32 = 10.0;
4+
const WORLD_CACHE_MAX_TEMPORAL_SAMPLES: f32 = 20.0;
55
/// Maximum amount of frames a cell can live for without being queried
66
const WORLD_CACHE_CELL_LIFETIME: u32 = 30u;
77
/// Maximum amount of attempts to find a cache entry after a hash collision

release-content/release-notes/bevy_solari.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Initial raytraced lighting progress (bevy_solari)
33
authors: ["@JMS55", "@SparkyPotato"]
4-
pull_requests: [19058, 19620, 19790, 20020, 20113, 20156, 20213, 20242, 20259, 20406, 20457, 20580, 20596, 20622, 20658, 20659]
4+
pull_requests: [19058, 19620, 19790, 20020, 20113, 20156, 20213, 20242, 20259, 20406, 20457, 20580, 20596, 20622, 20658, 20659, 20980]
55
---
66

77
## Overview

0 commit comments

Comments
 (0)