Support Forum       G3D Web Page     
Public Member Functions | Public Attributes | List of all members
glsl::FogVolumeSurface_render_pix Class Reference

Shader program. More...

Public Member Functions

float hash (vec2 p)
 
 layout (location=0) out float4 _accum
 (Ar, Ag, Ab, Aa) More...
 
 layout (location=1) out float4 _modulate
 (Br, Bg, Bb, D^2) More...
 
 layout (location=2) out float2 _refraction
 (deltax, deltay) More...
 
void main ()
 
Point3 project (Vector4 v)
 
Radiance3 shade (Point3 wsPosition, Vector3 w_o)
 

Public Attributes

uniform mat4x3 cameraToWorldMatrix
 
uniform vec3 clipInfo
 
const float coveragePerStep = 0.012
 
uniform sampler2D depthBuffer
 
const Color3 fogColor = Color3(0.1,0.6,0.95) * 0.2
 
const float maxBackgroundDistance = 60.0
 
const float minRayMarchDistance = 7.0
 
const float nearPlaneZ = -1.0
 
uniform float projectionMatrix22
 
uniform float projectionMatrix23
 
const float rayMarchStep = 0.12
 
uniform float tanHalfFieldOfViewY
 

Detailed Description

Shader program.

Member Function Documentation

◆ hash()

float glsl::FogVolumeSurface_render_pix::hash ( vec2  p)
inline

◆ layout() [1/3]

glsl::FogVolumeSurface_render_pix::layout ( location  = 0)

(Ar, Ag, Ab, Aa)

◆ layout() [2/3]

glsl::FogVolumeSurface_render_pix::layout ( location  = 1)

(Br, Bg, Bb, D^2)

◆ layout() [3/3]

glsl::FogVolumeSurface_render_pix::layout ( location  = 2)

(deltax, deltay)

◆ main()

void glsl::FogVolumeSurface_render_pix::main ( void  )
inline

◆ project()

Point3 glsl::FogVolumeSurface_render_pix::project ( Vector4  v)
inline

◆ shade()

Radiance3 glsl::FogVolumeSurface_render_pix::shade ( Point3  wsPosition,
Vector3  w_o 
)
inline

Member Data Documentation

◆ cameraToWorldMatrix

uniform mat4x3 glsl::FogVolumeSurface_render_pix::cameraToWorldMatrix

◆ clipInfo

uniform vec3 glsl::FogVolumeSurface_render_pix::clipInfo

◆ coveragePerStep

const float glsl::FogVolumeSurface_render_pix::coveragePerStep = 0.012

◆ depthBuffer

uniform sampler2D glsl::FogVolumeSurface_render_pix::depthBuffer

◆ fogColor

const Color3 glsl::FogVolumeSurface_render_pix::fogColor = Color3(0.1,0.6,0.95) * 0.2

◆ maxBackgroundDistance

const float glsl::FogVolumeSurface_render_pix::maxBackgroundDistance = 60.0

◆ minRayMarchDistance

const float glsl::FogVolumeSurface_render_pix::minRayMarchDistance = 7.0

◆ nearPlaneZ

const float glsl::FogVolumeSurface_render_pix::nearPlaneZ = -1.0

◆ projectionMatrix22

uniform float glsl::FogVolumeSurface_render_pix::projectionMatrix22

◆ projectionMatrix23

uniform float glsl::FogVolumeSurface_render_pix::projectionMatrix23

◆ rayMarchStep

const float glsl::FogVolumeSurface_render_pix::rayMarchStep = 0.12

◆ tanHalfFieldOfViewY

uniform float glsl::FogVolumeSurface_render_pix::tanHalfFieldOfViewY

documentation generated on Wed Nov 24 2021 08:02:03 using doxygen 1.8.15