aboutsummaryrefslogtreecommitdiff
path: root/NvCloth/extensions/src/ClothFabricCooker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NvCloth/extensions/src/ClothFabricCooker.cpp')
-rw-r--r--NvCloth/extensions/src/ClothFabricCooker.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/NvCloth/extensions/src/ClothFabricCooker.cpp b/NvCloth/extensions/src/ClothFabricCooker.cpp
index 2d800e9..c6d0103 100644
--- a/NvCloth/extensions/src/ClothFabricCooker.cpp
+++ b/NvCloth/extensions/src/ClothFabricCooker.cpp
@@ -30,24 +30,17 @@
#include "foundation/PxVec4.h"
#include "foundation/PxIO.h"
#include "foundation/PxStrideIterator.h"
+#include "PsSort.h"
+#include "PsMathUtils.h"
+
#include "NvClothExt/ClothFabricCooker.h"
#include "NvClothExt/ClothTetherCooker.h"
-#include "PsSort.h"
#include "NvCloth/Fabric.h"
#include "NvCloth/Allocator.h"
#include "NvCloth/Range.h"
+#include "ClothClone.h"
#include <algorithm>
-#include "PsMathUtils.h"
-
-namespace
-{
-float safeLog2(float x)
-{
- float saturated = std::max(0.0f, std::min(x, 1.0f));
- return saturated ? physx::shdfnd::log2(saturated) : -FLT_MAX_EXP;
-}
-}
using namespace physx;