- Home /
Question by
SunnyPalmSprings · May 20, 2020 at 12:12 PM ·
shadermeshprojectordecal
Shader that only shows mesh at the point where it is colliding with terrain? (A projector?)
Maybe I don't have the right terminology for this. I'm using mesh generation during runtime to update a mesh. I want its y scale to be really tall, but I only want the part of it that is colliding with the terrain to appear. Kind of like a projection.
This post is trying to do the same thing: https://answers.unity.com/questions/1697393/shader-graph-changing-colorintersection.html?childToView=1732558#answer-1732558. And he used this picture which represents it perfectly: https://answers.unity.com/storage/attachments/152382-shadergraph-help.jpg
If you guys have a better way of doing this please let me know. Decals, projectors, Shader Graph tutorials. I just want to project a mesh on the terrain that can update at runtime. I'm using URP.
Comment