medfall

A super great game engine
Log | Files | Refs

commit de180fdeded5a7f4cac78cc38488a9cee342d8b9
parent 9ca2eec0e51fa9ca84698dc0ac6ad49c48259ac1
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Tue, 21 Nov 2017 21:07:16 +0200

Tweak shadows a bit

Diffstat:
shaders/clipmap.glsl | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shaders/clipmap.glsl b/shaders/clipmap.glsl @@ -83,7 +83,7 @@ void main() { // sunlight + sky ambient lighting // area of a chord is somewhat similar to smoothstep - float sun_visible_fraction = smoothstep( -0.2, 0.2, sun_angle - horizon ); + float sun_visible_fraction = smoothstep( -0.1, 0.2, sun_angle - horizon ); float sunlight_lambert = max( 0, dot( normal, sun_dir ) ); vec3 sunlight = sun_visible_fraction * sunlight_lambert * vec3( 0.9, 0.9, 0.5 ); vec3 ambient = vec3( 0.05, 0.05, 0.15 );