diff --git a/examples/test/shaders/test.frag b/examples/test/shaders/test.frag index d261ad7..7db54f3 100644 --- a/examples/test/shaders/test.frag +++ b/examples/test/shaders/test.frag @@ -96,5 +96,8 @@ void main() { // color = colormap(iters/MAX_STEPS+0.5); vec3 p = eye + dir * depth; // recast the ray color = shade(p, mat_idx); + + // gamma + color = vec4(pow(clamp(color.xyz, 0.0, 1.0), vec3(0.4545)), 1.0); }