KhronosGroup / KhronosGroup/glTF-Sample-Assets

metallicRoughnessTexture encoding is wrong

Open
#84 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.1k
Forks
107
Avg merge
9h 39m
Merged PRs (30d)
4

Description

The spec [says](https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#metallic-roughness-material):

> The textures for metalness and roughness properties are packed together in a single texture called metallicRoughnessTexture. Its green channel contains roughness values and its blue channel contains metalness values. This texture *MUST* be encoded with linear transfer function and *MAY* use more than 8 bits per channel.

But metallic-roughness textures in Sponza folder are encoded with sRGB. Checked it with ImageMagick and PVRTexTool.

Contributor guide

Open the contributing guide

Research direction

Inspect the metallic-roughness textures in the Sponza folder and compare their transfer function with the glTF 2.0 metallicRoughnessTexture requirement, using ImageMagick or PVRTexTool as in the report. Done means the affected textures use linear encoding while preserving the specified green roughness and blue metalness channels.

Written by the indexing model from the issue text.

Assessment

Domain
computer-graphics, content
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.