dont try to load nothign
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / model_character_view.h
index c59737feb10f8feb55c5f46c20cab12416b5a08a..c9feae4655028357ba922985302670b0d02abf02 100644 (file)
@@ -470,7 +470,7 @@ static struct vg_shader _shader_model_character_view = {
 "\n"
 "vec3 character_clearskies_lighting( vec3 normal, float shadow, vec3 halfview )\n"
 "{\n"
-"   float fresnel = 0.0*step(0.5,1.0 - abs(dot(normal,halfview)));\n"
+"   float fresnel = 1.0 - abs(dot(normal,halfview));\n"
 "\n"
 "   vec3  reflect_colour = mix( g_daysky_colour.rgb, g_sunset_colour.rgb, \n"
 "                               g_sunset_phase );\n"