FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
Classes | Static Public Member Functions | List of all members
Wizt::Illuminatable Struct Reference
Inheritance diagram for Wizt::Illuminatable:
Wizt::Phong Wizt::VolumeRender Wizt::BivectorAsSpiral Wizt::BivectorOrientation Wizt::EdgeShader Wizt::HeightDots Wizt::SurfaceRenderer Wizt::HeightDotsMultiView Wizt::WhiteDots

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.
 

Member Function Documentation

◆ DefineLightSources()

std::string Wizt::Illuminatable::DefineLightSources ( VRenderContext Context)
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

v_prefix = "#version 130\n";

in a derived constructor.

References Wizt::embed_glsl(), and MemCore::to_string().