|
@ -96,5 +96,8 @@ void main() { |
|
|
// color = colormap(iters/MAX_STEPS+0.5); |
|
|
// color = colormap(iters/MAX_STEPS+0.5); |
|
|
vec3 p = eye + dir * depth; // recast the ray |
|
|
vec3 p = eye + dir * depth; // recast the ray |
|
|
color = shade(p, mat_idx); |
|
|
color = shade(p, mat_idx); |
|
|
|
|
|
|
|
|
|
|
|
// gamma |
|
|
|
|
|
color = vec4(pow(clamp(color.xyz, 0.0, 1.0), vec3(0.4545)), 1.0); |
|
|
} |
|
|
} |
|
|
|
|
|
|