Engine V2 shader error of directional light

  1. add 2 directional lights
  2. set cascades(numCascades) > 1
  3. switch to engine V2
  4. error
    project:
    PlayCanvas 3D HTML5 Game Engine

cc @mvaligursky

I’ll investigate, thanks. Most likely V1 issue as well. I refactored this part of shader generation last week, so it might no longer be happening, but I’ll double check.

I have a fix here: [Fix] Generate valid shader when multiple lights with cascades are used at the same time by mvaligursky · Pull Request #7369 · playcanvas/engine · GitHub

It will be released with the next engine release. Thanks for the report @Steven_Chen

1 Like