From 2466f0d43345ef61dd0c08966520a4cfed26093c Mon Sep 17 00:00:00 2001 From: Johann Muszynski Date: Sun, 26 May 2024 22:04:43 +0300 Subject: [PATCH] wip --- src/pt/deferred_renderer_lighting_pass.wgsl | 1 - src/pt/shader_source.hpp | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pt/deferred_renderer_lighting_pass.wgsl b/src/pt/deferred_renderer_lighting_pass.wgsl index 3589e17..38f8008 100644 --- a/src/pt/deferred_renderer_lighting_pass.wgsl +++ b/src/pt/deferred_renderer_lighting_pass.wgsl @@ -9,7 +9,6 @@ struct Uniforms { inverseViewReverseZProjectionMat: mat4x4f, cameraEye: vec4f, framebufferSize: vec2f, - exposure: f32, frameCount: u32, } diff --git a/src/pt/shader_source.hpp b/src/pt/shader_source.hpp index 57cd0d3..0b2b1f8 100644 --- a/src/pt/shader_source.hpp +++ b/src/pt/shader_source.hpp @@ -717,7 +717,6 @@ struct Uniforms { inverseViewReverseZProjectionMat: mat4x4f, cameraEye: vec4f, framebufferSize: vec2f, - exposure: f32, frameCount: u32, } @@ -1213,8 +1212,8 @@ fn offsetPosition(p: vec3f, n: vec3f) -> vec3f { // Offset added straight into the mantissa bits to ensure the offset is scale-invariant, // except for when close to the origin, where we use FLOAT_SCALE as a small epsilon. let po = vec3f( - bitcast(bitcast(p.x) + sel)" -R"(ect(offset.x, -offset.x, (p.x < 0))), + bitcast(bitcast(p.x) + select(offset.x, -offs)" +R"(et.x, (p.x < 0))), bitcast(bitcast(p.y) + select(offset.y, -offset.y, (p.y < 0))), bitcast(bitcast(p.z) + select(offset.z, -offset.z, (p.z < 0))) );