1// --------------------------------------------------------------------------- 2// Project: NintendoWare 3// File: GenTexcoordReflection.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 ���_���W�n�ł̔��˃x�N�g�������߂� TEMP_TEX �Ɋi�[���܂��B 23//----------------------------------------------------------------------------- 24l_gen_texcoord_reflection: 25 mov TEMP2, -TEMP_POSI 26 dp3 TEMP2.w, TEMP2, TEMP2 27 rsq TEMP2.w, TEMP2.w 28 mul TEMP2, TEMP2, TEMP2.w 29 dp3 TEMP1, TEMP2, TEMP_NORM 30 add TEMP1, TEMP1, TEMP1 31 mad TEMP_TEX, TEMP1, TEMP_NORM, -TEMP2 32 ret 33