X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fviewchar.h;h=4240728007f8a1ae8f7561f0841cfd202fadeb76;hb=3e8fda9c7cbc50d1ae95195905c953bdeedf71b9;hp=53f073a2c6a5fd53ee4b7113ce91279a90626017;hpb=23ef4d7f6bfe6a5a91c78822b081a9ea63cb74a6;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/viewchar.h b/shaders/viewchar.h index 53f073a..4240728 100644 --- a/shaders/viewchar.h +++ b/shaders/viewchar.h @@ -164,7 +164,6 @@ static struct vg_shader _shader_viewchar = { " 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" @@ -196,11 +195,11 @@ static struct vg_shader _shader_viewchar = { " 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"