From 35e9d60daec4dbfab51b396708ba705235199530 Mon Sep 17 00:00:00 2001 From: tangziwen Date: Mon, 22 Dec 2014 14:22:30 +0800 Subject: [PATCH] remove the float type "f" postfix in /simple_shadow.frag --- .../Resources/Sprite3DTest/simple_shadow.frag | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/cpp-tests/Resources/Sprite3DTest/simple_shadow.frag b/tests/cpp-tests/Resources/Sprite3DTest/simple_shadow.frag index 6686997af8..917a8a73ab 100644 --- a/tests/cpp-tests/Resources/Sprite3DTest/simple_shadow.frag +++ b/tests/cpp-tests/Resources/Sprite3DTest/simple_shadow.frag @@ -11,12 +11,12 @@ uniform vec4 u_color; void main(void) { - float Radius = 4.0f;//project range - vec3 UVector = vec3(1.0f, 0.0f, 0.0f)/(2.0f * Radius); - vec3 VVector = vec3(0.0f, 0.0f, -1.0f)/(-2.0f * Radius); + float Radius = 4.0;//project range + vec3 UVector = vec3(1.0, 0.0, 0.0)/(2.0 * Radius); + vec3 VVector = vec3(0.0, 0.0, -1.0)/(-2.0 * Radius); vec2 coord; - coord.x = dot(v_position.xyz - u_target_pos, UVector) + 0.5f; - coord.y = dot(v_position.xyz - u_target_pos, VVector) + 0.5f; + coord.x = dot(v_position.xyz - u_target_pos, UVector) + 0.5; + coord.y = dot(v_position.xyz - u_target_pos, VVector) + 0.5; gl_FragColor = u_color*texture2D(CC_Texture0,v_texture_coord)*texture2D(u_shadowTexture,coord); } \ No newline at end of file