Skip to content

KTX2 roughness channel with ClampToEdge #610

@echadwick-artist

Description

@echadwick-artist

When a KTX2 texture is using ClampToEdge for the sampler, the glTF Sample Viewer is rendering the Roughness channel incorrectly.

KTX2 textures, compared in glTF Sample Viewer (left) and Babylon.js Sandbox (right):
Image

KTX2 textures, roughness alone:
Image

PNG textures do not show the issue:
Image

WebP textures do not show the issue:
Image

Relevant parts of the glTF:
Image

Example asset showing the issue:
KhronosGroup/glTF-Sample-Assets#174

Thanks!

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions