载入中...
搜索中...
未找到
SurfaceCapture.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4#include "common/Result.h"
6
7#include <glm/glm.hpp>
8
9#include <cstdint>
10#include <span>
11#include <vector>
12
13namespace eve::gpuagents {
14
23public:
36 [[nodiscard("check surface capture")]] static Result<void> captureFromTriangles(
37 SurfaceField& out, std::span<const glm::vec3> positions, std::span<const std::uint32_t> indices,
38 const glm::vec3& originMin, float worldSize, int resolution, float baseHeight = 0.f);
39
44 static void rebuildNormals(SurfaceField& field);
45};
46
47} // namespace eve::gpuagents
#define EVENGINE_API_DOMAINS
Definition Export.h:110
std::vector< std::uint32_t > indices
std::vector< float > positions
Move-only, checked operation results for the common layer.
Move-only operation result carrying either a value or Status.
Definition Result.h:155
Orthographic surface capture that rebuilds height + normals on a SurfaceField.
2.5D surface + life-field textures for Life Network.