载入中...
搜索中...
未找到
PcgInteriorWeatherVolume.cpp
浏览该文件的文档.
22 return Result<void>::failure(Diagnostic::error(DiagnosticCode::InvalidArgument, "box center and positive dimensions must be finite",
25 return Result<void>::failure(Diagnostic::error(DiagnosticCode::InvalidArgument, "mode and reverb preset identifiers are invalid",
36Result<void> PcgInteriorWeatherVolume::configureSphere(float centerX, float centerY, float centerZ,
41 return Result<void>::failure(Diagnostic::error(DiagnosticCode::InvalidArgument, "sphere center and positive radius must be finite",
44 return Result<void>::failure(Diagnostic::error(DiagnosticCode::InvalidArgument, "mode and reverb preset identifiers are invalid",
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
Result< void > configureBox(float centerX, float centerY, float centerZ, float sizeX, float sizeY, float sizeZ, int mode, int interiorReverbPreset, int exteriorReverbPreset)
Configure an axis-aligned box atomically. Dimensions must be finite and positive.
Definition PcgInteriorWeatherVolume.cpp:16
bool contains(float x, float y, float z) const noexcept
Return whether a finite world-space position lies inside, including the boundary.
Definition PcgInteriorWeatherVolume.cpp:55
int exteriorReverbPreset() const noexcept
Exterior reverb preset.
Definition PcgInteriorWeatherVolume.h:44
Result< void > configureSphere(float centerX, float centerY, float centerZ, float radius, int mode, int interiorReverbPreset, int exteriorReverbPreset)
Configure a sphere atomically. Radius must be finite and positive.
Definition PcgInteriorWeatherVolume.cpp:36
int interiorReverbPreset() const noexcept
Interior reverb preset.
Definition PcgInteriorWeatherVolume.h:42
Definition LightingTarget.h:19
PcgInteriorWeatherMode
Interior precipitation policy mirrored from Pcg.
Definition PcgInteriorWeatherVolume.h:11
@ DisableVfx
@ InvalidArgument