VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
renderPassCoC.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2025-2026 Arnis Lektauers
3//
4//
5#pragma once
6
9
10namespace visutwin::canvas
11{
13 {
14 public:
15 RenderPassCoC(const std::shared_ptr<GraphicsDevice>& device, CameraComponent* cameraComponent, bool nearBlur);
16
17 float focusDistance = 100.0f;
18 float focusRange = 10.0f;
19
20 void execute() override;
21
22 private:
23 CameraComponent* _cameraComponent = nullptr;
24 bool _nearBlur = false;
25 float _params[3] = {100.001f, 10.0f, 0.1f};
26 float _cameraParams[4] = {0.0f, 0.0f, 0.0f, 0.0f};
27 };
28}
29
RenderPassCoC(const std::shared_ptr< GraphicsDevice > &device, CameraComponent *cameraComponent, bool nearBlur)
std::shared_ptr< GraphicsDevice > device() const
Definition renderPass.h:124
RenderPassShaderQuad(const std::shared_ptr< GraphicsDevice > &device)