Material Database

View Source

<?xml version="1.0" encoding="utf-8"?>
<scenedata>
	<material>
		<name>velvet</name>
		<diffuse>
			<albedo>
				<shader>
						<param>
							<colour3>
								<name>C1</name>
								<description></description>
								<value>1 0.9913928508758545 0.8912620544433594</value>
							</colour3>
						</param>
						<param>
							<colour3>
								<name>C2</name>
								<description></description>
								<value>0.06190747395157814 0 0</value>
							</colour3>
						</param>
						<param>
							<real>
								<name>R1</name>
								<description></description>
								<min>0.5</min>
								<max>1.5</max>
								<value>1.05</value>
							</real>
						</param>
						<param>
							<real>
								<name>R2</name>
								<description></description>
								<min>0</min>
								<max>2</max>
								<value>0.49</value>
							</real>
						</param>
						<param>
							<real>
								<name>R3</name>
								<description></description>
								<min>0</min>
								<max>1.5</max>
								<value>0.9225</value>
							</real>
						</param>
						<shader><![CDATA[def eval(vec3 pos) vec3 :
	let
		paramC1 = paramC1()
		paramC2 = paramC2()
		R1= paramR1()
		R2= paramR2()
		R3= paramR3()
		m = maxCosTheta()	
	in
	lerp(
		paramC1, paramC2,
		R1 - pow(R3 - (R2*(maxCosTheta() + minCosTheta())), 5.0)
)]]></shader>
				</shader>
			</albedo>
		</diffuse>
	</material>
</scenedata>

-->