FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
Public Types | Public Member Functions | Public Attributes | List of all members
Wizt::VectorAsColors Struct Reference

A minimalistic geometry shader that displays a vector field as RGB colors. More...

#include <VectorAsColors.hpp>

Inheritance diagram for Wizt::VectorAsColors:
Wizt::Programmable

Public Types

typedef Eagle::PhysicalSpace::tvector InputType
 
- Public Types inherited from Wizt::Programmable
typedef RenderBasin::Program Program
 

Public Member Functions

 VectorAsColors (VObject *)
 
bool initializeAnemone (Anemone &RenderAnemone, VRenderContext &Context, const AnemoneCreator<> &AC) const
 
std::string vertex_shader (VRenderContext &Context) const override
 Vertexshader GLGS code.
 
std::string fragment_shader (VRenderContext &Context) const override
 Fragmentshader GLGS code that might stem from an text file.
 
string getShaderAttributeName () const
 
- Public Member Functions inherited from Wizt::Programmable
RefPtr< RenderBasin::ProgramCompileShader (VRenderContext &Context, const std::string &Name, const RenderBasin::Program::Setup &SetupFunction=nullptr, const RefPtr< RenderBasin::Program > &ExistingProgram=NullPtr(), const glsl &LocalVertexShaderPrefixCode="", const glsl &LocalGeometryShaderPrefixCode="", const glsl &LocalFragmentShaderPrefixCode="") const
 
void enableViewportArray (bool EnableFragmentLayerViewport=true)
 
virtual glsl geometry_shader (VRenderContext &Context) const
 
virtual glsl GeometryShaderPrefix (VRenderContext &Context) const
 
std::pair< glsl, string > getCode (VRenderContext &Context, const std::string &Name, const std::string &Ext, std::string(Programmable::*shader)(VRenderContext &Context) const, const string &PrefixCode) const
 
void setGLSLVersion (const string &v_version, const string &g_version, const string &f_version)
 
void setGLSLVersion (const string &version)
 

Public Attributes

const string VectorFieldAttributeName
 
- Public Attributes inherited from Wizt::Programmable
glsl f_prefix
 
glsl g_prefix
 
RenderBasin::GeometryInputType GeometryInput
 
RenderBasin::GeometryOutputType GeometryOutput
 
glsl v_prefix
 

Additional Inherited Members

- Static Public Member Functions inherited from Wizt::Programmable
static string OptionalFileRead (const string &filename, const string &text)
 
static glsl setNumberOfLightSources (VRenderContext &Context, const std::string &VariableName="lightNum")
 
- Static Public Attributes inherited from Wizt::Programmable
static const char default_fragment_shader []
 
static const char default_geometry_shader []
 
static const char default_vertex_shader []
 

Detailed Description

A minimalistic geometry shader that displays a vector field as RGB colors.

Member Function Documentation

◆ fragment_shader()

std::string Wizt::VectorAsColors::fragment_shader ( VRenderContext Context) const
inlineoverridevirtual

Fragmentshader GLGS code that might stem from an text file.

Implements Wizt::Programmable.

◆ vertex_shader()

std::string Wizt::VectorAsColors::vertex_shader ( VRenderContext Context) const
inlineoverridevirtual

Vertexshader GLGS code.

Implements Wizt::Programmable.