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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

reflection probes for Simple lit shader?

Discussion in 'Universal Render Pipeline' started by Aokkii, Oct 25, 2019.

  1. Aokkii

    Aokkii

    Joined:
    Nov 3, 2013
    Posts:
    117
    Since The Lit shader is too performance expensive, especially for mobile, i used the simple lit shader , but i noticed that this shader is not afected by the reflection probe.

    Does really not support reflection probes?

    Is there some other URP shader that supports reflection probes?(besides the Lit shader)
     
    Last edited: Oct 25, 2019
    TinyRoar likes this.
  2. tanselh

    tanselh

    Joined:
    Jan 5, 2017
    Posts:
    2
    it seems lit shader is not supported by reflection probe!.
     
  3. fendercodes

    fendercodes

    Joined:
    Feb 4, 2019
    Posts:
    190
    I'm also wondering if anyone was able to get reflection probes working with Simple Lit?
     
  4. StaggartCreations

    StaggartCreations

    Joined:
    Feb 18, 2015
    Posts:
    2,141
    The Simple Lit shader doesn't sample reflection probes by design, it's one of the things that makes it simple
     
  5. fendercodes

    fendercodes

    Joined:
    Feb 4, 2019
    Posts:
    190
    @StaggartCreations Makes sense. :D I often see Simple Lit being recommended for mobile.. but how much heavier really is Lit? Especially with the modern hardware these days. Obviously I can answer this question by profiling but was wondering what's the major reasoning behind Simple being needed for mobile.
     
  6. StaggartCreations

    StaggartCreations

    Joined:
    Feb 18, 2015
    Posts:
    2,141
    From what I gathered, based on the shader code, Simple Lit uses simple Lambert shading (similar to pre-Unity 5 or the Legacy Shaders). Reflection probes don't come into play since (back then) reflections were only composed out of a specular reflection (Blinn-phong shading)

    The Lit shader uses a PBR/BRDF model and performs a higher quality specular reflection with fresnel shading. The latter involves sampling reflection probes (there's always one for skybox), even if the material has a roughness value of 0.

    Specular and environment reflections can both be disabled on a Lit material, but the lighting model is technically a little more demanding.
     
    Cenda, Beauque and fendercodes like this.
  7. fendercodes

    fendercodes

    Joined:
    Feb 4, 2019
    Posts:
    190
    ^ Somebody quote this in the docs!
     
    Cenda likes this.