Home > Materials > Plastics > Rippled plastic > View Source

View Source

<?xml version="1.0" encoding="utf-8"?>

<scenedata>
	<material>
		<name>gloss_layer</name>
		<phong>
			<exponent>
				<constant>250</constant>
			</exponent>
			<ior>1.6443</ior>
			<diffuse_albedo>
				<constant><rgb>
					<rgb>0.768842 0.756816 0.745585</rgb>
					<gamma>2.2</gamma>
				</rgb></constant>
			</diffuse_albedo>
			<bump>
				<shader>
					<shader>
						<![CDATA[
					def eval() real :
						fbm(getTexCoords(0)*100.0, 2)*0.0005
						]]>
					</shader>
				</shader>
			</bump>
		</phong>
	</material>

	<material>
		<name>oren_layer</name>
		<oren_nayar>
			<sigma><constant>0.300000</constant></sigma>
			<albedo>
				<constant><rgb>
					<rgb>0.768842 0.756816 0.745585</rgb>
					<gamma>2.2</gamma>
				</rgb></constant>
			</albedo>
		</oren_nayar>
	</material>

	<material>
		<name>body</name>
		<blend>
			<a_name>gloss_layer</a_name>
			<b_name>oren_layer</b_name>
			<step_blend>false</step_blend>
			<blend>
				<constant>0.3</constant>
			</blend>
		</blend>
	</material>

</scenedata>