载入中...
搜索中...
未找到
PcgLightingAmbientPhotoMode.cpp
浏览该文件的文档.
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
DayNight module — a time-of-day cycle that drives the sun, sky and light.
Definition DayNight.h:94
Result< void > setPcgAmbientLight(const PcgAmbientLightState &state)
Atomically replace Pcg ambient colors, intensity and direct-light multiplier.
Definition DayNight.cpp:421
void setAuthority(bool enabled)
Register or revoke ownership of the five ambient-light fields.
Definition PcgLightingAmbientPhotoMode.cpp:31
~PcgLightingAmbientPhotoMode() override
Pcg lighting ambient photo mode.
Definition PcgLightingAmbientPhotoMode.cpp:16
void setTarget(DayNight *target) noexcept
Attach a borrowed DayNight target and seed local state from it.
Definition PcgLightingAmbientPhotoMode.cpp:23
PhotoModeFieldAcceptance acceptsPhotoModeField(const PhotoModeAssignment &assignment) const noexcept override
Accept only Pcg ambient and global-light assignments.
Definition PcgLightingAmbientPhotoMode.cpp:44
Result< void > applyPhotoModeField(const PhotoModeAssignment &assignment) override
Validate and atomically project one field through DayNight.
Definition PcgLightingAmbientPhotoMode.cpp:51
Definition DayNight.cpp:18
const EditorValue * field(const EditorValue &value, const char *name)
Definition RoadNetworkEditTarget.cpp:15
@ InvalidArgument
@ Unsupported
PhotoModeFieldAcceptance
Capability implemented by the composition root that routes assignments to domain owners.
Definition PcgPhotoModeApply.h:32
@ Accepted
@ Rejected
@ Lighting
One reversible field assignment in a photo-mode transaction.
Definition PcgPhotoModeApply.h:15
Pcg ambient-gradient colors and global direct-light multiplier.
Definition DayNight.h:61
float globalLightMultiplier
Definition DayNight.h:67