Lights processor which outputs appropriate OpenGL commands for each enabled light in a scene.
#include <Rendering/OpenGL/Shaders/wsgllightsprocessor.h>
◆ WSGLLightsProcessor()
◆ ~WSGLLightsProcessor()
◆ postVisits()
bool postVisits |
( |
const QList< Light * > & |
lights | ) |
|
|
overrideprotectedvirtual |
- Parameters
-
lights | The list of lights which are being processed. |
Alternative postVisits function for processing a list of lights, rather than the entire scene.
- Returns
- True if successful, false if an error was encountered.
- See also
- postVists(Scene&)
Reimplemented from LightsProcessor.
◆ preVisits()
bool preVisits |
( |
const QList< Light * > & |
lights | ) |
|
|
overrideprotectedvirtual |
- Parameters
-
lights | The list of lights which are being processed. |
Alternative preVisits function for processing a list of lights, rather than the entire scene.
- Returns
- True if successful, false if an error was encountered.
- See also
- preVists(Scene&)
Reimplemented from LightsProcessor.
◆ process()
◆ setLightingEnabled()
bool setLightingEnabled |
( |
bool |
b | ) |
|
◆ setupUniforms()
◆ visitImpl() [1/4]
See visit() for details.
- Returns
- True if the light was successfully processed, or false if the function failed and processing should be aborted. The default implementation performs no action and simply returns true.
Reimplemented from LightsProcessor.
◆ visitImpl() [2/4]
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Reimplemented from LightsProcessor.
◆ visitImpl() [3/4]
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Reimplemented from LightsProcessor.
◆ visitImpl() [4/4]
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Reimplemented from LightsProcessor.