Skip to content

Conversation

@brucedjones
Copy link
Contributor

@brucedjones brucedjones commented Feb 10, 2022

Related issue: NA

Description

CSS2DRenderer did not have any support for renderOrder. This change adds support for renderOrder, where objects with a greater renderOrder will always cover those with a lesser renderOrder. Where objects have the same renderOrder, the pre-existing behavior is preserved where the object that is closest to the camera will cover any objects further from the camera according to each objects position property.

@mrdoob mrdoob added this to the r138 milestone Feb 11, 2022
@mrdoob mrdoob merged commit 0946935 into mrdoob:dev Feb 11, 2022
@mrdoob
Copy link
Owner

mrdoob commented Feb 11, 2022

Thanks!

@mrdoob
Copy link
Owner

mrdoob commented Feb 11, 2022

Does the CSS3DRenderer needs this too?

donmccurdy pushed a commit to donmccurdy/three.js that referenced this pull request Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants