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

Transform controls vs transparency vs fog #13344

Merged
merged 3 commits into from
Feb 16, 2018
Merged

Transform controls vs transparency vs fog #13344

merged 3 commits into from
Feb 16, 2018

Conversation

Astrak
Copy link
Contributor

@Astrak Astrak commented Feb 16, 2018

The transform controls gizmo currently receives fog and can be hidden by other transparent objects. This PR disables the fog in its materials and puts the renderOrder of its lines and meshes to Infinity.

@@ -134,6 +136,9 @@

object.name = name;

//always render on top of the scene (avoid being hidden by transparent objects)
object.renderOrder = Infinity;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting renderOrder to Infinity does not cause an object to be rendered "on top".

This only works in this case because of the depthTest = false, depthWrite = false and transparent = true material settings.

You can either remove the comment, or change it to

// avoid being hidden by other transparent objects

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks ! updated

@mrdoob mrdoob added this to the r91 milestone Feb 16, 2018
@mrdoob mrdoob merged commit 5887197 into mrdoob:dev Feb 16, 2018
@mrdoob
Copy link
Owner

mrdoob commented Feb 16, 2018

Thanks!

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