mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
feat: deferred shading (day 2)
This commit is contained in:
parent
a585b52aa2
commit
0bd901d1a6
23 changed files with 236 additions and 92 deletions
|
|
@ -44,7 +44,11 @@ public:
|
|||
const Assets& assets,
|
||||
float timer,
|
||||
const Camera& camera,
|
||||
uint shadowMap
|
||||
uint shadowMap,
|
||||
uint shadowMap2,
|
||||
const glm::mat4& shadowMatrix,
|
||||
const glm::mat4& shadowMatrix2,
|
||||
uint shadowMapResolution
|
||||
);
|
||||
|
||||
void setEffect(size_t slot, std::shared_ptr<PostEffect> effect);
|
||||
|
|
@ -55,6 +59,7 @@ public:
|
|||
std::unique_ptr<ImageData> toImage();
|
||||
|
||||
Framebuffer* getFramebuffer() const;
|
||||
void bindDepthBuffer();
|
||||
private:
|
||||
void configureEffect(
|
||||
const DrawContext& context,
|
||||
|
|
@ -62,7 +67,11 @@ private:
|
|||
Shader& shader,
|
||||
float timer,
|
||||
const Camera& camera,
|
||||
uint shadowMap
|
||||
uint shadowMap,
|
||||
uint shadowMap2,
|
||||
const glm::mat4& shadowMatrix,
|
||||
const glm::mat4& shadowMatrix2,
|
||||
uint shadowMapResolution
|
||||
);
|
||||
|
||||
void refreshFbos(uint width, uint height);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue