Fish - FiberLib for VISH 0.3
Fish - The Fiber Bundle API for the Vish Visualization Shell
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)
 Define the shader variable lightNum that contains the number of active light sources.
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.

const int lightNum = NumberOfActiveLightSources;

IF GLSL is higher than version 130, then it also defines an array of light direction, an eye vector and a function

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().

Referenced by Wizt::SurfaceRenderer::getSurfaceShaderPrefix().