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

Use a linear color space when rendering #3156

Closed
wants to merge 8 commits into from

Commits on Jun 10, 2023

  1. Remove support for luminance textures

    They are not supported in OpenGL Core profile, and we don't have too
    many grayscale textures to make this worth the cost.
    
    The main problem with them is that they are incompatible with sRGB
    internal format that can let texture sampling automatically yield
    linear colors.
    10110111 committed Jun 10, 2023
    Configuration menu
    Copy the full SHA
    46b44de View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2023

  1. Add support for sRGB-aware textures

    Sampling from such textures will automatically convert sRGB-encoded data
    to linear color values.
    For now all modules will still treat textures the old way.
    10110111 committed Jun 11, 2023
    Configuration menu
    Copy the full SHA
    d8f9963 View commit details
    Browse the repository at this point in the history
  2. Start converting the rendering process to linear-color FBO

    All the rendering is now supposed to happen in linear-sRGB color space,
    and the OETF is applied at the end of rendering, followed by dithering.
    10110111 committed Jun 11, 2023
    Configuration menu
    Copy the full SHA
    f4be5bd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a30f0ee View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9c652f9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6d6b5c3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7f19fe8 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    06abb87 View commit details
    Browse the repository at this point in the history