Master Of Animation, Games & Interactivity
Master Of Animation, Games & Interactivity

This week in IOL we are focusing on binaries, dualities, opposites that exists in the project. Juxtaposing the concept of multiple realities, dimension in my AR Project Multiverse, I’m looking at the dynamics of the portal , which is the doorway between the realities.

INSIDE - OUTSIDE

First I created the general Portal Dynamics, which uses a trigger collider to detect the position of camera and if inside, renders all(without stencil). The Portal door shader stencils the objects shader. The warp shader has been customised for the same.

Ref : 

PortalDynamics/ Shader Customisations : https://www.youtube.com/watch?v=0eFo4ialKKQ&list=PLKIKuXdn4ZMhwJmPnYI0e7Ixv94ZFPvEP&index=6

WarpGslShader: https://gist.github.com/ya7gisa0/c99805417ebedb630ff9c6786c9a27ab 

——————

MyRef:
Custom Shader Mod: 


>>In Properties:
[Enum(Equal,3,NotEqual,6)] _StencilTest ("StencilTest", int) = 6

>>In Subshader:


        Stencil{
            Ref 1
            Comp [_StencilTest]
       
        }



>ChangeStentest to Equal in Inspector.

Downloads:

About This Work

By Sahaj Garg
Email Sahaj Garg
Published On: 03/05/2019