X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Froute.h;h=752b60ca74b4b8ecbf08af604bd3ee055846106b;hb=3e8fda9c7cbc50d1ae95195905c953bdeedf71b9;hp=0c03368217c837adf14642171e3c5a783beb5ec5;hpb=23ef4d7f6bfe6a5a91c78822b081a9ea63cb74a6;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/route.h b/shaders/route.h index 0c03368..752b60c 100644 --- a/shaders/route.h +++ b/shaders/route.h @@ -155,7 +155,6 @@ static struct vg_shader _shader_route = { " return mix( vfrag, g_ambient_colour.rgb, faccum );\n" "}\n" "\n" -"// FIXME\n" "float sdLine( vec3 p, vec3 a, vec3 b )\n" "{\n" " vec3 pa = p - a;\n" @@ -187,11 +186,11 @@ static struct vg_shader _shader_route = { " famt+=shadow_sample((vdir+vec3( 0.483, 0.201, 0.306)*fspread)*flength*0.8);\n" "\n" " // player shadow\n" -" float dist_to_player = max( 0.0, sdLine( aWorldCo, uBoard0, uBoard1 )-0.03 );\n" -" float player_shadow = max( 1.0-dist_to_player*1.7, 0.0 );\n" +" float dist_to_player = max( 0.0, sdLine( aWorldCo, uBoard0, uBoard1 )-0.1 );\n" +" float player_shadow = max( 1.0-dist_to_player*2.7, 0.0 );\n" " player_shadow *= player_shadow*player_shadow*player_shadow;\n" "\n" -" famt = max( player_shadow*0.6, famt );\n" +" famt = max( player_shadow*0.8, famt );\n" " return mix( vfrag, g_ambient_colour.rgb, famt );\n" "}\n" "\n"