// --------------------------------------------------------------------------- // Project: NintendoWare // File: GenTexcoordReflection.vsh // // Copyright (C)2009-2010 Nintendo Co., Ltd. All rights reserved. // // These coded instructions, statements, and computer programs contain // proprietary information of Nintendo of America Inc. and/or Nintendo // Company Ltd., and are protected by Federal copyright law. They may // not be disclosed to third parties or copied or duplicated in any form, // in whole or in part, without the prior written consent of Nintendo. // // $Revision:$ // --------------------------------------------------------------------------- #include "ShaderConfig.h" #include "VertexShader.h" //----------------------------------------------------------------------------- // @brief 視点座標系での反射ベクトルを求めて TEMP_TEX に格納します。 //----------------------------------------------------------------------------- l_gen_texcoord_reflection: mov TEMP2, -TEMP_POSI dp3 TEMP2.w, TEMP2, TEMP2 rsq TEMP2.w, TEMP2.w mul TEMP2, TEMP2, TEMP2.w dp3 TEMP1, TEMP2, TEMP_NORM add TEMP1, TEMP1, TEMP1 mad TEMP_TEX, TEMP1, TEMP_NORM, -TEMP2 ret