Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

shader graph, flip normals for VR sphere

Discussion in 'AR/VR (XR) Discussion' started by ivan_unity180, Feb 13, 2019.

  1. ivan_unity180

    ivan_unity180

    Joined:
    Nov 13, 2018
    Posts:
    2
    Have any of You guys can help with the creation of a shader, using shader graph(is this possible?) that let me flip the normals of a sphere, sorry I have no experience coding shaders :(, I am trying to make a video player (which I am done with all the things that has to do with the player but the shader using shader graph its a pain in the @55



    by the way I am using, the oculus go platform and it goes awesome
     
  2. GameDevCouple_I

    GameDevCouple_I

    Joined:
    Oct 5, 2013
    Posts:
    1,405
    If there is an inverse node, try that? Sorry dont use shadergraph enough to be more help

    EDIT: shouldnt this be as simply as multiplying the normal values by -1?

    Just try using a multiply node with -1 as the value and use that on the normal output
     
  3. dmennenoh

    dmennenoh

    Joined:
    Jul 1, 2015
    Posts:
    267
  4. ivan_unity180

    ivan_unity180

    Joined:
    Nov 13, 2018
    Posts:
    2

    that is what I thought at the begining but nope, did not work at all, Ill show you tomorrow, when I am back at the office :D, and show you some experiments about this topic :D
     
    GameDevCouple_I likes this.