27#ifndef EASY3D_RENDERER_SOFT_SHADOW_H
28#define EASY3D_RENDERER_SOFT_SHADOW_H
30#include <easy3d/renderer/shadow.h>
75 SP_Poisson_64_128 = 2,
76 SP_Poisson_100_100 = 3,
87 float softness()
const {
return softness_; }
88 void set_softness(
float s) { softness_ = s; }
91 SamplePattern sample_pattern()
const {
return sample_pattern_; }
92 void set_sample_pattern(SamplePattern pattern) { sample_pattern_ = pattern; }
95 void ensure_fbo()
override;
96 void shadow_map_pass(
const std::vector<TrianglesDrawable*>& surfaces)
override;
97 void render_pass(
const std::vector<TrianglesDrawable*>& surfaces)
override;
103 SamplePattern sample_pattern_;
A perspective or orthographic camera.
Definition: camera.h:116
Shadow implements the standard shadow map (hard shadow) algorithm.
Definition: shadow.h:50
An implementation of the Percentage-Closer Soft Shadows.
Definition: soft_shadow.h:70
SoftShadow(Camera *cam)
Constructor.
Definition: soft_shadow.cpp:43
Definition: collider.cpp:182