I have this error:
Fragment program 'frag': Unrecognized sampler 'samplerunity_lightmap'
- does not match any texture and is not a recognized inline name
(should contain filter and wrap modes)
when I write
UNITY_SAMPLE_TEX2D_SAMPLER( unity_LightmapInd, unity_Lightmap, i.uv1 );
I’m just trying to get directional lightmap in custom shader, but i have this strange error.
If I write unity_Lightmap
instead of unity_LightmapInd
i don’t have error.