Material Database

View Source

<?xml version="1.0" encoding="utf-8" ?>
<scenedata>
    <material>
        <name>Blue paint</name>
        <phong>
            <diffuse_albedo>
                <constant>
                    <rgb>
                        <rgb>0 0 0.8</rgb>
                        <gamma>2.2</gamma>
                    </rgb>
                </constant>
            </diffuse_albedo>
            <exponent>
                <constant>1000</constant>
            </exponent>
            <fresnel_scale>
                <constant>1</constant>
            </fresnel_scale>
            <layer>0</layer>
            <ior>1.5</ior>
            <nk_data />
        </phong>
    </material>
    <material>
        <name>White underlayer</name>
        <diffuse>
            <albedo>
                <constant>
                    <rgb>
                        <rgb>0.8 0.8 0.8</rgb>
                        <gamma>2.2</gamma>
                    </rgb>
                </constant>
            </albedo>
            <random_triangle_colours>false</random_triangle_colours>
            <layer>0</layer>
        </diffuse>
    </material>
    <material>
        <name>Material</name>
        <blend>
            <a_name>Blue paint</a_name>
            <b_name>White underlayer</b_name>
            <blend>
                <shader>
                    <shader>
                        <![CDATA[def eval() real :
	0.2 + 0.001 * -meanCurvature() + 0.3 * noise(getTexCoords(0) * 100.0)]]>
</shader>
                </shader>
            </blend>
            <step_blend>true</step_blend>
        </blend>
    </material>
</scenedata>

-->