Atmosphere debug fragment shader.
More...
|
| vec3 | computeEstimate (vec3 rayOrigin, vec3 rayDir, vec3 sunDir, AtmosphereParameters params) |
| |
| void | main () |
| |
|
|
in vec2 | uv |
| | Texture coordinates.
|
| |
|
uniform mat4 | clipToWorld |
| | Clip-to-world space transformation matrix.
|
| |
|
uniform vec3 | viewPos |
| | The position in view space.
|
| |
|
uniform vec3 | lightDirection |
| | The light direction in world space.
|
| |
|
out vec4 | fragColor |
| | Atmosphere color.
|
| |
Atmosphere debug fragment shader.
- See also
- GPUShaders::Common::Atmosphere
◆ computeEstimate()
| vec3 GPUShaders::Frag::Atmosphere_debug::computeEstimate |
( |
vec3 |
rayOrigin, |
|
|
vec3 |
rayDir, |
|
|
vec3 |
sunDir, |
|
|
AtmosphereParameters |
params |
|
) |
| |
|
inline |
Cheap sky color estimation.
- Parameters
-
| rayOrigin | the ray origin |
| rayDir | the ray direction |
| sunDir | the light direction |
| params | the atmosphere parameters |
- Returns
- the estimated radiance
◆ main()
| void GPUShaders::Frag::Atmosphere_debug::main |
( |
| ) |
|
|
inline |
Simulate sky color based on an atmospheric scattering approximate model.
The documentation for this class was generated from the following file:
- resources/common/shaders/background/atmosphere_debug.frag