Direct sun environment

Description

../../../_images/directsun.jpg

Scene lit by a direct sun environment

Environment The direct sun environment corresponds to the direct radiation from the sun attenuated by the atmosphere. It automatically computes the solar spectrum based on standard ASTM G173-03 tables, and depending on the following parameters:

  • The air mass
  • The sun position in the sky
  • The direct normal irradiance (DHI) value

This environment only includes direct light light. The diffuse contribution should be modelled using a Perez sky environment, CIE Sky environment or Uniform environment, and added to this one with an additive environment.

Children Nodes

none

Parameters

name type description
sunpos vec3 The sun direction
airmass real The air mass, which depends on altitude and sun elevation
dni real The Direct Normal Irradiance, in W/m²

Ocean XML 3.0 example

<environment type="directsun" name="directsun" sunpos="-0.462883 -0.82007 0.336488" airmass="2.93122" dni="325"/>