URP Maximum Sample Index (16) with Light Cookie Input

URP Maximum Sample Index (16) with Light Cookie Input


I just recently imported a new asset package, all of the materials use the URP lit shader, no custom shaders. However, now I can’t build the game because I keep getting the same errors:
Maximum ps_4_0 sampler register index (16) exceeded
Maximum ps_5_0 sampler register index (16) exceeded

I’m using Unity Version 2021.3.45.
I understand that it means the Sampler states has exceeded 16, but the problem is I can’t find the root cause, nor fix it because URP Lit is a package file so I can’t change it.
There is the imported asset.
Here is a screenshot of the errors:



Source link