Skip to content

Commit

Permalink
Remove slit renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
connorslade committed Jun 9, 2024
1 parent fb22a30 commit cde13f2
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/shaders/render.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,6 @@ fn frag(in: VertexOutput) -> @location(0) vec4<f32> {
return vec4<f32>(1.0, 1.0, 1.0, 1.0);
}

if x > i32(ctx.width) - 40 {
var sum = 0.0;
for (var xp = i32(ctx.width) - 40; xp < i32(ctx.width); xp++) {
sum += average_energy[u32(y) * ctx.width + u32(xp)] * ctx.energy_gain;
}
sum /= 40.0;

// let out = sum / 2.0 + 0.5;
return vec4<f32>(0, sum, 0, 1.0);
}

if (ctx.flags & 0x02) != 0 {
var val = clamp(average_energy[u32(y) * ctx.width + u32(x)] * ctx.energy_gain, 0.0, 1.0);
let scheme_index = u32(val * 3.0);
Expand Down

0 comments on commit cde13f2

Please sign in to comment.