Go to the documentation of this file.
29 #ifndef __ShadowCameraSetupPSSM_H__
30 #define __ShadowCameraSetupPSSM_H__
81 void calculateSplitPoints(
uint splitCount,
Real nearDist,
Real farDist,
Real lambda = 0.95);
94 void setOptimalAdjustFactor(
size_t splitIndex,
Real factor);
114 {
return mSplitPoints; }
118 {
return mOptimalAdjustFactors[splitIndex]; }
121 Real getOptimalAdjustFactor()
const;
Real getOptimalAdjustFactor(size_t splitIndex) const
Returns the optimal adjust factor for a given split.
A viewpoint from which the scene will be rendered.
Representation of a dynamic light source in the scene.
Parallel Split Shadow Map (PSSM) shadow camera setup.
Implements the Light Space Perspective Shadow Mapping Algorithm.
const SplitPointList & getSplitPoints() const
Returns the calculated split points.
Manages the organisation and rendering of a 'scene' i.e.
An abstraction of a viewport, i.e.
void setSplitPadding(Real pad)
Set the padding factor to apply to the near & far distances when matching up splits to one another,...
uint getSplitCount() const
Get the number of splits.
Real getSplitPadding() const
Get the padding factor to apply to the near & far distances when matching up splits to one another,...
float Real
Software floating point type.
OptimalAdjustFactorList mOptimalAdjustFactors
vector< Real >::type SplitPointList
SplitPointList mSplitPoints
vector< Real >::type OptimalAdjustFactorList
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.