Material Database

View Source

<?xml version="1.0" encoding="utf-8" ?>
<scenedata>
    <medium>
        <name>Material Medium</name>
        <precedence>10</precedence>
        <basic>
            <ior>1.5</ior>
            <cauchy_b_coeff>0</cauchy_b_coeff>
            <step_size>0.1</step_size>
            <absorption_coefficient>
                <shader>
                    <param>
                        <real>
                            <name>Frequency</name>
                            <description>Controls how fast the colour changes.</description>
                            <min>0</min>
                            <max>100</max>
                            <value>25</value>
                        </real>
                    </param>
                    <param>
                        <real>
                            <name>AbsorptionScale</name>
                            <description>Controls how strong the absorption is.</description>
                            <min>0</min>
                            <max>10000</max>
                            <value>100</value>
                        </real>
                    </param>
                    <shader>
                        <![CDATA[def eval(vec3 pos) vec3 : 
	noise3Valued(pos * paramFrequency()) * paramAbsorptionScale()]]>
</shader>
                    <wavelength_dependent>true</wavelength_dependent>
                </shader>
            </absorption_coefficient>
        </basic>
    </medium>
    <material>
        <name>multi-coloured glass</name>
        <specular>
            <internal_medium_name>Material Medium</internal_medium_name>
            <transparent>true</transparent>
            <layer>0</layer>
        </specular>
    </material>
</scenedata>

-->