载入中...
搜索中...
未找到
SkyAtmosphereLuts.h
浏览该文件的文档.
1#pragma once
2#include <array>
3#include <vector>
4#include "common/Export.h"
5#include "common/Result.h"
6namespace eve::graphics {
7struct SkyAtmosphereParameters;
8namespace detail {
11 static constexpr unsigned TransmittanceWidth = 256, TransmittanceHeight = 64, MultiWidth = 32, MultiHeight = 32;
14 std::vector<float> transmittance, multiScattering;
15};
21 const SkyAtmosphereParameters& parameters);
29 const SkyAtmosphereParameters& parameters, const SkyAtmosphereLuts& tables,
30 const std::array<float, 3>& lightDirection);
31} // namespace detail
32} // namespace eve::graphics
#define EVENGINE_API_BACKENDS
Definition Export.h:108
int detail
Move-only, checked operation results for the common layer.
Move-only operation result carrying either a value or Status.
Definition Result.h:155
EVENGINE_API_BACKENDS Result< SkyAtmosphereLuts > bakeSkyAtmosphereLuts(const SkyAtmosphereParameters &parameters)
Bake coefficients using UE's default 10/15-sample, two-direction approximation.
EVENGINE_API_BACKENDS Result< std::array< float, 3 > > bakeDistantSkyAmbient(const SkyAtmosphereParameters &parameters, const SkyAtmosphereLuts &tables, const std::array< float, 3 > &lightDirection)
Integrate distant-sky ambient radiance per unit incident RGB irradiance at six kilometres.
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
Spherical atmospheric coefficients in inverse kilometres and kilometre heights.
Internal owning RGBA32F table candidates, never partially published.
static constexpr unsigned TransmittanceWidth
static constexpr unsigned TransmittanceHeight
std::vector< float > transmittance
Owned table pixels, allocated during the explicit bake. @cost Copies scale with the fixed LUT texel c...