|
Visual Computing Library
devel
|
The DirectionalLightUniforms class is responsible for managing the uniforms which describe a directional light that can be used by bgfx shaders. More...
#include <vclib/bgfx/drawable/uniforms/directional_light_uniforms.h>
Static Public Member Functions | |
| static void | bind () |
| template<typename S > | |
| static void | setLight (const vcl::DirectionalLight< S > &light) |
| setLight | |
Static Private Attributes | |
| static std::array< float, 4 > | sCol = {1.0, 1.0, 1.0, 1.0} |
| static std::array< float, 4 > | sDir = {0.0, 0.0, 1.0, 0.0} |
| static Uniform | sLightColorUniform |
| static Uniform | sLightDirUniform |
The DirectionalLightUniforms class is responsible for managing the uniforms which describe a directional light that can be used by bgfx shaders.
It provides a static interface to set the uniform data based on the current directional light data and to bind the uniforms to the shader programs.
The uniforms of this class can be used by including the shader header <vclib/bgfx/drawable/uniforms/directional_light_uniforms.sh> in the shader.
The uniforms are:
The shader header makes available the following uniforms:
|
inlinestatic |
setLight
| light |