Skip to content

Commit

Permalink
maybe this fixes it?
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEppicJR committed Jul 9, 2024
1 parent 208e51d commit 93402e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/grid.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ fn fragment(in: VertexOutput) -> FragmentOutput {
let grid2 = abs(fract((coord * 0.1) - 0.5) - 0.5) / derivative2;
let mg_line = min(grid2.x, grid2.y);

let grid_alpha = 1.0 - min(lne, 1.0);
let grid_alpha = max(1.0 - min(lne, 1.0), 0.0);
let base_grid_color = mix(grid_settings.major_line_col, grid_settings.minor_line_col, step(1., mg_line));
var grid_color = vec4(base_grid_color.rgb, base_grid_color.a * grid_alpha);

Expand Down

0 comments on commit 93402e2

Please sign in to comment.