Skip to content

Commit

Permalink
Removed twinkling
Browse files Browse the repository at this point in the history
  • Loading branch information
simbleau committed Aug 8, 2022
1 parent 6875623 commit c300a94
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions assets/shaders/vert.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,11 @@ fn vs_main(
}

var tint: vec3<f32> = vec3<f32>(1.0);
var twinkle: vec3<f32> = vec3<f32>(1.0);
if (world.rave > 0u) {
tint = vec3<f32>(abs(world_vert.xyz) % 2.0);
twinkle = vec3<f32>(instance.model_matrix_0.x);
}

// Calculate color
out.color = star_color * tint * twinkle;
out.color = star_color * tint;
return out;
}

0 comments on commit c300a94

Please sign in to comment.