Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved How to render shader graph shader inside of a cube.

Discussion in 'Shader Graph' started by Triggerzz, Oct 22, 2020.

  1. Triggerzz

    Triggerzz

    Joined:
    Dec 18, 2018
    Posts:
    22
    Hello!
    I was wondering if it's possible to render a shadergraph shader on the inside of a cube. I guess I'm asking about making it double-sided or reversing the visible side.
    My camera is inside of a cube, with the cube as a child object so it rotates with the camera. I want the camera to zoom in/out without the colors in the background changing. Currently the camera just shows right through the cube.

    So, how would you go about making shaders render on the opposite side, or make them double-sided?
     
  2. valarnur

    valarnur

    Joined:
    Apr 7, 2019
    Posts:
    438
    You can swap the normal of the cube.
     
    Triggerzz likes this.
  3. Triggerzz

    Triggerzz

    Joined:
    Dec 18, 2018
    Posts:
    22
    Yep, that did it. Such a simple solution I didn't consider. Thank you!