arfoundation-samples icon indicating copy to clipboard operation
arfoundation-samples copied to clipboard

How do I render a part of an ARPlane?

Open Berenice2018 opened this issue 5 years ago • 2 comments

Hi, I want to render just a part of an ARPlane. Let's say I got an ARPlane of 60 m2 size, but want to make a part of that plane invisible and the other part (that is within a radius of 3 m from the camera) visible, how should I achieve this, in case it is possible at all? Thanks in advance for any idea and input.

Berenice2018 avatar Dec 17 '20 17:12 Berenice2018

You could do this in a shader by varying the alpha channel based on distance from the camera.

tdmowrer avatar Dec 17 '20 18:12 tdmowrer

Many thanks @tdmowrer for your reply. I am quite new to shader programming. I will take a look at your ARFeatheredPlaneMeshVisualizer.cs and do some research how to do that

Berenice2018 avatar Dec 17 '20 21:12 Berenice2018