Search Issue Tracker

Fixed in 2020.2.X

Votes

1

Found in

Issue ID

1241959

Regression

No

[SRP Batcher] cyan shader renders template scene objects in wrong positions

Metal

-

repro steps:
1. create a new URP template project
2. add a new scene
3. create a cube
4. move cube position (away from origin)
5. create a new material
6. select a shader for new material (some shaders don't repro, known to repro using AutodeskInteractive or Simple Lit)
7. select active URPAsset in project tab
8. in inspector, uncheck "SRP Batcher"
9. drag material from project tab to cube in scene view
10. observe cyan flicker when material changes, position of cyan cube is correct
11. select URPAsset and check "SRP Batcher"
12. in the scene, add a point light
13. observe cube flickers cyan while shader compiles, position of cube is incorrect

Expected: cyan shader is rendered in correct position
Actual: cyan shader is rendered in incorrect position

repro: 2019.3.0a12 + URP 7.0.1, 2020.2.0a9 + URP 9.0.0 (master @ 574ea539eef053e9defcd1d040575ecd45786253 ), 2020.2.0a20 + URP 10.0.0-preview-27

Notes:
- this is more visible since the SRP batcher option was enabled by default in new template projects from 2019.3.0a11
- in 2020.2.0a20 the cyan shader does not appear to render at all in scene view (even with the wrong position)

  1. Resolution Note (fix version 2020.2):

    verified fixed in 2021.1.0a7 and Universal RP 10.2.0

    Now changing the shader variant in editor (like adding a new material to the scene or changing lights) will correctly show affected objects as cyan while shaders compile.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.