Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add linear to sRGB shader #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant