载入中...
搜索中...
未找到
OceanMeshFrame.cpp
浏览该文件的文档.
9 if (!valid(center.x) || !valid(center.y) || !valid(origin.x) || !valid(origin.y) || !valid(origin.z) ||
12 DiagnosticCode::InvalidArgument, "Invalid ocean mesh frame coordinates or size", "fluids.ocean.mesh"));
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
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
glm::dvec3 origin
Render origin subtracted before float conversion; use the same origin for camera and scene.
Definition OceanMesh.h:71
EVENGINE_API_DOMAINS Result< OceanSurfaceGeometry > geometry(glm::dvec2 parameterXZ) const
Evaluate combined position and tangents directly; wake gradients follow displaced world XZ.
Definition OceanWaterView.cpp:40
@ InvalidArgument
@ Unsupported
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