Contains the model matrix, mesh, and light emission for a single light object being rendered this frame.
More...
#include <render_stage.hpp>
|
| LightRenderUnit (std::shared_ptr< StaticMesh > meshHandle, const LightEmissionData &lightEmissionData, const glm::mat4 &modelMatrix) |
| Constructs a new Light Render Unit object.
|
|
bool | operator< (const LightRenderUnit &other) const |
| Compares one light unit with another based on its sort key.
|
|
void | setSortKey () |
| Sets the sort key for this object based on its mesh.
|
|
|
std::uint32_t | mSortKey {} |
| The sort key for this light unit, based on its mesh.
|
|
std::shared_ptr< StaticMesh > | mMeshHandle |
| The mesh representing the lighting volume for this light.
|
|
glm::mat4 | mModelMatrix |
| The matrix which places this renderable light into the scene.
|
|
LightEmissionData | mLightAttributes |
| The emissive properties for this light.
|
|
Contains the model matrix, mesh, and light emission for a single light object being rendered this frame.
◆ LightRenderUnit()
ToyMaker::LightRenderUnit::LightRenderUnit |
( |
std::shared_ptr< StaticMesh > | meshHandle, |
|
|
const LightEmissionData & | lightEmissionData, |
|
|
const glm::mat4 & | modelMatrix ) |
|
inline |
Constructs a new Light Render Unit object.
- Parameters
-
meshHandle | The mesh representing this light's volume. |
lightEmissionData | The emissive properties of this light. |
modelMatrix | The matrix which correctly places the light in the scene. |
◆ operator<()
bool ToyMaker::LightRenderUnit::operator< |
( |
const LightRenderUnit & | other | ) |
const |
|
inline |
Compares one light unit with another based on its sort key.
- Parameters
-
other | The light unit this one is being compared to. |
- Return values
-
true | This unit has a lower sort key than the other; |
false | This unit does not have a lower sort key than the other; |
The documentation for this struct was generated from the following file: