1// 2//------------------------------------------------------------ 3// Copyright(c) 2009-2010 by Digital Media Professionals Inc. 4// All rights reserved. 5//------------------------------------------------------------ 6// This source code is the confidential and proprietary 7// of Digital Media Professionals Inc. 8//------------------------------------------------------------ 9// 10 11// Input registers map 12#define aPosition v0 13#define aColor v1 14 15// Output registers map 16#define vPosition o0 17 18#define TEMP_VIEW r15 19 20// Constant registers map 21#define dmp_projection_matrix c0 22#define dmp_local_to_view_matrix c4 23#define dmp_local_to_world_matrix c8 24 25#pragma bind_symbol(aPosition.xyzw,v0,v0) 26#pragma bind_symbol(aColor.xyz,v1,v1) 27 28#pragma output_map (position, o0) 29#pragma output_map (color, o1) 30 31#pragma bind_symbol(uProjection,c0,c3) 32#pragma bind_symbol(uModelView,c4,c7) 33 34l_position: 35 m4x4 TEMP_VIEW, aPosition, dmp_local_to_view_matrix 36 m4x4 vPosition, TEMP_VIEW, dmp_projection_matrix 37 ret 38 nop 39 40main: 41 call l_position 42 mov o1, aColor 43 end 44endmain: 45