I tried the experimental function Forward+, and there was a Bug in the Cookie mode when SpotLight was turned on. I went to locate the Bug and found the problem with lightcookieInput.hlsl calling SAMPLE_TEXTRE2D (). But it works when I use the SAMPLE_TEXTURE2D_LOD () function instead. Does Unity officially know of a better way? Or this Bug can be fixed.
Yeah, this has been fixed in the latest version. It won’t be backported indeed due to the experimental and hidden status. But if you want to fix it yourself (by modifying URP), it required the light loop to have a [loop] attribute on it in the definition of the LIGHT_LOOP_BEGIN macro. A number of other things were fixed as well, and the tiling is much more accurate in the newer version.