You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quads rendered with beginShape(QUADS) that look like rectangles in 2D mode end up with self-intersections in WebGL mode. This is because it currently treats the vertex ordering the same way QUAD_STRIP does, which does one side after the other in the same order, rather than going around one quad in a consistent CW or CCW direction.
Most appropriate sub-area of p5.js?
p5.js version
Commit c9fb107 on main
Web browser and version
Firefox 103.0.2
Operating System
MacOS
Steps to reproduce this
Steps:
Quads rendered with
beginShape(QUADS)
that look like rectangles in 2D mode end up with self-intersections in WebGL mode. This is because it currently treats the vertex ordering the same wayQUAD_STRIP
does, which does one side after the other in the same order, rather than going around one quad in a consistent CW or CCW direction.Snippet:
With the following code:
the resulting shape looks different when you change the environment:
The text was updated successfully, but these errors were encountered: