VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtNightTextureController.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 //There are two different night texture options.
22 // NTE which runs before the lighting and just replaces the diffuse texture
23 // NGT which runs after everything else and replaces the final color at night
24 // NGT is the original that ST asked for NTE was added afterwards to fix a few issues
25 namespace makVrv
26 {
30  {
31  public:
32  virtual DtOsgEffectTextureController* create(const DtOsgFileCache& fileCache);
33  };
34 
38  {
39  public:
40  virtual DtOsgEffectTextureController* create(const DtOsgFileCache& fileCache);
41  };
42 
46  {
47  public:
49  DtNightTextureController(const DtOsgFileCache& fileCache, bool preLit);
50 
52  virtual ~DtNightTextureController();
53 
54  public: // DtOsgEffectTextureController interface
55 
56  std::string getEffectTypeCode() const;
57 
58  bool generateShaders(int baseUnit, int effectUnit, osg::Texture* tex, osg::StateSet* stateSet, const std::string& baseTextureName);
59 
60  private:
61 
62  //controls when the virutal program function runs.
63  bool myIsPreLit;
64  };
65 
66 }

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)