VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
renderPassCookieRenderer.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2025-2026 Arnis Lektauers
3//
4// Created by Arnis Lektauers on 01.10.2025.
5//
6#pragma once
7
9#include "scene/light.h"
10
11namespace visutwin::canvas
12{
17 {
18 public:
19 explicit RenderPassCookieRenderer(const std::shared_ptr<GraphicsDevice>& device) : RenderPass(device), _forceCopy(false) {}
20
21 void update(const std::vector<Light*>& lights);
22
23 private:
24 void filter(const std::vector<Light*>& lights, std::vector<Light*>& filteredLights);
25
26 std::vector<Light*> _filteredLights;
27
28 bool _forceCopy;
29
30 bool _executeEnabled = true;
31 };
32}
std::shared_ptr< GraphicsDevice > device() const
Definition renderPass.h:124
RenderPass(const std::shared_ptr< GraphicsDevice > &device)
Definition renderPass.h:66