water fog material prop; ragdoll float only on drowned
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / model_character_view.fs
index 49e615c6d6e0a07e72141494d074dfe31ab09ea6..502d67299d95d95c87dc6ff96393447928608694 100644 (file)
@@ -7,13 +7,14 @@ in vec3 aNorm;
 in vec3 aCo;
 in vec3 aWorldCo;
 
+#include "light_clearskies_stddef.glsl"
 #include "common_world.glsl"
 #include "motion_vectors_fs.glsl"
 #include "depth_compare.glsl"
 
 vec3 character_clearskies_lighting( vec3 normal, float shadow, vec3 halfview )
 {
-   float fresnel = step(0.5,1.0 - abs(dot(normal,halfview)));
+   float fresnel = 1.0 - abs(dot(normal,halfview));
 
    vec3  reflect_colour = mix( g_daysky_colour.rgb, g_sunset_colour.rgb, 
                                g_sunset_phase );