1// ---------------------------------------------------------------------------
2//  Project:  NintendoWare
3//  File:     demo_Common.vsh
4//
5//  Copyright (C)2009-2011 Nintendo/HAL Laboratory, Inc.  All rights reserved.
6//
7//  These coded instructions, statements, and computer programs contain proprietary
8//  information of Nintendo and/or its licensed developers and are protected by
9//  national and international copyright laws. They may not be disclosed to third
10//  parties or copied or duplicated in any form, in whole or in part, without the
11//  prior written consent of Nintendo.
12//
13//  The content herein is highly confidential and should be handled accordingly.
14//
15//  $Revision: 31311 $
16// ---------------------------------------------------------------------------
17
18// Input registers map
19#define aPosition		v0
20#define aColor			v1
21#define aTexCoord		v2
22
23// Output registers map
24#define vPosition		o0
25#define vFrontColor		o1
26#define vTexCoord0		o2
27
28#define CONST			c95
29def		CONST,			0.0, 0.5, 1.0, 2.0
30
31#define tmpView			r15
32#define cProjMtx		c0
33#define cViewMtx		c4
34
35#pragma bind_symbol( aPosition.xyz, v0, v0 )
36#pragma bind_symbol( aColor, v1, v1 )
37
38#pragma bind_symbol( uProjection, c0, c3 )
39#pragma bind_symbol( uModelView, c4, c7 )
40
41#pragma output_map ( position, o0 )
42#pragma output_map ( color, o1 )
43//#pragma output_map ( texture0, o2.xy )
44
45// �N���b�v���W��Z�͈̔͂́A���炩����[0, -w]�Ƃ��Ďˉe�s���������B
46main:
47//	m4x3	tmpView.xyz, 		aPosition,	cViewMtx
48	m4x4	tmpView, 		aPosition,	cViewMtx
49	mov		tmpView.w, 			CONST.z
50	m4x4    vPosition, 			tmpView,	cProjMtx
51
52	mov		vFrontColor,		aColor
53//	mov		vTexCoord0.xy,		aTexCoord
54	end
55endmain:
56
57