载入中...
搜索中...
未找到
PcgInteriorWeatherVolume.h
浏览该文件的文档.
1#pragma once
2
3#include "common/Result.h"
4
5namespace eve::weather {
6
8enum class PcgInteriorWeatherShape { Box = 0, Sphere = 1 };
9
12
15
23public:
25 [[nodiscard]] Result<void> configureBox(float centerX, float centerY, float centerZ,
26 float sizeX, float sizeY, float sizeZ,
27 int mode, int interiorReverbPreset,
28 int exteriorReverbPreset);
30 [[nodiscard]] Result<void> configureSphere(float centerX, float centerY, float centerZ,
31 float radius, int mode,
32 int interiorReverbPreset,
33 int exteriorReverbPreset);
35 bool contains(float x, float y, float z) const noexcept;
36
38 PcgInteriorWeatherShape shape() const noexcept { return shape_; }
40 PcgInteriorWeatherMode mode() const noexcept { return mode_; }
42 int interiorReverbPreset() const noexcept { return interiorReverbPreset_; }
44 int exteriorReverbPreset() const noexcept { return exteriorReverbPreset_; }
45
46private:
47 PcgInteriorWeatherShape shape_ = PcgInteriorWeatherShape::Box;
48 PcgInteriorWeatherMode mode_ = PcgInteriorWeatherMode::Collision;
49 float centerX_ = 0.f, centerY_ = 0.f, centerZ_ = 0.f;
50 float extentX_ = 15.f, extentY_ = 15.f, extentZ_ = 15.f;
51 int interiorReverbPreset_ = 0;
52 int exteriorReverbPreset_ = 0;
53};
54
55} // namespace eve::weather
float y
Definition AnimClip.cpp:738
float x
Definition AnimClip.cpp:738
float z
Definition AnimClip.cpp:738
#define EVENGINE_API_ORCHESTRATION
Definition Export.h:111
float radius
Move-only, checked operation results for the common layer.
Move-only operation result carrying either a value or Status.
Definition Result.h:155
Caller-owned, immutable-after-configuration Pcg interior-weather volume. @ownership This value owns a...
PcgInteriorWeatherMode mode() const noexcept
Mode.
int exteriorReverbPreset() const noexcept
Exterior reverb preset.
PcgInteriorWeatherShape shape() const noexcept
Shape.
int interiorReverbPreset() const noexcept
Interior reverb preset.
PcgInteriorWeatherMode
Interior precipitation policy mirrored from Pcg.
PcgInteriorWeatherShape
Shape used by Pcg's interior-weather containment test.
PcgInteriorWeatherTransition
Observable transition produced by an interior-volume sample.