载入中...
搜索中...
未找到
OceanWaterView.cpp
浏览该文件的文档.
11 Diagnostic::error(DiagnosticCode::InvalidArgument, "Ocean and wake timestamps differ", "fluids.ocean.time"));
24 local.value().velocity + glm::dot(glm::dvec2(value.velocity.x, value.velocity.z), local.value().gradient);
49 value.tangentX.y += glm::dot(local.value().gradient, glm::dvec2(value.tangentX.x, value.tangentX.z));
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
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
EVENGINE_API_DOMAINS Result< OceanSurfaceSample > sample(glm::dvec2 worldXZ) const
Query combined water in world coordinates; errors propagate without changing either owner.
Definition OceanWaterView.cpp:14
EVENGINE_API_DOMAINS Result< glm::dvec3 > position(glm::dvec2 parameterXZ) const
Displace a mesh parameter point and add wake height at the resulting world XZ.
Definition OceanWaterView.cpp:29
@ InvalidArgument