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

Is there any hit on Performance with double sided materials vs mesh render?

Discussion in 'General Discussion' started by Balakesavan, Mar 15, 2023.

  1. Balakesavan

    Balakesavan

    Joined:
    May 21, 2018
    Posts:
    3
    just want to know if there is a visible or invisible catch to this. Thanks
     
  2. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,554
    Double sided material without backface culling will waste more pixels while rendering.

    In general, when culling is enabled, polygons that face away from the camera are clipped after vertex shader phase. Meanign they do not even reach pixelshader.

    When backface culling is enabled, they do reach pixel shader, and are discarded by depth test, after taking some processing power from GPU. So generally, you'd want to use this on cloth and the like.

    You can also get minor z-fighting at corners, though in most cases it will not be noticeable.