only gamma correct PBR
parent
7d54e637f1
commit
d704c2420e
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue