Double-sided material


Material This special material allows defining different properties for the two sides of the geometry surface. It uses two other material definitions, one for each side. Only reflectances are considered, this material has zero transmission by construction.

Children Nodes

Material material_f

The front side material

Material material_b

The back side material

Ocean XML 6.1 example

<material type="doublesided" name="material">
     <material type="generic" name="material_f">
             <bsdf type="reflective" name="bsdf" rereflections="true">
                     <roughness type="phong" name="roughness">
                             <scalarshader type="uniform" name="exponent" value="500"/>
                     <intlaw type="cfresnel" name="intlaw">
                             <dielectricfunc type="linked" name="dielectricfunc" target="ocean-metals::Ti"/>
     <material type="generic" name="material_b">
             <bsdf type="oren_nayar" name="bsdf">
                     <filtershader type="uniform" name="diffuse">
                             <spectrum type="tabulated" name="spectrum">
                                     3.8e-07 0.2     4.37e-07        0.25    4.94e-07        0.3     5.51e-07        0.35    6.09e-07        0.5     6.66e-07        0.6     7.23e-07        0.7     7.8e-07 0.7
                     <scalarshader type="uniform" name="sigma" value="1"/>