X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fscene_position.h;h=3fe8c7ee1c2f582f641d6328c23d943f8f2bb7d1;hb=137d40d96fe923600d8378b8e138e3c276f27ff4;hp=e0b9982965b21b8de05c7688c807239a1355f437;hpb=f99902f513b0ad606437bf32de47405dd4ea5f98;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/scene_position.h b/shaders/scene_position.h index e0b9982..3fe8c7e 100644 --- a/shaders/scene_position.h +++ b/shaders/scene_position.h @@ -276,7 +276,7 @@ static struct vg_shader _shader_scene_position = { " 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"