Added initial gamma correction

This commit is contained in:
2021-03-29 08:14:29 -05:00
parent f04217ccc7
commit 5759055838

View File

@@ -23,4 +23,7 @@ void main() {
fragColor = vec4(result, 1.0);
fragNormal = outNormal;
fragUV = outUV;
float gamma = 2.2;
FragColor.rgb = pow(FragColor.rgb, vec3(1.0 / gamma));
}