|
Hymn to Beauty
C++ 3D Engine
|
Render program to render an entity using default shader program. More...
#include <StaticRenderProgram.hpp>
Public Member Functions | |
| StaticRenderProgram (LowLevelRenderer *lowLevelRenderer) | |
| Create new static render program. More... | |
| ~StaticRenderProgram () | |
| Destructor. More... | |
| void | PreDepthRender (CommandBuffer &commandBuffer, const glm::mat4 &viewMatrix, const glm::mat4 &projectionMatrix) |
| Bind depth render program. More... | |
| void | DepthRender (CommandBuffer &commandBuffer, Geometry::Geometry3D *geometry, const glm::mat4 &modelMatrix) const |
| Render depth pass. More... | |
| void | PreRender (CommandBuffer &commandBuffer, const glm::mat4 &viewMatrix, const glm::mat4 &projectionMatrix, const ZBinning::LightInfo &lightInfo) |
| Bind render program. More... | |
| void | Render (CommandBuffer &commandBuffer, Geometry::Geometry3D *geometry, Video::Texture2D *textureAlbedo, Video::Texture2D *textureNormal, Video::Texture2D *textureRoughnessMetallic, const glm::mat4 &modelMatrix) const |
| Render mesh. More... | |
Public Member Functions inherited from Video::RenderProgram | |
| RenderProgram () | |
| Constructor. More... | |
| virtual | ~RenderProgram () |
| Destructor. More... | |
| void | SetGamma (float gamma) |
| Gamma correction. More... | |
| float | GetGamma () const |
| Gamma correction. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Video::RenderProgram | |
| float | gamma = 2.2f |
Render program to render an entity using default shader program.
|
explicit |
Create new static render program.
| lowLevelRenderer | The low-level renderer to use. |
| StaticRenderProgram::~StaticRenderProgram | ( | ) |
Destructor.
| void StaticRenderProgram::DepthRender | ( | CommandBuffer & | commandBuffer, |
| Geometry::Geometry3D * | geometry, | ||
| const glm::mat4 & | modelMatrix | ||
| ) | const |
Render depth pass.
| commandBuffer | Command buffer to build commands into. |
| geometry | The geometry to render. |
| modelMatrix | Model matrix. |
| void StaticRenderProgram::PreDepthRender | ( | CommandBuffer & | commandBuffer, |
| const glm::mat4 & | viewMatrix, | ||
| const glm::mat4 & | projectionMatrix | ||
| ) |
Bind depth render program.
| commandBuffer | Command buffer to build commands into. |
| viewMatrix | The camera's view matrix. |
| projectionMatrix | The camera's projection matrix. |
| void StaticRenderProgram::PreRender | ( | CommandBuffer & | commandBuffer, |
| const glm::mat4 & | viewMatrix, | ||
| const glm::mat4 & | projectionMatrix, | ||
| const ZBinning::LightInfo & | lightInfo | ||
| ) |
Bind render program.
| commandBuffer | Command buffer to build commands into. |
| viewMatrix | The camera's view matrix. |
| projectionMatrix | The camera's projection matrix. |
| lightInfo | Information about the lights in the scene. |
| void StaticRenderProgram::Render | ( | CommandBuffer & | commandBuffer, |
| Geometry::Geometry3D * | geometry, | ||
| Video::Texture2D * | textureAlbedo, | ||
| Video::Texture2D * | textureNormal, | ||
| Video::Texture2D * | textureRoughnessMetallic, | ||
| const glm::mat4 & | modelMatrix | ||
| ) | const |
Render mesh.
| commandBuffer | Command buffer to build commands into. |
| geometry | The geometry to render. |
| textureAlbedo | Albedo texture. |
| textureNormal | Normal texture. |
| textureRoughnessMetallic | Roughness-metallic texture. |
| modelMatrix | Model matrix. |