Defining a grouped ordering of render items is currently not possible with three.js
. I’ve tried to integrate an functionality similar to Unity’s SortingGroup but without success.
I hope we can add such a feature in the future. In the meanwhile, you might want to use the code from the PR for your own custom solution.