X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fmodel_character_view.h;h=6f4c25af9345b7029b6d1e19c1434fd81e11ceb0;hb=dbbdf411d1aaf70cb995c3371cfae37fd0b7dbcc;hp=5394dc8c0445de3e145fc9af09b22cd77dd2d355;hpb=f1fe55f957a3dbdb6ca20a696f0c1171e2d5e7ca;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/model_character_view.h b/shaders/model_character_view.h index 5394dc8..6f4c25a 100644 --- a/shaders/model_character_view.h +++ b/shaders/model_character_view.h @@ -287,7 +287,7 @@ static struct vg_shader _shader_model_character_view = { " 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"