technik / rev

Revolution Engine: A graphics/game engine pet project.
1 stars 1 forks source link

sRGB Texture formats. #38

Open technik opened 6 years ago

technik commented 6 years ago

Properly use the sRGB Internal texture formats in Windows and android platforms. This will remove several pows in the pixel shaders.

technik commented 6 years ago

This requires special care when mipmap generation is required for GLES Targets. https://www.khronos.org/registry/OpenGL-Refpages/es3.0/html/glTexImage2D.xhtml https://www.khronos.org/registry/OpenGL-Refpages/es3.0/html/glGenerateMipmap.xhtml