Navigation
API > API/Plugins > API/Plugins/Water > API/Plugins/Water/UWaterWavesAssetReference
- UWaterWavesBase::GetWaveAttenuationFactor()
- UWaterWavesAssetReference::GetWaveAttenuationFactor()
References
| Module | Water |
| Header | /Engine/Plugins/Experimental/Water/Source/Runtime/Public/WaterWaves.h |
| Include | #include "WaterWaves.h" |
| Source | /Engine/Plugins/Experimental/Water/Source/Runtime/Private/WaterWaves.cpp |
virtual float GetWaveAttenuationFactor
(
const FVector & InPosition,
float InWaterDepth,
float InTargetWaveMaskDepth
) const
Remarks
Computes the attenuation factor to apply to the raw wave perturbation. Attenuates : normal/wave height/max wave height.