1/*---------------------------------------------------------------------------*
2
3  Copyright 2010-2011 Nintendo.  All rights reserved.
4
5  These coded instructions, statements, and computer programs contain
6  proprietary information of Nintendo of America Inc. and/or Nintendo
7  Company Ltd., and are protected by Federal copyright law.  They may
8  not be disclosed to third parties or copied or duplicated in any form,
9  in whole or in part, without the prior written consent of Nintendo.
10
11 *---------------------------------------------------------------------------*/
12attribute vec4 a_position;
13attribute vec3 a_normal;
14
15uniform mat4 u_modelMtx;
16uniform mat4 u_viewprojMtx;
17
18varying vec4 v_worldPos;
19varying vec4 v_normal;
20
21void main()
22{
23    v_worldPos = a_position * u_modelMtx;
24    gl_Position = v_worldPos * u_viewprojMtx;
25    v_normal = normalize(vec4(a_normal, 0.0) * u_modelMtx);
26}
27