Home

Awesome

StereoCancer

An open-source stereo-correct screen-space shader for Unity, mainly intended for usage in animations and games such as VRChat.

Distortion Effects

Color Effects

Display Settings

Usage

  1. Create a cube.
  2. Adjust the scale of the cube. Anyone who enters the cube, or sees the cube, will see the screen-space shader.
    • The screen-space shader effects are independent of the object scale. So if you find it was too big or small, you can always adjust it later.
  3. Add StereoCancer to your unity project.
  4. Create a material from the StereoCancer shader, and put it on the cube.
  5. Adjust the parameters on the material to your liking, or create an animation.
    • At this point you may wish to enable Falloff to limit how far away people can be and still see the effect. Falloff can be found under Rendering Parameters -> Falloff Enabled -> Yes.

Performance Considerations

This shader automatically optimizes for performance when the strength of an effect is reduced to 0. So in the interest of keeping what little performance the community gets in VRChat, please ensure unused effects on animations are actually fully disabled to allow the shader to run as efficiently as possible.

Advanced Usage

I have added comments to this shader's implementation file (StereoCancer v0.1.shader) to hopefully make it easy for users to extend this shader, or write their own afterwards.