载入中...
搜索中...
未找到
WaterPlanarReflection.h
浏览该文件的文档.
1#pragma once
2
3#include "common/Result.h"
4
5#include <array>
6#include <cstdint>
7
8#include <glm/glm.hpp>
9
10namespace ssq { class Table; }
11
12namespace eve::graphics {
13
15enum class WaterReflectionResolution : std::uint8_t { Full = 0, Half = 1, Third = 2, Quarter = 3 };
16
32
35 glm::vec3 cameraPosition{};
36 glm::vec3 cameraForward{0.0F, 0.0F, -1.0F};
37 float waterPlaneY = 0.0F;
38 float renderScale = 1.0F;
39 bool orthographic = false;
41};
42
45 glm::mat4 reflectionMatrix{1.0F};
46 glm::vec3 cameraPosition{};
47 glm::vec3 cameraForward{0.0F, 0.0F, -1.0F};
48 glm::vec4 worldClipPlane{0.0F, 1.0F, 0.0F, 0.0F};
49 std::array<float, 32> layerCullDistances{};
50 std::uint32_t cullingMask = 0;
51 int textureWidth = 0;
53 bool renderShadows = false;
54 bool shouldRender = false;
55};
56
66
69
70} // namespace eve::graphics
EvpackChunkInput input
Definition Evpack.cpp:170
#define EVENGINE_API_BACKENDS
Definition Export.h:108
Move-only, checked operation results for the common layer.
TerrainThermalSettings settings
Move-only operation result carrying either a value or Status.
Definition Result.h:155
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
WaterReflectionResolution
Pcg-compatible render-size multiplier for planar water reflections.
Result< WaterPlanarReflectionPlan > buildWaterPlanarReflectionPlan(const WaterPlanarReflectionSettings &settings, const WaterPlanarReflectionInput &input)
Build the mirror-camera plan used by PcgPlanarReflections without retaining scene objects.
EVENGINE_API_BACKENDS void exposeWaterPlanarReflectionBindings(ssq::Table &table)
Register planar water-reflection value types and checked planner with the VM owner thread.
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
Immutable camera and horizontal water-plane inputs for a reflection capture.
Complete, caller-owned plan for configuring a mirrored capture camera.
Authored planar-reflection policy with no camera or texture ownership.