javascript - How to use an extra parameter as the z-index on Three.js? -
i using personalized ortographic projection matrix position objects, flat sprites. problem there no way derive depth of projection linearly positions: is, instead, result of topological sort of them. how can set depth of them independently positions?
for meshes, can assign value object.renderdepth
, , make sure renderer.sortobjects = true
.
this not work sprites, however. sprites sorted z-coord in camera space, when sprite.material.usescreencoordinates = false
.
three.js r.60
Comments
Post a Comment