载入中...
搜索中...
未找到
GraphicsFoliage.cpp
浏览该文件的文档.
8Result<void> Graphics::configureFoliageWind(Material* material, float directionX, float directionZ, float strength,
12 return Result<void>::failure(Diagnostic::error(DiagnosticCode::InvalidArgument, "null foliage material", {}, {},
34 return Result<void>::failure(Diagnostic::error(DiagnosticCode::Failed, "foliage noise upload failed", {},
37 return material->setFoliageWind(foliageWindMotionTexture_, foliageWindNoiseTexture_, directionX, directionZ,
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
Result< void > configureFoliageWind(Material *material, float directionX, float directionZ, float strength, float bending, float bendingSpeed, float branch, float branchSpeed, float flutter, float flutterSpeed, float fadeDistance, float bendFactor)
Apply a source-derived foliage wind profile using graphics-owned shared field textures....
Definition GraphicsFoliage.cpp:8
Texture * foliageWindNoiseTexture_
Definition Graphics.h:2288
Texture * newTextureFromImageData(image::ImageData *data, bool repeatU=false, bool repeatV=false)
Creates a texture from image data. @ownership Caller deletes unless documented otherwise.
Definition Graphics.cpp:1737
Texture * foliageWindMotionTexture_
Definition Graphics.h:2287
virtual Result< Texture * > newTextureArrayRgba16f(uint32_t width, uint32_t height, uint32_t layers, std::span< const uint16_t > rgbaHalf)
Upload a sampled 2D array of tightly packed linear RGBA16F texels.
Definition IResourceFactory.h:77
Packages shading method + surface parameters into one attachable asset.
Definition Material.h:35
void setPixel(int x, int y, const Colorf &p)
Sets the pixel at location (x,y).
Definition ImageData.cpp:484
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
@ InvalidArgument
@ Failed