Search Unity

Screenspace UV'd texture upsidedown in game view, correct in build and scene view

Discussion in 'Shaders' started by jacknoid, Jan 18, 2019.

  1. jacknoid

    jacknoid

    Joined:
    Nov 28, 2018
    Posts:
    15
    Hi! I implemented a very simple shader in shaderforge (unity 5.6, ancient i know). I have two cameras in the scene, one renders the spaceman character to a texture, and that texture is then shown via my screenspace shader on a unity UI image panel.

    Why is it upside down in the game view but correct in the scene view? Secondly, if i make an android build it's correct again. I can't seem to figure out anything wrong with my logic and my shaderforge shader is very simple too (just the one-minus node to unflip this problem).

    I know i'm on a very old unity version, but updating at this point will be a lot of pain. I know i have also previously made screenspace shaders (with static images rather than render textures) that worked the same in both viewports.