Z-buffer issue with BufferGeometry in ParticleSystem

前端 未结 1 1643
醉话见心
醉话见心 2021-01-16 21:46

In my application I\'m having troubles with the z-buffer. I have a ParticleSystem in which the dots have a texture to look like spheres. But there are two problems which I c

相关标签:
1条回答
  • 2021-01-16 22:05

    You are confused. The texture is transparent, and remains so when switching to BufferGeometry.

    What is happening, is that with BufferGeometry, the particles are not rendered in sorted order -- they are rendered in the order you specify in the buffer.

    If you want to use BufferGeometry, you can set

    material.alphaTest = 0.5.
    

    Then, in your case, things should look fine.

    three.js r.60

    0 讨论(0)
提交回复
热议问题