"ZED Forward lighting URP" shader error: requires buffer SRV "spotlights" at index 4 but none provided

Hi,

After setting up the ZED plugin in a URP project, I’m getting this error repeated in the console and no ZED camera image (in my case 3D point cloud) is rendering in the Game view of Unity, but it is rendering in the Scene view and the preview of the main camera: Fragment Shader “ZED/ZED Forward lighting URP” requires a buffer (SRV) “spotlights” at index 4, but none provided. Skipping draw calls to avoid crashing.

Below are details of versions used:

  • Unity: 6000.3.16
  • URP: 17.3.0
  • ZED SDK: 5.3.2
  • Rendering Path: Forward+

I’ve already checked that in the Game view it is the same camera view as the preview camera.

Suggestions on how to solve this problem would be appreciated! Please let me know if more information is needed. Thank you!

I tested with a more recent Unity version but I was not able to reproduce it.

Which scene did you use ?

I used the scene created by myself by adding calibrated cloud objects (including Virtual View Camera, Point Cloud Manager, and ZED_Rig_Mono).

I was able to solve the problem of “point cloud not rendering in Unity Game view” by dragging the Virtual View Camera into the field “Hidden Object From Camera” of ZED Point Cloud Manager. The shader error still existed but it doesn’t prevent the rendering anymore. Not sure if this error needs to be solved necessarily.