diff options
| author | Marijn Tamis <[email protected]> | 2018-05-03 18:22:48 +0200 |
|---|---|---|
| committer | Marijn Tamis <[email protected]> | 2018-05-03 18:22:48 +0200 |
| commit | ca32c59a58d37c1822e185a2d5f3d0d3e8943593 (patch) | |
| tree | b06b9eec03f34344ef8fc31aa147b2714d3962ee /NvCloth/extensions/src/ClothFabricCooker.cpp | |
| parent | Forced rename of platform folders in cmake dir. Git didn't pick this up before. (diff) | |
| download | nvcloth-ca32c59a58d37c1822e185a2d5f3d0d3e8943593.tar.xz nvcloth-ca32c59a58d37c1822e185a2d5f3d0d3e8943593.zip | |
NvCloth 1.1.4 Release. (24070740)
Diffstat (limited to 'NvCloth/extensions/src/ClothFabricCooker.cpp')
| -rw-r--r-- | NvCloth/extensions/src/ClothFabricCooker.cpp | 15 |
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; |