candlewick 0.1.0
A renderer
Loading...
Searching...
No Matches
DepthAndShadowPass.h File Reference
#include "Core.h"
#include "Tags.h"
#include "Texture.h"
#include "Camera.h"
#include "math_types.h"
#include "LightUniforms.h"
#include <SDL3/SDL_gpu.h>
#include <span>

Go to the source code of this file.

Classes

class  candlewick::DepthPass
 Helper struct for depth or light pre-passes. More...
 
struct  candlewick::DepthPass::Config
 
class  candlewick::ShadowMapPass
 Helper struct for shadow mapping pass. More...
 
struct  candlewick::ShadowMapPass::Config
 

Namespaces

namespace  candlewick
 

Typedefs

using candlewick::ShadowPassConfig = ShadowMapPass::Config
 

Functions

void candlewick::renderShadowPassFromAABB (CommandBuffer &cmdBuf, ShadowMapPass &passInfo, const DirectionalLight &dirLight, std::span< const OpaqueCastable > castables, const AABB &worldSceneBounds)
 Render shadow pass, using provided scene bounds.
 
void candlewick::renderShadowPassFromFrustum (CommandBuffer &cmdBuf, ShadowMapPass &passInfo, const DirectionalLight &dirLight, std::span< const OpaqueCastable > castables, const FrustumCornersType &worldSpaceCorners)
 Render shadow pass, using a provided world-space frustum.
 
Mat4f candlewick::shadowOrthographicMatrix (const Float2 &sizes, float zMin, float zMax)
 Orthographic matrix which maps to the negative-Z half-volume of the NDC cube, for depth-testing/shadow mapping purposes.