Blender V5.3
eevee_ambient_occlusion.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
14
15#pragma once
16
17#include "draw_pass.hh"
18
20
21namespace blender::eevee {
22
23using namespace draw;
24
25class Instance;
26
27/* -------------------------------------------------------------------- */
30
32 private:
33 class Instance &inst_;
34
35 bool render_pass_enabled_ = false;
36 int ray_count_ = 0;
37 int step_count_ = 0;
38
39 AOData &data_;
40 PassSimple render_pass_ps_ = {"AO Render Pass"};
41 Texture dummy_tx_ = {"dummy_tx"};
42
43 public:
44 AmbientOcclusion(Instance &inst, AOData &data) : inst_(inst), data_(data) {};
46
47 void init();
48
49 void sync();
50
51 void render(View &view);
52 void render_pass(View &view);
53};
54
56
57} // namespace blender::eevee
AmbientOcclusion(Instance &inst, AOData &data)
A running instance of the engine.
detail::Pass< command::DrawCommandBuf > PassSimple
BMesh const char void * data