Skip to content

KTX texture is imported darker as it is - sRGB to linear #99589

Open
@leanmendoza

Description

Tested versions

  • Reproducible in 4.3-stable
    The related code was introduced in August 2023, so it might be happening in 4.2.x as well.

System information

Godot v4.3.stable (77dcf97) - Windows 10.0.22631 - Vulkan (Mobile)

Issue description

I noticed some glTF/glB were darker as I used to see them. Then I realized it was related to the Texture and the KTX format.

I've isolated the texture, and the effect is evident when I just import the texture.

Original texture
image

Darker texture
image

After some research, I found that commenting the srgb-to-linear convertion, it works fine:
image

Steps to reproduce

  1. Open a empty project and copy the texture to the project folder
  2. Double click the texture resource, you'll notice darker as it is

Minimal reproduction project (MRP)

Example texture
QEbvwX_0.zip

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions