OpenGL-Refpages icon indicating copy to clipboard operation
OpenGL-Refpages copied to clipboard

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

Open NicolBolas opened this issue 7 years ago • 0 comments

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.

NicolBolas avatar Apr 13 '17 16:04 NicolBolas