In Three.js, everything I do with WebGL is very blurry compared to canvas

I looked around and couldn't find a reason why this would be.

When rendering using WebGL, everything is โ€œblurryโ€, as if it is too smooth, and you canโ€™t do anything. The canvas renderer works as expected. Particles also do not appear in the WebGL renderer, although there will be particle systems and normal grids.

+4
source share
1 answer

For opaque particles: make sure you load the texture as RGBA (default), not RGB. Particle may also need the transparent flag set to true.

Wild hunch about blur: Chrome has a bug where after some time the WebGL viewport starts to shrink, blurring everything. Opening a new tab corrects it.

0
source

Source: https://habr.com/ru/post/1445391/


All Articles