BSDF-based material¶
Description¶
This material type is a generic model which uses a BSDF child node for describing the reflection and transmission scattering properties.
Children Nodes¶
Ocean XML 3.0 example¶
<material type="bsdf" name="blue-rubber">
<bsdf type="rusinkiewicztable" name="brdf">
<spectrum type="preset" name="" id="0" value="primaryR" gain="1"/>
<spectrum type="preset" name="" id="1" value="primaryG" gain="1"/>
<spectrum type="preset" name="" id="2" value="primaryB" gain="1"/>
<flist name="theta_h">0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90</flist>
<ilist name="num_phi_h">2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3</ilist>
<ilist name="num_phi_d">1 1 2 3 3</ilist>
<ilist name="phi_h_sym">-2</ilist>
<flist name="values">
11.55 13.4572 24.1996 0 81.4196 0 0 121.733 0 0
0 0 0 0 0 0 0 0 0 0
10.4874 12.1374 20.2484 19.8404 58.7873 81.79 59.5463 86.5922 81.79 90.79
9.71542 11.3007 19.3251 21.8282 61.1622 81.79 66.633 91.773 81.79 101.26
10.0996 11.7601 21.9836 18.4938 73.7751 0 20.19 111.247 0 0
10.0043 10.8436 17.8292 17.4581 50.8335 81.79 44.5635 75.6779 81.79 90.79
8.5122 9.47786 16.4763 19.6714 50.5041 81.79 58.5099 76.6955 81.79 89.0134
<!-- Actual data skipped -->
</flist>
</bsdf>
<normalshader type="bumpmap" name="bump" scale="1" uvscale="1">
<image name="image" path="ripples.png"/>
</normalshader>
</material>