载入中...
搜索中...
未找到
PcgWaterPhotoMode.h
浏览该文件的文档.
1#pragma once
5namespace ssq { class Table; }
6namespace eve::graphics {
9public:
15 void setAuthority(bool enabled);
bool getAuthority()const noexcept{return authority_;}
18 PhotoModeFieldAcceptance acceptsPhotoModeField(const PhotoModeAssignment& assignment)const noexcept override;
20 [[nodiscard]] Result<void> applyPhotoModeField(const PhotoModeAssignment& assignment)override;
22 [[nodiscard]] Result<void> applyToPlanarSettings(WaterPlanarReflectionSettings& settings)const;
24 [[nodiscard]] Result<void> applyToUnderwaterSettings(WaterUnderwaterSettings& settings)const;
25 bool getReflectionEnabled()const noexcept{return reflectionEnabled_;}
27 float getReflectionDistance()const noexcept{return reflectionDistance_;}
29 int getReflectionResolution()const noexcept{return reflectionResolution_;}
31 float getReflectionLodBias()const noexcept{return reflectionLodBias_;}
33 float getFogDensity()const noexcept{return fogDensity_;}
35 float getFogDistance()const noexcept{return fogDistance_;}
37 float getFogRed()const noexcept{return fogColor_.r;}
39 float getFogGreen()const noexcept{return fogColor_.g;}
41 float getFogBlue()const noexcept{return fogColor_.b;}
42private:
43 bool authority_=false,reflectionEnabled_=true;float reflectionDistance_=0,reflectionLodBias_=1;
44 int reflectionResolution_=2;PhotoModeColor fogColor_{0,0,0,1};float fogDensity_=0.045f,fogDistance_=45;
45};
void exposePcgWaterPhotoModeBindings(ssq::Table& table);
47}
#define EVENGINE_API_BACKENDS
Definition Export.h:108
TerrainThermalSettings settings
IPhotoModeFieldSink public API.
Move-only operation result carrying either a value or Status.
Definition Result.h:155
Explicit, caller-owned authority for Pcg photo-mode water reflection and underwater fog values.
float getReflectionDistance() const noexcept
Returns the reflection distance.
PcgWaterPhotoModeAuthority()=default
Pcg water photo mode authority.
float getFogDistance() const noexcept
Returns the fog distance.
float getFogGreen() const noexcept
Returns the fog green.
float getFogRed() const noexcept
Returns the fog red.
float getFogBlue() const noexcept
Returns the fog blue.
int getReflectionResolution() const noexcept
Returns the reflection resolution.
float getFogDensity() const noexcept
Returns the fog density.
float getReflectionLodBias() const noexcept
Returns the reflection lod bias.
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
void exposePcgWaterPhotoModeBindings(ssq::Table &t)
Register Pcg water photo-mode authority bindings.
PhotoModeFieldAcceptance
Capability implemented by the composition root that routes assignments to domain owners.
enum EVENGINE_API_FOUNDATION Table
OT_TABLE (editable via Runtime table APIs / ReflectedPropertyModel).
Definition Runtime.h:121
EVEngine ECS 集成层:底层实现使用 sunxfancy/ECS.hpp https://github.com/sunxfancy/ECS.hpp
Definition ECS.h:14
bool enabled
One reversible field assignment in a photo-mode transaction.
RGBA payload used by the cross-module photo-mode application contract.
Authored planar-reflection policy with no camera or texture ownership.
Authored Pcg underwater-effects policy; owns no renderer, audio source or scene object.