Search Issue Tracker

Fixed in 2022.2.X

Fixed in 2020.3.X, 2021.3.X, 2022.1.X

Votes

1

Found in

2019.4

2020.3

2021.1

2021.2

2021.2.0a12

2022.2

Issue ID

1328077

Regression

No

Shaders controlling cull mode via a property get incorrectly rendered in the shadow caster pass

Shader System

-

How to reproduce:
1. Open attached project "ShadersCull.zip" and scene "Test"
2. In Project window, select Assets/A.mat
3. In Inspector window, change CullMode to 2 and back to 0
4. In Scene View, observe changes in the shadows of "Sphere1" and "Sphere2" GameObjects
5. If no changes occur, repeat steps 3-4 using Assets/B.mat

Expected result: The spheres' shadows have different cull modes
Actual result: Both of the spheres' shadows have the same cull mode in the shadow caster pass

Reproducible with: 2019.4.24f1, 2020.3.5f1, 2021.1.4f1, 2021.2.0a14
Could not test with: 2018.4.34f1 (compilation errors break project)

  1. Resolution Note (fix version 2022.2):

    Fixed in 2022.2.0a9

  2. Resolution Note (fix version 2022.1):

    Fixed in 2022.1.0b15

  3. Resolution Note (fix version 2021.3):

    Fixed in 2021.3.1f1

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.