Skip to content

Commit 63bd294

Browse files
authored
Fix HAS-CENTROID code in fill-extrusion-pattern (#10990)
While existing code works in gl, there are problems in Metal that this fixes.
1 parent b409ec9 commit 63bd294

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shaders/fill_extrusion_pattern.vertex.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void main() {
7777
vec3 p = vec3(pos_nx.xy, z);
7878
#endif
7979

80-
float hidden = float(a_centroid_pos.x == 0.0 && a_centroid_pos.y == 1.0);
80+
float hidden = float(centroid_pos.x == 0.0 && centroid_pos.y == 1.0);
8181
gl_Position = mix(u_matrix * vec4(p, 1), AWAY, hidden);
8282

8383
vec2 pos = normal.z == 1.0

0 commit comments

Comments
 (0)