molecular
|
Sets up a single, directional light. More...
#include <SetupLight.h>
Public Member Functions | |
template<class TRenderManager > | |
SetupLight (TRenderManager &manager) | |
void | Execute () override |
void | SetDirectionalLight (bool enable, const Vector3 &direction=Vector3(1,-1,-1), const Vector3 &color=Vector3(1, 1, 1)) |
Set light parameters. More... | |
void | Set (Hash key, bool value) override |
Set bool property with given name. More... | |
![]() | |
template<class TRenderManager > | |
SingleCalleeRenderFunction (TRenderManager &manager) | |
SingleCalleeRenderFunction (Scoping &scoping, RenderCmdSink &renderer) | |
util::AxisAlignedBox | GetBounds () const override |
bool | BoundsChangedSince (int framecounter) const override |
void | SetCallee (RenderFunction *callee) |
![]() | |
template<class TRenderManager > | |
RenderFunction (TRenderManager &manager) | |
RenderFunction (Scoping &scoping, RenderCmdSink &renderer) | |
virtual | ~RenderFunction () |
Additional Inherited Members | |
![]() | |
template<class T > | |
const T * | GetVariable (Hash key) |
Convenience shortcut to a variable pointer from the dynamic scope. More... | |
![]() | |
RenderFunction * | mCallee = nullptr |
![]() | |
Scoping & | mScoping |
RenderCmdSink & | mRenderer |
Sets up a single, directional light.
Sets uniforms lightDirection0 and lightColor0.
|
inline |
|
overridevirtual |
Implements molecular::gfx::RenderFunction.
|
overridevirtual |
Set bool property with given name.
This system is not finished.
Reimplemented from molecular::gfx::RenderFunction.
void molecular::gfx::SetupLight::SetDirectionalLight | ( | bool | enable, |
const Vector3 & | direction = Vector3(1,-1,-1) , |
||
const Vector3 & | color = Vector3(1,1,1) |
||
) |
Set light parameters.