Search Issue Tracker

By Design

Votes

1

Found in

5.5.1f1

Issue ID

881283

Regression

No

[Editor] [Deferred] Light/normal direction getting reversed on actions when scene and game view is visible at the same time

Shadows/Lights

-

Reproduction steps:
1. Open the attached project called ""
2. Make sure Editor is running in the DX11 mode.
3. Put the Game and Scene views in the same window, so both of them are visible at the same time.
4. Move mouse around, click on the random things and resize the windows(GIF attached(2:31 PM)).
- You should see a lighting changes in the game view on the objects.

Notes:
- Issue doesn't reproduce when camera Rendering Path is set to Forward, only in Deferred
- Not a regression, reproduced on 5.5.0f3, 2017.1.0b5
- Issue only occurs when custom shaders are used, doesn't occur with Standard shader

Comments (1)

  1. TheOmnisimush

    Jun 16, 2018 18:40

    In Deferred rendering, "_WorldSpaceLightPos0" value seems to change
    when both Game window & Scene window are opened.
    -> this causes the "Lighting change / flickering" effect on custom shaders.

    While in Game mode, the problem does not occur,
    this still remains a problem because this "Flickering on Edit Mode" looks somehow "Buggy"
    and will give the developer a "False Alarm" :
    "Does my Custom Shader has incorrect computation somehow??"

    And to make matters worse,
    if the Developer decided to share his/her shader online or to sell it on AssetStore,
    users buying it will think of it as bug or glitch, not awaring of this problem.

    Fixing this issue will be very much appreciated.

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.