Shaders
Shader: SF Portal
You do not need to configure anything for this shader, everything will be handled automatically. This shader is used for the Portal view and the Portal script will attach the according RenderTexture to the shader.
Shader: SF Slice
Use this shader for objects that you want to be sliced when moving through the portal. You can simply configure the basic stuff like base texture, normals, metallic map, smoothness, emission and emission strength. All the advanced slicing properties will be handled directly in the Portable script
The next 2 images are showing the slicing shader in action. The left image shows the actual game view and the right image the scene view
Basically every object with a slicing shader is sliced on the portal center. So only the part of the object that is in front of the portal is visible. The Portable script will create a clone on the second portal, with inverted slicing configuration, so the hidden part of the original object will appear on the second portal.
Last updated