We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1d7eef commit 00ea683Copy full SHA for 00ea683
1 file changed
src/engine/shaders/basic.ps.hlsl
@@ -53,7 +53,12 @@ PS_OUTPUT main(BASIC_PS_INPUT input)
53
// cook-torrance microfacet model
54
float3 specular = fresnel * normalDistribution * visibility;
55
56
- output.color = float4(diffuse + specular, 1.0);
+ float3 color = diffuse + specular;
57
+
58
+ // gamma correction
59
+ color = sqrt(color);
60
61
+ output.color = float4(color, 1.0);
62
63
return output;
64
}
0 commit comments