Material Database

View Source

<?xml version="1.0" encoding="utf-8" ?>
<scenedata>
    <material>
        <name>Unnamed</name>
        <phong>
            <diffuse_albedo>
                <shader>
                    <texture>
                        <path>marble_seed1.jpg</path>
                        <a>0</a>
                        <b>1</b>
                        <c>0</c>
                        <uv_set_index>0</uv_set_index>
                        <exponent>2.2</exponent>
                        <tex_coord_generation>
                            <uv>
                                <matrix>1 0 0 1</matrix>
                                <translation>0 0</translation>
                            </uv>
                        </tex_coord_generation>
                        <smooth>false</smooth>
                    </texture>
                    <shader>
                        <![CDATA[def eval(vec3 pos) vec3 : 
	sample2DTextureVec3(0, 
		getTexCoords(0)*0.2 + vec2(fbm(getTexCoords(0)*0.2, 10))
	)]]>
</shader>
                </shader>
            </diffuse_albedo>
            <exponent>
                <constant>10000</constant>
            </exponent>
            <fresnel_scale>
                <constant>1</constant>
            </fresnel_scale>
            <layer>0</layer>
            <ior>1.6</ior>
            <nk_data />
        </phong>
    </material>
</scenedata>

-->