Search Unity

Directional light is not casting shadows

Discussion in 'Scripting' started by TRG96, Aug 20, 2014.

  1. TRG96

    TRG96

    Joined:
    Mar 26, 2011
    Posts:
    102
    I have a directional light in my scene and it was casting shadows at first but now I am getting this error:

    Material doesn't have a texture property '_ShadowMapTexture' UnityEditor.DockArea:OnGUI()

    I made a new project and that was working fine as well and after a while the same thing happen . Think it might be a bug or something. I have googled for this error but no results come up.
     
  2. domkia

    domkia

    Joined:
    Aug 19, 2012
    Posts:
    99
    maybe youre using unlit shader? check quality settings too.
     
  3. Fluzing

    Fluzing

    Joined:
    Apr 5, 2013
    Posts:
    815
    The material is missing the texture. You probably did not import it correctly.
     
  4. FuzzyQuills

    FuzzyQuills

    Joined:
    Jun 8, 2013
    Posts:
    2,871
    Are you using a custom shader? if so, this is probably the wrong section to post, but either way... check your shader has everything set up right. also check it compiled properly.