1#ifndef __VECTORS_AS_COLORS_HPP
2#define __VECTORS_AS_COLORS_HPP
4#include <ocean/Anemonia/Programmable.hpp>
5#include <ocean/Anemonia/Seagrass.hpp>
7#include "shadersDllApi.h"
19 typedef Eagle::PhysicalSpace::tvector InputType;
21 const string VectorFieldAttributeName;
24 : VectorFieldAttributeName(
"VectorFieldValue" )
29 bool initializeAnemone(
Anemone&RenderAnemone,
42"attribute vec3 VectorFieldValue;"
44"varying out vec3 tVector;\n"
48" gl_Position = ftransform();\n"
49" tVector = VectorFieldValue;\n"
61varying in vec3 tVector;
66#ifndef HAVE_VectorFieldValue
70 gl_FragColor = vec4(tVector, .5);
78 string getShaderAttributeName()
const
80 return VectorFieldAttributeName;
basic_string< char > string
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
note: cannot derive from FloatingSkeletonRenderer as long as independent base class TriangleRenderer ...
A minimalistic geometry shader that displays a vector field as RGB colors.
Definition VectorAsColors.hpp:18
std::string vertex_shader(VRenderContext &Context) const override
Vertexshader GLGS code.
Definition VectorAsColors.hpp:38
std::string fragment_shader(VRenderContext &Context) const override
Fragmentshader GLGS code that might stem from an text file.
Definition VectorAsColors.hpp:56