Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelarius committed May 26, 2024
1 parent 736c06b commit 2466f0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/pt/deferred_renderer_lighting_pass.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ struct Uniforms {
inverseViewReverseZProjectionMat: mat4x4f,
cameraEye: vec4f,
framebufferSize: vec2f,
exposure: f32,
frameCount: u32,
}

Expand Down
5 changes: 2 additions & 3 deletions src/pt/shader_source.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,6 @@ struct Uniforms {
inverseViewReverseZProjectionMat: mat4x4f,
cameraEye: vec4f,
framebufferSize: vec2f,
exposure: f32,
frameCount: u32,
}
Expand Down Expand Up @@ -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<f32>(bitcast<i32>(p.x) + sel)"
R"(ect(offset.x, -offset.x, (p.x < 0))),
bitcast<f32>(bitcast<i32>(p.x) + select(offset.x, -offs)"
R"(et.x, (p.x < 0))),
bitcast<f32>(bitcast<i32>(p.y) + select(offset.y, -offset.y, (p.y < 0))),
bitcast<f32>(bitcast<i32>(p.z) + select(offset.z, -offset.z, (p.z < 0)))
);
Expand Down

0 comments on commit 2466f0d

Please sign in to comment.