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