Search Issue Tracker
Fixed in 5.5.1
Votes
0
Found in
5.5.0b10
Issue ID
852264
Regression
No
[shaders] UNITY_VERSION macro is not correct in surface shaders
STR:
1. Open the project
2. Click on NewSurfaceShader in assets
3. Notice the compiler error
Expected: compiler error doesn't appear, as the code is in "#if UNITY_VERSION < 550" bracket
Actual: an error for double definition is thrown (function "PerceptualRoughnessToRoughness" is already defined at /UnityStandardBRDF.cginc(12))
Reproduced on: 5.5.0b3, 5.5.0f1
Did not reproduce on: 5.4.3f1, 5.3.7f1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The Particle System Trail module creates Trails with a lighter coloring than the particles when the Color Space is set to Linear
- Crash on "DynamicBranchState::PrepareState" when entering the Play Mode with a shader variant collection that has a shader with a "dynamic_branch" keyword
- Crash on "in __pthread_kill" when running the built application that has UNITY_EDITOR scripting symbol in conditional compilation
- Fix for 2022.3.X: Flickering of HDRP Directional Light shadows with DirectionalMixedCachedShadows when in an Entities Graphics rendered Subscene
- "Objects are trying to be loaded during a domain backup." errors on entering Playmode
Add comment