Unity Issue Tracker - _BlitScaleBias is not set when using a custom shader
Closed
UUM-49333
_BlitScaleBias is not set when using a custom shader
Unity: RP Foundation
Won't Fix
2022.3.X
We are unable to repro the issue with the latest 2022.3 version.
If the issue is still happening, please re-open this bug and add your current unity version.
Thanks!
How to reproduce:
1. Open the attached “TrueBlitterBug.zip“ project
2. Open the “SampleScene“ Scene
3. Observe the Game view
Expected result: GameObjects are visible
Actual result: The Game view is dark
Reproducible with: 2022.3.10f1
Couldn’t test with: 2021.3.30f1, 2023.1.14f1, 2023.2.0b10, 2023.3.0a6 (“UniversalRenderer is missing RendererFeatures“ error in the Console)
Reproducible on: macOS 13.4.1 Ventura (Intel)
Not reproducible on: No other environment tested
Notes:
Issue reproducible in Player
_BlitMipLevel is set and _BlitScaleBias is not set, so UV calculation using _BlitScaleBias cannot be performed correctly
Setting Shader.SetGlobalVector() values to “"_BlitScaleBias", new Vector4(1f,1f,0f,0f)“ minimally solves the issue
Prioritise and Follow this issue
Have a workaround or additional info about this issue?