Blender V5.0
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
42 public:
43 AmbientOcclusion(Instance &inst, AOData &data) : inst_(inst), data_(data) {};
45
46 void init();
47
48 void sync();
49
51 void render_pass(View &view);
52};
53
55
56} // namespace blender::eevee
static AppView * view
BMesh const char void * data
AmbientOcclusion(Instance &inst, AOData &data)
A running instance of the engine.
detail::Pass< command::DrawCommandBuf > PassSimple