-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad9cb04
commit dfdcc65
Showing
23 changed files
with
1,143 additions
and
731 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
include/engine/core/renderpasses/irradiance_compute_pass.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
This file is part of Vulkan-Engine, a simple to use Vulkan based 3D library | ||
MIT License | ||
Copyright (c) 2023 Antonio Espinosa Garcia | ||
*/ | ||
#ifndef IRR_COMP_PASS_H | ||
#define IRR_COMP_PASS_H | ||
#include <engine/core/renderpasses/renderpass.h> | ||
|
||
VULKAN_ENGINE_NAMESPACE_BEGIN | ||
|
||
namespace Core | ||
{ | ||
|
||
class IrrandianceComputePass : public RenderPass | ||
{ | ||
Graphics::DescriptorSet m_captureDescriptorSet; | ||
Graphics::Buffer m_captureBuffer; | ||
|
||
public: | ||
IrrandianceComputePass(Graphics::Context *ctx, Extent2D extent) | ||
: RenderPass(ctx, extent, 1, CUBEMAP_FACES, false) | ||
{ | ||
} | ||
|
||
void init(); | ||
|
||
void create_descriptors(); | ||
|
||
void create_graphic_pipelines(); | ||
|
||
void render(uint32_t frameIndex, Scene *const scene, uint32_t presentImageIndex = 0); | ||
|
||
void upload_data(uint32_t frameIndex, Scene *const scene); | ||
|
||
void connect_env_cubemap(Graphics::Image env); | ||
|
||
void cleanup(); | ||
}; | ||
|
||
} // namespace Core | ||
VULKAN_ENGINE_NAMESPACE_END | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 40 additions & 13 deletions
53
...urces/shaders/compute_env_irradiance.glsl → resources/shaders/irradiance_compute.glsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.