Skip to content

Commit

Permalink
Corrected no cull shader ignoring sprite depth
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonMoffon authored and eruvanos committed May 24, 2024
1 parent 5f456dc commit 66d353e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ out vec4 gs_color;

void main() {
// Get center of the sprite
vec2 center = gl_in[0].gl_Position.xy;
vec3 center = gl_in[0].gl_Position.xyz;
vec2 hsize = v_size[0] / 2.0;
float angle = radians(v_angle[0]);
mat2 rot = mat2(
Expand Down

0 comments on commit 66d353e

Please sign in to comment.