keijiro / MiniEngineAO

SSAO image effect from Microsoft MiniEngine, ported to Unity.
MIT License
506 stars 42 forks source link

Render Viewport Scale Unsupported #3

Closed davidfoster closed 7 years ago

davidfoster commented 7 years ago

Firstly: MiniEngineAO is awesome. Amazing quality considering how performantly it runs.

Changing VRSettings.renderViewportScale, or specifically making it less than 1, causes MiniEngineAO to render to a smaller portion of the bottom left of the screen.

Here is a quick capture of what happens when adaptively scaling render viewport scale: https://youtu.be/9w9ViiswIRA

I suspect a shader will need 1 / VRSettings.renderViewportScale passing in to scale all incoming UVs in the vertex program.

keijiro commented 7 years ago

This is actually a bug in the Unity side.

https://issuetracker.unity3d.com/issues/vr-changing-renderviewportscale-results-in-reduction-of-viewing-space-for-the-right-eye-when-using-post-effects

The symptom described in the issue above is a bit different from what you told, but the root cause of the problem is the same.

I'm closing this issue. Please follow the issue tracker for further updates.