Vp::Lighting
Class that manages passing of light information to shaders.
#include "Viewport/scene/Lighting.h"
Public Functions
| Name | |
|---|---|
| void | addLight(const std::shared_ptr< Light > & light) |
| void | addLight(Light * light) |
| std::vector< std::shared_ptr< Light > > | getLights() const |
| void | removeLight(std::shared_ptr< Light > & light) |
| void | setUniforms(const PhongShader & shader) const<br>Set light information uniforms for a shader. |
Public Functions Documentation
function addLight
cpp
void addLight(
const std::shared_ptr< Light > & light
)void addLight(
const std::shared_ptr< Light > & light
)function addLight
cpp
void addLight(
Light * light
)void addLight(
Light * light
)function getLights
cpp
std::vector< std::shared_ptr< Light > > getLights() conststd::vector< std::shared_ptr< Light > > getLights() constfunction removeLight
cpp
void removeLight(
std::shared_ptr< Light > & light
)void removeLight(
std::shared_ptr< Light > & light
)function setUniforms
cpp
void setUniforms(
const PhongShader & shader
) constvoid setUniforms(
const PhongShader & shader
) constSet light information uniforms for a shader.
Parameters:
- shader The shader
Updated on 2025-09-07 at 16:13:51 +0000