载入中...
搜索中...
未找到
OceanMesh.h
浏览该文件的文档.
67 OceanMeshFrameBuilder(const OceanMeshData& mesh, const OceanWaterView& water) : mesh_(mesh), water_(water) {}
Move-only, checked operation results for the common layer.
Owning topology preparation; settings are copied at build, with no retained references.
Definition OceanMesh.h:36
EVENGINE_API_DOMAINS Result< OceanMeshData > build() const
Build positively oriented triangles on XZ, graded geometrically from near water to horizon.
Definition OceanMesh.cpp:6
Prepare CPU reference vertices from the same water view used by rigid bodies. Borrows mesh and water ...
Definition OceanMesh.h:64
glm::dvec2 center
Double-precision world XZ center; continuous camera movement does not change wave phase.
Definition OceanMesh.h:69
EVENGINE_API_DOMAINS Result< OceanMeshFrame > build() const
Build an atomic owning vertex projection; invalid queries or degenerate tangents reject the whole fra...
Definition OceanMeshFrame.cpp:7
OceanMeshFrameBuilder(const OceanMeshData &mesh, const OceanWaterView &water)
Borrow immutable topology and synchronized water for this synchronous build.
Definition OceanMesh.h:67
glm::dvec3 origin
Render origin subtracted before float conversion; use the same origin for camera and scene.
Definition OceanMesh.h:71
Synchronous borrowed composition of the spectral sea and an optional local wake. Both owners must out...
Definition OceanWaterView.h:17
Owning immutable topology projection; XZ offsets are relative to the render origin....
Definition OceanMesh.h:29
std::vector< glm::dvec2 > parameterOffsets
Definition OceanMesh.h:30
Owning CPU reference projection, ready for a mesh upload; simulation time and origin identify the fra...
Definition OceanMesh.h:49
std::vector< float > surface
Packed foam coverage and horizontal Jacobian, one pair per vertex.
Definition OceanMesh.h:53
Camera-centered concentric square rings with shared vertices and continuous distance grading.
Definition OceanMesh.h:15