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

Clipping cross section shader #104

Open
Cameron-Micka opened this issue Sep 28, 2022 · 0 comments
Open

Clipping cross section shader #104

Cameron-Micka opened this issue Sep 28, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@Cameron-Micka
Copy link
Member

Forked from: microsoft/MixedRealityToolkit-Unity#11058

Describe the problem

As shown in the figure, we can see through the cross section, usually it's good but if the model represents a solid part, it looks then not very 'nature'.
image

It would be perfect if we have an option to render the cross section with the material from the clipped part. Like the figure here (which is from CAD software)
image

Describe the solution you'd like

Add an option in ClippingPlane (and Box, Sphere) script to choose whether to treat the clipped game object as solid. if true then render the cross section with its body material.

Describe alternatives you've considered

Add a new shader for clipping with this feature.

Maybe there is already a solution that I did not find, if so please let me know about it.
Thank you in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant