Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for renderOrder to CSS2DRenderer #23456

Merged
merged 1 commit into from
Feb 11, 2022
Merged

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