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

Do surface shaders work using single pass instanced rendering method for VR?

Discussion in 'Shaders' started by maugalvez91, Feb 20, 2019.

  1. maugalvez91

    maugalvez91

    Joined:
    Feb 20, 2019
    Posts:
    2
    Hi! I have been looking this up and I've only found examples on how to set this up for custom vertex/fragment shaders, but I haven't found the macros that you might include for surface shaders. Any insights in this topic will be very useful!!
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,329
    Surface shaders include the relevant macros by default, there's nothing you need to add to make them single pass instanced compatible.
     
    BrainSlugs83 and RDL_Simteam_2 like this.
  3. maugalvez91

    maugalvez91

    Joined:
    Feb 20, 2019
    Posts:
    2
    Ok I figured! it's just that it wasn't stated anywhere so I was worried that they would need something like that too. thanks for replying! :)