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

Shader program. More...

Public Member Functions

vec4 reverseReprojection (vec2 currentScreenCoord, vec3 currentWSPosition, vec2 ssVelocity, sampler2D previousBuffer, sampler2D previousDepthBuffer, vec2 inverseBufferSize, vec3 clipInfo, vec4 projInfo, mat4x3 previousCameraToWorld, out float distance)
 Requires previousBuffer and previousDepthBuffer to be the same size as the output buffer. More...
 
vec4 reverseReprojection (vec2 currentScreenCoord, sampler2D depthBuffer, sampler2D ssVelocityBuffer, vec2 ssVReadMultiplyFirst, vec2 ssVReadAddSecond, sampler2D previousBuffer, sampler2D previousDepthBuffer, vec2 inverseBufferSize, vec3 clipInfo, vec4 projInfo, mat4x3 cameraToWorld, mat4x3 previousCameraToWorld, out float distance)
 Requires all input buffers to be the same size as the output buffer. More...
 
vec4 twoLayerReverseReprojection (vec2 currentScreenCoord, vec3 currentWSPosition, vec2 ssVelocity, sampler2D previousBuffer, sampler2D previousDepthBuffer, sampler2D peeledPreviousBuffer, sampler2D peeledPreviousDepthBuffer, vec2 inverseBufferSize, vec3 clipInfo, vec4 projInfo, mat4x3 previousCameraToWorld, out float distance)
 Requires all input buffers to be the same size as the output buffer. More...
 
vec4 twoLayerReverseReprojection (vec2 currentScreenCoord, sampler2D depthBuffer, sampler2D ssVelocityBuffer, vec2 ssVReadMultiplyFirst, vec2 ssVReadAddSecond, sampler2D previousBuffer, vec2 previousBufferInverseSize, sampler2D previousDepthBuffer, sampler2D peeledPreviousBuffer, sampler2D peeledPreviousDepthBuffer, vec2 inverseBufferSize, vec3 clipInfo, vec4 projInfo, mat4x3 cameraToWorld, mat4x3 previousCameraToWorld, out float distance)
 Requires all input buffers to be the same size as the output buffer. More...
 

Detailed Description

Shader program.

Member Function Documentation

◆ reverseReprojection() [1/2]

vec4 glsl::reverseReprojection_glsl::reverseReprojection ( vec2  currentScreenCoord,
vec3  currentWSPosition,
vec2  ssVelocity,
sampler2D  previousBuffer,
sampler2D  previousDepthBuffer,
vec2  inverseBufferSize,
vec3  clipInfo,
vec4  projInfo,
mat4x3  previousCameraToWorld,
out float  distance 
)
inline

Requires previousBuffer and previousDepthBuffer to be the same size as the output buffer.

Returns the reverse-reprojected value, and sets distance to the WS distance from the expected WS reverse-reprojected position and the actual value.

◆ reverseReprojection() [2/2]

vec4 glsl::reverseReprojection_glsl::reverseReprojection ( vec2  currentScreenCoord,
sampler2D  depthBuffer,
sampler2D  ssVelocityBuffer,
vec2  ssVReadMultiplyFirst,
vec2  ssVReadAddSecond,
sampler2D  previousBuffer,
sampler2D  previousDepthBuffer,
vec2  inverseBufferSize,
vec3  clipInfo,
vec4  projInfo,
mat4x3  cameraToWorld,
mat4x3  previousCameraToWorld,
out float  distance 
)
inline

Requires all input buffers to be the same size as the output buffer.

Returns the reverse-reprojected value from the closest layer, and sets distance to the WS distance from the expected WS reverse-reprojected position and the actual value.

◆ twoLayerReverseReprojection() [1/2]

vec4 glsl::reverseReprojection_glsl::twoLayerReverseReprojection ( vec2  currentScreenCoord,
vec3  currentWSPosition,
vec2  ssVelocity,
sampler2D  previousBuffer,
sampler2D  previousDepthBuffer,
sampler2D  peeledPreviousBuffer,
sampler2D  peeledPreviousDepthBuffer,
vec2  inverseBufferSize,
vec3  clipInfo,
vec4  projInfo,
mat4x3  previousCameraToWorld,
out float  distance 
)
inline

Requires all input buffers to be the same size as the output buffer.

Returns the reverse-reprojected value from the closest layer, and sets distance to the WS distance from the expected WS reverse-reprojected position and the actual value .

◆ twoLayerReverseReprojection() [2/2]

vec4 glsl::reverseReprojection_glsl::twoLayerReverseReprojection ( vec2  currentScreenCoord,
sampler2D  depthBuffer,
sampler2D  ssVelocityBuffer,
vec2  ssVReadMultiplyFirst,
vec2  ssVReadAddSecond,
sampler2D  previousBuffer,
vec2  previousBufferInverseSize,
sampler2D  previousDepthBuffer,
sampler2D  peeledPreviousBuffer,
sampler2D  peeledPreviousDepthBuffer,
vec2  inverseBufferSize,
vec3  clipInfo,
vec4  projInfo,
mat4x3  cameraToWorld,
mat4x3  previousCameraToWorld,
out float  distance 
)
inline

Requires all input buffers to be the same size as the output buffer.

Returns the reverse-reprojected value, and sets distance to the WS distance from the expected WS reverse-reprojected position and the actual value.


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