Skip to content

Document requirement that textures need to use an sRGB texture format #6

Open
@Moguri

Description

@Moguri

The PBR shader assumes that it can ready texture data as linear data (i.e., that an sRGB texture format is used and the hardware is doing an sRGB to linear conversion). The tonemapping shader also does a linear to sRGB conversion. Models imported via panda3d-gltf already use an sRGB format. However, other models will not use sRGB formats by default and can look weird (washed out or too dark). This can even apply if the PBR shader is skipped (e.g., for a custom skybox shader) since the tonemapping operation will still do the linear to sRGB conversion. Some details on conversion functions can be found here (if a user wants to convert the data in a shader). This is how panda3d-gltf sets Panda textures to be sRGB.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions