X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fscene_depth.h;h=42613c0b224f8597f74dbfea9b93e25871563992;hb=1d06671f87a9d24596fc6808d8e0db889a818750;hp=e2a8e017ef0b39e30139a101b3473084adfea484;hpb=f99902f513b0ad606437bf32de47405dd4ea5f98;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/scene_depth.h b/shaders/scene_depth.h index e2a8e01..42613c0 100644 --- a/shaders/scene_depth.h +++ b/shaders/scene_depth.h @@ -276,7 +276,7 @@ static struct vg_shader _shader_scene_depth = { " 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"