Rendu
A lightweight rendering engine for experimentations
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
DeferredProbe Class Reference

Apply a probe onto the lighting buffer by rendering a box. The probe contribution weight is accumulated in the alpha channel. More...

#include <DeferredLight.hpp>

Public Member Functions

 DeferredProbe (const Texture *texAlbedo, const Texture *texNormals, const Texture *texEffects, const Texture *texDepth, const Texture *texSSAO)
 
void updateCameraInfos (const glm::mat4 &viewMatrix, const glm::mat4 &projMatrix)
 
void draw (const LightProbe &probe)
 

Private Attributes

std::vector< const Texture * > _textures
 G-buffer input textures.
 
const Mesh_box
 Probe supporting geometry.
 
Program_program
 Probe application shader.
 
glm::mat4 _viewProj = glm::mat4(1.0f)
 Cached camera view projection matrix.
 
glm::mat4 _invView = glm::mat4(1.0f)
 Cached camera inverse view matrix.
 
glm::vec4 _projectionVector = glm::vec4(0.0f)
 Cached camera projection parameters.
 

Detailed Description

Apply a probe onto the lighting buffer by rendering a box. The probe contribution weight is accumulated in the alpha channel.

See also
GPUShaders::Frag::Probe_pbr, GPUShaders::Frag::Probe_normalization

Constructor & Destructor Documentation

◆ DeferredProbe()

DeferredProbe::DeferredProbe ( const Texture texAlbedo,
const Texture texNormals,
const Texture texEffects,
const Texture texDepth,
const Texture texSSAO 
)
explicit

Constructor.

Parameters
texAlbedothe texture containing the albedo
texNormalsthe texture containing the surface normals
texEffectsthe texture containing the material properties
texDepththe texture containing the depth
texSSAOthe texture containing the SSAO result

Member Function Documentation

◆ draw()

void DeferredProbe::draw ( const LightProbe probe)

Apply a probe in the current render destination

Parameters
probethe probe to compute the contribution of

◆ updateCameraInfos()

void DeferredProbe::updateCameraInfos ( const glm::mat4 &  viewMatrix,
const glm::mat4 &  projMatrix 
)

Set the current user view and projection matrices.

Parameters
viewMatrixthe camera view matrix
projMatrixthe camera projection matrix

The documentation for this class was generated from the following files: