From cfa944ded7370fb5f22b1fb894ecf6b9bd3f7381 Mon Sep 17 00:00:00 2001 From: Marijn Tamis Date: Mon, 3 Jul 2017 11:49:08 +0200 Subject: NvCloth 1.1.1 Release. (22392725) --- NvCloth/src/cuda/CuClothData.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'NvCloth/src/cuda/CuClothData.cpp') diff --git a/NvCloth/src/cuda/CuClothData.cpp b/NvCloth/src/cuda/CuClothData.cpp index decfd2c..927997c 100644 --- a/NvCloth/src/cuda/CuClothData.cpp +++ b/NvCloth/src/cuda/CuClothData.cpp @@ -124,6 +124,7 @@ cloth::CuFrameData::CuFrameData(CuCloth& cloth, uint32_t numSharedPositions, con stiffness = gSimd4fOne - exp2(logStiffness * stiffnessExponent); mDragCoefficient = array(stiffness)[0]; mLiftCoefficient = array(stiffness)[1]; + mFluidDensity = cloth.mFluidDensity * 0.5f; //divide by 2 to so we don't have to compensate for double area from cross product in the solver for (int i = 0; i < 9; ++i) mRotation[i] = array(state.mRotationMatrix[i / 3])[i % 3]; -- cgit v1.2.3