X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;ds=sidebyside;f=shaders%2Fcommon_world.glsl;h=cb68f35a4cf7f2ebac919722825990b4d8a3eca4;hb=137d40d96fe923600d8378b8e138e3c276f27ff4;hp=8926c21586c40d6cdd59d867a291d9f174dbd5ca;hpb=f99902f513b0ad606437bf32de47405dd4ea5f98;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/common_world.glsl b/shaders/common_world.glsl index 8926c21..cb68f35 100644 --- a/shaders/common_world.glsl +++ b/shaders/common_world.glsl @@ -119,7 +119,7 @@ vec3 scene_calculate_light( int light_index, light_delta = normalize( light_delta ); float quadratic = dist2*100.0; - float attenuation = 1.0f/( 1.0f + quadratic ); + float attenuation = 1.0/( 1.0 + quadratic ); attenuation *= max( dot( light_delta, normal ), 0.0 ); float falloff = max( 0.0, 1.0-(dist2*light_co.w) );