Thorsten wrote in Mon Apr 13, 2015 6:13 pm:I just don't understand why the first clamp didn't fix it...
the problem is related to the angle of the sun, and there is an exact angle in which the water colour comes back to normal. Look at these two pictures taken with exactly the same settings (no reloading of weather or anything), I just simply moved the sun down slightly with the time warp:
Also, just to be clear, the problem is much more visible from the ground. The higher I am in the air, the more normal-looking the water becomes (it likely has something to do with the angle of reflections).
specular_color += ( max((0.15*(1.0-ctrefl* ctrefl) * fresnel) - 0.3),0.0) * specular_light.rgb;
Thorsten wrote in Tue Apr 14, 2015 6:29 am:if you look from very high under an almost 90 degree angle, the reflection looks good, if the sun reflects under a shallow angle the reflection looks good, but not in some intermediate region?
Thorsten wrote in Tue Apr 14, 2015 6:29 am:Does this perhaps go negative?
Thorsten wrote in Tue Apr 14, 2015 6:29 am:What about
- Code: Select all
specular_color += ( max((0.15*(1.0-ctrefl* ctrefl) * fresnel) - 0.3),0.0) * specular_light.rgb;
does this help as well?
Thorsten wrote in Tue Apr 14, 2015 6:29 am:you're just kind enough to help me understand it...
gsagostinho wrote in Tue Apr 14, 2015 11:10 am:Not really, this completely breaks the water reflections on any weather.
Users browsing this forum: No registered users and 5 guests