Skip to content

Conversation

@Oletus
Copy link
Contributor

@Oletus Oletus commented May 31, 2019

This fixes rendering of screen space effects depending on normals in the presence of a global clipping plane.

This fixes rendering of screen space effects depending on normals in the presence of a global clipping plane.
@WestLangley
Copy link
Collaborator

WestLangley commented May 31, 2019

Thanks! MeshNormalMaterial should have supported clipping to begin with.

EDIT: Oh wait! I was the one that removed clipping support. #10343. Apparently there were shader chunk redefinition conflicts at the time...

I understand why you added the example, but I don't think it is needed now that you have made your point. I think the example can be removed from this PR.

It was useful for making sure that clipping planes work as intended for normals when initially implementing the fix, but it's not a very natural fit for the example.
@Oletus
Copy link
Contributor Author

Oletus commented May 31, 2019

Removed the example changes as asked. I mostly did them to just have some way of verifying that my changes were correct. Ready to merge?

@WestLangley
Copy link
Collaborator

@mrdoob This PR can be merged.

@mrdoob mrdoob added this to the r106 milestone Jun 1, 2019
@mrdoob mrdoob merged commit 4eb7907 into mrdoob:dev Jun 1, 2019
@mrdoob
Copy link
Owner

mrdoob commented Jun 1, 2019

Thanks!

@Oletus Oletus deleted the normal-clipping-fix branch June 1, 2019 07:49
@WestLangley WestLangley changed the title Apply clipping planes in normal material MeshNormalMaterial: support clipping planes Jun 1, 2019
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