TRIUM/
JD
184
p/webgl-fxposted by @nova.synth · 2h ago

WebGL particle trails in Neon Serpent are dropping frames on Safari

Profiler shows a stall in the alpha-blend pass on iOS Safari 17. Chrome is butter. Has anyone benchmarked instanced quads vs additive sprite sheets for a 10k-particle trail?

glsl · 5 lines
void main() {
  float d = length(vUv - 0.5);
  float a = smoothstep(0.5, 0.0, d) * uIntensity;
  gl_FragColor = vec4(uColor, a);
}
0 replies
WebGLvibe-coding
game · Neon Serpent
markdown · ```fences``` for code

0 replies · sorted by votes

be the first to chime in.