mirror of https://github.com/aap/librw.git
no f on glsl floats
This commit is contained in:
parent
2d6ca32102
commit
3b385c44ae
|
@ -19,7 +19,7 @@ main(void)
|
|||
v_color = in_color;
|
||||
v_color.rgb += u_ambLight.rgb*surfAmbient;
|
||||
v_color.rgb += DoDynamicLight(V.xyz, N)*surfDiffuse;
|
||||
v_color = clamp(v_color, 0.0f, 1.0);
|
||||
v_color = clamp(v_color, 0.0, 1.0);
|
||||
v_color *= u_matColor;
|
||||
|
||||
v_fog = DoFog(gl_Position.w);
|
||||
|
|
|
@ -20,7 +20,7 @@ const char *default_vert_src =
|
|||
" v_color = in_color;\n"
|
||||
" v_color.rgb += u_ambLight.rgb*surfAmbient;\n"
|
||||
" v_color.rgb += DoDynamicLight(V.xyz, N)*surfDiffuse;\n"
|
||||
" v_color = clamp(v_color, 0.0f, 1.0);\n"
|
||||
" v_color = clamp(v_color, 0.0, 1.0);\n"
|
||||
" v_color *= u_matColor;\n"
|
||||
|
||||
" v_fog = DoFog(gl_Position.w);\n"
|
||||
|
|
|
@ -23,7 +23,7 @@ main(void)
|
|||
v_color = in_color;
|
||||
v_color.rgb += u_ambLight.rgb*surfAmbient;
|
||||
v_color.rgb += DoDynamicLight(V.xyz, N)*surfDiffuse;
|
||||
v_color = clamp(v_color, 0.0f, 1.0);
|
||||
v_color = clamp(v_color, 0.0, 1.0);
|
||||
v_color *= u_matColor;
|
||||
|
||||
v_fog = DoFog(gl_Position.w);
|
||||
|
|
|
@ -24,7 +24,7 @@ const char *matfx_env_vert_src =
|
|||
" v_color = in_color;\n"
|
||||
" v_color.rgb += u_ambLight.rgb*surfAmbient;\n"
|
||||
" v_color.rgb += DoDynamicLight(V.xyz, N)*surfDiffuse;\n"
|
||||
" v_color = clamp(v_color, 0.0f, 1.0);\n"
|
||||
" v_color = clamp(v_color, 0.0, 1.0);\n"
|
||||
" v_color *= u_matColor;\n"
|
||||
|
||||
" v_fog = DoFog(gl_Position.w);\n"
|
||||
|
|
|
@ -30,7 +30,7 @@ main(void)
|
|||
v_color = in_color;
|
||||
v_color.rgb += u_ambLight.rgb*surfAmbient;
|
||||
v_color.rgb += DoDynamicLight(V.xyz, N)*surfDiffuse;
|
||||
v_color = clamp(v_color, 0.0f, 1.0);
|
||||
v_color = clamp(v_color, 0.0, 1.0);
|
||||
v_color *= u_matColor;
|
||||
|
||||
v_fog = DoFog(gl_Position.z);
|
||||
|
|
|
@ -31,7 +31,7 @@ const char *skin_vert_src =
|
|||
" v_color = in_color;\n"
|
||||
" v_color.rgb += u_ambLight.rgb*surfAmbient;\n"
|
||||
" v_color.rgb += DoDynamicLight(V.xyz, N)*surfDiffuse;\n"
|
||||
" v_color = clamp(v_color, 0.0f, 1.0);\n"
|
||||
" v_color = clamp(v_color, 0.0, 1.0);\n"
|
||||
" v_color *= u_matColor;\n"
|
||||
|
||||
" v_fog = DoFog(gl_Position.z);\n"
|
||||
|
|
|
@ -19,7 +19,7 @@ main(void)
|
|||
v_color = in_color;
|
||||
v_color.rgb += u_ambLight.rgb*surfAmbient;
|
||||
v_color.rgb += DoDynamicLight(V.xyz, N)*surfDiffuse;
|
||||
v_color = clamp(v_color, 0.0f, 1.0);
|
||||
v_color = clamp(v_color, 0.0, 1.0);
|
||||
v_color *= u_matColor;
|
||||
|
||||
v_fog = DoFog(gl_Position.w);
|
||||
|
|
|
@ -20,7 +20,7 @@ const char *default_vert_src =
|
|||
" v_color = in_color;\n"
|
||||
" v_color.rgb += u_ambLight.rgb*surfAmbient;\n"
|
||||
" v_color.rgb += DoDynamicLight(V.xyz, N)*surfDiffuse;\n"
|
||||
" v_color = clamp(v_color, 0.0f, 1.0);\n"
|
||||
" v_color = clamp(v_color, 0.0, 1.0);\n"
|
||||
" v_color *= u_matColor;\n"
|
||||
|
||||
" v_fog = DoFog(gl_Position.w);\n"
|
||||
|
|
|
@ -23,7 +23,7 @@ main(void)
|
|||
v_color = in_color;
|
||||
v_color.rgb += u_ambLight.rgb*surfAmbient;
|
||||
v_color.rgb += DoDynamicLight(V.xyz, N)*surfDiffuse;
|
||||
v_color = clamp(v_color, 0.0f, 1.0);
|
||||
v_color = clamp(v_color, 0.0, 1.0);
|
||||
v_color *= u_matColor;
|
||||
|
||||
v_fog = DoFog(gl_Position.w);
|
||||
|
|
|
@ -24,7 +24,7 @@ const char *matfx_env_vert_src =
|
|||
" v_color = in_color;\n"
|
||||
" v_color.rgb += u_ambLight.rgb*surfAmbient;\n"
|
||||
" v_color.rgb += DoDynamicLight(V.xyz, N)*surfDiffuse;\n"
|
||||
" v_color = clamp(v_color, 0.0f, 1.0);\n"
|
||||
" v_color = clamp(v_color, 0.0, 1.0);\n"
|
||||
" v_color *= u_matColor;\n"
|
||||
|
||||
" v_fog = DoFog(gl_Position.w);\n"
|
||||
|
|
|
@ -30,7 +30,7 @@ main(void)
|
|||
v_color = in_color;
|
||||
v_color.rgb += u_ambLight.rgb*surfAmbient;
|
||||
v_color.rgb += DoDynamicLight(V.xyz, N)*surfDiffuse;
|
||||
v_color = clamp(v_color, 0.0f, 1.0);
|
||||
v_color = clamp(v_color, 0.0, 1.0);
|
||||
v_color *= u_matColor;
|
||||
|
||||
v_fog = DoFog(gl_Position.z);
|
||||
|
|
|
@ -31,7 +31,7 @@ const char *skin_vert_src =
|
|||
" v_color = in_color;\n"
|
||||
" v_color.rgb += u_ambLight.rgb*surfAmbient;\n"
|
||||
" v_color.rgb += DoDynamicLight(V.xyz, N)*surfDiffuse;\n"
|
||||
" v_color = clamp(v_color, 0.0f, 1.0);\n"
|
||||
" v_color = clamp(v_color, 0.0, 1.0);\n"
|
||||
" v_color *= u_matColor;\n"
|
||||
|
||||
" v_fog = DoFog(gl_Position.z);\n"
|
||||
|
|
Loading…
Reference in New Issue