Skip to content

Commit cc39901

Browse files
author
kevyuu
committed
Slight refactor for SSNGVertexData alias
1 parent f5d38f2 commit cc39901

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/nbl/asset/utils/CPolygonGeometryManipulator.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,11 @@ class NBL_API2 CPolygonGeometryManipulator
233233

234234
static core::smart_refctd_ptr<ICPUPolygonGeometry> createUnweldedList(const ICPUPolygonGeometry* inGeo);
235235

236+
using SSNGVertexData = CSmoothNormalGenerator::VertexData;
236237
using SSNGVxCmpFunction = CSmoothNormalGenerator::VxCmpFunction;
238+
237239
static core::smart_refctd_ptr<ICPUPolygonGeometry> createSmoothVertexNormal(const ICPUPolygonGeometry* inbuffer, bool enableWelding = false, float epsilon = 1.525e-5f,
238-
SSNGVxCmpFunction vxcmp = [](const CSmoothNormalGenerator::VertexData& v0, const CSmoothNormalGenerator::VertexData& v1, const ICPUPolygonGeometry* buffer)
240+
SSNGVxCmpFunction vxcmp = [](const SSNGVertexData& v0, const SSNGVertexData& v1, const ICPUPolygonGeometry* buffer)
239241
{
240242
constexpr float cosOf45Deg = 0.70710678118f;
241243
return dot(normalize(v0.weightedNormal),normalize(v1.weightedNormal)) > cosOf45Deg;

0 commit comments

Comments
 (0)