Search Issue Tracker
Active
Under Consideration for 6000.0.X, 6000.1.X, 6000.2.X
Votes
1
Found in
6000.0.44f1
6000.1.0b12
6000.2.0a7
Issue ID
UUM-100850
Regression
No
Material Properties are not preserved when overriding Shader using Render Objects
Reproduction steps:
1. Open the attached “IN-96982.zip” project
2. Open the “SampleScene”
3. Select the “PC_Renderer” from the Project Window (Assets > Settings)
4. In the Inspector find the “Render Thermal” Component
5. Under the Overrides tab in the Shader property make sure “SimpleThermalRenderStateCommands” Shader is selected
6. Observe the Game view
Expected result: GameObjects behind the Stencil have a gray tint
Actual result: GameObjects behind the Stencil become invisible
Reproducible with: 6000.0.44f1, 6000.1.0b12, 6000.2.0a7
Couldn’t test with: 2022.3.60f1 (The Shaders did not work)
Reproducible on: Windows 11
Not reproducible on: no other environment tested
Notes:
- Stencil GameObject is added as a child of the Main Camera GameObject
- Selecting “SimpleThermal” Shader shows the expected result
- Clicking on the “SimpleThermalRenderStateCommands” Shader through the Project Window appears to fix the issue, but closing and re-opening the project makes the issue reproduce again
- The stencil becomes invisible due to the material properties being set to 0 which can be confirmed in the Frame Debugger, where the Color and Alpha are being set to 0
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- SystemInfo.get_graphicsDeviceName() is generating garbage GC Alloc when using Metal graphics API
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
Add comment