Search Issue Tracker
Fixed
Fixed in 2022.3.28f1
Votes
0
Found in
2022.3.25f1
2023.2.19f1
Issue ID
UUM-70083
Regression
No
[HDRP] The pregenerated LightDefinition.cs.hlsl does not match the source LightDefinition.cs when regenerating shader includes
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Inconsistent behaviour when interacting with different dropdown types with pointer events on parent Visual Element
- Hidden GameObjects won't re-enable when they have call "DontDestroyOnLoad" function
- Overlay Canvas are rendered on each split-screen camera when HDR is enabled
- [Android] The Player loses focus when using UnityEngine.Handheld.StartActivityIndicator() with Facebook SDK
- Build fails with "Building Library/Bee/artifacts/MacStandalonePlayerBuildProgram/gahcy/hj9mx3z/951.0 failed with output:..." errors when Scripting Backend is set to IL2CPP
Add comment