19#include <vrvCore/DtDe.h>
21#include <vrvOsg/DtOsgEffectTextureController.h>
22#include <vrvOsg/DtOsgRenderer.h>
23#include <vrvOsg/DtEffectControllerCreatorTemplate.h>
66 const std::string& postfix,
const std::string& fragFilename,
const std::string& vertFilename,
67 const std::string& fragFunction,
const std::string& vertFunction,
const std::string& effectUnitName,
68 const std::string& indirectTextureMapName,
const std::string& indirectTextureCoordName);
86 virtual bool installShaders(
int baseUnit,
int effectUnit,
const osg::Texture* tex, osg::StateSet* stateSet,
87 const std::string& baseTextureName)
const override;
Factory creator for standard effect texture controllers.
Definition vreOsgEffectTextureController.h:124
virtual DtVreOsgEffectTextureController * create(makVrv::DtDe &de) override
Creates a new effect texture controller.
Controller for texture swapping visual effects in OSG rendering.
Definition vreOsgEffectTextureController.h:47
virtual bool installShaders(int baseUnit, int effectUnit, const osg::Texture *tex, osg::StateSet *stateSet, const std::string &baseTextureName) const override
Installs the effect shaders into a state set.
std::string myVertFunction
Name of the vertex shader function to call.
Definition vreOsgEffectTextureController.h:107
virtual ~DtVreOsgEffectTextureController() override
Virtual destructor.
static osg::ref_ptr< osg::Uniform > effectsEnabledUniform
Shared uniform for enabling/disabling all effect textures.
Definition vreOsgEffectTextureController.h:113
std::string myVertShader
Path to the vertex shader file.
Definition vreOsgEffectTextureController.h:101
DtVreOsgEffectTextureController(makVrv::DtDe &de, int effectTextureType, const std::string &typeString, const std::string &postfix, const std::string &fragFilename, const std::string &vertFilename, const std::string &fragFunction, const std::string &vertFunction, const std::string &effectUnitName, const std::string &indirectTextureMapName, const std::string &indirectTextureCoordName)
Constructor.
std::string myFragFunction
Name of the fragment shader function to call.
Definition vreOsgEffectTextureController.h:104
std::string myFragShader
Path to the fragment shader file.
Definition vreOsgEffectTextureController.h:98
static osg::ref_ptr< osg::Uniform > getEffectsEnabledUniform()
Gets the uniform used for toggling effect textures.
std::string myEffectUnitName
Name of the texture unit for the effect.
Definition vreOsgEffectTextureController.h:110
Factory creator for HUD-specific effect texture controllers.
Definition vreOsgEffectTextureController.h:142
virtual DtVreOsgEffectTextureController * create(makVrv::DtDe &de) override
Creates a new HUD effect texture controller.
Defines export macros for the VR-Engage Player Station library.
#define PLAYERSTATION_DLL
Definition export.h:24
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
DtVreEffectTextureType
Extension of DtEffectTextureType enumeration for VR-Engage effects.
Definition vreOsgEffectTextureController.h:33
@ VRE_HUD_ET_MAP
HUD (Heads-Up Display) map effect texture type.
Definition vreOsgEffectTextureController.h:35
@ VRE_ET_MAP
Map overlay effect texture type.
Definition vreOsgEffectTextureController.h:34
makVrv::DtDe * de()
Gets the display element pointer used by the plugin.