ImportShaderTree

導入

v9.0 (2011)

カテゴリ

shader

詳細

シェーダ ツリーを読み込みます。 シェーダ ツリーとは、コンパウンドで表現したシェーダ ノードのようなものであり、拡張子は .xsishaders です(Render Tree コンパウンドの .xsirtcompound ファイルに似ています)。 基本的にシェーダ ツリーは公開されたポートのないシェーダ コンパウンドです。 シェーダ ツリーの形式は、シェーダおよびマテリアルのプリセットに相当します。

これは、ブラウザからレンダ ツリーに .xsishaders ファイルをドラッグ アンド ドロップする操作に相当するスクリプトです。

スクリプト構文

oReturn = ImportShaderTree( [Container], Path );

戻り値

シェーダまたはテクスチャ オブジェクト。

パラメータ

パラメータ タイプ 詳細
Container 文字列 読み込まれたシェーダ コンパウンドを保持するための ShaderContainer

デフォルト値: 現在選択されている値

Path 文字列 シェーダ コンパウンドのディスク上の場所。

関連項目

ExportShaderTree ReplaceShadersDefinition CreateShaderFromPreset CreateShaderFromCLSID CreateShaderFromProgID CreateShaderCompound NestShaders UnnestShaders AddShaderCompoundPort RemoveShaderCompoundPort MoveShaderCompoundPort RenameShaderCompoundPort ExportShaderCompound ImportShaderCompound ExplodeShaderCompound SetShaderCompoundPropertiesEx GetShaderCompoundProperties EditShaderCompoundPPGLogic