DIE Engine
Loading...
Searching...
No Matches
Sun Struct Reference

Sun lighting properties. More...

#include <env.h>

Public Attributes

float hour
 sun azimuth, in hours (0 .. 24)
float angle
 sun tilt, in hours (0 .. 24)
uint32_t ambientColor
 packed RGB ambient color
uint32_t rayColor
 packed RGB direct ray color
float ambientStrength
 ambient intensity (0.0 .. 1.0)
float rayStrength
 ray intensity (0.0 .. 1.0)

Detailed Description

Sun lighting properties.

DIE ENGINE Depth Integration Engine / A modern ray-caster (c) Fred's Lab 2024-2026 Frédéric Meslin / info@.nosp@m.fred.nosp@m.slab..nosp@m.net SPDX-License-Identifier: MIT If used commercially, contributions, donations are highly appreciated.

environment properties

Note
hour and angle are expressed in hours (12 = half a circle)

Member Data Documentation

◆ ambientColor

uint32_t Sun::ambientColor

packed RGB ambient color

◆ ambientStrength

float Sun::ambientStrength

ambient intensity (0.0 .. 1.0)

◆ angle

float Sun::angle

sun tilt, in hours (0 .. 24)

◆ hour

float Sun::hour

sun azimuth, in hours (0 .. 24)

◆ rayColor

uint32_t Sun::rayColor

packed RGB direct ray color

◆ rayStrength

float Sun::rayStrength

ray intensity (0.0 .. 1.0)


The documentation for this struct was generated from the following file: