Builds renderer-independent droplet instances and wet PBR parameters. 更多...
#include <SurfaceFluidRenderData.h>
Public 成员函数 | |
| void | update (const FluidSurfaceBinding &binding, const SurfaceDropletSimulation &simulation, const SurfaceWetnessField *wetness=nullptr, const SurfaceFluidRenderParams ¶ms={}) |
| Rebuild attached droplet instances from the latest simulation pose. | |
| const std::vector< SurfaceDropletRenderInstance > & | droplets () const |
| Droplets. | |
静态 Public 成员函数 | |
| static WetSurfaceMaterialSample | evaluateMaterial (float wetness, const WetSurfaceMaterialParams ¶ms={}) |
| Evaluate wet PBR values from a normalized wetness input. | |
详细描述
Builds renderer-independent droplet instances and wet PBR parameters.
Major/minor axes lie in the current surface tangent plane. Their footprint preserves area while velocity changes aspect ratio, avoiding billboard-like circles and keeping the data usable by Vulkan, WebGPU and CPU references.
在文件 SurfaceFluidRenderData.h 第 60 行定义.
成员函数说明
◆ droplets()
|
inline |
◆ evaluateMaterial()
|
static |
Evaluate wet PBR values from a normalized wetness input.
在文件 SurfaceFluidRenderData.cpp 第 53 行定义.
◆ update()
| void eve::fluids::SurfaceFluidRenderData::update | ( | const FluidSurfaceBinding & | binding, |
| const SurfaceDropletSimulation & | simulation, | ||
| const SurfaceWetnessField * | wetness = nullptr, |
||
| const SurfaceFluidRenderParams & | params = {} |
||
| ) |
Rebuild attached droplet instances from the latest simulation pose.
在文件 SurfaceFluidRenderData.cpp 第 10 行定义.
引用了 across, binding, eve::fluids::SurfaceSample::bitangent, eve::fluids::SurfaceDropletRenderInstance::capHeight, eve::fluids::SurfaceDropletParams::contactAngleDegrees, direction, eve::fluids::SurfaceDropletSimulation::dropletRadius(), eve::fluids::SurfaceDropletSimulation::droplets(), eve::fluids::SurfaceDropletRenderInstance::id, eve::fluids::SurfaceDropletRenderInstance::majorAxis, eve::fluids::SurfaceDropletRenderInstance::minorAxis, eve::fluids::SurfaceSample::normal, eve::fluids::SurfaceDropletRenderInstance::normal, eve::fluids::SurfaceDropletSimulation::params(), params, eve::fluids::SurfaceSample::position, eve::fluids::SurfaceDropletRenderInstance::position, radius, eve::fluids::SurfaceSample::tangent, eve::fluids::SurfaceSample::velocity, eve::fluids::SurfaceDropletRenderInstance::velocity, eve::fluids::SurfaceDropletRenderInstance::wetness , 以及 wetness.
该类的文档由以下文件生成:
- src/modules/fluids/SurfaceFluidRenderData.h
- src/modules/fluids/SurfaceFluidRenderData.cpp