Blender V4.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
15#pragma once
16
18
19namespace blender::eevee {
20
21class Instance;
22
23/* -------------------------------------------------------------------- */
28 private:
29 class Instance &inst_;
30
31 bool render_pass_enabled_;
32 int ray_count_ = 0;
33 int step_count_ = 0;
34
35 AOData &data_;
36 PassSimple render_pass_ps_ = {"AO Render Pass"};
37
38 public:
39 AmbientOcclusion(Instance &inst, AOData &data) : inst_(inst), data_(data){};
41
42 void init();
43
44 void sync();
45
46 void render(View &view);
47 void render_pass(View &view);
48};
49
52} // namespace blender::eevee
AmbientOcclusion(Instance &inst, AOData &data)
A running instance of the engine.