Search Issue Tracker
By Design
Votes
0
Found in
2020.3.40f1
2021.3.10f1
2022.1.16f1
2022.2.0b8
2023.1.0a10
Issue ID
UUM-15015
Regression
No
[URP] Object world position to object position transformations in the ShaderGraph shaders effected by the camera position an orientation
How to reproduce:
- Open the attached project (IN-9402.zip)
- Make sure the “Main” scene is open
- Move the Scene View camera so only one of the two sprites is visible
- Observe the sprite’s texture
Expected result: the texture remains the same as when both sprites are visible
Actual result: the texture changes to yellow with a slight orange gradient at the bottom
Reproducible with: URP 10.10.0 (2020.3.40f1), 12.1.7 (2021.3.10f1), 13.1.8 (2022.1.16f1), 14.0.3 (2022.2.0b8), 15.0.1 (2023.1.0a10)
Reproducible on: Windows 10, Ubuntu 20.04
Note: The issue is also reproducible on project builds
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
- Text render issues and various exceptions in TextCore when using TextSettings option "Match Material Presets"
- NullReferenceException error is thrown when unpacking multiple instances of the same UI Document
- URP Decal Projectors don't render when they are hidden in the Hierarchy, unlike other GameObjects
- Reflection Probe “adjusting number of stops to over or under expose the texture” setting does not update in Scene realtime
- UI Toolkit rendered text breaks when toggling FontWeight styles through code
Resolution Note:
This is by design and working as intended. Sprite renderers use dynamic batching by default, which is why you are seeing different world matrices depending if the sprites are batched. See https://docs.unity3d.com/2021.3/Documentation/Manual/dynamic-batching.html for batching limitations.
If you require to use world position in your shaders, consider using SRP Batcher instead where per object data is preserved. See https://docs.unity3d.com/Manual/SRPBatcher.html for more information.