X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fmodel_entity.h;h=712efc9a47dad11d94c3f2528e6c7338ad24de24;hb=137d40d96fe923600d8378b8e138e3c276f27ff4;hp=777f66003bfcd97b792ab91f46c43b8ae7acc9a2;hpb=872ad3e040f22df357929d3778a955ae8c4ac52b;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/model_entity.h b/shaders/model_entity.h index 777f660..712efc9 100644 --- a/shaders/model_entity.h +++ b/shaders/model_entity.h @@ -275,7 +275,7 @@ static struct vg_shader _shader_model_entity = { " 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"