Material Database

View Source

<?xml version="1.0" encoding="utf-8" ?>
<scenedata>
    <material>
        <uid>30</uid>
        <name>rock</name>
        <phong>
            <texture>
                <path>PACKED_0_beach rock tile.jpg</path>
                <a>0</a>
                <b>0.6000000000000001</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>
            <texture>
                <path>PACKED_1_beach rock tile bump.jpg</path>
                <a>0</a>
                <b>0.01</b>
                <c>-0.004</c>
                <uv_set_index>0</uv_set_index>
                <exponent>1</exponent>
                <tex_coord_generation>
                    <uv>
                        <matrix>1 0 0 1</matrix>
                        <translation>0 0</translation>
                    </uv>
                </tex_coord_generation>
                <smooth>false</smooth>
            </texture>
            <texture>
                <path>PACKED_1_beach rock tile bump.jpg</path>
                <a>0</a>
                <b>0.005</b>
                <c>0</c>
                <uv_set_index>0</uv_set_index>
                <exponent>1</exponent>
                <tex_coord_generation>
                    <uv>
                        <matrix>1 0 0 1</matrix>
                        <translation>0 0</translation>
                    </uv>
                </tex_coord_generation>
                <smooth>false</smooth>
            </texture>
            <shared_shader_info>
                <shader>
                    <![CDATA[]]>
</shader>
            </shared_shader_info>
            <diffuse_albedo>
                <texture>
                    <texture_index>0</texture_index>
                </texture>
            </diffuse_albedo>
            <exponent>
                <constant>50</constant>
            </exponent>
            <bump>
                <texture>
                    <texture_index>2</texture_index>
                </texture>
            </bump>
            <displacement>
                <texture>
                    <texture_index>1</texture_index>
                </texture>
            </displacement>
            <fresnel_scale>
                <constant>0.75</constant>
            </fresnel_scale>
            <layer>0</layer>
            <ior>1.35</ior>
            <nk_data />
        </phong>
    </material>
    <material>
        <uid>31</uid>
        <name>snow</name>
        <phong>
            <texture>
                <path>PACKED_2_beach rock tile blurbump.jpg</path>
                <a>0</a>
                <b>0.01</b>
                <c>-0.004</c>
                <uv_set_index>0</uv_set_index>
                <exponent>1</exponent>
                <tex_coord_generation>
                    <uv>
                        <matrix>1 0 0 1</matrix>
                        <translation>0 0</translation>
                    </uv>
                </tex_coord_generation>
                <smooth>false</smooth>
            </texture>
            <texture>
                <path>PACKED_2_beach rock tile blurbump.jpg</path>
                <a>0</a>
                <b>0.005</b>
                <c>0</c>
                <uv_set_index>0</uv_set_index>
                <exponent>1</exponent>
                <tex_coord_generation>
                    <uv>
                        <matrix>1 0 0 1</matrix>
                        <translation>0 0</translation>
                    </uv>
                </tex_coord_generation>
                <smooth>false</smooth>
            </texture>
            <shared_shader_info>
                <shader>
                    <![CDATA[]]>
</shader>
            </shared_shader_info>
            <diffuse_albedo>
                <constant>
                    <rgb>
                        <rgb>0.8 0.8 0.8</rgb>
                        <gamma>2.2</gamma>
                    </rgb>
                </constant>
            </diffuse_albedo>
            <exponent>
                <constant>10</constant>
            </exponent>
            <bump>
                <texture>
                    <texture_index>1</texture_index>
                </texture>
            </bump>
            <displacement>
                <texture>
                    <texture_index>0</texture_index>
                </texture>
            </displacement>
            <fresnel_scale>
                <constant>0.5</constant>
            </fresnel_scale>
            <layer>0</layer>
            <ior>1.2</ior>
            <nk_data />
        </phong>
    </material>
    <material>
        <uid>8</uid>
        <name>snowy rock</name>
        <blend>
            <shared_shader_info>
                <shader>
                    <![CDATA[]]>
</shader>
            </shared_shader_info>
            <a_name>rock</a_name>
            <b_name>snow</b_name>
            <blend>
                <shader>
                    <param>
                        <real>
                            <name>SnowY</name>
                            <description>snow coverage in the Y direction</description>
                            <min>-1</min>
                            <max>1</max>
                            <value>0</value>
                        </real>
                    </param>
                    <param>
                        <real>
                            <name>SnowZ</name>
                            <description>snow coverage in the Z direction</description>
                            <min>-1</min>
                            <max>1</max>
                            <value>1</value>
                        </real>
                    </param>
                    <param>
                        <real>
                            <name>SnowX</name>
                            <description>snow coverage in the X direction</description>
                            <min>-1</min>
                            <max>1</max>
                            <value>0</value>
                        </real>
                    </param>
                    <param>
                        <real>
                            <name>SnowCover</name>
                            <description>proportion of rock to snow (lower is more snow)</description>
                            <min>-1</min>
                            <max>1</max>
                            <value>0.5</value>
                        </real>
                    </param>
                    <shader>
                        <![CDATA[def eval() real :
	if(dot(normalWS(), vec3(paramSnowX(), paramSnowY(), paramSnowZ())) > paramSnowCover(),
                1.0,
                0.0)
]]>
</shader>
                </shader>
            </blend>
            <step_blend>false</step_blend>
        </blend>
    </material>
</scenedata>

-->