Skip to content

Commit

Permalink
match GLMakie scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreyer committed Dec 28, 2023
1 parent a4a6e7b commit c20300e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WGLMakie/assets/sprites.vert
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void main(){
// any calculation based on them will not be a distance function.)
// * For sampled distance fields, we need to consistently choose the *x*
// for the scaling in get_distancefield_scale().
float sprite_from_u_scale = abs(get_markersize().x);
float sprite_from_u_scale = min(abs(get_markersize().x), abs(get_markersize().y));
frag_uvscale = viewport_from_sprite_scale * sprite_from_u_scale;
frag_distancefield_scale = distancefield_scale();
frag_color = tovec4(get_color());
Expand Down

0 comments on commit c20300e

Please sign in to comment.