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
- Search field in UI Builder's Library has no character limit
- Changing the value in UI Builder by dragging increases it by a few thousand points when reaching the borders of the screen
- ARM64 architecture DLL incorrectly copied instead of x64 when building for Windows x64
- Crash on TypeTreeIterator::GetNode when opening a specific folder
- Crash on WriteSerializedAssetsV2 when (re)entering the Play Mode in a specific project when IEnumerator Start() is used
Add comment