<?xml version="1.0" encoding="iso-8859-1"?>
<xsi_file type="ShaderCompound" name="Mia_Material_RenderChannelSupport" category="Illumination" author="Christian Freisleder" formatversion="1.1" compoundversion="1.6" color="7511938" editable="1">
	<description><![CDATA[use with 2011+
Pretty much the same as the mia material, exept for the anisotrophy channel,
that does not have a texturesupport node.
The base rotation follows the local object coordinate system.

Happy Compositing ;)]]></description>
	<definition>
		<nodes>
			<node type="shader" progid="Softimage.mia_material.1.0" index="0">
				<param name="Name" type="31" ><![CDATA[mia_Material_MultiOutput]]></param>
				<param name="diffuse_weight" type="4" value="1.000000"></param>
				<param name="diffuse.red" type="4" value="0.500000"></param>
				<param name="diffuse.green" type="4" value="0.500000"></param>
				<param name="diffuse.blue" type="4" value="0.500000"></param>
				<param name="diffuse.alpha" type="4" value="0.000000"></param>
				<param name="diffuse_roughness" type="4" value="0.000000"></param>
				<param name="reflectivity" type="4" value="0.600000"></param>
				<param name="refl_color.red" type="4" value="1.000000"></param>
				<param name="refl_color.green" type="4" value="1.000000"></param>
				<param name="refl_color.blue" type="4" value="1.000000"></param>
				<param name="refl_color.alpha" type="4" value="0.000000"></param>
				<param name="refl_gloss" type="4" value="1.000000"></param>
				<param name="refl_gloss_samples" type="3" value="8"></param>
				<param name="refl_interpolate" type="11" value="false"></param>
				<param name="refl_hl_only" type="11" value="false"></param>
				<param name="refl_is_metal" type="11" value="false"></param>
				<param name="transparency" type="4" value="0.000000"></param>
				<param name="refr_color.red" type="4" value="0.000000"></param>
				<param name="refr_color.green" type="4" value="0.000000"></param>
				<param name="refr_color.blue" type="4" value="0.000000"></param>
				<param name="refr_color.alpha" type="4" value="0.000000"></param>
				<param name="refr_gloss" type="4" value="1.000000"></param>
				<param name="refr_ior" type="4" value="1.400000"></param>
				<param name="refr_gloss_samples" type="3" value="8"></param>
				<param name="refr_interpolate" type="11" value="false"></param>
				<param name="refr_translucency" type="11" value="false"></param>
				<param name="refr_trans_color.red" type="4" value="0.700000"></param>
				<param name="refr_trans_color.green" type="4" value="0.600000"></param>
				<param name="refr_trans_color.blue" type="4" value="0.500000"></param>
				<param name="refr_trans_color.alpha" type="4" value="0.000000"></param>
				<param name="refr_trans_weight" type="4" value="0.500000"></param>
				<param name="anisotropy" type="4" value="1.000000"></param>
				<param name="anisotropy_rotation" type="4" value="0.000000"></param>
				<param name="anisotropy_channel" type="3" value="-1"></param>
				<param name="brdf_fresnel" type="11" value="false"></param>
				<param name="brdf_0_degree_refl" type="4" value="0.200000"></param>
				<param name="brdf_90_degree_refl" type="4" value="1.000000"></param>
				<param name="brdf_curve" type="4" value="5.000000"></param>
				<param name="brdf_conserve_energy" type="11" value="true"></param>
				<param name="intr_grid_density" type="3" value="2"></param>
				<param name="intr_refl_samples" type="3" value="2"></param>
				<param name="intr_refl_ddist_on" type="11" value="false"></param>
				<param name="intr_refl_ddist" type="4" value="0.000000"></param>
				<param name="intr_refr_samples" type="3" value="2"></param>
				<param name="single_env_sample" type="11" value="false"></param>
				<param name="refl_falloff_on" type="11" value="false"></param>
				<param name="refl_falloff_dist" type="4" value="0.000000"></param>
				<param name="refl_falloff_color_on" type="11" value="false"></param>
				<param name="refl_falloff_color.red" type="4" value="0.000000"></param>
				<param name="refl_falloff_color.green" type="4" value="0.000000"></param>
				<param name="refl_falloff_color.blue" type="4" value="0.000000"></param>
				<param name="refl_falloff_color.alpha" type="4" value="0.000000"></param>
				<param name="refl_depth" type="3" value="5"></param>
				<param name="refl_cutoff" type="4" value="0.010000"></param>
				<param name="refr_falloff_on" type="11" value="false"></param>
				<param name="refr_falloff_dist" type="4" value="0.000000"></param>
				<param name="refr_falloff_color_on" type="11" value="false"></param>
				<param name="refr_falloff_color.red" type="4" value="0.000000"></param>
				<param name="refr_falloff_color.green" type="4" value="0.000000"></param>
				<param name="refr_falloff_color.blue" type="4" value="0.000000"></param>
				<param name="refr_falloff_color.alpha" type="4" value="0.000000"></param>
				<param name="refr_depth" type="3" value="5"></param>
				<param name="refr_cutoff" type="4" value="0.010000"></param>
				<param name="indirect_multiplier" type="4" value="1.000000"></param>
				<param name="fg_quality" type="4" value="1.000000"></param>
				<param name="fg_quality_w" type="4" value="1.000000"></param>
				<param name="ao_on" type="11" value="false"></param>
				<param name="ao_samples" type="3" value="16"></param>
				<param name="ao_distance" type="4" value="1.000000"></param>
				<param name="ao_dark.red" type="4" value="0.200000"></param>
				<param name="ao_dark.green" type="4" value="0.200000"></param>
				<param name="ao_dark.blue" type="4" value="0.200000"></param>
				<param name="ao_dark.alpha" type="4" value="0.000000"></param>
				<param name="ao_ambient.red" type="4" value="0.000000"></param>
				<param name="ao_ambient.green" type="4" value="0.000000"></param>
				<param name="ao_ambient.blue" type="4" value="0.000000"></param>
				<param name="ao_ambient.alpha" type="4" value="0.000000"></param>
				<param name="ao_do_details" type="3" value="1"></param>
				<param name="thin_walled" type="11" value="false"></param>
				<param name="no_visible_area_hl" type="11" value="true"></param>
				<param name="skip_inside_refl" type="11" value="true"></param>
				<param name="do_refractive_caustics" type="11" value="false"></param>
				<param name="backface_cull" type="11" value="false"></param>
				<param name="propagate_alpha" type="11" value="false"></param>
				<param name="hl_vs_refl_balance" type="4" value="1.000000"></param>
				<param name="cutout_opacity" type="4" value="1.000000"></param>
				<param name="additional_color.red" type="4" value="0.000000"></param>
				<param name="additional_color.green" type="4" value="0.000000"></param>
				<param name="additional_color.blue" type="4" value="0.000000"></param>
				<param name="additional_color.alpha" type="4" value="0.000000"></param>
				<param name="no_diffuse_bump" type="11" value="false"></param>
				<param name="bump_mode" type="3" value="0"></param>
				<param name="overall_bump.x" type="4" value="0.000000"></param>
				<param name="overall_bump.y" type="4" value="0.000000"></param>
				<param name="overall_bump.z" type="4" value="0.000000"></param>
				<param name="standard_bump.x" type="4" value="0.000000"></param>
				<param name="standard_bump.y" type="4" value="0.000000"></param>
				<param name="standard_bump.z" type="4" value="0.000000"></param>
				<param name="multiple_outputs" type="11" value="true"></param>
				<param name="refl_base" type="4" value="0.000000"></param>
				<param name="refl_base_color.red" type="4" value="1.000000"></param>
				<param name="refl_base_color.green" type="4" value="0.300000"></param>
				<param name="refl_base_color.blue" type="4" value="0.000000"></param>
				<param name="refl_base_color.alpha" type="4" value="0.000000"></param>
				<param name="refl_base_gloss" type="4" value="1.000000"></param>
				<param name="refl_base_gloss_samples" type="3" value="8"></param>
				<param name="refl_base_bump.x" type="4" value="0.000000"></param>
				<param name="refl_base_bump.y" type="4" value="0.000000"></param>
				<param name="refl_base_bump.z" type="4" value="0.000000"></param>
				<datablob category="ui_infos">
					<prop name="portgroupnormalstates">60,0;61,0;65,1;66,0;71,1;72,1;78,1;81,0;84,1;87,0;89,1;94,0;101,0;102,0;105,0;108,0;113,0;116,1;121,0;125,0;130,1;131,0;133,1;137,1;141,1;142,1;148,1;154,1;167,0;</prop>
					<prop name="posx">1525</prop>
					<prop name="posy">-2913</prop>
					<prop name="state">Normal</prop>
				</datablob>
			</node>
			<node type="shader" progid="Softimage.sib_color_8mix.1.0" index="1">
				<param name="Name" type="31" ><![CDATA[Mix_8colors]]></param>
				<param name="mixersize" type="3" value="8"></param>
				<param name="base_color.red" type="4" value="1.000000"></param>
				<param name="base_color.green" type="4" value="1.000000"></param>
				<param name="base_color.blue" type="4" value="1.000000"></param>
				<param name="base_color.alpha" type="4" value="0.000000"></param>
				<param name="color1.red" type="4" value="1.000000"></param>
				<param name="color1.green" type="4" value="1.000000"></param>
				<param name="color1.blue" type="4" value="1.000000"></param>
				<param name="color1.alpha" type="4" value="0.000000"></param>
				<param name="mode1" type="3" value="2"></param>
				<param name="weight1.red" type="4" value="1.000000"></param>
				<param name="weight1.green" type="4" value="1.000000"></param>
				<param name="weight1.blue" type="4" value="1.000000"></param>
				<param name="weight1.alpha" type="4" value="1.000000"></param>
				<param name="alpha1" type="11" value="false"></param>
				<param name="inuse1" type="11" value="true"></param>
				<param name="color2.red" type="4" value="1.000000"></param>
				<param name="color2.green" type="4" value="1.000000"></param>
				<param name="color2.blue" type="4" value="1.000000"></param>
				<param name="color2.alpha" type="4" value="0.000000"></param>
				<param name="mode2" type="3" value="2"></param>
				<param name="weight2.red" type="4" value="1.000000"></param>
				<param name="weight2.green" type="4" value="1.000000"></param>
				<param name="weight2.blue" type="4" value="1.000000"></param>
				<param name="weight2.alpha" type="4" value="1.000000"></param>
				<param name="alpha2" type="11" value="false"></param>
				<param name="inuse2" type="11" value="true"></param>
				<param name="color3.red" type="4" value="1.000000"></param>
				<param name="color3.green" type="4" value="1.000000"></param>
				<param name="color3.blue" type="4" value="1.000000"></param>
				<param name="color3.alpha" type="4" value="0.000000"></param>
				<param name="mode3" type="3" value="2"></param>
				<param name="weight3.red" type="4" value="1.000000"></param>
				<param name="weight3.green" type="4" value="1.000000"></param>
				<param name="weight3.blue" type="4" value="1.000000"></param>
				<param name="weight3.alpha" type="4" value="1.000000"></param>
				<param name="alpha3" type="11" value="false"></param>
				<param name="inuse3" type="11" value="true"></param>
				<param name="color4.red" type="4" value="1.000000"></param>
				<param name="color4.green" type="4" value="1.000000"></param>
				<param name="color4.blue" type="4" value="1.000000"></param>
				<param name="color4.alpha" type="4" value="0.000000"></param>
				<param name="mode4" type="3" value="2"></param>
				<param name="weight4.red" type="4" value="1.000000"></param>
				<param name="weight4.green" type="4" value="1.000000"></param>
				<param name="weight4.blue" type="4" value="1.000000"></param>
				<param name="weight4.alpha" type="4" value="1.000000"></param>
				<param name="alpha4" type="11" value="false"></param>
				<param name="inuse4" type="11" value="true"></param>
				<param name="color5.red" type="4" value="1.000000"></param>
				<param name="color5.green" type="4" value="1.000000"></param>
				<param name="color5.blue" type="4" value="1.000000"></param>
				<param name="color5.alpha" type="4" value="0.000000"></param>
				<param name="mode5" type="3" value="2"></param>
				<param name="weight5.red" type="4" value="1.000000"></param>
				<param name="weight5.green" type="4" value="1.000000"></param>
				<param name="weight5.blue" type="4" value="1.000000"></param>
				<param name="weight5.alpha" type="4" value="1.000000"></param>
				<param name="alpha5" type="11" value="false"></param>
				<param name="inuse5" type="11" value="true"></param>
				<param name="color6.red" type="4" value="1.000000"></param>
				<param name="color6.green" type="4" value="1.000000"></param>
				<param name="color6.blue" type="4" value="1.000000"></param>
				<param name="color6.alpha" type="4" value="0.000000"></param>
				<param name="mode6" type="3" value="1"></param>
				<param name="weight6.red" type="4" value="0.500000"></param>
				<param name="weight6.green" type="4" value="0.500000"></param>
				<param name="weight6.blue" type="4" value="0.500000"></param>
				<param name="weight6.alpha" type="4" value="0.000000"></param>
				<param name="alpha6" type="11" value="false"></param>
				<param name="inuse6" type="11" value="false"></param>
				<param name="color7.red" type="4" value="1.000000"></param>
				<param name="color7.green" type="4" value="1.000000"></param>
				<param name="color7.blue" type="4" value="1.000000"></param>
				<param name="color7.alpha" type="4" value="0.000000"></param>
				<param name="mode7" type="3" value="1"></param>
				<param name="weight7.red" type="4" value="0.500000"></param>
				<param name="weight7.green" type="4" value="0.500000"></param>
				<param name="weight7.blue" type="4" value="0.500000"></param>
				<param name="weight7.alpha" type="4" value="0.000000"></param>
				<param name="alpha7" type="11" value="false"></param>
				<param name="inuse7" type="11" value="false"></param>
				<datablob category="ui_infos">
					<prop name="posx">2696</prop>
					<prop name="posy">-2624</prop>
					<prop name="state">Normal</prop>
				</datablob>
			</node>
			<node type="shader" progid="Softimage.sib_scalar_to_color.1.0" index="2">
				<param name="Name" type="31" ><![CDATA[Scalar_to_Color]]></param>
				<param name="input" type="4" value="0.500000"></param>
				<param name="alpha" type="4" value="1.000000"></param>
				<datablob category="ui_infos">
					<prop name="posx">1966</prop>
					<prop name="posy">-1859</prop>
					<prop name="state">ConnectedOnly</prop>
				</datablob>
			</node>
			<node type="shader" progid="Softimage.sib_color_2mix.1.0" index="3">
				<param name="Name" type="31" ><![CDATA[Mix_2colors]]></param>
				<param name="mixersize" type="3" value="2"></param>
				<param name="base_color.red" type="4" value="0.000000"></param>
				<param name="base_color.green" type="4" value="1.000000"></param>
				<param name="base_color.blue" type="4" value="0.000000"></param>
				<param name="base_color.alpha" type="4" value="0.000000"></param>
				<param name="color1.red" type="4" value="0.000000"></param>
				<param name="color1.green" type="4" value="0.000000"></param>
				<param name="color1.blue" type="4" value="0.000000"></param>
				<param name="color1.alpha" type="4" value="0.000000"></param>
				<param name="mode1" type="3" value="1"></param>
				<param name="weight1.red" type="4" value="0.500000"></param>
				<param name="weight1.green" type="4" value="0.500000"></param>
				<param name="weight1.blue" type="4" value="0.500000"></param>
				<param name="weight1.alpha" type="4" value="0.000000"></param>
				<param name="alpha1" type="11" value="false"></param>
				<param name="inuse1" type="11" value="true"></param>
				<param name="color2.red" type="4" value="1.000000"></param>
				<param name="color2.green" type="4" value="1.000000"></param>
				<param name="color2.blue" type="4" value="1.000000"></param>
				<param name="color2.alpha" type="4" value="0.000000"></param>
				<param name="mode2" type="3" value="1"></param>
				<param name="weight2.red" type="4" value="0.500000"></param>
				<param name="weight2.green" type="4" value="0.500000"></param>
				<param name="weight2.blue" type="4" value="0.500000"></param>
				<param name="weight2.alpha" type="4" value="0.000000"></param>
				<param name="alpha2" type="11" value="false"></param>
				<param name="inuse2" type="11" value="false"></param>
				<param name="color3.red" type="4" value="1.000000"></param>
				<param name="color3.green" type="4" value="1.000000"></param>
				<param name="color3.blue" type="4" value="1.000000"></param>
				<param name="color3.alpha" type="4" value="0.000000"></param>
				<param name="mode3" type="3" value="1"></param>
				<param name="weight3.red" type="4" value="0.500000"></param>
				<param name="weight3.green" type="4" value="0.500000"></param>
				<param name="weight3.blue" type="4" value="0.500000"></param>
				<param name="weight3.alpha" type="4" value="0.000000"></param>
				<param name="alpha3" type="11" value="false"></param>
				<param name="inuse3" type="11" value="false"></param>
				<param name="color4.red" type="4" value="1.000000"></param>
				<param name="color4.green" type="4" value="1.000000"></param>
				<param name="color4.blue" type="4" value="1.000000"></param>
				<param name="color4.alpha" type="4" value="0.000000"></param>
				<param name="mode4" type="3" value="1"></param>
				<param name="weight4.red" type="4" value="0.500000"></param>
				<param name="weight4.green" type="4" value="0.500000"></param>
				<param name="weight4.blue" type="4" value="0.500000"></param>
				<param name="weight4.alpha" type="4" value="0.000000"></param>
				<param name="alpha4" type="11" value="false"></param>
				<param name="inuse4" type="11" value="false"></param>
				<param name="color5.red" type="4" value="1.000000"></param>
				<param name="color5.green" type="4" value="1.000000"></param>
				<param name="color5.blue" type="4" value="1.000000"></param>
				<param name="color5.alpha" type="4" value="0.000000"></param>
				<param name="mode5" type="3" value="1"></param>
				<param name="weight5.red" type="4" value="0.500000"></param>
				<param name="weight5.green" type="4" value="0.500000"></param>
				<param name="weight5.blue" type="4" value="0.500000"></param>
				<param name="weight5.alpha" type="4" value="0.000000"></param>
				<param name="alpha5" type="11" value="false"></param>
				<param name="inuse5" type="11" value="false"></param>
				<param name="color6.red" type="4" value="1.000000"></param>
				<param name="color6.green" type="4" value="1.000000"></param>
				<param name="color6.blue" type="4" value="1.000000"></param>
				<param name="color6.alpha" type="4" value="0.000000"></param>
				<param name="mode6" type="3" value="1"></param>
				<param name="weight6.red" type="4" value="0.500000"></param>
				<param name="weight6.green" type="4" value="0.500000"></param>
				<param name="weight6.blue" type="4" value="0.500000"></param>
				<param name="weight6.alpha" type="4" value="0.000000"></param>
				<param name="alpha6" type="11" value="false"></param>
				<param name="inuse6" type="11" value="false"></param>
				<param name="color7.red" type="4" value="1.000000"></param>
				<param name="color7.green" type="4" value="1.000000"></param>
				<param name="color7.blue" type="4" value="1.000000"></param>
				<param name="color7.alpha" type="4" value="0.000000"></param>
				<param name="mode7" type="3" value="1"></param>
				<param name="weight7.red" type="4" value="0.500000"></param>
				<param name="weight7.green" type="4" value="0.500000"></param>
				<param name="weight7.blue" type="4" value="0.500000"></param>
				<param name="weight7.alpha" type="4" value="0.000000"></param>
				<param name="alpha7" type="11" value="false"></param>
				<param name="inuse7" type="11" value="false"></param>
				<datablob category="ui_infos">
					<prop name="posx">2869</prop>
					<prop name="posy">-2094</prop>
					<prop name="state">ConnectedOnly</prop>
				</datablob>
			</node>
			<node type="shader" progid="Softimage.sib_color_storeinchannel.1.0" index="4">
				<param name="Name" type="31" ><![CDATA[Color_Diffuse]]></param>
				<param name="input.red" type="4" value="0.000000"></param>
				<param name="input.green" type="4" value="0.000000"></param>
				<param name="input.blue" type="4" value="0.000000"></param>
				<param name="input.alpha" type="4" value="0.000000"></param>
				<param name="channel" type="8" ><![CDATA[Diffuse]]></param>
				<param name="raytype" type="3" value="1"></param>
				<param name="component" type="3" value="0"></param>
				<datablob category="ui_infos">
					<prop name="posx">2514</prop>
					<prop name="posy">-2767</prop>
					<prop name="state">Normal</prop>
				</datablob>
			</node>
			<node type="shader" progid="Softimage.sib_color_storeinchannel.1.0" index="5">
				<param name="Name" type="31" ><![CDATA[Color_Specular]]></param>
				<param name="input.red" type="4" value="0.000000"></param>
				<param name="input.green" type="4" value="0.000000"></param>
				<param name="input.blue" type="4" value="0.000000"></param>
				<param name="input.alpha" type="4" value="0.000000"></param>
				<param name="channel" type="8" ><![CDATA[Specular]]></param>
				<param name="raytype" type="3" value="1"></param>
				<param name="component" type="3" value="0"></param>
				<datablob category="ui_infos">
					<prop name="posx">2103</prop>
					<prop name="posy">-2550</prop>
					<prop name="state">ConnectedOnly</prop>
				</datablob>
			</node>
			<node type="shader" progid="Softimage.sib_color_storeinchannel.1.0" index="6">
				<param name="Name" type="31" ><![CDATA[Color_Reflection]]></param>
				<param name="input.red" type="4" value="0.000000"></param>
				<param name="input.green" type="4" value="0.000000"></param>
				<param name="input.blue" type="4" value="0.000000"></param>
				<param name="input.alpha" type="4" value="0.000000"></param>
				<param name="channel" type="8" ><![CDATA[Reflection]]></param>
				<param name="raytype" type="3" value="1"></param>
				<param name="component" type="3" value="0"></param>
				<datablob category="ui_infos">
					<prop name="posx">2113</prop>
					<prop name="posy">-2276</prop>
					<prop name="state">ConnectedOnly</prop>
				</datablob>
			</node>
			<node type="shader" progid="Softimage.sib_color_storeinchannel.1.0" index="7">
				<param name="Name" type="31" ><![CDATA[Color_Refraction]]></param>
				<param name="input.red" type="4" value="0.000000"></param>
				<param name="input.green" type="4" value="0.000000"></param>
				<param name="input.blue" type="4" value="0.000000"></param>
				<param name="input.alpha" type="4" value="0.000000"></param>
				<param name="channel" type="8" ><![CDATA[Refraction]]></param>
				<param name="raytype" type="3" value="1"></param>
				<param name="component" type="3" value="0"></param>
				<datablob category="ui_infos">
					<prop name="posx">2111</prop>
					<prop name="posy">-2183</prop>
					<prop name="state">ConnectedOnly</prop>
				</datablob>
			</node>
			<node type="shader" progid="Softimage.sib_color_storeinchannel.1.0" index="8">
				<param name="Name" type="31" ><![CDATA[Color_Translucency]]></param>
				<param name="input.red" type="4" value="0.000000"></param>
				<param name="input.green" type="4" value="0.000000"></param>
				<param name="input.blue" type="4" value="0.000000"></param>
				<param name="input.alpha" type="4" value="0.000000"></param>
				<param name="channel" type="8" ><![CDATA[Translucency]]></param>
				<param name="raytype" type="3" value="1"></param>
				<param name="component" type="3" value="0"></param>
				<datablob category="ui_infos">
					<prop name="posx">2097</prop>
					<prop name="posy">-2090</prop>
					<prop name="state">ConnectedOnly</prop>
				</datablob>
			</node>
			<node type="shader" progid="Softimage.sib_color_split.1.0" index="9">
				<param name="Name" type="31" ><![CDATA[RGBA_Split]]></param>
				<param name="input.red" type="4" value="1.000000"></param>
				<param name="input.green" type="4" value="1.000000"></param>
				<param name="input.blue" type="4" value="1.000000"></param>
				<param name="input.alpha" type="4" value="1.000000"></param>
				<datablob category="ui_infos">
					<prop name="posx">2083</prop>
					<prop name="posy">-2683</prop>
					<prop name="state">Collapsed</prop>
				</datablob>
			</node>
			<node type="shader" progid="Softimage.sib_color_storeinchannel.1.0" index="10">
				<param name="Name" type="31" ><![CDATA[Color_IdirectIlum]]></param>
				<param name="input.red" type="4" value="0.000000"></param>
				<param name="input.green" type="4" value="0.000000"></param>
				<param name="input.blue" type="4" value="0.000000"></param>
				<param name="input.alpha" type="4" value="0.000000"></param>
				<param name="channel" type="8" ><![CDATA[IndirectIllumination]]></param>
				<param name="raytype" type="3" value="1"></param>
				<param name="component" type="3" value="0"></param>
				<datablob category="ui_infos">
					<prop name="posx">2108</prop>
					<prop name="posy">-1997</prop>
					<prop name="state">ConnectedOnly</prop>
				</datablob>
			</node>
			<node type="shader" progid="Softimage.sib_channel_picker.1.0" index="11">
				<param name="Name" type="31" ><![CDATA[Pick_Blue]]></param>
				<param name="input.red" type="4" value="1.000000"></param>
				<param name="input.green" type="4" value="1.000000"></param>
				<param name="input.blue" type="4" value="1.000000"></param>
				<param name="input.alpha" type="4" value="1.000000"></param>
				<param name="colspace" type="3" value="1"></param>
				<param name="channel_rgba" type="3" value="3"></param>
				<param name="channel_hlsa" type="3" value="1"></param>
				<param name="channel_hsva" type="3" value="1"></param>
				<param name="invert" type="11" value="false"></param>
				<param name="alphamultiply" type="11" value="false"></param>
				<datablob category="ui_infos">
					<prop name="posx">2093</prop>
					<prop name="posy">-2735</prop>
					<prop name="state">Collapsed</prop>
				</datablob>
			</node>
			<node type="shader" progid="Softimage.sib_color_combine.1.0" index="12">
				<param name="Name" type="31" ><![CDATA[RGBA_combine1]]></param>
				<param name="red" type="4" value="1.000000"></param>
				<param name="green" type="4" value="1.000000"></param>
				<param name="blue" type="4" value="1.000000"></param>
				<param name="alpha" type="4" value="1.000000"></param>
				<datablob category="ui_infos">
					<prop name="posx">2309</prop>
					<prop name="posy">-2796</prop>
					<prop name="state">Normal</prop>
				</datablob>
			</node>
			<node type="shader" progid="Softimage.sib_channel_picker.1.0" index="13">
				<param name="Name" type="31" ><![CDATA[Pick_Green]]></param>
				<param name="input.red" type="4" value="1.000000"></param>
				<param name="input.green" type="4" value="1.000000"></param>
				<param name="input.blue" type="4" value="1.000000"></param>
				<param name="input.alpha" type="4" value="1.000000"></param>
				<param name="colspace" type="3" value="1"></param>
				<param name="channel_rgba" type="3" value="2"></param>
				<param name="channel_hlsa" type="3" value="1"></param>
				<param name="channel_hsva" type="3" value="1"></param>
				<param name="invert" type="11" value="false"></param>
				<param name="alphamultiply" type="11" value="false"></param>
				<datablob category="ui_infos">
					<prop name="posx">2081</prop>
					<prop name="posy">-2775</prop>
					<prop name="state">Collapsed</prop>
				</datablob>
			</node>
			<node type="shader" progid="Softimage.sib_channel_picker.1.0" index="14">
				<param name="Name" type="31" ><![CDATA[Pick_Red]]></param>
				<param name="input.red" type="4" value="1.000000"></param>
				<param name="input.green" type="4" value="1.000000"></param>
				<param name="input.blue" type="4" value="1.000000"></param>
				<param name="input.alpha" type="4" value="1.000000"></param>
				<param name="colspace" type="3" value="1"></param>
				<param name="channel_rgba" type="3" value="1"></param>
				<param name="channel_hlsa" type="3" value="1"></param>
				<param name="channel_hsva" type="3" value="1"></param>
				<param name="invert" type="11" value="false"></param>
				<param name="alphamultiply" type="11" value="false"></param>
				<datablob category="ui_infos">
					<prop name="posx">2083</prop>
					<prop name="posy">-2816</prop>
					<prop name="state">Collapsed</prop>
				</datablob>
			</node>
		</nodes>
		<connections>
			<cnx from_node="0" from_port="opacity_result" to_node="1" to_port="color6"> </cnx>
			<cnx from_node="0" from_port="opacity" to_node="2" to_port="input"> </cnx>
			<cnx from_node="0" from_port="opacity_raw" to_node="3" to_port="base_color"> </cnx>
			<cnx from_node="0" from_port="spec_result" to_node="5" to_port="input"> </cnx>
			<cnx from_node="0" from_port="refl_result" to_node="6" to_port="input"> </cnx>
			<cnx from_node="0" from_port="refr_result" to_node="7" to_port="input"> </cnx>
			<cnx from_node="0" from_port="tran_result" to_node="8" to_port="input"> </cnx>
			<cnx from_node="0" from_port="result" to_node="9" to_port="input"> </cnx>
			<cnx from_node="0" from_port="indirect_result" to_node="10" to_port="input"> </cnx>
			<cnx from_node="0" from_port="diffuse_result" to_node="11" to_port="input"> </cnx>
			<cnx from_node="0" from_port="diffuse_result" to_node="13" to_port="input"> </cnx>
			<cnx from_node="0" from_port="diffuse_result" to_node="14" to_port="input"> </cnx>
			<cnx from_node="1" from_port="out" to_node="3" to_port="color1"> </cnx>
			<cnx from_node="2" from_port="out" to_node="3" to_port="weight1"> </cnx>
			<cnx from_node="4" from_port="out" to_node="1" to_port="base_color"> </cnx>
			<cnx from_node="5" from_port="out" to_node="1" to_port="color1"> </cnx>
			<cnx from_node="6" from_port="out" to_node="1" to_port="color2"> </cnx>
			<cnx from_node="7" from_port="out" to_node="1" to_port="color3"> </cnx>
			<cnx from_node="8" from_port="out" to_node="1" to_port="color4"> </cnx>
			<cnx from_node="9" from_port="alpha" to_node="12" to_port="alpha"> </cnx>
			<cnx from_node="10" from_port="out" to_node="1" to_port="color5"> </cnx>
			<cnx from_node="11" from_port="out" to_node="12" to_port="blue"> </cnx>
			<cnx from_node="12" from_port="out" to_node="4" to_port="input"> </cnx>
			<cnx from_node="13" from_port="out" to_node="12" to_port="green"> </cnx>
			<cnx from_node="14" from_port="out" to_node="12" to_port="red"> </cnx>
		</connections>
		<exposed_ports>
			<port index="0" portname="diffuse" username="diffuse" displayname="Diffuse"></port>
			<port index="0" portname="diffuse_weight" username="diffuse_weight" displayname="Weight"></port>
			<port index="0" portname="diffuse_roughness" username="diffuse_roughness" displayname="Roughness"></port>
			<port index="0" portname="transparency" username="transparency" displayname="Transparency"></port>
			<port index="0" portname="refr_color" username="refr_color" displayname="Color"></port>
			<port index="0" portname="refr_gloss" username="refr_gloss" displayname="Glossiness"></port>
			<port index="0" portname="refr_gloss_samples" username="refr_gloss_samples" displayname="Samples"></port>
			<port index="0" portname="refr_ior" username="refr_ior" displayname="Index of Refraction"></port>
			<port index="0" portname="reflectivity" username="reflectivity" displayname="Reflectivity"></port>
			<port index="0" portname="refl_color" username="refl_color" displayname="Reflection Color"></port>
			<port index="0" portname="refl_gloss" username="refl_gloss" displayname="Glossiness"></port>
			<port index="0" portname="refl_gloss_samples" username="refl_gloss_samples" displayname="Glossy Samples"></port>
			<port index="0" portname="refl_is_metal" username="refl_is_metal" displayname="Metal Material"></port>
			<port index="0" portname="refl_base" username="refl_base" displayname="refl_base"></port>
			<port index="0" portname="refl_base_color" username="refl_base_color" displayname="refl_base_color"></port>
			<port index="0" portname="refl_base_gloss" username="refl_base_gloss" displayname="refl_base_gloss"></port>
			<port index="0" portname="refl_base_gloss_samples" username="refl_base_gloss_samples" displayname="refl_base_gloss_samples"></port>
			<port index="0" portname="anisotropy" username="anisotropy" displayname="Anisotrophy"></port>
			<port index="0" portname="anisotropy_rotation" username="anisotropy_rotation" displayname="Rotation"></port>
			<port index="0" portname="brdf_fresnel" username="brdf_fresnel" displayname="Default(IOF)"></port>
			<port index="0" portname="brdf_0_degree_refl" username="brdf_0_degree_refl" displayname="Facing Reflectivity"></port>
			<port index="0" portname="brdf_90_degree_refl" username="brdf_90_degree_refl" displayname="Perpendicular Reflectivity"></port>
			<port index="0" portname="brdf_curve" username="brdf_curve" displayname="Curve Faloff"></port>
			<port index="0" portname="brdf_conserve_energy" username="brdf_conserve_energy" displayname="Conserve Energy"></port>
			<port index="0" portname="indirect_multiplier" username="indirect_multiplier" displayname="indirect_multiplier"></port>
			<port index="0" portname="fg_quality" username="fg_quality" displayname="Ray Multiplyer"></port>
			<port index="0" portname="fg_quality_w" username="fg_quality_w" displayname="Additional Multiplyer"></port>
			<port index="0" portname="refr_translucency" username="refr_translucency" displayname="Translucency"></port>
			<port index="0" portname="refr_trans_color" username="refr_trans_color" displayname="Color"></port>
			<port index="0" portname="refr_trans_weight" username="refr_trans_weight" displayname="Weight"></port>
			<port index="0" portname="ao_on" username="ao_on" displayname="Enable"></port>
			<port index="0" portname="ao_samples" username="ao_samples" displayname="Samples"></port>
			<port index="0" portname="ao_distance" username="ao_distance" displayname="Max Distance"></port>
			<port index="0" portname="ao_do_details" username="ao_do_details" displayname="Detail Enhancement"></port>
			<port index="0" portname="ao_dark" username="ao_dark" displayname="Shadow Color"></port>
			<port index="0" portname="ao_ambient" username="ao_ambient" displayname="Ambient Color"></port>
			<port index="0" portname="single_env_sample" username="single_env_sample" displayname="Single Environment Sample"></port>
			<port index="0" portname="intr_grid_density" username="intr_grid_density" displayname="Grid density"></port>
			<port index="0" portname="refr_interpolate" username="refr_interpolate" displayname="Enable"></port>
			<port index="0" portname="intr_refr_samples" username="intr_refr_samples" displayname="Samples"></port>
			<port index="0" portname="refl_interpolate" username="refl_interpolate" displayname="Enable"></port>
			<port index="0" portname="intr_refl_samples" username="intr_refl_samples" displayname="Samples"></port>
			<port index="0" portname="intr_refl_ddist_on" username="intr_refl_ddist_on" displayname="Distace on"></port>
			<port index="0" portname="intr_refl_ddist" username="intr_refl_ddist" displayname="Distance"></port>
			<port index="0" portname="refr_depth" username="refr_depth" displayname="Trace Depht"></port>
			<port index="0" portname="refr_cutoff" username="refr_cutoff" displayname="Cutoff"></port>
			<port index="0" portname="refr_falloff_on" username="refr_falloff_on" displayname="Enable"></port>
			<port index="0" portname="refr_falloff_dist" username="refr_falloff_dist" displayname="Distance"></port>
			<port index="0" portname="refr_falloff_color_on" username="refr_falloff_color_on" displayname="Use End Color"></port>
			<port index="0" portname="refr_falloff_color" username="refr_falloff_color" displayname="EndColor"></port>
			<port index="0" portname="refl_hl_only" username="refl_hl_only" displayname="Highlights only"></port>
			<port index="0" portname="refl_depth" username="refl_depth" displayname="Trace Depht"></port>
			<port index="0" portname="refl_cutoff" username="refl_cutoff" displayname="Cutoff"></port>
			<port index="0" portname="refl_falloff_color" username="refl_falloff_color" displayname="Color"></port>
			<port index="0" portname="refl_falloff_on" username="refl_falloff_on" displayname="Enable"></port>
			<port index="0" portname="refl_falloff_dist" username="refl_falloff_dist" displayname="Distance"></port>
			<port index="0" portname="refl_falloff_color_on" username="refl_falloff_color_on" displayname="Use End Color"></port>
			<port index="0" portname="no_visible_area_hl" username="no_visible_area_hl" displayname="Turn Off Visible Area Light Highlights"></port>
			<port index="0" portname="skip_inside_refl" username="skip_inside_refl" displayname="Turn Off Weak Internal Reflections"></port>
			<port index="0" portname="no_diffuse_bump" username="no_diffuse_bump" displayname="Turn Off Bumps for Diffuse Only"></port>
			<port index="0" portname="thin_walled" username="thin_walled" displayname="Enable Thin-Walled Mode"></port>
			<port index="0" portname="do_refractive_caustics" username="do_refractive_caustics" displayname="Enable Refractive Caustics"></port>
			<port index="0" portname="backface_cull" username="backface_cull" displayname="Enable Backface Culling"></port>
			<port index="0" portname="propagate_alpha" username="propagate_alpha" displayname="Transparency Uses Background Alpha"></port>
			<port index="0" portname="bump_mode" username="bump_mode" displayname="Bump Mode"></port>
			<port index="0" portname="additional_color" username="additional_color" displayname="Color Blend"></port>
			<port index="0" portname="hl_vs_refl_balance" username="hl_vs_refl_balance" displayname="Highlight vs Rflection Balance"></port>
			<port index="0" portname="cutout_opacity" username="cutout_opacity" displayname="Cutout Opacity"></port>
			<port index="0" portname="overall_bump" username="overall_bump" displayname="overall_bump"></port>
			<port index="0" portname="standard_bump" username="standard_bump" displayname="standard_bump"></port>
			<port index="0" portname="refl_base_bump" username="refl_base_bump" displayname="refl_base_bump"></port>
			<port index="0" portname="bump_shader" username="bump_shader" displayname="bump_shader"></port>
			<port index="3" portname="out" username="Result" displayname="Result"></port>
			<port index="0" portname="result" username="result1" displayname="result1"></port>
		</exposed_ports>
		<layout>
			<item type="input" name="diffuse" ppgvis="1" ppggroup="Diffuse" ppgtab="Illumination" portvis="1" portgroup="Illumination"> </item>
			<item type="input" name="diffuse_weight" min="0" max="1" ppgvis="1" ppggroup="Diffuse" ppgtab="Illumination" portvis="1" portgroup="Illumination"> </item>
			<item type="input" name="diffuse_roughness" min="0" max="1" ppgvis="1" ppggroup="Diffuse" ppgtab="Illumination" portvis="1" portgroup="Illumination"> </item>
			<item type="input" name="transparency" min="0" max="1" ppgvis="1" ppggroup="Refraction" ppgtab="Transparency / Refraction" portvis="1" portgroup="Transparency / Refraction"> </item>
			<item type="input" name="refr_color" ppgvis="1" ppggroup="Refraction" ppgtab="Transparency / Refraction" portvis="1" portgroup="Transparency / Refraction"> </item>
			<item type="input" name="refr_gloss" min="0" max="1" ppgvis="1" ppggroup="Refraction" ppgtab="Transparency / Refraction" portvis="1" portgroup="Transparency / Refraction"> </item>
			<item type="input" name="refr_gloss_samples" min="0" max="128" ppgvis="1" ppggroup="Refraction" ppgtab="Transparency / Refraction" portvis="1" portgroup="Transparency / Refraction"> </item>
			<item type="input" name="refr_ior" min="0.01" max="2" ppgvis="1" ppggroup="Refraction" ppgtab="Transparency / Refraction" portvis="1" portgroup="Transparency / Refraction"> </item>
			<item type="input" name="reflectivity" min="0" max="1" ppgvis="1" ppggroup="Reflection" ppgtab="Transparency / Reflection" portvis="1" portgroup="Transparency / Reflection"> </item>
			<item type="input" name="refl_color" ppgvis="1" ppggroup="Reflection" ppgtab="Transparency / Reflection" portvis="1" portgroup="Transparency / Reflection"> </item>
			<item type="input" name="refl_gloss" min="0" max="1" ppgvis="1" ppggroup="Reflection" ppgtab="Transparency / Reflection" portvis="1" portgroup="Transparency / Reflection"> </item>
			<item type="input" name="refl_gloss_samples" min="0" max="128" ppgvis="1" ppggroup="Reflection" ppgtab="Transparency / Reflection" portvis="1" portgroup="Transparency / Reflection"> </item>
			<item type="input" name="refl_is_metal" min="0" max="-1" ppgvis="1" ppggroup="Reflection" ppgtab="Transparency / Reflection" portvis="1" portgroup="Transparency / Reflection"> </item>
			<item type="input" name="refl_base" min="0" max="1" ppgvis="1" ppggroup="Base Reflection" ppgtab="Transparency / Base Reflection" portvis="1" portgroup="Transparency / Base Reflection"> </item>
			<item type="input" name="refl_base_color" ppgvis="1" ppggroup="Base Reflection Color" ppgtab="Transparency / Base Reflection" portvis="1" portgroup="Transparency / Base Reflection"> </item>
			<item type="input" name="refl_base_gloss" min="0" max="1" ppgvis="1" ppggroup="Base Reflection Gloss" ppgtab="Transparency / Base Reflection" portvis="1" portgroup="Transparency / Base Reflection"> </item>
			<item type="input" name="refl_base_gloss_samples" min="0" max="128" ppgvis="1" ppggroup="Base Reflection Gloss Samples" ppgtab="Transparency / Base Reflection" portvis="1" portgroup="Transparency / Base Reflection"> </item>
			<item type="input" name="anisotropy" min="0.1" max="10" ppgvis="1" ppggroup="Anisotrophy" ppgtab="Transparency / Reflection" portvis="1" portgroup="Transparency / Reflection"> </item>
			<item type="input" name="anisotropy_rotation" min="0" max="1" ppgvis="1" ppggroup="Anisotrophy" ppgtab="Transparency / Reflection" portvis="1" portgroup="Transparency / Reflection"> </item>
			<item type="input" name="brdf_fresnel" min="0" max="-1" ppgvis="1" ppggroup="View Angle Dependent (BRDF)" ppgtab="Transparency / Reflection" portvis="1" portgroup="Transparency / Reflection"> </item>
			<item type="input" name="brdf_0_degree_refl" min="0" max="1" ppgvis="1" ppgtab="Transparency / Reflection" portvis="1" portgroup="Transparency / Reflection"> </item>
			<item type="input" name="brdf_90_degree_refl" min="0" max="1" ppgvis="1" ppgtab="Transparency / Reflection" portvis="1" portgroup="Transparency / Reflection"> </item>
			<item type="input" name="brdf_curve" min="0.1" max="20" ppgvis="1" ppgtab="Transparency / Reflection" portvis="1" portgroup="Transparency / Reflection"> </item>
			<item type="input" name="brdf_conserve_energy" min="0" max="-1" ppgvis="1" ppgtab="Transparency / Reflection" portvis="1" portgroup="Transparency / Reflection"> </item>
			<item type="input" name="indirect_multiplier" min="0" max="1" ppgvis="1" ppggroup="Global Illumination/Caustics" ppgtab="Indirect Illumination" portvis="1" portgroup="Indirect Illumination"> </item>
			<item type="input" name="fg_quality" min="0" max="10" ppgvis="1" ppggroup="Final Gather " ppgtab="Indirect Illumination" portvis="1" portgroup="Indirect Illumination"> </item>
			<item type="input" name="fg_quality_w" min="0" max="1" ppgvis="1" ppggroup="Final Gather " ppgtab="Indirect Illumination" portvis="1" portgroup="Indirect Illumination"> </item>
			<item type="input" name="refr_translucency" min="0" max="-1" ppgvis="1" ppggroup="Translucency" ppgtab="Indirect Illumination" portvis="1" portgroup="Indirect Illumination"> </item>
			<item type="input" name="refr_trans_color" ppgvis="1" ppggroup="Translucency" ppgtab="Indirect Illumination" portvis="1" portgroup="Indirect Illumination"> </item>
			<item type="input" name="refr_trans_weight" min="0" max="1" ppgvis="1" ppggroup="Translucency" ppgtab="Indirect Illumination" portvis="1" portgroup="Indirect Illumination"> </item>
			<item type="input" name="ao_on" min="0" max="-1" ppgvis="1" ppgtab="Ambient Occlusion" portvis="1" portgroup="Ambient Occlusion"> </item>
			<item type="input" name="ao_samples" min="0" max="128" ppgvis="1" ppgtab="Ambient Occlusion" portvis="1" portgroup="Ambient Occlusion"> </item>
			<item type="input" name="ao_distance" min="0" max="100" ppgvis="1" ppgtab="Ambient Occlusion" portvis="1" portgroup="Ambient Occlusion"> </item>
			<item type="input" name="ao_do_details" min="0" max="2" ppgvis="1" ppgtab="Ambient Occlusion" portvis="1" portgroup="Ambient Occlusion"> </item>
			<item type="input" name="ao_dark" ppgvis="1" ppgtab="Ambient Occlusion" portvis="1" portgroup="Ambient Occlusion"> </item>
			<item type="input" name="ao_ambient" ppgvis="1" ppgtab="Ambient Occlusion" portvis="1" portgroup="Ambient Occlusion"> </item>
			<item type="input" name="single_env_sample" min="0" max="-1" ppgvis="1" ppggroup="Interpolate Environment" ppgtab="Optimization" portvis="1" portgroup="Optimization"> </item>
			<item type="input" name="intr_grid_density" min="0" max="5" ppgvis="1" ppggroup="Interplolate Refraction" ppgtab="Optimization" portvis="1" portgroup="Optimization"> </item>
			<item type="input" name="refr_interpolate" min="0" max="-1" ppgvis="1" ppggroup="Interplolate Refraction" ppgtab="Optimization" portvis="1" portgroup="Optimization"> </item>
			<item type="input" name="intr_refr_samples" min="0" max="128" ppgvis="1" ppggroup="Interplolate Refraction" ppgtab="Optimization" portvis="1" portgroup="Optimization"> </item>
			<item type="input" name="refl_interpolate" min="0" max="-1" ppgvis="1" ppggroup="Interplolate Reflection" ppgtab="Optimization" portvis="1" portgroup="Optimization"> </item>
			<item type="input" name="intr_refl_samples" min="0" max="128" ppgvis="1" ppggroup="Interplolate Reflection" ppgtab="Optimization" portvis="1" portgroup="Optimization"> </item>
			<item type="input" name="intr_refl_ddist_on" min="0" max="-1" ppgvis="1" ppggroup="Interplolate Reflection" ppgtab="Optimization" portvis="1" portgroup="Optimization"> </item>
			<item type="input" name="intr_refl_ddist" min="0" max="10" ppgvis="1" ppggroup="Interplolate Reflection" ppgtab="Optimization" portvis="1" portgroup="Optimization"> </item>
			<item type="input" name="refr_depth" min="0" max="2147483647" ppgvis="1" ppggroup="Refraction " ppgtab="Optimization" portvis="1" portgroup="Optimization"> </item>
			<item type="input" name="refr_cutoff" min="0" max="1" ppgvis="1" ppggroup="Refraction " ppgtab="Optimization" portvis="1" portgroup="Optimization"> </item>
			<item type="input" name="refr_falloff_on" min="0" max="-1" ppgvis="1" ppggroup="Refraction Falloff" ppgtab="Optimization" portvis="1" portgroup="Optimization"> </item>
			<item type="input" name="refr_falloff_dist" min="0" max="10" ppgvis="1" ppggroup="Refraction Falloff" ppgtab="Optimization" portvis="1" portgroup="Optimization"> </item>
			<item type="input" name="refr_falloff_color_on" min="0" max="-1" ppgvis="1" ppggroup="Refraction Falloff" ppgtab="Optimization" portvis="1" portgroup="Optimization"> </item>
			<item type="input" name="refr_falloff_color" ppgvis="1" ppggroup="Refraction Falloff" ppgtab="Optimization" portvis="1" portgroup="Optimization"> </item>
			<item type="input" name="refl_hl_only" min="0" max="-1" ppgvis="1" ppggroup="Reflection" ppgtab="Optimization" portvis="1" portgroup="Optimization"> </item>
			<item type="input" name="refl_depth" min="0" max="2147483647" ppgvis="1" ppggroup="Reflection" ppgtab="Optimization" portvis="1" portgroup="Optimization"> </item>
			<item type="input" name="refl_cutoff" min="0" max="1" ppgvis="1" ppggroup="Reflection" ppgtab="Optimization" portvis="1" portgroup="Optimization"> </item>
			<item type="input" name="refl_falloff_color" ppgvis="1" ppggroup="Reflection Falloff" ppgtab="Optimization" portvis="1" portgroup="Optimization"> </item>
			<item type="input" name="refl_falloff_on" min="0" max="-1" ppgvis="1" ppggroup="Reflection Falloff" ppgtab="Optimization" portvis="1" portgroup="Optimization"> </item>
			<item type="input" name="refl_falloff_dist" min="0" max="10" ppgvis="1" ppggroup="Reflection Falloff" ppgtab="Optimization" portvis="1" portgroup="Optimization"> </item>
			<item type="input" name="refl_falloff_color_on" min="0" max="-1" ppgvis="1" ppggroup="Reflection Falloff" ppgtab="Optimization" portvis="1" portgroup="Optimization"> </item>
			<item type="input" name="no_visible_area_hl" min="0" max="-1" ppgvis="1" ppggroup="Remove Effects" ppgtab="Additional Options" portvis="0" portgroup="Additional Options"> </item>
			<item type="input" name="skip_inside_refl" min="0" max="-1" ppgvis="1" ppggroup="Remove Effects" ppgtab="Additional Options" portvis="0" portgroup="Additional Options"> </item>
			<item type="input" name="no_diffuse_bump" min="0" max="-1" ppgvis="1" ppggroup="Remove Effects" ppgtab="Additional Options" portvis="0" portgroup="Additional Options"> </item>
			<item type="input" name="thin_walled" min="0" max="-1" ppgvis="1" ppggroup="Add Effects" ppgtab="Additional Options" portvis="0" portgroup="Additional Options"> </item>
			<item type="input" name="do_refractive_caustics" min="0" max="-1" ppgvis="1" ppggroup="Add Effects" ppgtab="Additional Options" portvis="0" portgroup="Additional Options"> </item>
			<item type="input" name="backface_cull" min="0" max="-1" ppgvis="1" ppggroup="Add Effects" ppgtab="Additional Options" portvis="0" portgroup="Additional Options"> </item>
			<item type="input" name="propagate_alpha" min="0" max="-1" ppgvis="1" ppggroup="Add Effects" ppgtab="Additional Options" portvis="0" portgroup="Additional Options"> </item>
			<item type="input" name="bump_mode" min="0" max="8" ppgvis="1" ppggroup="Global Settings" ppgtab="Additional Options" portvis="0" portgroup="Additional Options"> </item>
			<item type="input" name="additional_color" ppgvis="1" ppggroup="Global Settings" ppgtab="Additional Options" portvis="1" portgroup="Additional Options"> </item>
			<item type="input" name="hl_vs_refl_balance" min="0" max="1" ppgvis="1" ppggroup="Global Settings" ppgtab="Additional Options" portvis="1" portgroup="Additional Options"> </item>
			<item type="input" name="cutout_opacity" min="0" max="1" ppgvis="1" ppggroup="Global Settings" ppgtab="Additional Options" portvis="1" portgroup="Additional Options"> </item>
			<item type="input" name="overall_bump" ppgvis="0" portvis="1" portgroup="Bump"> </item>
			<item type="input" name="standard_bump" ppgvis="0" portvis="1" portgroup="Bump"> </item>
			<item type="input" name="refl_base_bump" ppgvis="1" portvis="1" portgroup="Bump"> </item>
			<item type="input" name="bump_shader" ppgvis="0" portvis="1" portgroup="Bump"> </item>
			<item type="output" name="Result" ppgvis="1" portvis="1"> </item>
			<item type="output" name="result1" ppgvis="1" portvis="1"> </item>
		</layout>
		<ppglogic lang="JScript"><![CDATA[function MakeSceneRenderChannels(){
	var ChannelsNeeded = new Array("IndirectIllumination" , "Translucency");
	var RenderChannelsToCreate = new Array();

	oScene = ActiveProject.ActiveScene;
	oSceneProp = oScene.PassContainer.Properties( "Scene Render Options" );
	oRenderChannelColl = oSceneProp.RenderChannels;

	for(i=0;i<ChannelsNeeded.length;i++){
		var FoundChannel = oRenderChannelColl.Filter("","",ChannelsNeeded[i]);
	}

	for (m=0; m<ChannelsNeeded.length; m++){
				for(n=0; n<oRenderChannelColl.Count; n++){
					var ChannelExists = 0;
					if(ChannelsNeeded[m] == oRenderChannelColl(n).Name){
						 ChannelExists = 1;
						break;
						}
					else{
						 ChannelExists = 0;
						}
					}
				if(ChannelExists == 0){
					RenderChannelsToCreate.push(ChannelsNeeded[m]);//Adding the non existing channels to the "RenderChannelsToCreate" Array
					}
			}

	for(i=0;i<RenderChannelsToCreate.length;i++){
		CreateRenderChannel(RenderChannelsToCreate[i], siRenderChannelColorType, null);
	}
}

function AddItemAutoDisplayName( in_oLayout, in_strScriptName,  in_ParamName, in_eControl){
	var oItem = in_oLayout.AddItem(in_strScriptName,in_ParamName,siControlNumber);
	GUID_Layout_Controls = "{C3C4B168-8A13-11d2-BF43-00A0C982CE5D}"
	CLSID_3DMapButtonDivot = "{F5C75F11-2F05-11d3-AA95-00AA0068D2C0}";
                
	var s = "function a( sGuid )\n" +
		"a = Array( sGuid )\n" +
		"end function";
                          
	var x = Application.ExecuteScriptCode( s, "VBScript", "a", [CLSID_3DMapButtonDivot] );
                
	oItem.SetAttribute( GUID_Layout_Controls, x );
	return oItem;
	}
function AddColorAutoDisplayName( in_oLayout, in_strScriptName,  in_ParamName, in_AlphaVal ){
	var oItem = in_oLayout.AddColor(in_strScriptName,in_ParamName,in_AlphaVal);
	GUID_Layout_Controls = "{C3C4B168-8A13-11d2-BF43-00A0C982CE5D}"
	CLSID_3DMapButtonDivot = "{F5C75F11-2F05-11d3-AA95-00AA0068D2C0}";
                
	var s = "function a( sGuid )\n" +
		"a = Array( sGuid )\n" +
		"end function";
                          
	var x = Application.ExecuteScriptCode( s, "VBScript", "a", [CLSID_3DMapButtonDivot] );
                
	oItem.SetAttribute( GUID_Layout_Controls, x );
	return oItem;
	}
function OnInit()                                       
{                     
	//generating the needed Renderchannels
	MakeSceneRenderChannels();
	OnInit_RebuildLayout();    
// disabeling all the unwanted funktions
	refr_translucency_OnChanged();
	brdf_fresnel_OnChanged();
	refr_interpolate_OnChanged();
	refl_interpolate_OnChanged();
	intr_refl_ddist_on_OnChanged();
	refr_falloff_on_OnChanged();
	refr_falloff_color_on_OnChanged();
	refl_falloff_on_OnChanged();
	refl_falloff_color_on_OnChanged();
	ao_on_OnChanged();                         
}                                                       
                                                                               
function OnInit_RebuildLayout()                         
{                                                       
	var oLayout = PPG.PPGLayout;  
	var oShader =  PPG.Inspected.Item(0)                      
	oLayout.Clear();


   
	//Help file
	oLayout.SetAttribute( siUIHelpFile, "<FactoryPath>/Doc/<DocLangPref>/XSI/xsidocs.chm::/material_shaders_ArchitecturalMaterial.htm" );
   
	//Diffuse 
	oLayout.AddTab("Illumination");
	oLayout.AddGroup("Diffuse");
		oLayout.AddRow();
			AddColorAutoDisplayName(oLayout,"diffuse","Diffuse", false);
		oLayout.EndRow();
		oLayout.AddRow();
			AddItemAutoDisplayName(oLayout,"diffuse_weight","Weight",siControlNumber);
		oLayout.EndRow();
		oLayout.AddRow();
			AddItemAutoDisplayName(oLayout,"diffuse_roughness","Roughness",siControlNumber);
		oLayout.EndRow();	
	oLayout.EndGroup();
	
	//Transparency / Reflection
	oLayout.AddTab("Transparency / Reflection");
		oLayout.AddGroup("Refraction");
		oLayout.AddRow();
			AddItemAutoDisplayName(oLayout,"transparency","Transparency",siControlNumber);
		oLayout.EndRow();
		oLayout.AddRow();
			AddColorAutoDisplayName(oLayout,"refr_color","Color",false);
		oLayout.EndRow();
		oLayout.AddRow();
			AddItemAutoDisplayName(oLayout,"refr_gloss","Glossiness",siControlNumber);
		oLayout.EndRow();
		oLayout.AddRow();
			oLayout.AddItem("refr_gloss_samples","Samples",siControlNumber);
		oLayout.EndRow();
		oLayout.AddRow();
			AddItemAutoDisplayName(oLayout,"refr_ior","Index of Refraction",siControlNumber);
		oLayout.EndRow();
		oLayout.EndGroup();

		oLayout.AddGroup("Reflection");
		oLayout.AddRow();
			AddItemAutoDisplayName(oLayout,"reflectivity","Reflectivity",siControlNumber);
		oLayout.EndRow();
		oLayout.AddRow();
			AddColorAutoDisplayName(oLayout,"refl_color","Color", false);
		oLayout.EndRow();
		oLayout.AddRow();
			AddItemAutoDisplayName(oLayout,"refl_gloss","Glossiness",siControlNumber);
		oLayout.EndRow();
		oLayout.AddRow();
			oLayout.AddItem("refl_gloss_samples","Samples",siControlNumber);
		oLayout.EndRow();
		oLayout.AddRow();
			var isMetalMat = oLayout.AddItem("refl_is_metal","MetalMaterial",siControlBoolean);
		oLayout.EndRow();
		oLayout.EndGroup();

		oLayout.AddGroup("Base Reflection");
		oLayout.AddRow();
			AddItemAutoDisplayName(oLayout,"refl_base","Base Reflectivity",siControlNumber);
		oLayout.EndRow();
		oLayout.AddRow();
			AddColorAutoDisplayName(oLayout,"refl_base_color","Base Reflection Color", false);
		oLayout.EndRow();
		oLayout.AddRow();
			AddItemAutoDisplayName(oLayout,"refl_base_gloss","Glossiness",siControlNumber);
		oLayout.EndRow();
		oLayout.AddRow();
			oLayout.AddItem("refl_base_gloss_samples","Glossy Samples",siControlNumber);
		oLayout.EndRow();
		oLayout.EndGroup();


		oLayout.AddGroup("Anisotropy");
		oLayout.AddRow();
			AddItemAutoDisplayName(oLayout,"anisotropy","Anisotropy",siControlNumber);
		oLayout.EndRow();
		oLayout.AddRow();
			AddItemAutoDisplayName(oLayout,"anisotropy_rotation","Rotation",siControlNumber);
		oLayout.EndRow();
		/*oLayout.AddRow();
			var TextureItem = addTexItem(oLayout, oShader,"anisotropy_channel");
			var itemAniCh = oLayout.AddItem("anisotropy_channel","TextureSpace");

			itemAniCh.UIItems = populateComboBox(oLayout, oShader,"anisotropy_channel",itemAniCh);
			oLayout.AddEnumControl("anisotropy_channel","","TextureSpace",siControlCombo);
		oLayout.EndRow();*/
		oLayout.EndGroup();
		oLayout.AddGroup("View Angle Dependent (BRDF)");
			oLayout.AddRow();
				oLayout.AddItem("brdf_fresnel","Default (IOF)",siControlBoolean);
			oLayout.EndRow();
			oLayout.AddGroup("Manual");
					oLayout.AddRow();
						AddItemAutoDisplayName(oLayout,"brdf_0_degree_refl","Facing Reflectivity",siControlNumber);
					oLayout.EndRow();
					oLayout.AddRow();
						AddItemAutoDisplayName(oLayout,"brdf_90_degree_refl","Perpandicular Reflectivity",siControlNumber);
					oLayout.EndRow();
					oLayout.AddRow();
						AddItemAutoDisplayName(oLayout,"brdf_curve","Curve Falloff",siControlNumber);
					oLayout.EndRow();
					oLayout.AddRow();
						oLayout.AddItem("brdf_conserve_energy","Conserve Energy",siControlBoolean);
					oLayout.EndRow();
			oLayout.EndGroup();
		oLayout.EndGroup();
		
	
	//Indirect Illumination
	oLayout.AddTab("Indirect Illumination");
		oLayout.AddGroup("Global Illumination/Caustics/Final Gathering");
			oLayout.AddRow();
				AddItemAutoDisplayName(oLayout,"indirect_multiplier","Radiance",siControlNumber);
			oLayout.EndRow();
			oLayout.AddGroup("Final Gather");
				oLayout.AddRow();
					AddItemAutoDisplayName(oLayout,"fg_quality","Ray Multiplyer",siControlNumber);
				oLayout.EndRow();
				oLayout.AddRow();
					AddItemAutoDisplayName(oLayout,"fg_quality_w","Additional Multiplyer",siControlNumber);
				oLayout.EndRow();
			oLayout.EndGroup();
		oLayout.EndGroup();
		oLayout.AddGroup("Translucency");
			oLayout.AddRow();
				oLayout.AddItem("refr_translucency","Enable",siControlBoolean);
			oLayout.EndRow();
			oLayout.AddRow();
				AddColorAutoDisplayName(oLayout,"refr_trans_color","Color",false);
			oLayout.EndRow();
			oLayout.AddRow();
				AddItemAutoDisplayName(oLayout,"refr_trans_weight","Weight",siControlNumber);
			oLayout.EndRow();
		oLayout.EndGroup();

	//Ambient Occlusion
	oLayout.AddTab("Ambient Occlusion");
		
		oLayout.AddRow();
			oLayout.AddItem("ao_on","Enable",siControlBoolean);
		oLayout.EndRow();
		oLayout.AddRow();
			oLayout.AddItem("ao_samples","Samples",siControlNumber);
		oLayout.EndRow();
		oLayout.AddRow();
			AddItemAutoDisplayName(oLayout,"ao_distance","Max Distance",siControlNumber);
		oLayout.EndRow();
		oLayout.AddRow();
			var itemDetailEnhancement = oLayout.AddItem("ao_do_details","Detail Enhancement",siControlCombo);
			oLayout.EndRow();
		itemDetailEnhancement.GetAttribute(siUIItems);
			var cDetailEnhancementItems = new Array(5) ;
			cDetailEnhancementItems[0]="None";
			cDetailEnhancementItems[1]=0;
			cDetailEnhancementItems[2]="Occlusion";
			cDetailEnhancementItems[3]=1;
			cDetailEnhancementItems[4]="Color Bleed";
			cDetailEnhancementItems[5]=2;
			itemDetailEnhancement.UIItems = cDetailEnhancementItems;
		oLayout.AddRow();
			AddColorAutoDisplayName(oLayout,"ao_dark","Shadow Color",false);
		oLayout.EndRow();
		oLayout.AddRow();
			AddColorAutoDisplayName(oLayout,"ao_ambient","AmbientColor",false);
		oLayout.EndRow();
		

	//Optimization
	oLayout.AddTab("Optimization");
		oLayout.AddGroup("InterpolateReflection / Refraction");
			oLayout.AddRow();
				AddItemAutoDisplayName(oLayout,"intr_grid_density","Grid Density",siControlNumber);
			oLayout.EndRow();
			oLayout.AddRow();
				oLayout.AddItem("single_env_sample","Single Environment Sample",siControlBoolean);
			oLayout.EndRow();
			oLayout.AddGroup("Refraction");
				oLayout.AddRow();
					oLayout.AddItem("refr_interpolate","Enable",siControlBoolean);
				oLayout.EndRow();
				oLayout.AddRow();
					oLayout.AddItem("intr_refr_samples","Samples",siControlNumber);
				oLayout.EndRow();
			oLayout.EndGroup();
			oLayout.AddGroup("Reflection");
				oLayout.AddRow();
					oLayout.AddItem("refl_interpolate","Enable",siControlBoolean);
				oLayout.EndRow();
				oLayout.AddRow();
					oLayout.AddItem("intr_refl_samples","Samples",siControlNumber);
				oLayout.EndRow();
				oLayout.AddRow();
					oLayout.AddItem("intr_refl_ddist_on","Distance On",siControlBoolean);
				oLayout.EndRow();
				oLayout.AddRow();
					AddItemAutoDisplayName(oLayout,"intr_refl_ddist","Distance",siControlNumber);
				oLayout.EndRow();
			oLayout.EndGroup();
		oLayout.EndGroup();
		oLayout.AddGroup("Refraction");
			oLayout.AddRow();
				AddItemAutoDisplayName(oLayout,"refr_depth","Trace Depth",siControlNumber);
			oLayout.EndRow();
			oLayout.AddRow();
				AddItemAutoDisplayName(oLayout,"refr_cutoff","Cutoff",siControlNumber);
			oLayout.EndRow();
			oLayout.AddGroup("Falloff");
				oLayout.AddRow();
					oLayout.AddItem("refr_falloff_on","Enable",siControlBoolean);
				oLayout.EndRow();
				oLayout.AddRow();
					AddItemAutoDisplayName(oLayout,"refr_falloff_dist","Distance",siControlNumber);
				oLayout.EndRow();
				oLayout.AddRow();
					oLayout.AddItem("refr_falloff_color_on","Use End Color",siControlBoolean);
				oLayout.EndRow();
				oLayout.AddRow();
					AddColorAutoDisplayName(oLayout,"refr_falloff_Color","End Color",false);
				oLayout.EndRow();
			oLayout.EndGroup();
		oLayout.EndGroup();

		oLayout.AddGroup("Reflection");
			oLayout.AddRow();
				oLayout.AddItem("refl_hl_only","Highlights only",siControlBoolean);
			oLayout.EndRow();
			oLayout.AddRow();
				AddItemAutoDisplayName(oLayout,"refl_depth","Trace Depth",siControlNumber);
			oLayout.EndRow();
			oLayout.AddRow();
				AddItemAutoDisplayName(oLayout,"refl_cutoff","Cutoff",siControlNumber);
			oLayout.EndRow();
			oLayout.AddGroup("Falloff");
				oLayout.AddRow();
					oLayout.AddItem("refl_falloff_on","Enable",siControlBoolean);
				oLayout.EndRow();
				oLayout.AddRow();
					AddItemAutoDisplayName(oLayout,"refl_falloff_dist","Distance",siControlNumber);
				oLayout.EndRow();
				oLayout.AddRow();
					oLayout.AddItem("refl_falloff_color_on","Use End Color",siControlBoolean);
				oLayout.EndRow();
				oLayout.AddRow();
					AddColorAutoDisplayName(oLayout,"refl_falloff_Color","End Color",false);
				oLayout.EndRow();
			oLayout.EndGroup();
		oLayout.EndGroup();

	oLayout.AddTab("Additional Options");
		oLayout.AddGroup("Remove Effects");
			oLayout.AddRow();
				oLayout.AddItem("no_visible_area_hl","Turn Off Visible Area Light Highlights",siControlBoolean);
			oLayout.EndRow();
			oLayout.AddRow();
				oLayout.AddItem("skip_inside_refl","Turn Off Weak Internal Reflections",siControlBoolean);
			oLayout.EndRow();
			oLayout.AddRow();
				oLayout.AddItem("no_diffuse_bump","Turn Off Bumps for Diffuse Only",siControlBoolean);
			oLayout.EndRow();
		oLayout.EndGroup();
		oLayout.AddGroup("Add Effects");
			oLayout.AddRow();
				oLayout.AddItem("thin_walled","Enable Thin-Walled Mode",siControlBoolean);
			oLayout.EndRow();
			oLayout.AddRow();
				oLayout.AddItem("do_refractive_caustics","Enable Refractive Caustics",siControlBoolean);
			oLayout.EndRow();
			oLayout.AddRow();
				oLayout.AddItem("backface_cull","Enable Backface Culling",siControlBoolean);
			oLayout.EndRow();
			oLayout.AddRow();
				oLayout.AddItem("propagate_alpha","Transparency Uses Background Alpha Channel",siControlBoolean);
			oLayout.EndRow();
		oLayout.EndGroup();
		oLayout.AddGroup("Global Effects");
			oLayout.AddRow();
				var itemBump = oLayout.AddItem("bump_mode","Bump Mode",siControlCombo);
			oLayout.EndRow();
var tmp1 = itemBump.GetAttribute(siUIItems);
			var cBumpItems = new Array(13) ;
			cBumpItems[0]="Use Old Bump Input";
			cBumpItems[1]=0;
			cBumpItems[2]="Add (World Space)";
			cBumpItems[3]=2;
			cBumpItems[4]="Add (Object Space)";
			cBumpItems[5]=3;
			cBumpItems[6]="Add (Camera Space)";
			cBumpItems[7]=4;
			cBumpItems[8]="Set (World Space)";
			cBumpItems[9]=6;
			cBumpItems[10]="Set (Object Space)";
			cBumpItems[11]=7;
			cBumpItems[12]="Set (Camera Space)";
			cBumpItems[13]=8;
			itemBump.UIItems = cBumpItems;
			oLayout.AddRow();
				AddColorAutoDisplayName(oLayout,"additional_color","Color Blend",false);
			oLayout.EndRow();
			oLayout.AddRow();
				AddItemAutoDisplayName(oLayout,"hl_vs_refl_balance","Highlight vs Reflection Balance",siControlNumber);
			oLayout.EndRow();
			oLayout.AddRow();
				AddItemAutoDisplayName(oLayout,"cutout_opacity","Cutout Opacity",siControlNumber);
			oLayout.EndRow();
		oLayout.EndGroup();
 
	PPG.Refresh();                                      
}



function refr_translucency_OnChanged()
	{	var enabled = PPG.refr_translucency.Value 
		PPG.refr_trans_color.enable(enabled);
		PPG.refr_trans_weight.enable(enabled);	
	}
function brdf_fresnel_OnChanged()
	{	var enabled = 1 - PPG.brdf_fresnel.Value 
		PPG.brdf_0_degree_refl.enable(enabled);
		PPG.brdf_90_degree_refl.enable(enabled);
		PPG.brdf_curve.enable(enabled);
		PPG.brdf_conserve_energy.enable(enabled);
	}
function refr_interpolate_OnChanged()
	{	var enabled =PPG.refr_interpolate.Value 
		PPG.intr_refr_samples.enable(enabled);
		if(PPG.refl_interpolate.Value ==1){
			PPG.intr_grid_density.enable(1);
			}
		else{
			PPG.intr_grid_density.enable(enabled);
			}
		//PPG.refl_interpolate.enable(enabled);
	}
function refl_interpolate_OnChanged()
	{	var enabled =PPG.refl_interpolate.Value 
		PPG.intr_refl_samples.enable(enabled);
		PPG.intr_refl_ddist_on.enable(enabled);
		if(PPG.refl_interpolate.Value ==0){
			PPG.intr_refl_ddist.enable(0);
			}
		if(PPG.refl_interpolate.Value ==1){
			var overEnable =  PPG.intr_refl_ddist_on.value;
			PPG.intr_refl_ddist.enable(overEnable);
			}
		if(PPG.refr_interpolate.Value ==1){
			PPG.intr_grid_density.enable(1);
			}
		else{
			PPG.intr_grid_density.enable(enabled);
			}
	}
function intr_refl_ddist_on_OnChanged()
	{	
		var enabled=PPG.intr_refl_ddist_on.Value 
		PPG.intr_refl_ddist.enable(enabled);
	}
function refr_falloff_on_OnChanged()
	{	var enabled =PPG.refr_falloff_on.Value 
		PPG.refr_falloff_dist.enable(enabled);
		PPG.refr_falloff_color_on.enable(enabled)
		if(PPG.refr_falloff_on.Value ==0){
			PPG.refr_falloff_color.enable(0);
			}
		if(PPG.refr_falloff_on.Value ==1){
			var overEnable =  PPG.refr_falloff_color_on.value;
			PPG.refr_falloff_color.enable(overEnable);
			}
	}

function refr_falloff_color_on_OnChanged()
	{	
		var enabled=PPG.refr_falloff_color_on.Value 
		PPG.refr_falloff_color.enable(enabled);
	}
function refl_falloff_on_OnChanged()
	{	var enabled =PPG.refl_falloff_on.Value 
		PPG.refl_falloff_dist.enable(enabled);
		PPG.refl_falloff_color_on.enable(enabled)
		if(PPG.refl_falloff_on.Value ==0){
			PPG.refl_falloff_color.enable(0);
			}
		if(PPG.refl_falloff_on.Value ==1){
			var overEnable =  PPG.refl_falloff_color_on.value;
			PPG.refl_falloff_color.enable(overEnable);
			}
	}

function refl_falloff_color_on_OnChanged()
	{	
		var enabled=PPG.refl_falloff_color_on.Value 
		PPG.refl_falloff_color.enable(enabled);
	}
function ao_on_OnChanged()
	{	var enabled = ao_on.Value 
		PPG.ao_samples.enable(enabled);
		PPG.ao_distance.enable(enabled);
		PPG.ao_do_details.enable(enabled);
		PPG.ao_dark.enable(enabled);
		PPG.ao_ambient.enable(enabled);
	}]]></ppglogic>
	</definition>
</xsi_file>
