|
R2 Core Shaders
|
Types related to fog rendering. More...

Go to the source code of this file.
Data Structures | |
| struct | R2_fog_t |
| The type of fog parameters. More... | |
Functions | |
| float | R2_fogAmountLinear (const R2_fog_t fog, const float z) |
| float | R2_fogAmountQuadratic (const R2_fog_t fog, const float z) |
| float | R2_fogAmountQuadraticInverse (const R2_fog_t fog, const float z) |
| vec3 | R2_fogLinear (const R2_fog_t fog, const vec3 surface, const float z) |
| vec3 | R2_fogQuadratic (const R2_fog_t fog, const vec3 surface, const float z) |
| vec3 | R2_fogQuadraticInverse (const R2_fog_t fog, const vec3 surface, const float z) |
Types related to fog rendering.
Definition in file R2Fog.h.
| float R2_fogAmountLinear | ( | const R2_fog_t | fog, |
| const float | z | ||
| ) |
| float R2_fogAmountQuadratic | ( | const R2_fog_t | fog, |
| const float | z | ||
| ) |
| float R2_fogAmountQuadraticInverse | ( | const R2_fog_t | fog, |
| const float | z | ||
| ) |
| vec3 R2_fogLinear | ( | const R2_fog_t | fog, |
| const vec3 | surface, | ||
| const float | z | ||
| ) |
| vec3 R2_fogQuadratic | ( | const R2_fog_t | fog, |
| const vec3 | surface, | ||
| const float | z | ||
| ) |
Calculate quadratic fog for the given positive eye-space Z value z.
| fog | Fog parameters |
| surface | The current surface color |
| z | The positive eye-space Z value of the surface |
Definition at line 92 of file R2Fog.h.
| vec3 R2_fogQuadraticInverse | ( | const R2_fog_t | fog, |
| const vec3 | surface, | ||
| const float | z | ||
| ) |
Calculate inverse quadratic fog for the given positive eye-space Z value z.
| fog | Fog parameters |
| surface | The current surface color |
| z | The positive eye-space Z value of the surface |
Definition at line 109 of file R2Fog.h.
1.8.12