three.js: how to control rendering order

前端 未结 4 597
不知归路
不知归路 2020-12-06 05:13

Am using three.js

How can I control the rendering order? Let\'s say I have three plane geometries, and want to render them in a specific order regardless of their sp

4条回答
  •  悲哀的现实
    2020-12-06 05:36

    i had a bunch of objects which was cloned from a for loop in random position x and y... and obj.z ++, so they would line up in line.. including obj.renderOrder ++; in the loop solved my issue.

提交回复
热议问题