Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Unity 5 terrain shaders: "exclude_path:deferred"

Discussion in 'Shaders' started by DaveHoskins, Mar 4, 2015.

  1. DaveHoskins

    DaveHoskins

    Joined:
    Sep 9, 2013
    Posts:
    190
    Hi, I'm trying to learn what the built in shaders are doing and I noticed this line in the terrain stuff:-
    #pragma ... exclude_path:prepass exclude_path:deferred
    I presume that means it's forced to render forward. It's quite an advantage to render a landscape as deferred because there is usually so much of it, and a lot is obscured. Is there going to be an update to the standard terrain stuff sometime soon?
     
  2. Paulohmm

    Paulohmm

    Joined:
    Dec 24, 2012
    Posts:
    18
    From what I know, the terrains are rendered in forward because in deferred is not possible to blend the normal splats. If you do not use more than 4 splats on your terrain can romove this directive
     
    Last edited: Mar 5, 2015
  3. yuanxing_cai

    yuanxing_cai

    Unity Technologies

    Joined:
    Sep 26, 2014
    Posts:
    335
    That's correct. See this post for details.