From 36808abb72ca4733a402f365bb12f68ffa7b2cab Mon Sep 17 00:00:00 2001 From: yangxiao Date: Mon, 16 Jun 2014 19:23:51 +0800 Subject: [PATCH] simplify shader --- cocos/renderer/ccShader_3D_PositionTex.vert | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/cocos/renderer/ccShader_3D_PositionTex.vert b/cocos/renderer/ccShader_3D_PositionTex.vert index 67210c4caa..33e8e6040c 100644 --- a/cocos/renderer/ccShader_3D_PositionTex.vert +++ b/cocos/renderer/ccShader_3D_PositionTex.vert @@ -30,20 +30,9 @@ uniform vec4 u_matrixPalette[SKINNING_JOINT_COUNT * 3]; varying vec2 TextureCoordOut; vec4 _skinnedPosition; -vec4 tmp; - -void skinPosition(float blendWeight, int matrixIndex) -{ - tmp.x = dot(a_position, u_matrixPalette[matrixIndex]); - tmp.y = dot(a_position, u_matrixPalette[matrixIndex + 1]); - tmp.z = dot(a_position, u_matrixPalette[matrixIndex + 2]); - tmp.w = a_position.w; - _skinnedPosition += blendWeight * tmp; -} vec4 getPosition() { - _skinnedPosition = vec4(0.0); vec4 matrixPalette1 = vec4(0.0); vec4 matrixPalette2 = vec4(0.0); vec4 matrixPalette3 = vec4(0.0);