Disc environment

Description

../../../_images/disc.jpg

Scene lit by a disc environment 10 times larger than the sun

Environment This environment illuminates the scene from an infinitely distant uniform disc defined by its angular radius and radiance. This can model for instance sun illumination outside the atmosphere.

Children Nodes

Spectrum spectrum Radiance spectrum inside the disc’s radius

Parameters

name type description
direction vec3 The disc center direction
radius real The disc angular radius in degrees

Ocean XML 3.0 example

<environment type="disc" name="disc">
   <prm direction="0.839081 -0.427533 0.336392"/>
   <prm radius="2.5"/>
   <spectrum type="blackbody" name="spectrum" temp="6500" gain="1"/>
</environment>