let OpenGL handle sRGB conversion

This commit is contained in:
2022-02-21 14:13:24 +08:00
parent 5155008bf0
commit 4204a15b1e
4 changed files with 35 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ void lightPoint(int i);
void main() {
fragColor = vec4(pow(texture(tex, fragTexCoord).rgb, vec3(gamma)), 1.0f);
fragColor = vec4(texture(tex, fragTexCoord).rgb, 1.0f);
finalpha = alpha;
light = ambient;