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

Question Environment Reveal Shader

Discussion in 'Shaders' started by jae026, Aug 18, 2022.

  1. jae026

    jae026

    Joined:
    Oct 29, 2016
    Posts:
    68
    Hey guys I am looking for help with a particular effect. I am fairly new but studying writing shaders. I have been searching for a way to have 2 environments live in the same space but only 1 is visible because the player is enclosed in an inverted sphere which its own shader that has a value with a range of 0-1. When that value is 0 environment 1 is visible and when the value is 1 then environment 2 is visible.