three.js transparent maps issue

前端 未结 4 1777
礼貌的吻别
礼貌的吻别 2021-01-02 13:31

I\'m creating loads of particles (80.000 to be exact) and I have set a transparent map, though, not all particles are transparent.

I\'m using a transparent PNG image

4条回答
  •  再見小時候
    2021-01-02 13:54

    Those particles with black corners are rendered before anything behind them. So GL doesn't know yet there is something behind to blend. In order to make it look right you have to render these particles in the order of their z coordinates from back to front.

提交回复
热议问题