|
FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
|
Classes | |
| struct | NumberOfLightSources |
Static Public Member Functions | |
| static RenderBasin::glsl | DefineLightSources (VRenderContext &Context) |
| static bool | feedAnemone (VRenderContext &Context, AnemoneCreatorBase &AC) |
| static bool | feedAnemone (const AnemoneCreatorContext &ACC) |
| static bool | isValidAnemone (VRenderContext &Context, const AnemoneCreatorBase &AC) |
| Check for consistency of the number of light sources. | |
| static bool | isValidAnemone (VRenderContext &Context, const WeakPtr< AnemoneCreatorBase > &AC) |
| Check for consistency of the number of light sources. | |
| static bool | isValidAnemone (const AnemoneCreatorContext &ACC) |
| Check for consistency of the number of light sources. | |
|
static |
Define the shader variable lightNum that contains
the number of active light sources.
@code
const int lightNum = NumberOfActiveLightSources;
@endcode
IF GLSL is higher than version 130, then it also
defines an array of light direction, an eye vector
and a function
@code
void SetupLightSources(vec4 Vertex); that is to be called with full-world vertex coordinates. This function is enabled if
in a derived constructor.
References Wizt::embed_glsl(), and MemCore::to_string().