Avara3D 0.2.0
C++ API reference
Fog.h
1//
2// Fog.h
3// avara3d
4//
5// Created by Morgan Davis on 8/9/26.
6// Copyright © 2026 Morgan K Davis. All rights reserved.
7//
8
9#ifndef AVARA3D_VISUAL_FOG_H
10#define AVARA3D_VISUAL_FOG_H
11
12#include "a3d/Color.h"
13
14namespace a3d {
15
17 struct Fog {
18
19 // [Public Member Variables]
20
22 float startDistance {0.0f};
24 1000.0f};
26 float transitionExponent {1.0f};
27 };
28
29}
30
31#endif // AVARA3D_VISUAL_FOG_H
Represents a normalized RGBA color.
Definition: Color.h:27
Configures distance-based fog for a VisualWorld.
Definition: Fog.h:17
float transitionExponent
Fog transition exponent; must be non-negative.
Definition: Fog.h:26
Color color
Fog color.
Definition: Fog.h:21
float endDistance
Distance where fog reaches full strength, in scene units; must be greater than startDistance.
Definition: Fog.h:23
float startDistance
Distance where fog begins, in scene units; must be non-negative.
Definition: Fog.h:22