Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Holes in shadow of blender imported model

Discussion in 'General Graphics' started by MoosaNasir, May 12, 2022.

  1. MoosaNasir

    MoosaNasir

    Joined:
    May 24, 2021
    Posts:
    33
    Hello, I made a model in blender and imported into unity, but it made the shadow have holes in it. Does anyone know how to fix this without setting the normal bias to 0? It does work that way but I'm scared that it might not be a good solution if it might cause shadow acne. Thanks in advance!
    upload_2022-5-11_19-5-23.png
     
  2. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,553
    You can fix that by setting "two-sided shadows" on mesh renderer flag, but the fact that there are holes implies that you might have inverted normals on your model. I'd recommend to go back to blender and recalculate.Either that or there's more than one material and the second one doesn't quite cast shadows.
     
  3. chingwa

    chingwa

    Joined:
    Dec 4, 2009
    Posts:
    3,789
    It's also possible the vertices in the object are not welded together, which can cause some similar shadow artifacts. What you show in the screenshot is quite extreme however.
     
  4. SunnySunshine

    SunnySunshine

    Joined:
    May 18, 2009
    Posts:
    974
    Is the wood and the metal using different materials?

    If the metal is using material in transparent queue, it won't cast or receive shadows by default afaik.