I ran into a very strange issue recently and I am curious if anyone else came across this issue or if someone might spot an issue with my WebGL alpha blending function.
When having alpha blending enabled and combined with framebuffer rendering, it appears as if Safari 14 does not render anything. It used to work as expected in Safari 13 and it also works in all other major browsers (tested Chrome, Edge, Firefox)
Demo: https://jsfiddle.net/flek/rc6zbk0d/58/
You should see three red dots and a triangle, which turn purple after 2.5 seconds. This works in Chrome, Firefox, Safari 13, but not in Safari 14!
The key part that seems to throw Safari 14 off is the following (line 89 and 146 in the fiddle).
blend: {
enable: true, // This prevents Safari v14 from rendering the points.
func: {
srcRGB: 'src alpha',
srcAlpha: 'src alpha',
dstRGB: 'one minus src alpha',
dstAlpha: 'one minus src alpha',
},
},
This might be a bug in Safari itself, or Regl, or my code. I am curious if anyone sees an issue with the blend function + framebuffer rendering.