载入中...
搜索中...
未找到
EnvironmentDayNightRuntime.cpp
浏览该文件的文档.
12 return eve::editing::failed<void>(EditorStatus::Rejected, RuleId("editor.environment.daynight-required"),
16 return eve::editing::failed<void>(EditorStatus::Rejected, RuleId("editor.environment.mode-mismatch"),
22 environment->setTimeOfDay(static_cast<float>(*document.value("daynight.time")->getIf<double>()));
25 environment->setTurbidity(static_cast<float>(*document.value("daynight.turbidity")->getIf<double>()));
26 environment->setMieStrength(static_cast<float>(*document.value("daynight.mie")->getIf<double>()));
27 environment->setSkyExposure(static_cast<float>(*document.value("environment.exposure")->getIf<double>()));
A structured explanation of a failed, degraded, or noteworthy result.
Definition Diagnostic.h:94
DayNight module — a time-of-day cycle that drives the sun, sky and light.
Definition DayNight.h:94
void setTurbidity(float turbidity)
Set aerosol turbidity. 1.5 is very clear; 10 is hazy.
Definition DayNight.cpp:444
void setSkyExposure(float exposure)
Exposure used when mapping physical sky radiance to the RGBA8 sky cubemap.
Definition DayNight.cpp:449
void setMieStrength(float strength)
Relative Mie aerosol density; controls horizon haze and solar halo.
Definition DayNight.cpp:454
Serializable shared environment target for static, DayNight and Weather modes.
Definition LightingTarget.h:110
std::vector< EditorDiagnostic > validate() const
Validate mode-dependent atmosphere and weather settings.
Definition LightingTarget.cpp:295
Result< void > applyDayNight(const EnvironmentDocumentTarget &document, daynight::DayNight *environment) const
Applies day night.
Definition EnvironmentDayNightRuntime.cpp:9
const EditorValue * value(const std::string &path) const
Read a typed runtime-neutral property value by path.
Definition LightingTarget.cpp:241