VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvOsg
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
14
#include <
vrvOsg/DtOsgEffectTextureController.h
>
15
#include <
vrvOsg/DtEffectControllerFactory.h
>
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
{
34
class
DT_DLL_VRVOSG
DtPreLitNightTextureControllerCreator
:
public
DtEffectControllerCreator
35
{
36
public
:
37
virtual
DtOsgEffectTextureController
* create(
const
DtOsgFileCache
& fileCache);
38
};
39
42
class
DT_DLL_VRVOSG
DtPostLitNightTextureControllerCreator
:
public
DtEffectControllerCreator
43
{
44
public
:
45
virtual
DtOsgEffectTextureController
* create(
const
DtOsgFileCache
& fileCache);
46
};
47
50
class
DT_DLL_VRVOSG
DtNightTextureController
:
public
DtOsgEffectTextureController
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 Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)