Material Database

View Source

<?xml version="1.0" encoding="utf-8" ?>
<scenedata>
    <medium>
        <name>previewmaterial_medium</name>
        <precedence>2</precedence>
        <basic>
            <ior>1.33</ior>
            <cauchy_b_coeff>0</cauchy_b_coeff>
            <absorption_coefficient_spectrum>
                <rgb>
                    <rgb>10.5424 1.81295 0.177619</rgb>
                    <gamma>1</gamma>
                </rgb>
            </absorption_coefficient_spectrum>
            <subsurface_scattering>
                <scattering_coefficient_spectrum>
                    <uniform>
                        <value>100</value>
                    </uniform>
                </scattering_coefficient_spectrum>
                <phase_function>
                    <uniform />
                </phase_function>
            </subsurface_scattering>
        </basic>
    </medium>
    <material>
        <name>previewmaterial</name>
        <specular>
            <internal_medium_name>previewmaterial_medium</internal_medium_name>
            <transparent>true</transparent>
            <bump>
                <shader>
                    <shader>
                        <![CDATA[def eval() real :
	abs(noise(getTexCoords(0)*10.))*0.002
	+ abs(noise (getTexCoords(0) * 20.))  * 0.001]]>
</shader>
                </shader>
            </bump>
            <displacement>
                <shader>
                    <shader>
                        <![CDATA[def eval() real :
	abs(noise(getTexCoords(0)*2.5))*0.008
	+ abs(noise (getTexCoords(0) * 5.))  * 0.004]]>
</shader>
                </shader>
            </displacement>
            <layer>0</layer>
        </specular>
    </material>
</scenedata>

-->