From 187623b6a8132665ba7469fa07075112b60288fd Mon Sep 17 00:00:00 2001 From: samuncle Date: Fri, 31 May 2019 10:49:18 +0200 Subject: [PATCH] Update raytracer reflection to mitigate surface which are too glossy --- data/shaders/IBL.frag | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/shaders/IBL.frag b/data/shaders/IBL.frag index bd21f900a..86b45c60d 100644 --- a/data/shaders/IBL.frag +++ b/data/shaders/IBL.frag @@ -132,6 +132,10 @@ void main(void) vec3 outColor = RayCast(reflected * max(minRayStep, -View_Pos.z), 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); #endif