Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions blade-helpers/src/hud.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ impl ExposeHud for blade_render::RayConfig {
ui.add(
egui::widgets::Slider::new(&mut self.temporal_history, 0..=50).text("Temporal history"),
);
ui.checkbox(&mut self.spatial_pass, "Spatial pass");
ui.add(egui::widgets::Slider::new(&mut self.spatial_taps, 0..=10).text("Spatial taps"));
ui.add(
egui::widgets::Slider::new(&mut self.spatial_tap_history, 0..=50)
Expand Down
1 change: 1 addition & 0 deletions blade-helpers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pub fn default_ray_config() -> blade_render::RayConfig {
environment_importance_sampling: false,
temporal_tap: true,
temporal_history: 10,
spatial_pass: true,
spatial_taps: 1,
spatial_tap_history: 10,
spatial_radius: 20,
Expand Down
3 changes: 3 additions & 0 deletions blade-render/code/fill-gbuf.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ fn main(@builtin(global_invocation_id) global_id: vec3<u32>) {
}

if (WRITE_DEBUG_IMAGE) {
if (debug.view_mode == DebugMode_Depth) {
textureStore(out_debug, global_id.xy, vec4<f32>(1.0 / depth));
}
if (debug.view_mode == DebugMode_DiffuseAlbedoTexture) {
textureStore(out_debug, global_id.xy, vec4<f32>(albedo, 0.0));
}
Expand Down
Loading