\hypertarget{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup}{}\section{Ogre\+:\+:Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup Class Reference}
\label{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup}\index{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}}


Implements the \hyperlink{class_ogre_1_1_light}{Light} Space Perspective Shadow Mapping Algorithm.  




{\ttfamily \#include $<$Ogre\+Shadow\+Camera\+Setup\+Li\+S\+P\+S\+M.\+h$>$}



Inheritance diagram for Ogre\+:\+:Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=256pt]{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_a9773b96e56d49b46ae8b71ef94e60e73}{Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup} (void)
\begin{DoxyCompactList}\small\item\em Default constructor. \end{DoxyCompactList}\item 
virtual \hyperlink{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_aa619e8c0071d56b9a020413bb15d93a5}{$\sim$\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup} (void)
\begin{DoxyCompactList}\small\item\em Default destructor. \end{DoxyCompactList}\item 
virtual \hyperlink{class_ogre_1_1_degree}{Degree} \hyperlink{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_abddaf4baa243cbda0e8a2bd43f3058f0}{get\+Camera\+Light\+Direction\+Threshold} () const
\begin{DoxyCompactList}\small\item\em Sets the threshold between the camera and the light direction below which the Li\+S\+P\+SM projection is \textquotesingle{}flattened\textquotesingle{}, since coincident light and camera projections cause problems with the perspective skew. \end{DoxyCompactList}\item 
virtual \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} \hyperlink{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_a9b5d6e5ff9339e7a010c2dfbcb051490}{get\+Optimal\+Adjust\+Factor} () const
\begin{DoxyCompactList}\small\item\em Get the parameter n used to produce optimal shadows. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_aa19c6563c41297f7e14e8918dd89b074}{get\+Shadow\+Camera} (const \hyperlink{class_ogre_1_1_scene_manager}{Scene\+Manager} $\ast$sm, const \hyperlink{class_ogre_1_1_camera}{Camera} $\ast$cam, const \hyperlink{class_ogre_1_1_viewport}{Viewport} $\ast$vp, const \hyperlink{class_ogre_1_1_light}{Light} $\ast$light, \hyperlink{class_ogre_1_1_camera}{Camera} $\ast$tex\+Cam, size\+\_\+t iteration) const
\begin{DoxyCompactList}\small\item\em Returns a Li\+S\+P\+SM shadow camera. \end{DoxyCompactList}\item 
bool \hyperlink{class_ogre_1_1_focused_shadow_camera_setup_ad28464a9e78991c046b70f2d6c95a753}{get\+Use\+Aggressive\+Focus\+Region} () const
\item 
virtual bool \hyperlink{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_ad836bab9853f49b42a2fe9f2aab786b1}{get\+Use\+Simple\+Optimal\+Adjust} () const
\begin{DoxyCompactList}\small\item\em Gets whether or not to use a slightly simpler version of the camera near point derivation (default is true) \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_a2a6fb5e0335458e5c626740bfcbfc56c}{set\+Camera\+Light\+Direction\+Threshold} (\hyperlink{class_ogre_1_1_degree}{Degree} angle)
\begin{DoxyCompactList}\small\item\em Sets the threshold between the camera and the light direction below which the Li\+S\+P\+SM projection is \textquotesingle{}flattened\textquotesingle{}, since coincident light and camera projections cause problems with the perspective skew. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_aa4f0c58ca0ea89aa7e4b11def4976ea6}{set\+Optimal\+Adjust\+Factor} (\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} n)
\begin{DoxyCompactList}\small\item\em Adjusts the parameter n to produce optimal shadows. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_focused_shadow_camera_setup_af57854c45cd48033da1cb28e316901dc}{set\+Use\+Aggressive\+Focus\+Region} (bool aggressive)
\begin{DoxyCompactList}\small\item\em Sets whether or not to use the more aggressive approach to deciding on the focus region or not. \end{DoxyCompactList}\item 
virtual void \hyperlink{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_ae09cafbe81832dd23c70f85d9435b213}{set\+Use\+Simple\+Optimal\+Adjust} (bool s)
\begin{DoxyCompactList}\small\item\em Sets whether or not to use a slightly simpler version of the camera near point derivation (default is true) \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Implements the \hyperlink{class_ogre_1_1_light}{Light} Space Perspective Shadow Mapping Algorithm. 

