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

Don't render pixels of object

Discussion in 'Shaders' started by CasualDutchman, Sep 21, 2017.

  1. CasualDutchman

    CasualDutchman

    Joined:
    Jan 20, 2016
    Posts:
    37
    Hi there,

    I've been looking for this shader element for a long time, but I can't find it.

    I want a shader that get rid of the pixels at a objects location.
    With 2 cameras, I want to create a portal effect.

    Camera 1 renders world 1 and if the camera tries to render a certain object it deletes those pixels. like the "no clear" setting for the camera.
    Then Camera 2 will render world 2 underneath camera 1. Thus seeing world 2 through the portal.

    When you go through, the portal goes away, so then world 2 is the prominent world.

    I hope people can guide me to the right way.

    Note:
    I am no shader expert. I know very very very little of shaders.
     
  2. Johannski

    Johannski

    Joined:
    Jan 25, 2014
    Posts:
    823