X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=shaders%2Fscene_water.h;h=588477e3d85a741273f18df6e6bc98ceb617f052;hb=53597f45307d8a2120e3a0bbe71797b216e8750b;hp=cd59ac17bf451e035ece9b0bfe07cad3bd152bae;hpb=f99902f513b0ad606437bf32de47405dd4ea5f98;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/shaders/scene_water.h b/shaders/scene_water.h index cd59ac1..588477e 100644 --- a/shaders/scene_water.h +++ b/shaders/scene_water.h @@ -284,7 +284,7 @@ static struct vg_shader _shader_scene_water = { " 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"