|
Hymn to Beauty
C++ 3D Engine
|
Handles binning and tiling of lights. More...
#include <ZBinning.hpp>
Classes | |
| struct | LightInfo |
| Information about the lights in a scene. More... | |
Public Member Functions | |
| ZBinning (LowLevelRenderer *lowLevelRenderer, const glm::uvec2 &screenSize) | |
| Create new Z binning. More... | |
| ~ZBinning () | |
| Destructor. More... | |
| void | SetRenderSurfaceSize (const glm::uvec2 &size) |
| Configure tiles based on screen size. More... | |
| void | BinLights (CommandBuffer &commandBuffer, const std::vector< DirectionalLight > &directionalLights, const std::vector< Light > &lights, const glm::mat4 &projectionMatrix, float zNear, float zFar) |
| Bin and tile the lights. More... | |
| const LightInfo & | GetLightInfo () |
| Get the light info. More... | |
Handles binning and tiling of lights.
| Video::ZBinning::ZBinning | ( | LowLevelRenderer * | lowLevelRenderer, |
| const glm::uvec2 & | screenSize | ||
| ) |
Create new Z binning.
| lowLevelRenderer | The low-level renderer. |
| screenSize | The size of the screen in pixels. |
| Video::ZBinning::~ZBinning | ( | ) |
Destructor.
| void Video::ZBinning::BinLights | ( | CommandBuffer & | commandBuffer, |
| const std::vector< DirectionalLight > & | directionalLights, | ||
| const std::vector< Light > & | lights, | ||
| const glm::mat4 & | projectionMatrix, | ||
| float | zNear, | ||
| float | zFar | ||
| ) |
Bin and tile the lights.
| commandBuffer | Command buffer to record GPU work into. |
| directionalLights | Vector of directional lights to push to the directional light buffer. |
| lights | Vector of lights to push to the light buffer. |
| projectionMatrix | Projection matrix. |
| zNear | Near field. |
| zFar | Far field. |
| const ZBinning::LightInfo & Video::ZBinning::GetLightInfo | ( | ) |
Get the light info.
| void Video::ZBinning::SetRenderSurfaceSize | ( | const glm::uvec2 & | size | ) |
Configure tiles based on screen size.
| size | The size of the render surface. |