Flafla2 / Vive-Teleporter

A framework for Unity3D that automatically generates teleporter boundaries and facilitates the teleporter mechanic, similarly to Valve's "The Lab"
MIT License
394 stars 94 forks source link

Use a CommandBuffer to draw the black fading animation #53

Open azixMcAze opened 7 years ago

azixMcAze commented 7 years ago

There is a visual artifact with the black fading when teleporting. There is a slight delay in the fading animation between the left and right eyes. It seems that the fading amount for each eye is different, as if each eye was not drawn at the same time but at different frames. This may be due to some asynchronous rendering when using VR.

This patch uses a CommandBuffer to draw the black fading instead of using Graphics.DrawMeshNow.