载入中...
搜索中...
未找到
CookedMaterial.h
浏览该文件的文档.
1#pragma once
2
4#include "common/Export.h"
6#include "graphics/Color.h"
13 float metallic = 0, roughness = 1, alphaCutoff = .5f;
14 bool transparent = false, masked = false, doubleSided = false;
15 graphics::BlendMode blend = graphics::BlendMode::Alpha;
17 std::optional<graphics::VegetationSurface> vegetationSurface;
18 std::array<std::optional<AssetRef>, 11> images;
19 std::array<std::optional<AssetRef>, 3> detailImages;
20};
28 const AssetRef& ref,
29 const asset::EvpackCapabilities& caps);
30} // namespace eve::asset_graphics::detail
Typed capability-aware runtime access to admitted packs.
#define EVENGINE_API_WORLD
Definition Export.h:109
Stable asset identity backed by PersistentId.
Definition ResourceRef.h:53
Move-only operation result carrying either a value or Status.
Definition Result.h:155
Immutable reader retaining an admitted pack by shared ownership.
Result< CookedMaterial > readCookedMaterial(const asset::EvpackResourceReader &reader, const AssetRef &ref, const asset::EvpackCapabilities &caps)
Decode material schemas 5 through 9 without allocating graphics resources. Unknown additive fields ar...
eve::Color Color
RGBA color used by every graphics draw call. Lives inside eve::graphics so including a graphics heade...
Definition Color.h:13
BlendMode
Render-neutral 2D blend mode shared by graphics-facing modules.
Definition RenderTypes.h:11
Actual runtime device capabilities used for variant selection.
Definition Evpack.h:92
Validated material value; image references own identity, GPU bindings initially empty.
std::array< std::optional< AssetRef >, 3 > detailImages
std::optional< graphics::VegetationSurface > vegetationSurface
std::array< std::optional< AssetRef >, 11 > images
Owning material parameter snapshot; texture pointers remain borrowed. Base color/metallic/roughness c...
Definition PbrSurface.h:218