1// --------------------------------------------------------------------------- 2// Project: NintendoWare 3// File: GenTexcoordReflection.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:$ 14// --------------------------------------------------------------------------- 15 16#include "ShaderConfig.h" 17#include "VertexShader.h" 18 19//----------------------------------------------------------------------------- 20// @brief ���_���W�n�ł̔��˃x�N�g�������߂� TEMP_TEX �Ɋi�[���܂��B 21//----------------------------------------------------------------------------- 22l_gen_texcoord_reflection: 23 mov TEMP2, -TEMP_POSI 24 dp3 TEMP2.w, TEMP2, TEMP2 25 rsq TEMP2.w, TEMP2.w 26 mul TEMP2, TEMP2, TEMP2.w 27 dp3 TEMP1, TEMP2, TEMP_NORM 28 add TEMP1, TEMP1, TEMP1 29 mad TEMP_TEX, TEMP1, TEMP_NORM, -TEMP2 30 ret 31