VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtOsgEmissivityMapController.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2012 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
14 
15 #include <osg/Vec4>
16 #include <osg/StateSet>
17 #include <osg/Texture>
18 
19 namespace makVrv
20 {
24  {
25  public:
26  virtual DtOsgEffectTextureController* create(const DtOsgFileCache& fileCache);
27  };
28 
32  {
33  public:
36 
39 
40  public: // control methods
41 
46  static osg::Uniform* createLightRampUniform();
47 
50  static osg::Uniform* getLightRampUniform(osg::StateSet* stateSet);
51 
52  public: // DtOsgEffectTextureController interface
53 
54  virtual std::string getEffectTypeCode() const { return "EMM"; }
55 
56  virtual osg::Texture* installEffectTexture(osg::Texture* baseTexture, int texUnit, osg::StateSet* stateSet, const osgDB::Options* dbOptions, const FilenameMap& possibleFilenames);
57 
58  virtual bool generateShaders(int baseUnit, int effectUnit, osg::Texture* tex, osg::StateSet* stateSet, const std::string& baseTextureName);
59 
60  };
61 
62 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)