| 60 | } |
| 61 | |
| 62 | int ComputeSeed(const FPCGPoint& Point, const FVector& Offset) |
| 63 | { |
| 64 | return static_cast<int>(PCGExMath::Remap( |
| 65 | FMath::PerlinNoise3D(PCGExMath::Tile(Point.Transform.GetLocation() * 0.001 + Offset, FVector(-1), FVector(1))), |
| 66 | -1, 1, MIN_int32, MAX_int32)); |
| 67 | } |
| 68 | } |
no test coverage detected