
PluginHeader{
	RailSimVersion = 2.13;
	PluginType = Struct;
	PluginName = "[道路-トンネル]トンネルポータル-1.5車線";
	PluginAuthor = "NyahoTaro";
	IconTexture = "../../Struct/common_nya/nyaicon.png";
	Description = "";
}

StructInfo{
}

DefineSwitch "■ポータルタイプ"{}

DefineSwitch "├ポータル形状"{
	Entry = "01";
//	Entry = "02";
//	Entry = "03";
}

DefineSwitch "└テクスチャ(PT)"{
	Entry = "コンクリート01";
//	Entry = "コンクリート02";
//	Entry = "コンクリート03";
}

DefineSwitch "■トンネルタイプ"{}

DefineSwitch "├トンネル内部形状"{
	Entry = "ブラックアウト";
	Entry = "スルー";
}

DefineSwitch "└覆工テクスチャ(TN)"{
	Entry = "コンクリート01";
	Entry = "コンクリート01@照明OFF";
//	Entry = "コンクリート01";
//	Entry = "コンクリート02";
//	Entry = "コンクリート03";
}


PrimaryAssembly{
	Object3D "Dummy"{
		ModelFileName = "";
		Joint3D "_LOCAL"{
			AttachCoord = (0.0, 0.2, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}

	Object3D "Main"{
		ModelFileName = "";	ModelScale = 10;
		Transparent = 4;
		ApplySwitch "├ポータル形状"{
		Case 0:	ChangeModel = "../../Struct/nya_Road-TUnnel_cm/Portal_1.5-01/Portal01.x", 10;
		Case 1:	ChangeModel = "../../Struct/nya_Road-TUnnel_cm/Portal_1.5-01/Portal02.x", 10;
		Case 2:	ChangeModel = "../../Struct/nya_Road-TUnnel_cm/Portal_1.5-01/Portal03.x", 10;
		}

		ApplySwitch "└テクスチャ(PT)"{
	//	Case 0:	ChangeTexture = 0, "../../Struct/nya_Road-TUnnel_cm/Portal01/Portal01.dds";
	//	Case 1:	ChangeTexture = 0, "../../Struct/nya_Road-TUnnel_cm/Portal01/Portal02.dds";
	//	Case 2:	ChangeTexture = 0, "main3.png";
		}

		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

//-	In
	Object3D "Portal_In1"{
		ModelFileName = "../../Struct/nya_Road-TUnnel_cm/Portal_1.5-01/Portal01_In1.x";	ModelScale = 10;
		NoShadow = 0,1,2,3;
		ChangeAlpha = 2, NightAlpha;
		ChangeAlpha = 3, NightAlpha;
		ApplySwitch "└覆工テクスチャ(TN)"{
	//	Case 0:	ChangeTexture = 0, "main1.png";
		Case 1:	ChangeTexture = 0, "../../Struct/nya_Road-TUnnel_cm/TN_In_Main02.dds";
			ChangeTexture = 1, "../../Struct/nya_Road-TUnnel_cm/TN_In_Road02.dds";
			ChangeTexture = 2, "../../Struct/nya_Road-TUnnel_cm/TN_In_Main02-Emit.dds";
			ChangeTexture = 3, "../../Struct/nya_Road-TUnnel_cm/TN_In_Road02-Emit.dds";

		Case 2:	ChangeTexture = 0, "main3.png";
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

//-	影
	Object3D "End-Shadow"{
		ModelFileName = "";
		NoShadow = 0;
		ApplySwitch "├トンネル内部形状"{
		Case 0:	ChangeModel = "../../Struct/nya_Road-TUnnel_cm/Portal_1.5-01/End-Shadow.x", 10.0;
		Case 1:	ChangeModel = "", 1.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}
}