Skip to content

Commit

Permalink
Fix rally_point.wgsl
Browse files Browse the repository at this point in the history
  • Loading branch information
Indy2222 committed Feb 20, 2024
1 parent e4458b3 commit 741990d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/shaders/rally_point.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ const FADE: f32 = 3.;
fn fragment(
in: VertexOutput,
) -> @location(0) vec4<f32> {
let world_space_length: f32 = length(mesh.model[0].xyz);
let model = mesh[in.instance_index].model;
let world_space_length: f32 = length(vec3(model[0][0], model[1][0], model[2][0]));
let scaled_x: f32 = in.uv.x * world_space_length;
let offset_y: f32 = abs(in.uv.y - 0.5) * POINTINESS;
let scaled_time: f32 = globals.time * SPEED;
Expand Down

0 comments on commit 741990d

Please sign in to comment.