VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions
makVrv::DtOsgEmissivityMapController Class Reference

Installs and control emissivity mapping effects.

Inheritance diagram for makVrv::DtOsgEmissivityMapController:
Inheritance graph
[legend]

Public Member Functions

 DtOsgEmissivityMapController (DtDe &de)
 
virtual ~DtOsgEmissivityMapController ()
 
virtual osg::Texture * installEffectTexture (osg::Texture *baseTexture, int texUnit, osg::StateSet *stateSet, const osgDB::Options *dbOptions, const DtPossibleFileNamesCache &possibleFilenames) const
 
virtual bool installShaders (int baseUnit, int effectUnit, const osg::Texture *tex, osg::StateSet *stateSet, const std::string &baseTextureName) const
 
- Public Member Functions inherited from makVrv::DtOsgEffectTextureController
 DtOsgEffectTextureController (DtDe &de, int type, const std::string &effectTypeCode)
 
virtual const std::string & effectTypeCode () const
 
virtual int effectTextureType () const
 
virtual void findEffectTexture (const std::string &baseTextureName, const osgDB::Options *dbOptions, const DtPossibleFileNamesCache &possibleFilenames, const osg::Texture *baseTexture, osg::ref_ptr< osg::Texture > &effectTexture) const
 

Static Public Member Functions

static osg::Uniform * createLightRampUniform ()
 
static osg::Uniform * getLightRampUniform (osg::StateSet *stateSet)
 

Additional Inherited Members

- Protected Member Functions inherited from makVrv::DtOsgEffectTextureController
virtual ~DtOsgEffectTextureController ()
 
virtual osgEarth::VirtualProgram * installVirtualProgram (int baseUnit, int effectUnit, const osg::Texture *tex, osg::StateSet *stateSet, const std::string &baseTextureName, const DtVirtualProgramParams &params) const
 
virtual void applyDefaultShaderLODRanges (osgEarth::VirtualProgram *vp, const std::string &function) const
 
- Protected Attributes inherited from makVrv::DtOsgEffectTextureController
const int myEffectTextureType
 
const std::string myEffectTypeCode
 
float myDefaultMaxRange
 
const DtOsgFileCachemyFileCache
 
DtDemyDe
 

Constructor & Destructor Documentation

makVrv::DtOsgEmissivityMapController::DtOsgEmissivityMapController ( DtDe de)

CTOR.

virtual makVrv::DtOsgEmissivityMapController::~DtOsgEmissivityMapController ( )
virtual

DTOR.

Member Function Documentation

static osg::Uniform* makVrv::DtOsgEmissivityMapController::createLightRampUniform ( )
static

Creates a new light ramp uniform you can apply to a higher-up state set in OVERRIDE mode. float[0..1]. The value specifies the amount of light currently in the scene - so smaller values turn on more lights.

static osg::Uniform* makVrv::DtOsgEmissivityMapController::getLightRampUniform ( osg::StateSet *  stateSet)
static

Access the uniform that controls how many emissive surfaces are active. float[0..1].

virtual osg::Texture* makVrv::DtOsgEmissivityMapController::installEffectTexture ( osg::Texture *  baseTexture,
int  baseTexUnit,
osg::StateSet *  stateSet,
const osgDB::Options *  dbOptions,
const DtPossibleFileNamesCache possibleFilenames 
) const
virtual

Install the effect texture from a list of possible effect texture names.

Parameters
baseTextureThe pointer of the base texture.
baseTexUnitThe texture unit of the base texture.
stateSetThe osg::StateSet that the base texture resides in.
dbOptionsThe options passed from osg.
possibleFilenamesA list of of possible effect texture names.

Reimplemented from makVrv::DtOsgEffectTextureController.

virtual bool makVrv::DtOsgEmissivityMapController::installShaders ( int  baseUnit,
int  effectUnit,
const osg::Texture *  tex,
osg::StateSet *  stateSet,
const std::string &  baseTextureName 
) const
virtual

install shaders for a stateset if required by this effect.

Reimplemented from makVrv::DtOsgEffectTextureController.


The documentation for this class was generated from the following file:

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)