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
- Shader Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
Add comment