#Normal Map triplanar .shader URP

1 messages · Page 1 of 1 (latest)

topaz birch
#

Hi everyone
I have a shader that I have to use in a project that follows the idea of power wash simulator

This shader uses a mask to either show the dirt surface or the clean surface. My main issue is that I am struggling on adding a normal map for each of the 2 materials

The code line that fetches the normal map doesn’t add any details to the surface of the object
outSuefaceData.normalTS = SampleNormal(uv, TEXTURE2D_ARGS(_BumpMap, sampler_BumpMap),_BumpScale);

I have to use code, can’t use shader graph
The standard vert and frag were overwritten
#pragma vertex OverrideLitPassVertex
#pragma fragment OverrideLitPassFragment