Bebylon Saloon 360
Dev Snippets

Protip: UE4 Selective Eye Rendering In Stereo

By on March 22, 2017

When using stereo instancing/multiview or the forward renderer, you can’t use screenposition or the stereo pass enum to determine whether you’re rendering the left eye or right eye.

Instead, in your material, you can use a custom node and return ResolvedView.StereoPassIndex to determine if you’re rendering left vs right eye.

We use this for our stereo billboards or stereo environment sphere materials.

TAGS
RELATED POSTS
1 Comment
  1. Reply

    Amrit

    April 1, 2018

    Thank you very much. I was looking for a way to render obstacles in one eye and the player character in the other eye to make a game to help a friend with his lazy eye.

LEAVE A COMMENT

This site uses Akismet to reduce spam. Learn how your comment data is processed.