threejs-kit icon indicating copy to clipboard operation
threejs-kit copied to clipboard

Sorting for transparent mesh

Open richfwebb opened this issue 7 months ago • 2 comments

I'm running into an issue where sprites with semi-transparent areas need to be sorted back-to-front per-frame before render, for example clouds. Otherwise, you get issues like this image, where the cloud should be fading to 0 opacity, revealing the cloud behind it, but instead the overlapping area becomes fully white. Screenshot from 2024-07-01 12-41-22

richfwebb avatar Jul 01 '24 17:07 richfwebb