Layers Precedence

Will layer 1 have greater precedence over layer 0 or the other way around.

Rules like this do no apply for layers. What matters is affinity. So for example if an object shares a layer with a camera, it will be rendered within the camera’s view.

1 Like

Thanks for the response! So should object3d.renderOrder be used if one wants to control the z-index of objects?

1 Like

That is correct. Provides I believe the renderer is set to sort.

Like mentioned in the documentation, Object3D.renderOrder allows you to overwrite the default rendering order. This works without setting any properties of WebGLRenderer.