Commit 2fdd60e0 authored by Hans-Christian Ebke's avatar Hans-Christian Ebke
Browse files

Work in progress #2509

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent d87f56dd
in vec4 inWorld0;
in vec4 inWorld1;
in vec4 inWorld2;
void main()
// transform with instance world matrix
vec4 arrownode_posWS;
arrownode_posWS.x = dot(inWorld0, inPosition);
arrownode_posWS.y = dot(inWorld1, inPosition);
arrownode_posWS.z = dot(inWorld2, inPosition);
arrownode_posWS.w = 1.0;
// transform to view and clip space
sg_vPosVS = g_mWV * arrownode_posWS;
sg_vPosPS = g_mWVP * arrownode_posWS;
sg_vNormalVS.x = dot(,;
sg_vNormalVS.y = dot(,;
sg_vNormalVS.z = dot(,;
sg_vNormalVS = g_mWVIT * sg_vNormalVS;
sg_vNormalVS = normalize(sg_vNormalVS);
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment