Rendu
A lightweight rendering engine for experimentations
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
GPUShaders::Frag::Atmosphere_debug Class Reference

Atmosphere debug fragment shader. More...

Public Member Functions

vec3 computeEstimate (vec3 rayOrigin, vec3 rayDir, vec3 sunDir, AtmosphereParameters params)
 
void main ()
 

Public Attributes

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.
 

Detailed Description

Atmosphere debug fragment shader.

See also
GPUShaders::Common::Atmosphere

Member Function Documentation

◆ computeEstimate()

vec3 GPUShaders::Frag::Atmosphere_debug::computeEstimate ( vec3  rayOrigin,
vec3  rayDir,
vec3  sunDir,
AtmosphereParameters  params 
)
inline

Cheap sky color estimation.

Parameters
rayOriginthe ray origin
rayDirthe ray direction
sunDirthe light direction
paramsthe 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: