Double-sided material

From Eclat-Digital Ocean 2014 Documentation
Jump to: navigation, search
material-2014.png

Description

This special material allows defining different properties for the two sides of the geometry surface. It uses two other material definitions, one for each side. Only reflectances are considered, this material has zero transmission by construction.

Children nodes

material-2014.png material_f
Material : The front side material
material-2014.png material_b
Material : The back side material

Ocean XML 2.0 example

<?xml version="1.0" encoding="UTF-8"?>
<oceanroot version="2.0">
<material type="doublesided" name="sheet">
	<material type="reflective" name="material_f" rereflections="true" polarized="true">
		<intlaw type="cfresnel" name="intlaw">
			<medium type="linked" name="medium" target="ocean-metals::Ti"/>
		</intlaw>
		<roughness type="phong" name="roughness">
			<scalarshader type="uniform" name="exponent" value="500"/>
		</roughness>
	</material>
	<material type="oren_nayar" name="material_b">
		<filtershader type="uniform" name="diffuse">
			<spectrum type="tabulated" start="380E-9" end="780E-9" num="8">
				0.2 0.25 0.3 0.35 0.5 0.6 0.7 0.7
			</spectrum>	
		</filtershader>
		<scalarshader type="uniform" name="sigma" value="1"/>
	</material>
</material>
</oceanroot>

See also

Material types