VR-Forces 4.3.1 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 #include <string>
20 
21 namespace makVrv
22 {
26  {
27  public:
28  virtual DtOsgEffectTextureController* create(DtOsgFileCache& fileCache, DtOsgShaderManager& shaderMgr, DtDe& de);
29  };
30 
34  {
35  public:
38 
41 
42  public: // control methods
43 
48  static osg::Uniform* createLightRampUniform();
49 
52  static osg::Uniform* getLightRampUniform(osg::StateSet* stateSet);
53 
54  public: // DtOsgEffectTextureController interface
55 
56  virtual std::string getEffectTypeCode() const { return "EMM"; }
57 
58  virtual osg::Texture* installEffectTexture(osg::Texture* baseTexture, int texUnit, osg::StateSet* stateSet, const osgDB::Options* dbOptions, const FilenameSet& possibleFilenames);
59 
60  virtual bool generateShaders(int baseUnit, int effectUnit, osg::Texture* tex, osg::StateSet* stateSet, const std::string& baseTextureName);
61 
62  };
63 
64 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)