\begin{DoxyRemark}{Remarks}
Implements the Li\+S\+P\+SM algorithm for an advanced shadow map generation. Li\+S\+P\+SM was developed by Michael Wimmer, Daniel Scherzer and Werner Purgathofer of the TU Wien. The algorithm was presented on the Eurographics Symposium on Rendering 2004. 
\end{DoxyRemark}
\begin{DoxyNote}{Note}
Shadow mapping was introduced by Williams in 1978. First a depth image is rendered from the light\textquotesingle{}s view and compared in a second pass with depth values of the normal camera view. In case the depth camera\textquotesingle{}s depth value is greater than the depth seen by the light the fragment lies in the shadow. The concept has a major draw back named perspective aliasing. The shadow map distri-\/ butes the samples uniformly meaning the position of the viewer is ignored. For the viewer however the perspective projection affects near objects to be displayed bigger than further away objects. The same thing happens with the shadow map texels\+: Near shadows appear very coarse and far away shadows are perfectly sampled. In 2002 Stamminger et al. presented an algorithm called Perspective Shadow Maps (P\+SM). P\+SM battles the perspective aliasing by distributing 50\% of the shadow map texels for objects in the range of $<$ near clipping plane $>$ to $<$ near clipping plane $\ast$ 2 $>$ which inverts the problem\+: The shadows near the viewer are perfectly sampled, however far away shadow may contain aliasing artefacts. A near clipping plane may be a problem. But this is not the only one. In the post-\/perspective space the light sources are non-\/intuitively mapped\+: Directional lights may become point light and point lights may become directional lights. Also light sinks (opposite of a light source) may appear. Another problem are shadow casters located behind the viewer. In post-\/projective space objects behind the viewer are mapped in front of him with a flipped up-\/vector. Li\+S\+P\+SM battles the light source problem of the post-\/projective space by rearranging the light space before transformation in such a way that no special cases appear. This is done by converting point/spot lights into directional lights. The light space is arranged in such a way that the light direction equals the inverse U\+N\+I\+T\+\_\+Y. In this combination the directional light will neither change its type nor its direction. Furthermore all visible objects and shadow casters affecting the user\textquotesingle{}s visible area lie in front of the shadow camera\+: After building the intersection body that contains all these objects (body intersection building was introduced with P\+SM; have a look at the description for the method \char`\"{}calculate\+B\char`\"{} for further info) a frustum around the body\textquotesingle{}s light space bounding box is created. A parameter (called \textquotesingle{}n\textquotesingle{}) automatically adjusts the shadow map sample distribution by specifying the frustum\textquotesingle{}s view point -\/ near plane which affects the perspective warp. In case the distance is small the perspecive warp will be strong. As a consequence near objects will gain quality. However there are still problems. P\+SM as well as Li\+S\+P\+SM only devote to minimize perspective aliasing. Projection aliasing is still a problem, also \textquotesingle{}swimming artefacts\textquotesingle{} still occur. The Li\+S\+P\+SM quality distribution is very good but not the best available\+: Some sources say logarithmic shadow mapping is the non plus ultra, however others reject this thought. There is a research project on logarithmic shadow maps. The web page url is \href{http://gamma.cs.unc.edu/logsm/}{\tt http\+://gamma.\+cs.\+unc.\+edu/logsm/}. However there is no techical report available yet (Oct 23rd, 2006). 

More information can be found on the webpage of the TU Wien\+: \href{http://www.cg.tuwien.ac.at/research/vr/lispsm/}{\tt http\+://www.\+cg.\+tuwien.\+ac.\+at/research/vr/lispsm/} 

Original implementation by Matthias Fink \href{mailto:matthias.fink@web.de}{\tt matthias.\+fink@web.\+de}, 2006. 
\end{DoxyNote}


\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_a9773b96e56d49b46ae8b71ef94e60e73}\label{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_a9773b96e56d49b46ae8b71ef94e60e73}} 
\index{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}!Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}}
\index{Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}!Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}}
\subsubsection{\texorpdfstring{Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup()}{LiSPSMShadowCameraSetup()}}
{\footnotesize\ttfamily Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Default constructor. 

\begin{DoxyRemark}{Remarks}
Nothing done here. 
\end{DoxyRemark}
\mbox{\Hypertarget{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_aa619e8c0071d56b9a020413bb15d93a5}\label{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_aa619e8c0071d56b9a020413bb15d93a5}} 
\index{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}!````~Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{$\sim$\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}}
\index{````~Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{$\sim$\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}!Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}}
\subsubsection{\texorpdfstring{$\sim$\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup()}{~LiSPSMShadowCameraSetup()}}
{\footnotesize\ttfamily virtual Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup\+::$\sim$\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Default destructor. 

\begin{DoxyRemark}{Remarks}
Nothing done here. 
\end{DoxyRemark}


\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_aa19c6563c41297f7e14e8918dd89b074}\label{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_aa19c6563c41297f7e14e8918dd89b074}} 
\index{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}!get\+Shadow\+Camera@{get\+Shadow\+Camera}}
\index{get\+Shadow\+Camera@{get\+Shadow\+Camera}!Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}}
\subsubsection{\texorpdfstring{get\+Shadow\+Camera()}{getShadowCamera()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup\+::get\+Shadow\+Camera (\begin{DoxyParamCaption}\item[{const \hyperlink{class_ogre_1_1_scene_manager}{Scene\+Manager} $\ast$}]{sm,  }\item[{const \hyperlink{class_ogre_1_1_camera}{Camera} $\ast$}]{cam,  }\item[{const \hyperlink{class_ogre_1_1_viewport}{Viewport} $\ast$}]{vp,  }\item[{const \hyperlink{class_ogre_1_1_light}{Light} $\ast$}]{light,  }\item[{\hyperlink{class_ogre_1_1_camera}{Camera} $\ast$}]{tex\+Cam,  }\item[{size\+\_\+t}]{iteration }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}



Returns a Li\+S\+P\+SM shadow camera. 

\begin{DoxyRemark}{Remarks}
Builds and returns a Li\+S\+P\+SM shadow camera. More information can be found on the webpage of the TU Wien\+: \href{http://www.cg.tuwien.ac.at/research/vr/lispsm/}{\tt http\+://www.\+cg.\+tuwien.\+ac.\+at/research/vr/lispsm/} 
\end{DoxyRemark}


Reimplemented from \hyperlink{class_ogre_1_1_focused_shadow_camera_setup_a0a935957315291c4dba7abf7eaa4f109}{Ogre\+::\+Focused\+Shadow\+Camera\+Setup}.



Reimplemented in \hyperlink{class_ogre_1_1_p_s_s_m_shadow_camera_setup_a0503ea13df793d0f8d83a30211281321}{Ogre\+::\+P\+S\+S\+M\+Shadow\+Camera\+Setup}.

\mbox{\Hypertarget{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_aa4f0c58ca0ea89aa7e4b11def4976ea6}\label{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_aa4f0c58ca0ea89aa7e4b11def4976ea6}} 
\index{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}!set\+Optimal\+Adjust\+Factor@{set\+Optimal\+Adjust\+Factor}}
\index{set\+Optimal\+Adjust\+Factor@{set\+Optimal\+Adjust\+Factor}!Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}}
\subsubsection{\texorpdfstring{set\+Optimal\+Adjust\+Factor()}{setOptimalAdjustFactor()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup\+::set\+Optimal\+Adjust\+Factor (\begin{DoxyParamCaption}\item[{\hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real}}]{n }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Adjusts the parameter n to produce optimal shadows. 

\begin{DoxyRemark}{Remarks}
The smaller the parameter n, the stronger the perspective warping effect. The consequence of a stronger warping is that the near shadows will gain quality while the far ones will lose it. Depending on your scene and light types you may want to tweak this value -\/ for example directional lights tend to benefit from higher values of n than other types of light, especially if you expect to see more distant shadows (say if the viewpoint is higher above the ground plane). Remember that you can supply separate \hyperlink{class_ogre_1_1_shadow_camera_setup}{Shadow\+Camera\+Setup} instances configured differently per light if you wish. 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em n} & The adjustment factor -\/ default is 0.\+1f. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_a9b5d6e5ff9339e7a010c2dfbcb051490}\label{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_a9b5d6e5ff9339e7a010c2dfbcb051490}} 
\index{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}!get\+Optimal\+Adjust\+Factor@{get\+Optimal\+Adjust\+Factor}}
\index{get\+Optimal\+Adjust\+Factor@{get\+Optimal\+Adjust\+Factor}!Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}}
\subsubsection{\texorpdfstring{get\+Optimal\+Adjust\+Factor()}{getOptimalAdjustFactor()}}
{\footnotesize\ttfamily virtual \hyperlink{namespace_ogre_aa3a7b6dfb905e6572d62f0dfa3d4274d}{Real} Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup\+::get\+Optimal\+Adjust\+Factor (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Get the parameter n used to produce optimal shadows. 

\begin{DoxySeeAlso}{See also}
\hyperlink{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_aa4f0c58ca0ea89aa7e4b11def4976ea6}{set\+Optimal\+Adjust\+Factor} 
\end{DoxySeeAlso}


Reimplemented in \hyperlink{class_ogre_1_1_p_s_s_m_shadow_camera_setup_a6daefce1b9f1d6e0d03b777545ea6e0a}{Ogre\+::\+P\+S\+S\+M\+Shadow\+Camera\+Setup}.

\mbox{\Hypertarget{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_ae09cafbe81832dd23c70f85d9435b213}\label{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_ae09cafbe81832dd23c70f85d9435b213}} 
\index{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}!set\+Use\+Simple\+Optimal\+Adjust@{set\+Use\+Simple\+Optimal\+Adjust}}
\index{set\+Use\+Simple\+Optimal\+Adjust@{set\+Use\+Simple\+Optimal\+Adjust}!Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}}
\subsubsection{\texorpdfstring{set\+Use\+Simple\+Optimal\+Adjust()}{setUseSimpleOptimalAdjust()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup\+::set\+Use\+Simple\+Optimal\+Adjust (\begin{DoxyParamCaption}\item[{bool}]{s }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Sets whether or not to use a slightly simpler version of the camera near point derivation (default is true) 

\mbox{\Hypertarget{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_ad836bab9853f49b42a2fe9f2aab786b1}\label{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_ad836bab9853f49b42a2fe9f2aab786b1}} 
\index{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}!get\+Use\+Simple\+Optimal\+Adjust@{get\+Use\+Simple\+Optimal\+Adjust}}
\index{get\+Use\+Simple\+Optimal\+Adjust@{get\+Use\+Simple\+Optimal\+Adjust}!Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}}
\subsubsection{\texorpdfstring{get\+Use\+Simple\+Optimal\+Adjust()}{getUseSimpleOptimalAdjust()}}
{\footnotesize\ttfamily virtual bool Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup\+::get\+Use\+Simple\+Optimal\+Adjust (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Gets whether or not to use a slightly simpler version of the camera near point derivation (default is true) 

\mbox{\Hypertarget{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_a2a6fb5e0335458e5c626740bfcbfc56c}\label{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_a2a6fb5e0335458e5c626740bfcbfc56c}} 
\index{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}!set\+Camera\+Light\+Direction\+Threshold@{set\+Camera\+Light\+Direction\+Threshold}}
\index{set\+Camera\+Light\+Direction\+Threshold@{set\+Camera\+Light\+Direction\+Threshold}!Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}}
\subsubsection{\texorpdfstring{set\+Camera\+Light\+Direction\+Threshold()}{setCameraLightDirectionThreshold()}}
{\footnotesize\ttfamily virtual void Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup\+::set\+Camera\+Light\+Direction\+Threshold (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_degree}{Degree}}]{angle }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Sets the threshold between the camera and the light direction below which the Li\+S\+P\+SM projection is \textquotesingle{}flattened\textquotesingle{}, since coincident light and camera projections cause problems with the perspective skew. 

