载入中...
搜索中...
未找到
VegetationNormal.cpp
浏览该文件的文档.
5Result<glm::vec3> decodeVegetationNormal(glm::vec4 sample, VegetationNormalEncoding encoding, float strength) {
9 "vegetation normal requires finite unit channels, a known encoding and strength in [-8,8]", {}, {},
22 return Result<glm::vec3>::success(glm::vec3((2.f * x - 1.f) * strength, (2.f * sample.g - 1.f) * strength, 1.f));
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
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
Result< glm::vec3 > decodeVegetationNormal(glm::vec4 sample, VegetationNormalEncoding encoding, float strength)
Evaluate TVE 12.6 primary/detail tangent normal reconstruction.
Definition VegetationNormal.cpp:5
VegetationNormalEncoding
Channel layout of an already filtered, linear vegetation normal sample.
Definition VegetationNormal.h:8
@ RedGreen
ASTC normal encoding: source red and green.
@ AlphaGreen
UNITY_NO_DXT5nm source branch: alpha and green.
@ RedAlphaGreen
Default Unity encoding: red times alpha, then green.
@ InvalidArgument