We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7728987 commit 53f81afCopy full SHA for 53f81af
src/nbl/asset/utils/CGeometryCreator.cpp
@@ -568,8 +568,8 @@ core::smart_refctd_ptr<ICPUPolygonGeometry> CGeometryCreator::createCylinder(
568
{
569
const auto f_i = static_cast<float>(i);
570
hlsl::float32_t3 p(std::cos(f_i * step), std::sin(f_i * step), 0.f);
571
+ const auto n = quantNormalCache->quantize<NormalCacheFormat>(p);
572
p *= radius;
- const auto n = quantNormalCache->quantize<NormalCacheFormat>(hlsl::normalize(p));
573
574
positions[i] = { p.x, p.y, p.z };
575
memcpy(normals + i, &n, sizeof(n));
0 commit comments