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