This version is no longer supported but the issue is fixed in latest 6 preview
Reproduction steps:
1. Open the attached "HDRPblank" project
2. In the Project window, search for the file "LightDefinition.cs.hlsl" in Packages and open the file in any text editor
3. Observe the value of MAX_CUBE_REFLECTIONS on line 17 which is currently 64
4. In Unity, go to Edit > Rendering > Generate Shader Includes
5. Reload the file "LightDefinition.cs.hlsl" in your text editor so that it now shows the newly generated version
6. Observe the value of MAX_CUBE_REFLECTIONS on line 17 which is now 128
Expected Result: The value of MAX_CUBE_REFLECTIONS stays the same after regeneration
Actual Result: The value of MAX_CUBE_REFLECTIONS is different after regeneration
Reproducible with: 2022.3.25f1, 2023.2.19f1, 6000.3.0b14
Fixed in: 6000.3.0b15
Could not test with: 2021.3.37f1 (MAX_CUBE_REFLECTIONS does not exist in "LightDefinition.cs.hlsl")
Reproducible on: Windows 11 Pro
Not reproducible on: No other environments tested
Note:
Only reproducible with HDRP
On 2022.3.25f1, this is only reproducible if a local version of the HDRP package is created, by moving the HDRP package folder from the Library/PackageCache folder to the Packages folder
Prioritise and Follow this issue
Have a workaround or additional info about this issue?