VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvOsg
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
12
#include <
vrvOsg/DtOsgEffectTextureController.h
>
13
#include <
vrvOsg/DtEffectControllerFactory.h
>
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
{
29
class
DT_DLL_VRVOSG
DtPreLitNightTextureControllerCreator
:
public
DtEffectControllerCreator
30
{
31
public
:
32
virtual
DtOsgEffectTextureController
* create(
const
DtOsgFileCache
& fileCache);
33
};
34
37
class
DT_DLL_VRVOSG
DtPostLitNightTextureControllerCreator
:
public
DtEffectControllerCreator
38
{
39
public
:
40
virtual
DtOsgEffectTextureController
* create(
const
DtOsgFileCache
& fileCache);
41
};
42
45
class
DT_DLL_VRVOSG
DtNightTextureController
:
public
DtOsgEffectTextureController
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
)