KhronosGroup / KhronosGroup/glTF-Sample-Viewer

KTX2 roughness channel with ClampToEdge

Open
#610 1 comment 0 reactions 1 assignee Claimed by @oss-haertl View on GitHub
bug maintenance
Dominant language
JavaScript
Stars
1.5k
Forks
264
Avg merge
5h 49m
Merged PRs (30d)
1

Description

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](https://github.com/user-attachments/assets/cb0bedfc-1f95-465f-8e56-913383039d94)

KTX2 textures, roughness alone:
![Image](https://github.com/user-attachments/assets/520aae31-35c7-4f3f-a90e-184925456cac)

PNG textures do not show the issue:
![Image](https://github.com/user-attachments/assets/73283d2d-8ed7-4358-bfb7-359ef085eb9e)

WebP textures do not show the issue:
![Image](https://github.com/user-attachments/assets/1c17d89d-a413-4ab0-a21e-ba7bae35c9a7)

Relevant parts of the glTF:
![Image](https://github.com/user-attachments/assets/d119763c-5b33-4c24-9d43-73334b1f71c7)

Example asset showing the issue:
https://github.com/KhronosGroup/glTF-Sample-Assets/pull/174

Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.