3 ms·
replace/luminescence/luminance (thanks autocorrect). Legacy OpenGL APIs used to assume sRGB, so you had to specify GL_LUMINANCE for non-color 'intensity' maps
by mwkaufma 2y ago
replace/luminescence/luminance (thanks autocorrect).
Legacy OpenGL APIs used to assume sRGB, so you had to specify GL_LUMINANCE for non-color 'intensity' maps (which couldn't be blitted to FBOs, e.g.).
Modern OpenGL assumes linear color, so instead you have to specify sRGB on texture load to direct the driver to do colorspace conversion (e.g. GL_SRGB8 for typical RRGGBB byte triples).
More info: https://www.khronos.org/opengl/wiki/Image_Format https://www.khronos.org/opengl/wiki/Image_Format