Skip to content

Commit

Permalink
cleaning the weird ones, upgrade image, ui ench
Browse files Browse the repository at this point in the history
  • Loading branch information
altunenes committed May 4, 2024
1 parent 3c9d7ee commit c0419d9
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions shaders/expmandelbrotgpu.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,8 @@ struct Params {
f:f32,
g:f32,
};

@group(0) @binding(1)
var<uniform> params: Params;
fn remapTime(currentTime: f32, startInterval: f32, endInterval: f32, newDuration: f32) -> f32 {
if currentTime < startInterval {
return currentTime;
} else if currentTime >= startInterval && currentTime <= endInterval {
let normalizedTime: f32 = (currentTime - startInterval) / (endInterval - startInterval);
return startInterval + normalizedTime * newDuration;
} else {
return currentTime + newDuration - (endInterval - startInterval);
}
}

fn implicit(c: vec2<f32>, time: f32) -> vec2<f32> {
var MAX_ITER: i32 = i32(params.iter);
var BOUND: f32 = params.bound;
Expand All @@ -62,7 +50,6 @@ fn implicit(c: vec2<f32>, time: f32) -> vec2<f32> {
}
return vec2<f32>(f32(i), dot(z, z));
}

@fragment
fn main(@builtin(position) FragCoord: vec4<f32>) -> @location(0) vec4<f32> {
var MAX_ITER: i32 = i32(params.iter);
Expand Down

0 comments on commit c0419d9

Please sign in to comment.