Skip to content

Conversation

@BastiaanOlij
Copy link
Member

Will add an example scene for this as well but seeing we're now rendering to the HMD keeping our viewport in linear color space (GLES3 only) we need a way to output the preview to screen in sRGB.

The scene setup should become something like this:

- Main
  - ViewportVR
    - ARVROrigin
      - ARVRCamera
  - ViewportContainer
    - ViewportUI
      - TextureRect

The ViewportVR should become our ARVR viewport while our ViewportUI is what we render to screen. The texture of the TextureRect should be set to the viewport texture of our viewportVR.
Then the shader in this PR can be used for rendering out the texture rect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant