How to get material from landscape in specified place?

Is it possible to get material that is applied to ladscape in specified location? So, for example, it could be used in shader that recognizes what material is applied below/next to object with that shader - and change his texture to the one from this landscape material. (Chameleon shader! :smiley: ) Proffesional visualization of the problem:

37365-viz.jpg

Hi,

You can LineTrace to find a physical material of a landscape. And then update render materail depending on a LineTrace result. Physical material can be assigned to a specific landscape layer object. Just open it in asset editor. When there are several layers blended together LineTrace should return material of most dominant layer.

Thanks, i will try this soon :slight_smile: