X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fscene_font.h;h=eec4b6ce75a025d58297256e7d20dc98a5eec437;hb=eb28dee29482c7ffe8bc0203d302e3ee6dbfd943;hp=8a2555d1e61d50e09676f846e9551dde7dec800d;hpb=0205109fd1609f8b59720bc704c969c046205682;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/scene_font.h b/shaders/scene_font.h index 8a2555d..eec4b6c 100644 --- a/shaders/scene_font.h +++ b/shaders/scene_font.h @@ -279,7 +279,7 @@ static struct vg_shader _shader_scene_font = { " light_delta = normalize( light_delta );\n" "\n" " float quadratic = dist2*100.0;\n" -" float attenuation = 1.0f/( 1.0f + quadratic );\n" +" float attenuation = 1.0/( 1.0 + quadratic );\n" " attenuation *= max( dot( light_delta, normal ), 0.0 );\n" "\n" " float falloff = max( 0.0, 1.0-(dist2*light_co.w) );\n" @@ -440,7 +440,6 @@ static struct vg_shader _shader_scene_font = { "\n" "void main(){\n" " compute_motion_vectors();\n" -"\n" " vec3 vfrag = vec3(0.5,0.5,0.5);\n" " vec3 qnorm = aNorm.xyz;\n" "\n" @@ -456,7 +455,7 @@ static struct vg_shader _shader_scene_font = { " vec4 v1 = step( vec4(0.5), fract(vec4(a) + spread1) );\n" "\n" " float d = ( v0.x+v0.y+v0.z+v0.w +\n" -" v1.x+v1.y+v1.z+v1.w ) * 0.125f;\n" +" v1.x+v1.y+v1.z+v1.w ) * 0.125;\n" " \n" " float dither = fract(dot(vec2(171.0,231.0),gl_FragCoord.xy)/71.0);\n" " float x = d*0.8+length(p)*0.3;\n"