Skip to main content
Up and Coming
October 3, 2015

Broken shadow unity 5

Hi there,

A month ago, i updated my project from unity 4 to 5. This process went well, but i discovered that the shadows looked strange. First i thought this was a unity problem, but when i started a new project, the shadows where normal.

I checked all my project settings, and it's hard to find out what is happening.

It does not help if i create a new scene without any script or object, still the weird shadow.

Anyone any idea what is wrong here ?

I added an image with the strange behaviour. The shadow is curved and hard. should be fading away smooth.
shadow_issue.jpg
    This topic has been closed for replies.

    9 replies

    Inspiring
    October 3, 2015
    Does this still happen with Unity 5.2.1p2? How many shadow cascades are you using and where are the splits and the shadow distance? See http://docs.unity3d.com/Manual/class-Qu ... tings.html.
    Up and Coming
    October 3, 2015
    I am using unity 5.2.1p2. When i create a new project, it works fine, nothging wrong with these shadows. When i use my main project i get these shadow glitches.

    i don't use cascades, this hits the performance, but when i use 2 or 4 cascades, the shadow is still broken. Switching to deferred rendering fixes the problem, but i like to work with forward rendering.

    These two images show the difference.

    sample_2.jpg ( new project)

    sample_1.jpg ( main project )
    Inspiring
    October 3, 2015
    Thanks, we're taking a look at this.
    Up and Coming
    October 4, 2015
    I have the same issue unfortunately...

    4 Shadow cascades... I have tried various breakpoints with no luck.

    I am using the Legacy Deferred Renderer with a 2 camera multi-depth scene.
    October 28, 2015
    I have a similar issue, it only occurs if I attach the camera to an object in my scene, like my player object.
    Inspiring
    October 28, 2015
    @nmck: Does this only happen with "VR Supported" enabled?

    If you uncheck the VR but leave everything else the same, does it work?
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    October 29, 2015
    @cybereality: it only happens with "vr supported" enabled. If I disable vr and play it, the shadows are displayed correctly.
    October 29, 2015
    Just to update that I managed to fix my problem, I'm still not sure what is causing it though. I recreated my player object and assigned the scripts and now it works fine. My old player object is identical and if I attach the camera to the old player object the shadows don't display correctly but with the new player object they do display correctly.

    The only thing difference between the two objects is that my original player object was an imported asset, and the new one I just recreated it within the scene.
    Inspiring
    September 7, 2016
    For the record, this was fixed in 5.3.2p1 and should no longer be an issue in any of our supported versions.