Passing second uv set to ShaderMaterial

Hello Guys,

I was using standard material for lightmap before and set the coordinatesIndex to 1.

Now I want to do some custom effect on geometry and I need to have custom shader with the support of lightmapping. Is there a support to fetch second UV set for sampling lightmap in shaders?


Yep just declare it as uv2


Thanks a lot. :slight_smile: