benvanik / vr.js

NPAPI plugin to expose fun VR devices to Javascript.
Apache License 2.0
498 stars 105 forks source link

Render target in StereoRenderer is too wide. #10

Open benvanik opened 11 years ago

benvanik commented 11 years ago

It's currently sized to the entire display size, when really it only gets one eye rendered into it at a time. This is a waste of memory. Either write the warp shader to operate on the entire render target and render both eyes into it before compositing, or halve the size of the RT.