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
There is a strange behaviour with fill() calls within the buildGeometry() function or between beginGeometry() and endGeometry(). I've found two problems:
Alpha/opacity bug: when trying to fill with translucent colors, the background is white rather than transparent. For alpha = 0, the shapes fill with white [1,1,1,1] rather than transparent background
Bugged fill() behaviour: if you call fill() only once, the fill color is ignored
"although there's a question of whether it's slower to always apply blending to anything that has per vertex colors, or whether we should check if any of those colors is semitransparent (and maybe cache that so we only check once?)
I don't actually know how much of a difference that makes for a complex shape though
could be that it's totally fine
I guess we do it already for if there's a texture set, right?"
A better solution might be possible, hence I keep this bug open.
Most appropriate sub-area of p5.js?
p5.js version
1.8
Web browser and version
No response
Operating System
No response
Steps to reproduce this
There is a strange behaviour with fill() calls within the buildGeometry() function or between beginGeometry() and endGeometry(). I've found two problems:
I've created this sketch to show both problems:
Snippet:
Sample in p5 online editor
The text was updated successfully, but these errors were encountered: