Update raytracer reflection to mitigate surface which are too glossy

This commit is contained in:
samuncle 2019-05-31 10:49:18 +02:00
parent b787c09705
commit 187623b6a8

View File

@ -132,6 +132,10 @@ void main(void)
vec3 outColor = RayCast(reflected * max(minRayStep, -View_Pos.z), vec3 outColor = RayCast(reflected * max(minRayStep, -View_Pos.z),
hitPos, dDepth, dtex, fallback, 0.0); hitPos, dDepth, dtex, fallback, 0.0);
// TODO temporary measure the lack of mipmaping for RTT albedo
// Implement it in proper way
outColor = mix(fallback, outColor, specval);
Spec = vec4(outColor.rgb, 1.0); Spec = vec4(outColor.rgb, 1.0);
#endif #endif