VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtNightTextureController.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2017 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
16 
17 #include <string>
18 
19 namespace osg
20 {
21  class Texture;
22  class StateSet;
23 }
24 
25 
26 //There are two different night texture options.
27 // NTE which runs before the lighting and just replaces the diffuse texture
28 // NGT which runs after everything else and replaces the final color at night
29 // NGT is the original that ST asked for NTE was added afterwards to fix a few issues
30 namespace makVrv
31 {
35  {
36  public:
37  virtual DtOsgEffectTextureController* create(const DtOsgFileCache& fileCache);
38  };
39 
43  {
44  public:
45  virtual DtOsgEffectTextureController* create(const DtOsgFileCache& fileCache);
46  };
47 
51  {
52  public:
54  DtNightTextureController(const DtOsgFileCache& fileCache, bool preLit);
55 
57  virtual ~DtNightTextureController();
58 
59  public: // DtOsgEffectTextureController interface
60  bool installShaders(int baseUnit, int effectUnit, const osg::Texture* tex, osg::StateSet* stateSet, const std::string& baseTextureName) const;
61  };
62 
63 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)