I am making a fake Flashlight effect In Unity

I made a cone mesh and placed it into In VFX Graph . Now i wants to Give a life to it by interacting with the walls and I need a technique to hide mesh going Outside the wall using Shader graph or VFX graph itself. @GabrielAguiar do you know any technique?

1 Like

you need a script that will pass the distance to the collider to the material.

alternatively you can look into custom masking and feeding that into the material, Asher calls this Pizza Masking :slight_smile: https://twitter.com/vuthric/status/1295773219186606081