\begin{DoxyRemark}{Remarks}
For example, setting this to 20 degrees will mean that as the difference between the light and camera direction reduces from 20 degrees to 0 degrees, the perspective skew will be proportionately removed. 
\end{DoxyRemark}
\mbox{\Hypertarget{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_abddaf4baa243cbda0e8a2bd43f3058f0}\label{class_ogre_1_1_li_s_p_s_m_shadow_camera_setup_abddaf4baa243cbda0e8a2bd43f3058f0}} 
\index{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}!get\+Camera\+Light\+Direction\+Threshold@{get\+Camera\+Light\+Direction\+Threshold}}
\index{get\+Camera\+Light\+Direction\+Threshold@{get\+Camera\+Light\+Direction\+Threshold}!Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}}
\subsubsection{\texorpdfstring{get\+Camera\+Light\+Direction\+Threshold()}{getCameraLightDirectionThreshold()}}
{\footnotesize\ttfamily virtual \hyperlink{class_ogre_1_1_degree}{Degree} Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup\+::get\+Camera\+Light\+Direction\+Threshold (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}



Sets the threshold between the camera and the light direction below which the Li\+S\+P\+SM projection is \textquotesingle{}flattened\textquotesingle{}, since coincident light and camera projections cause problems with the perspective skew. 

\mbox{\Hypertarget{class_ogre_1_1_focused_shadow_camera_setup_af57854c45cd48033da1cb28e316901dc}\label{class_ogre_1_1_focused_shadow_camera_setup_af57854c45cd48033da1cb28e316901dc}} 
\index{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}!set\+Use\+Aggressive\+Focus\+Region@{set\+Use\+Aggressive\+Focus\+Region}}
\index{set\+Use\+Aggressive\+Focus\+Region@{set\+Use\+Aggressive\+Focus\+Region}!Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}}
\subsubsection{\texorpdfstring{set\+Use\+Aggressive\+Focus\+Region()}{setUseAggressiveFocusRegion()}}
{\footnotesize\ttfamily void Ogre\+::\+Focused\+Shadow\+Camera\+Setup\+::set\+Use\+Aggressive\+Focus\+Region (\begin{DoxyParamCaption}\item[{bool}]{aggressive }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [inherited]}}



Sets whether or not to use the more aggressive approach to deciding on the focus region or not. 

\begin{DoxyNote}{Note}
There are 2 approaches that can be used to define the focus region, the more aggressive way introduced by Wimmer et al, or the original way as described in Stamminger et al. Wimmer et al\textquotesingle{}s way tends to come up with a tighter focus region but in rare cases (mostly highly glancing angles) can cause some shadow casters to be clipped incorrectly. By default the more aggressive approach is used since it leads to significantly better results in most cases, but if you experience clipping issues, you can use the less aggressive version. 
\end{DoxyNote}

\begin{DoxyParams}{Parameters}
{\em aggressive} & True to use the more aggressive approach, false otherwise. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_focused_shadow_camera_setup_ad28464a9e78991c046b70f2d6c95a753}\label{class_ogre_1_1_focused_shadow_camera_setup_ad28464a9e78991c046b70f2d6c95a753}} 
\index{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}!get\+Use\+Aggressive\+Focus\+Region@{get\+Use\+Aggressive\+Focus\+Region}}
\index{get\+Use\+Aggressive\+Focus\+Region@{get\+Use\+Aggressive\+Focus\+Region}!Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup@{Ogre\+::\+Li\+S\+P\+S\+M\+Shadow\+Camera\+Setup}}
\subsubsection{\texorpdfstring{get\+Use\+Aggressive\+Focus\+Region()}{getUseAggressiveFocusRegion()}}
{\footnotesize\ttfamily bool Ogre\+::\+Focused\+Shadow\+Camera\+Setup\+::get\+Use\+Aggressive\+Focus\+Region (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [inherited]}}



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\hyperlink{_ogre_shadow_camera_setup_li_s_p_s_m_8h}{Ogre\+Shadow\+Camera\+Setup\+Li\+S\+P\+S\+M.\+h}\end{DoxyCompactItemize}
