Animated hands players like in game S.T.A.L.K.E.R.

#1

I want align hands player to first person camera. And get bilboard animated mesh.
I render hands, but hands exist in one place in 3d world and not moving with camera.
My vertex shader:
[b]
layout(location = 0) in vec3 vPosition;
layout(location = 3) in vec4 Bones;
layout(location = 4) in vec4 Wes;
layout (binding = 2, std430) buffer AnimKeys { mat4 Kadr[]; };//this is AnimationKeys bones-matrices

vec2 ar = vec2(10,5);//this is animation pose num and how bones in this mesh
mat4 K1 = mat4(Kadr[uint(Bones.x-1+ar.xar.y)]);
mat4 K2 = mat4(Kadr[uint(Bones.y-1+ar.x
ar.y)]);
vec4 poz = K1 * vec4(vPosition.xyz * Wes.x , 1.0* Wes.x);
poz += K2 * vec4(vPosition.xyz * Wes.y , 1.0* Wes.y);
gl_Position = ViewProjection * vec4(poz.xyz , poz.w);
[/b]
If i multiply vPosition to Projection matrix i get bilboard mesh, but not get animation.
Please help find the right solution.

#2

I found solution.

#3

Perhaps you could share the solution, in case it helps others?