Disc environment

From Eclat-Digital Ocean 2014 Documentation
Jump to: navigation, search


Scene lit by a disc environment 10 times larger than the sun
environment-2014.png

Description

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-2014.png spectrum
Spectrum : Radiance spectrum inside the disc's radius

Parameters

direction
vec3
The disc center direction
radius
real
The disc angular radius


Ocean XML 2.0 example

<?xml version="1.0" encoding="UTF-8"?>
<oceanroot version="2.0">
<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>
</oceanroot>

See also

Environment types