Search Issue Tracker

Fixed in 2017.3.0f3

Votes

1

Found in

5.4.0p1

Issue ID

825017

Regression

No

Objects with instanced shaders handle shadow casting incorrectly once negatively scaled

Shaders

-

Repro steps:
1. Open "InstancedShadowCasting" project
2. Load "Scene" scene
3. Observe that objects with instanced shaders once negatively scaled start to handle shadow casting incorrectly.
Note: You can also scale down plane next to (1,-1,1) negatively to see shadow jump next to (1, 1, 1) plane.
User attached a GIF.

Actual behavior: Objects with instanced shaders handle shadow casting incorrectly once negatively scaled, shadows jump to another object.
Expected behavior: Objects with instanced shaders should handle shadow casting correctly, no jumping shadows.

Reproduced on: 5.4.0f3, 5.4.0p1, 5.5.0a6

Comments (5)

  1. bac9-flcl

    Oct 16, 2016 15:43

    This issue is still present in 5.4.2f1.

  2. bac9-flcl

    Sep 13, 2016 12:17

    Reproduced in Unity 5.4.1f1.

  3. bac9-flcl

    Sep 02, 2016 00:44

    Reproduced in Unity 5.4.0p4.

  4. bac9-flcl

    Aug 30, 2016 00:44

    Also reproduced on Unity 5.4.0p3.

  5. bac9-flcl

    Aug 30, 2016 00:43

    Shadows do not "jump to another object" at all. The included scene has pairs of planes, and the directional light casts shadows from both: the actual behaviour is that the shadows are being casted from an incorrect side of a mesh once it's negatively scaled.

    http://i.imgur.com/OAMQCx1.gif

    On this gif, you see the included scene in full. Only the invisible quads, ones facing the sun, not the camera, leave the shadow. The bug allows a sun-facing quad to stop casting the shadow and allows a camera-facing quad to start casting a shadow. That's the gist of it. :)

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.