Search Issue Tracker
By Design
Votes
0
Found in
6000.0.54f1
Issue ID
UUM-111654
Regression
No
SpriteRenderer has wrong input color when associated material uses SRPBatcher
How to reproduce
1. Extract and open the attached “IN-107982.zip” project
2. Observe the Game View
Expected result: All squares are coloured
Actual result: Only non-SRP squares are coloured
Reproducible with:
6000.0.54f1
Could not test with: 2023.3.0b10, 6000.1.12f1, 6000.2.0b10, 6000.3.0a2 (Shaders used are highly customized, upgrading and downgrading causes unfixable compilation errors)
Reproducible on: MacOS 15.5 (Silicon)
, Windows 11
Not reproducible on: No other environment tested
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Object Picker does not open when a reference is in an array and is clicked on through a non-standard pointer (tablet pen, touchscreen)
- HDRP ShaderGraph Color property gets overridden when it is named "EmissionColor"
- Material properties are lost when setting a parent that hasn't been loaded yet
- NullReferenceException is thrown when creating State from a Selected Clip if that Clip is a Blend Tree
- Built Player with Vulkan Graphics API hangs/freezes when VSync is enabled and "Run In Background" is enabled
Resolution Note:
For 2D Renderers in URP, if SRP-Batcher is active, Color is in unity_SpriteColor (UnityPerDraw) and Vertex Color is White
If SRP-Batcher is inactive or Shader is not SRP-Batcher compatible, Dynamic_Batching is used. unity_SpriteColor is white and color is now in Vertex Color
To fix the shaders, please use an appropriate function to get the Sprite Color.