Search Unity

Question How can I sample normalmap in Single Pass Instanced?

Discussion in 'Universal Render Pipeline' started by Dujiangyue, Sep 29, 2022.

  1. Dujiangyue

    Dujiangyue

    Joined:
    Jul 7, 2019
    Posts:
    4
    I try to use UNITY_SAMPLE_SCREENSPACE_TEXTURE like
    half3 bump=UnpackNormal(UNITY_SAMPLE_SCREENSPACE_TEXTURE(_NormalTex,i.uv.xy));
    But I got no bump in my vr scence.
    using URP 10.5.1,unity 2020.3.13f1c1,Open VR
    In scene view:
    upload_2022-9-29_11-48-36.png
    In running game view:
    upload_2022-9-29_11-53-1.png
     
  2. Dujiangyue

    Dujiangyue

    Joined:
    Jul 7, 2019
    Posts:
    4
    nevermind i just find out i forget to enable the CBUFFER_START(UnityPerMaterial)...:oops: