Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
ShadowMap.cpp File Reference
#include "precompiled.h"
#include "ShadowMap.h"
#include "graphics/Camera.h"
#include "graphics/LightEnv.h"
#include "graphics/ShaderManager.h"
#include "lib/bits.h"
#include "maths/BoundingBoxAligned.h"
#include "maths/Brush.h"
#include "maths/Frustum.h"
#include "maths/MathUtil.h"
#include "maths/Matrix3D.h"
#include "ps/CLogger.h"
#include "ps/ConfigDB.h"
#include "ps/CStrInternStatic.h"
#include "ps/Profile.h"
#include "renderer/backend/IDevice.h"
#include "renderer/backend/ITexture.h"
#include "renderer/DebugRenderer.h"
#include "renderer/Renderer.h"
#include "renderer/RenderingOptions.h"
#include "renderer/SceneRenderer.h"
#include <array>
Include dependency graph for ShadowMap.cpp:

Classes

struct  ShadowMapInternals
 Struct ShadowMapInternals: Internal data for the ShadowMap implementation. More...
 
struct  ShadowMapInternals::Cascade
 

Namespaces

namespace  anonymous_namespace{ShadowMap.cpp}
 

Functions

void CalculateBoundsForCascade (const CCamera &camera, const CMatrix3D &lightTransform, const float nearPlane, const float farPlane, CBoundingBoxAligned *bbaa, CBoundingBoxAligned *frustumBBAA)
 

Variables

constexpr int anonymous_namespace{ShadowMap.cpp}::MAX_CASCADE_COUNT = 4
 
constexpr float anonymous_namespace{ShadowMap.cpp}::DEFAULT_SHADOWS_CUTOFF_DISTANCE = 300.0f
 
constexpr float anonymous_namespace{ShadowMap.cpp}::DEFAULT_CASCADE_DISTANCE_RATIO = 1.7f
 

Function Documentation

◆ CalculateBoundsForCascade()

void CalculateBoundsForCascade ( const CCamera camera,
const CMatrix3D lightTransform,
const float  nearPlane,
const float  farPlane,
CBoundingBoxAligned bbaa,
CBoundingBoxAligned frustumBBAA 
)