1// --------------------------------------------------------------------------- 2// Project: NintendoWare 3// File: GetTexcoordSource.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: $ 16// --------------------------------------------------------------------------- 17 18#include "ShaderConfig.h" 19#include "VertexShader.h" 20 21//----------------------------------------------------------------------------- 22// @brief �e�N�X�`�����W�\�[�X�̎擾���܂��B 23//----------------------------------------------------------------------------- 24l_get_texcoord_source: 25 cmp EQ, EQ, TEMP0.xy, CONST_1_2_2_2 26 27 ifc 0, 0, COND_MODE_AND 28 mul TEMP_TEX.xy, nw_texcoord0.xy, nw_attribute_scale1._X 29 else 30 ifc 1, 0, COND_MODE_AND 31 mul TEMP_TEX.xy, nw_texcoord1.xy, nw_attribute_scale1._Y 32 else 33 mul TEMP_TEX.xy, nw_texcoord2.xy, nw_attribute_scale1._Z 34 endif 35 nop 36 endif 37 mov TEMP_TEX.zw, CONST_0_0_1_1 38 ret 39