|
|
|
|
|
|
#if defined(_HEIGHTMAP1) |
|
|
|
maxDisplacement = max( abs(_HeightAmplitude1) |
|
|
|
#if defined(_MAIN_LAYER_INFLUENCE_MODE) |
|
|
|
+_abs(HeightAmplitude0) * _InheritBaseHeight1 |
|
|
|
+ abs(_HeightAmplitude0) * _InheritBaseHeight1 |
|
|
|
#endif |
|
|
|
, maxDisplacement); |
|
|
|
#endif |
|
|
|
|
|
|
maxDisplacement = max( abs(_HeightAmplitude2) |
|
|
|
#if defined(_MAIN_LAYER_INFLUENCE_MODE) |
|
|
|
+ abs(HeightAmplitude0) * _InheritBaseHeight2 |
|
|
|
+ abs(_HeightAmplitude0) * _InheritBaseHeight2 |
|
|
|
#endif |
|
|
|
, maxDisplacement); |
|
|
|
#endif |
|
|
|
|
|
|
#if defined(_HEIGHTMAP3) |
|
|
|
maxDisplacement = max( abs(_HeightAmplitude3) |
|
|
|
#if defined(_MAIN_LAYER_INFLUENCE_MODE) |
|
|
|
+ abs(HeightAmplitude0) * _InheritBaseHeight3 |
|
|
|
+ abs(_HeightAmplitude0) * _InheritBaseHeight3 |
|
|
|
#endif |
|
|
|
, maxDisplacement); |
|
|
|
#endif |
|
|
|