KhronosGroup / KhronosGroup/OpenGL-Refpages

glTexImage* functions state that floating point values are always clamped.

Open
#19 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
492
Forks
146
PR merge metrics
No merged PRs in 30d

Description

Consider the statement for a `format` of `GL_RED`:

> Each element is a single red component. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for green and blue, and 1 for alpha. Each component is clamped to the range [0,1].

This is incorrect. Clamping should only happen for normalized integer internal formats. The ES 3.0 documentation is more correct in this regard.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no source files or tests. Start by locating the glTexImage* reference-page text for the GL_RED format and compare its clamping statement with the ES 3.0 documentation. Done means the wording limits clamping to normalized integer internal formats.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
computer-graphics, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.