Skip to content

Commit

Permalink
Drop dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
StuckiSimon committed Aug 17, 2024
1 parent 92e2106 commit ffcafb5
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions strahl-lib/src/tracer-shader.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -1350,16 +1350,6 @@ fn writeColor(pixelColor: vec4f, x: i32, y: i32, samples: i32) {
textureStore(texture, vec2<i32>(x, y), adjustedColor);
}

@must_use
fn identityMatrix() -> mat4x4<f32> {
return mat4x4<f32>(
1.0, 0.0, 0.0, 0.0,
0.0, 1.0, 0.0, 0.0,
0.0, 0.0, 1.0, 0.0,
0.0, 0.0, 0.0, 1.0
);
}

fn sampleTriangleFilter(xi: f32) -> f32 {
return select(1.0 - sqrt(2.0 - 2.0 * xi), sqrt(2.0 * xi) - 1.0, xi < 0.5);
}
Expand Down

0 comments on commit ffcafb5

Please sign in to comment.