120 lines
2.8 KiB
XML
120 lines
2.8 KiB
XML
<?xml version='1.0' encoding='utf-8'?>
|
|
|
|
<!--
|
|
|
|
NOTE: Mitsuba uses a different coordinate system!
|
|
Conversion is: Swap Y and Z and then negate X
|
|
|
|
-->
|
|
<scene version="0.5.0">
|
|
<integrator type="path">
|
|
<integer name="maxDepth" value="2" />
|
|
|
|
</integrator>
|
|
|
|
<shape type="sphere">
|
|
<float name="radius" value="1"/>
|
|
|
|
|
|
%IF_DEFAULT%
|
|
<bsdf type="roughplastic">
|
|
<string name="distribution" value="ggx"/>
|
|
<rgb name="diffuseReflectance" value="%BASECOLOR%" />
|
|
<float name="intIOR" value="%IOR%"/>
|
|
<float name="alpha" value="%ALPHA%"/>
|
|
</bsdf>
|
|
|
|
%ENDIF_DEFAULT%
|
|
|
|
%IF_METALLIC%
|
|
|
|
<bsdf type="roughconductor">
|
|
<string name="distribution" value="ggx" />
|
|
<float name="alpha" value="%ALPHA%" />
|
|
<string name="material" value="%MATERIAL_SRC%" />
|
|
</bsdf>
|
|
|
|
%ENDIF_METALLIC%
|
|
|
|
%IF_CLEARCOAT%
|
|
|
|
<bsdf type="roughcoating">
|
|
<string name="distribution" value="ggx" />
|
|
<float name="alpha" value="0.0001" />
|
|
<float name="thickness" value="1.0" />
|
|
<float name="intIOR" value="1.51" />
|
|
|
|
<bsdf type="roughconductor">
|
|
<string name="distribution" value="ggx" />
|
|
<float name="alpha" value="%ALPHA%" />
|
|
<string name="material" value="%MATERIAL_SRC%" />
|
|
</bsdf>
|
|
|
|
</bsdf>
|
|
|
|
%ENDIF_CLEARCOAT%
|
|
|
|
</shape>
|
|
|
|
<!--
|
|
<emitter type="point">
|
|
<spectrum name="intensity" value="100.0" />
|
|
<point name="position" x="-10" z="-10" y="10" />
|
|
</emitter>
|
|
|
|
<emitter type="point">
|
|
<spectrum name="intensity" value="100.0" />
|
|
<point name="position" x="10" z="-10" y="10" />
|
|
</emitter>
|
|
|
|
-->
|
|
|
|
<shape type="sphere">
|
|
<point name="center" x="-10" z="-10" y="10" />
|
|
<float name="radius" value="4.0"/>
|
|
<emitter type="area">
|
|
<spectrum name="radiance" value="3.0" />
|
|
</emitter>
|
|
</shape>
|
|
|
|
<shape type="sphere">
|
|
<point name="center" x="10" z="-10" y="10" />
|
|
<float name="radius" value="4.0"/>
|
|
<emitter type="area">
|
|
<spectrum name="radiance" value="3.0" />
|
|
</emitter>
|
|
</shape>
|
|
|
|
<emitter type="envmap">
|
|
<string name="filename" value="tex/envmap.png" />
|
|
<!-- <string name="filename" value="tex/white.png" /> -->
|
|
<float name="gamma" value="1.0" />
|
|
|
|
</emitter>
|
|
|
|
<sensor type="perspective">
|
|
<float name="farClip" value="15"/>
|
|
<float name="focusDistance" value="3.0"/>
|
|
<!-- <float name="fov" value="40"/> -->
|
|
<float name="fov" value="40"/>
|
|
<string name="fovAxis" value="x"/>
|
|
<float name="nearClip" value="0.05"/>
|
|
<transform name="toWorld">
|
|
<lookat target="0, 0, 0" origin="0, 0, -3.5" up="0, 1, 0"/>
|
|
</transform>
|
|
|
|
<sampler type="ldsampler">
|
|
<integer name="sampleCount" value="32"/>
|
|
</sampler>
|
|
|
|
<film type="hdrfilm">
|
|
<boolean name="banner" value="false"/>
|
|
|
|
<integer name="height" value="512"/>
|
|
<integer name="width" value="512"/>
|
|
|
|
<rfilter type="box"/>
|
|
</film>
|
|
</sensor>
|
|
</scene>
|