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 b6e4831 commit 4dba268Copy full SHA for 4dba268
include/nbl/asset/filters/CNormalMapToDerivativeFilter.h
@@ -52,14 +52,14 @@ class CNormalMapToDerivativeFilterBase : public impl::CSwizzleableAndDitherableF
52
53
const core::vectorSIMDf getAbsoluteLayerScaleValues(size_t layer)
54
{
55
- if (!scaleValuesPointer)
+ if (scaleValuesPointer)
56
57
auto offset = layer * forcedScratchChannelAmount;
58
auto* data = scaleValuesPointer + offset;
59
return core::vectorSIMDf (*data, *(data + 1));
60
}
61
else
62
- return 0; // or maybe assert?
+ return core::vectorSIMDf(0.f); // or maybe assert?
63
64
65
protected:
0 commit comments