Search Unity

Question Prevent Camera Based UV texture from rotating with the player's head in VR

Discussion in 'AR/VR (XR) Discussion' started by oO_Hawke_Oo, Aug 25, 2020.

  1. oO_Hawke_Oo

    oO_Hawke_Oo

    Joined:
    Apr 30, 2018
    Posts:
    1
    Hey people,
    I'm using a camera space texture to create a scanline effect for a hologram within my game. The problem occurs when moving to VR, the UV's rotate with the player's head so the scanlines are no longer parallel with the ground. I am having difficulty figuring a way to counteract the rotation.

    As a footnote, I am using the Amplify Shader tool to create my shaders, but don't let that stop you from helping me out. If you can help me with the concept and the math, I can figure out how to do it in Amplify.

    Thanks in advance,
    -Hawke