Search Issue Tracker

Fixed in Unity 4.3

Votes

0

Found in

4.2.0f4

Issue ID

557840

Regression

No

Shaders passes change order randomly for instantiated

Graphics - General

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 3Secondary functionality broken

Shaders passes change order randomly for instantiated material

To Reproduce:
1. Open the attached project & scene.
2. Enter and exit play mode a few times (>5).
3. Notice that the light rendering changes in some cases.
4. Open the PointLightRenderer.cs script
5. Change the line commented in Start () for the one _not_ commented (//Works)
6. Test again entering and exiting play mode. The problem does not reproduce. The difference is that one material is instantiated (bug) and the other one is referenced (works).

All about bugs

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