Files
Seele/src/Engine/Graphics/RenderPass/SkyboxRenderPass.h
T

41 lines
1.3 KiB
C++
Raw Normal View History

2023-01-29 18:58:59 +01:00
#pragma once
#include "Component/Skybox.h"
2024-06-09 12:20:04 +02:00
#include "Graphics/Shader.h"
#include "RenderPass.h"
2023-01-29 18:58:59 +01:00
2024-06-09 12:20:04 +02:00
namespace Seele {
class SkyboxRenderPass : public RenderPass {
public:
2023-10-26 18:37:29 +02:00
SkyboxRenderPass(Gfx::PGraphics graphics, PScene scene);
2023-11-05 10:36:01 +01:00
SkyboxRenderPass(SkyboxRenderPass&&) = default;
SkyboxRenderPass& operator=(SkyboxRenderPass&&) = default;
2023-01-29 18:58:59 +01:00
virtual ~SkyboxRenderPass();
virtual void beginFrame(const Component::Camera& cam) override;
virtual void render() override;
virtual void endFrame() override;
virtual void publishOutputs() override;
virtual void createRenderPass() override;
2024-06-09 12:20:04 +02:00
private:
2024-02-01 10:21:36 +01:00
Gfx::RenderTargetAttachment colorAttachment;
Gfx::RenderTargetAttachment depthAttachment;
2023-11-09 22:15:51 +01:00
Gfx::ODescriptorLayout skyboxDataLayout;
Gfx::PDescriptorSet skyboxDataSet;
Gfx::ODescriptorLayout textureLayout;
Gfx::PDescriptorSet textureSet;
2023-11-08 23:27:21 +01:00
Gfx::OVertexShader vertexShader;
Gfx::OFragmentShader fragmentShader;
2024-04-19 18:23:36 +02:00
Gfx::OPipelineLayout pipelineLayout;
2023-11-09 22:15:51 +01:00
Gfx::PGraphicsPipeline pipeline;
2023-11-15 17:42:57 +01:00
Gfx::OSampler skyboxSampler;
2024-06-09 12:20:04 +02:00
struct SkyboxData {
2024-01-02 16:48:03 +01:00
Matrix4 transformMatrix;
Vector fogColor;
float blendFactor;
} skyboxData;
Gfx::OUniformBuffer skyboxBuffer;
2023-10-26 18:37:29 +02:00
Component::Skybox skybox;
2023-01-29 18:58:59 +01:00
};
DEFINE_REF(SkyboxRenderPass)
} // namespace Seele