2011-06-23 08:14:03 +08:00
|
|
|
<!-- This file defines a series of BSDF instances
|
|
|
|
to be tested for consistency. This is done
|
|
|
|
using the testcase 'test_chisquare' -->
|
2011-06-23 07:08:23 +08:00
|
|
|
<scene>
|
|
|
|
<!-- Test the lambertian model -->
|
|
|
|
<bsdf type="lambertian"/>
|
|
|
|
|
|
|
|
<!-- Test the diffuse transmission model -->
|
|
|
|
<bsdf type="difftrans"/>
|
|
|
|
|
2011-06-23 10:23:07 +08:00
|
|
|
<!-- Test the Phong model -->
|
2011-06-23 07:08:23 +08:00
|
|
|
<bsdf type="phong">
|
|
|
|
<float name="diffuseAmount" value="0.5"/>
|
|
|
|
<float name="specularAmount" value="0.5"/>
|
2011-06-23 08:14:03 +08:00
|
|
|
<float name="exponent" value="20"/>
|
2011-06-23 07:08:23 +08:00
|
|
|
|
|
|
|
<spectrum name="diffuseReflectance" value="1"/>
|
|
|
|
<spectrum name="specularReflectance" value="1"/>
|
|
|
|
</bsdf>
|
|
|
|
|
2011-06-24 07:29:52 +08:00
|
|
|
<!-- Test the anisotropic Ward model -->
|
|
|
|
<bsdf type="ward">
|
|
|
|
<float name="diffuseAmount" value="0.5"/>
|
|
|
|
<float name="specularAmount" value="0.5"/>
|
|
|
|
<float name="alphaX" value="0.1"/>
|
|
|
|
<float name="alphaY" value="0.3"/>
|
|
|
|
|
|
|
|
<spectrum name="diffuseReflectance" value="1"/>
|
|
|
|
<spectrum name="specularReflectance" value="1"/>
|
|
|
|
</bsdf>
|
|
|
|
|
|
|
|
<!-- Test the two-sided BRDF adapter -->
|
2011-06-23 10:23:07 +08:00
|
|
|
<bsdf type="twosided">
|
|
|
|
<bsdf type="phong">
|
|
|
|
<float name="diffuseAmount" value="0.5"/>
|
|
|
|
<float name="specularAmount" value="0.5"/>
|
|
|
|
<float name="exponent" value="20"/>
|
2011-06-23 08:14:03 +08:00
|
|
|
|
2011-06-23 10:23:07 +08:00
|
|
|
<spectrum name="diffuseReflectance" value="1"/>
|
|
|
|
<spectrum name="specularReflectance" value="1"/>
|
|
|
|
</bsdf>
|
|
|
|
</bsdf>
|
|
|
|
|
|
|
|
<!-- Test the microfacet model -->
|
2011-06-23 08:14:03 +08:00
|
|
|
<bsdf type="microfacet">
|
|
|
|
<float name="diffuseAmount" value="0.5"/>
|
|
|
|
<float name="specularAmount" value="0.5"/>
|
|
|
|
<float name="alphaB" value="0.1"/>
|
|
|
|
<spectrum name="diffuseReflectance" value="1"/>
|
|
|
|
<spectrum name="specularReflectance" value="1"/>
|
|
|
|
</bsdf>
|
2011-06-23 10:23:07 +08:00
|
|
|
|
|
|
|
<!-- Test the rough metal model -->
|
|
|
|
<bsdf type="roughmetal">
|
|
|
|
<float name="alphaB" value="0.1"/>
|
|
|
|
</bsdf>
|
2011-06-24 05:04:21 +08:00
|
|
|
|
|
|
|
<!-- Test the rough glass model with the
|
|
|
|
Beckmann microfacet distribution -->
|
|
|
|
<bsdf type="roughglass">
|
|
|
|
<string name="distribution" value="beckmann"/>
|
|
|
|
<float name="alpha" value=".3"/>
|
|
|
|
<float name="intIOR" value="1.5"/>
|
|
|
|
<float name="extIOR" value="1.0"/>
|
|
|
|
</bsdf>
|
|
|
|
|
|
|
|
<!-- Test the rough glass model with the
|
|
|
|
GGX microfacet distribution -->
|
|
|
|
<bsdf type="roughglass">
|
|
|
|
<string name="distribution" value="ggx"/>
|
|
|
|
<float name="alpha" value="0.4"/>
|
|
|
|
<float name="intIOR" value="1.5"/>
|
|
|
|
<float name="extIOR" value="1.0"/>
|
|
|
|
</bsdf>
|
|
|
|
|
|
|
|
<!-- Test the rough glass model with the
|
|
|
|
Phong microfacet distribution -->
|
|
|
|
<bsdf type="roughglass">
|
|
|
|
<string name="distribution" value="phong"/>
|
|
|
|
<float name="alpha" value="0.3"/>
|
|
|
|
<float name="intIOR" value="1.5"/>
|
|
|
|
<float name="extIOR" value="1.0"/>
|
|
|
|
</bsdf>
|
|
|
|
|
2011-06-23 07:08:23 +08:00
|
|
|
<camera type="perspective"/>
|
|
|
|
</scene>
|