RigsofRods
Soft-body Physics Simulation
source
main
gfx
ShadowManager.h
Go to the documentation of this file.
1
/*
2
This source file is part of Rigs of Rods
3
Copyright 2005-2012 Pierre-Michel Ricordel
4
Copyright 2007-2012 Thomas Fischer
5
6
For more information, see http://www.rigsofrods.org/
7
8
Rigs of Rods is free software: you can redistribute it and/or modify
9
it under the terms of the GNU General Public License version 3, as
10
published by the Free Software Foundation.
11
12
Rigs of Rods is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
24
25
#pragma once
26
27
#include <Terrain/OgreTerrain.h>
28
#include <OgreShadowCameraSetupPSSM.h>
29
#include <Terrain/OgreTerrainMaterialGeneratorA.h>
30
31
#include "
Application.h
"
32
#include "
Application.h
"
33
34
#include "
OgreTerrainPSSMMaterialGenerator.h
"
35
36
namespace
RoR
{
37
40
41
//Store datas using structs
42
struct
PSSM_Shadows_Data
43
{
44
Ogre::ShadowCameraSetupPtr
mPSSMSetup
;
45
bool
mDepthShadows
;
46
int
ShadowsTextureNum
;
47
int
Quality
;
48
float
lambda
;
49
};
50
51
class
ShadowManager
52
{
53
public
:
54
55
ShadowManager
();
56
~ShadowManager
();
57
58
void
loadConfiguration
();
59
60
void
updatePSSM
();
61
62
void
updateTerrainMaterial
(
Ogre::TerrainPSSMMaterialGenerator::SM2Profile
* matProfile);
63
64
protected
:
65
66
void
processPSSM
();
67
void
setManagedMaterialSplitPoints
(Ogre::PSSMShadowCameraSetup::SplitPointList splitPointList);
68
69
int
updateShadowTechnique
();
70
71
PSSM_Shadows_Data
PSSM_Shadows
;
72
};
73
75
76
}
// namespace RoR
RoR::ShadowManager::updatePSSM
void updatePSSM()
Definition:
ShadowManager.cpp:158
RoR::ShadowManager
Definition:
ShadowManager.h:51
RoR::ShadowManager::~ShadowManager
~ShadowManager()
Definition:
ShadowManager.cpp:45
OgreTerrainPSSMMaterialGenerator.h
RoR::ShadowManager::processPSSM
void processPSSM()
Definition:
ShadowManager.cpp:93
RoR::ShadowManager::updateTerrainMaterial
void updateTerrainMaterial(Ogre::TerrainPSSMMaterialGenerator::SM2Profile *matProfile)
Definition:
ShadowManager.cpp:165
RoR::PSSM_Shadows_Data::ShadowsTextureNum
int ShadowsTextureNum
Definition:
ShadowManager.h:46
RoR::PSSM_Shadows_Data
Definition:
ShadowManager.h:42
RoR::ShadowManager::PSSM_Shadows
PSSM_Shadows_Data PSSM_Shadows
Definition:
ShadowManager.h:71
RoR::ShadowManager::setManagedMaterialSplitPoints
void setManagedMaterialSplitPoints(Ogre::PSSMShadowCameraSetup::SplitPointList splitPointList)
Definition:
ShadowManager.cpp:178
Application.h
Central state/object manager and communications hub.
RoR::PSSM_Shadows_Data::lambda
float lambda
Definition:
ShadowManager.h:48
RoR::PSSM_Shadows_Data::Quality
int Quality
Definition:
ShadowManager.h:47
RoR::ShadowManager::updateShadowTechnique
int updateShadowTechnique()
Definition:
ShadowManager.cpp:54
RoR::PSSM_Shadows_Data::mPSSMSetup
Ogre::ShadowCameraSetupPtr mPSSMSetup
Definition:
ShadowManager.h:44
Ogre::TerrainPSSMMaterialGenerator::SM2Profile
Shader model 2 profile target.
Definition:
OgreTerrainPSSMMaterialGenerator.h:52
RoR::PSSM_Shadows_Data::mDepthShadows
bool mDepthShadows
Definition:
ShadowManager.h:45
RoR
Definition:
AppContext.h:36
RoR::ShadowManager::ShadowManager
ShadowManager()
Definition:
ShadowManager.cpp:37
RoR::ShadowManager::loadConfiguration
void loadConfiguration()
Definition:
ShadowManager.cpp:49
Generated by
1.8.17