vkmEngine 1.0.15
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::SkySettings Struct Reference

Sky and image-based lighting: what the world is lit by and set against. More...

#include <environment.h>

Public Attributes

std::string hdrPath
 Equirect HDR baked into IBL + skybox; empty = none.
float intensity = 1.0f
 Indirect-lighting + skybox brightness.
bool showSkybox = true
 The IBL still lights the scene when off.
float rayleigh = 1.0f
 Blue-sky scattering scale.
float mie = 5.0f
 Haze / sun glow scattering scale; 1 is pristine air.
float mieG = 0.76f
float sunDiscIntensity = 5.0f
float aerialPerspective = 1.0f
float sunElevation = 50.0f
 Degrees above the horizon. Negative is night.
float sunAzimuth = 30.0f
 Degrees around the horizon, from +Z toward +X.
glm::vec3 lightColor = {1.0f, 0.96f, 0.90f}
 With the sun overhead.
float lightIntensity = 3.0f
 Illuminance with the sun overhead.

Static Public Attributes

static constexpr float MAX_MIE_G = 0.99f
 At 1 the phase function divides zero by zero.

Detailed Description

Sky and image-based lighting: what the world is lit by and set against.

Member Data Documentation

◆ mieG

float Vkm::Engine::SkySettings::mieG = 0.76f

Phase asymmetry, 0..MAX_MIE_G; higher = tighter glow.

◆ sunDiscIntensity

float Vkm::Engine::SkySettings::sunDiscIntensity = 5.0f

The drawn disc's radiance per unit of lightIntensity, added over the glow; its size is the key light's sourceRadius.

◆ aerialPerspective

float Vkm::Engine::SkySettings::aerialPerspective = 1.0f

How much of the sky's air lies in front of the scene, as a scale on distance (Unreal's aerial perspective distance scale): 1 is the planet's, 0 none.


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