Search Issue Tracker
By Design
Votes
0
Found in
2021.3.27f1
2022.3.2f1
2023.1.1f1
2023.2.0a20
Issue ID
UUM-40325
Regression
No
The Shader is rendered more brightly when returning the shader's color of half the brightest value
Reproduction steps:
1. Open the attached “Test Project” project
2. Open the “Scenes/SampleScene” Scene
3. Open the “Scenes/TooBrightBugShader” Shader
4. Make sure in the Shader “SV_Target” returns “0.5”
5. Select “BUG: COLOR PICKER 188, 188, 188” GO in the Hierarchy window
6. Under the “Image” component select “Color” input
7. Change the color by pressing the “Pick a color from a scene” button and selecting “Sphere” GO in the Game View
8. Observe the “Color” input’s R, G, and B values
Expected result: The “Color” input’s R, G, and B values are “128”
Actual result: The “Color” input’s R, G, and B values are set to “188”
Reproducible with: 2021.3.27f1, 2022.3.2f1, 2023.1.1f1, 2023.2.0a20
Reproducible on: Windows 10
Note:
- By changing “SV_Target” in step 4 to return “0”, then all R, G, and B values are “0”. In the same way, changing return to “1”, the ann R, G, B values are “255”
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
- "Rendering Debugger" displays incorrect overdraw count when using "Unlit/Texture" shader
- Scene and Game views break when the Editor window is snapped with the Microsoft PowerToys
- Materials do not transfer texture when the "Shader" parameter is changed from "Unlit/Texture" to "Universal Render Pipeline/Unlit"
- [Linux][Vulkan] Crash when opening searchable dialog
- The "Shader error in 'AE/Leaves': "Undefined punctual shadow filter algorithm"" error appears when build completes on a specific project
Resolution Note:
The issue here is that the repro shader is a built-in pipeline shader being used with URP. The 0.5 values are converted from linear space to sRGB space where they have a value of 0.735357 (or so). You will find if you create either an Unlit ShaderGraph (with accompanying material) or a material based on the URP Unlit shader, the sphere will render darker and the picked color will be as expected.