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. Unity 2022.2 is now available as the latest Tech release.
    Dismiss Notice
  3. We are making some changes to the DOTS forums.
    Dismiss Notice
  4. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

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: