载入中...
搜索中...
未找到
PathSceneCapture.cpp
浏览该文件的文档.
25 for (auto value : key.parameters) hash ^= size_t(value) + size_t(0x9e3779b9u) + (hash << 6) + (hash >> 2);
37 for (auto value : key.material) hash ^= size_t(value) + size_t(0x9e3779b9u) + (hash << 6) + (hash >> 2);
42 const auto bits = [](float value) { return std::bit_cast<uint32_t>(value == 0.f ? 0.f : value); };
45 bits(material.emission.x), bits(material.emission.y), bits(material.emission.z), bits(material.roughness),
46 bits(material.metallic), material.baseColorTexture, bits(material.opacity), bits(material.alphaCutoff),
51Result<PathSceneToken> preparePathWorld(ecs::Table& world, Graphics& graphics, IRayTracing& provider) {
65 const auto bits = [](float value) { return std::bit_cast<uint32_t>(value == 0.f ? 0.f : value); };
87 auto renderables = ecs::View<Renderable3D, Renderable3D::Transform3D, Renderable3D::MeshRenderer>(world);
102 auto* material = renderer->partCount > 0 && renderer->parts[part].material ? renderer->parts[part].material
162 if (!(pbr == PbrSurface{})) return unsupported("Path world PBR extension is not yet supported");
197 return unsupported("Path world light conversion requires point, directional or spot surface lights");
Stable, structured diagnostics shared by engine modules.
#define EV_PROFILE_MODULE(module, name)
Profile the enclosing scope, tagged with a module for grouping.
Definition Profile.h:158
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.cpp:21
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
Definition Graphics.h:134
Optional hardware ray-tracing backend (Vulkan KHR RT).
Definition IRayTracing.h:28
GPU texture created via Graphics::newTexture. Owns GPU resources through an opaque backend handle.
Definition Texture.h:15
glm::mat4 modelFromTransform(const Renderable3D::Transform3D &t)
Resolve the value-owned scene world matrix or the local TRS on the render thread.
Definition RenderTransformProjection.cpp:7
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
@ Transparent
@ Emissive
@ BaseColor
@ MetallicRoughness
@ Directional
void lightSpotCosines(float angleDeg, float softness, float &cosOuter, float &cosInner)
Convert spot angle/softness into GPU cosines (outer < inner). Shared by Light2D and Light3D flashligh...
Definition Light.h:27
@ Conventional
Result< PathSceneToken > preparePathWorld(ecs::Table &world, Graphics &graphics, IRayTracing &provider)
Prepare an unculled path scene from the supplied ECS world.
Definition PathSceneCapture.cpp:51
@ Unsupported
@ Alpha
bool volumetricOnly
When true with volumetric, skip mesh/PBR surface lighting and only contribute to volumetric shafts / ...
Definition Light.h:232
Base-level color or material-data texture from linear pixels or an owned engine RGBA8 texture....
Definition PathTracing.h:55
Indexed geometry; spans are borrowed only during scene preparation. @ownership Caller owns all spans ...
Definition PathTracing.h:75
World-space analytic light copied during scene preparation.
Definition PathTracing.h:104
Linear-light surface parameters for path tracing.
Definition PathTracing.h:20
Owning material parameter snapshot; texture pointers remain borrowed. Base color/metallic/roughness c...
Definition PbrSurface.h:240
static constexpr int kMaxParts
Definition RenderSystem3D.h:291