From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/Filters/Mesh/MeshBlendShaping.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Runtime/Filters/Mesh/MeshBlendShaping.h (limited to 'Runtime/Filters/Mesh/MeshBlendShaping.h') diff --git a/Runtime/Filters/Mesh/MeshBlendShaping.h b/Runtime/Filters/Mesh/MeshBlendShaping.h new file mode 100644 index 0000000..7b39f26 --- /dev/null +++ b/Runtime/Filters/Mesh/MeshBlendShaping.h @@ -0,0 +1,12 @@ +#pragma once + +struct SkinMeshInfo; + +// Does "mesh skinning" logic for BlendShapes +void ApplyBlendShapes (SkinMeshInfo& info, UInt8* dst); + +inline bool HasValidWeight(const float w) +{ + const float kWeightEpsilon = 1e-4f; + return w > kWeightEpsilon; +} -- cgit v1.1-26-g67d0