Search Unity

Question Write Normal texture in DepthNormal pass Unlit Shader Graph

Discussion in 'Shader Graph' started by Reivax41, Feb 1, 2024.

  1. Reivax41


    Sep 16, 2015
    Hello everyone,

    I use Unity 2022.3.9f1 and URP 14.0.8.
    With the script provided here I can enable the DepthNormals pre-pass without using SSAO, which is useful for certain post-processing effects:

    Would it be possible to write the normal textures in the DepthNormalOnly pass of the Unlit Shader?
    Override a lit Shader is not an optimized solution, so there is no choice but to use Unlit for stylized shaders. But without normal some post-processing is limited like normal blended decals...

    Maybe a Keyword like for the Shadows or additional lights?
    Thanks in advance.