27#ifndef EASY3D_RENDERER_SOFT_SHADOW_H
28#define EASY3D_RENDERER_SOFT_SHADOW_H
30#include <easy3d/renderer/shadow.h>
115 void ensure_fbo()
override;
116 void shadow_map_pass(
const std::vector<TrianglesDrawable*>& surfaces)
override;
117 void render_pass(
const std::vector<TrianglesDrawable*>& surfaces)
override;
A perspective or orthographic camera.
Definition camera.h:113
Shadow(Camera *cam)
Constructor.
Definition shadow.cpp:50
An implementation of the Percentage-Closer Soft Shadows.
Definition soft_shadow.h:70
~SoftShadow() override=default
Destructor.
SoftShadow(Camera *cam)
Constructor.
Definition soft_shadow.cpp:43
void set_softness(float s)
Set the softness of the shadow.
Definition soft_shadow.h:101
SamplePattern sample_pattern() const
Get the sample pattern used for blocker search and PCF filtering.
Definition soft_shadow.h:107
void set_sample_pattern(SamplePattern pattern)
Set the sample pattern used for blocker search and PCF filtering.
Definition soft_shadow.h:112
float softness() const
Get the softness of the shadow.
Definition soft_shadow.h:96
SamplePattern
The sample pattern used for blocker search and PCF filtering.
Definition soft_shadow.h:73
@ SP_Poisson_64_128
64 samples for the blocker search, 128 samples for the PCF filtering, all samples using a Poisson dis...
Definition soft_shadow.h:76
@ SP_Poisson_100_100
100 samples for the blocker search, 100 samples for the PCF filtering, all samples using a Poisson di...
Definition soft_shadow.h:77
@ SP_Poisson_25_25
25 samples for the blocker search, 25 samples in the PCF filtering, all samples using a Poisson disk
Definition soft_shadow.h:74
@ SP_Regular_49_225
49 samples for the blocker search, 225 samples for the PCF filtering, all samples using regular sampl...
Definition soft_shadow.h:78
@ SP_Poisson_32_64
32 samples for the blocker search, 64 samples for the PCF filtering, all samples using a Poisson disk
Definition soft_shadow.h:75
Definition collider.cpp:182