// --------------------------------------------------------------------------- // Project: NintendoWare // File: ShaderConfig.h // // 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: 23821 $ // --------------------------------------------------------------------------- #ifndef NW_SHADERCONFIG_H_ #define NW_SHADERCONFIG_H_ //---------------------------------------- ////////////////////////////////////////////////////////////////////////////// // ユーザーレジスタのユニバーサルレジスタからの開始オフセットです。 // // c74から利用するため、開始オフセットをc48にします。 // ////////////////////////////////////////////////////////////////////////////// #define nw_user_register_start c48 // NW4Rと同じカメラスフィア環境を有効にします。 #define NW_NORMAL_ENV_MAP // このマクロを有効にするとシェーダに設定する際に、モデルの平行移動値にオフセット値を加える機能を追加します。 // #define NW_GFX_MODEL_TRANSLATE_OFFSET_ENABLED // ここ以下にユーザーで定義を追加します。 ////////////////////////////////////////////////////////////////////////////// // 半球ライトの代わりに使うユーザーレジスタです。 // // シェーダー中間ファイル生成時に半球ライトのチェックを外す必要があります。 // ////////////////////////////////////////////////////////////////////////////// #define extension_deform c22 /////////////////////////////////////////////////////////////////////// // 頂点ライトの代わりに使うユーザーレジスタです。 // // シェーダー中間ファイルの設定でc74-c84は空きレジスタとしています。 // /////////////////////////////////////////////////////////////////////// #define extension_color c74 // テクスチャの入力ソースを固定するサンプルコードを有効にします。 // #define NW_FIXED_TEX_SORUCE #endif // NW_SHADERCONFIG_H_