only gamma correct PBR

main
Dominik Madarász 2024-08-24 20:27:02 +02:00
parent 7d54e637f1
commit d704c2420e
1 changed files with 2 additions and 2 deletions

View File

@ -213,8 +213,8 @@ surface_t surface() {
vec3 color = x / ( vec3(1.) + x ); vec3 color = x / ( vec3(1.) + x );
// gamma correction // gamma correction
s.fragcolor.rgb = pow( color, vec3(1.0/2.2) ); // s.fragcolor.rgb = pow( color, vec3(1.0/2.2) );
// s.fragcolor.rgb = pow(s.fragcolor.rgb, vec3(1.0/2.2) ); s.fragcolor.rgb = pow(s.fragcolor.rgb, vec3(1.0/2.2) );
} }
#endif #endif