MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / CalculateTangentFrame

Method CalculateTangentFrame

Source/Engine/Graphics/RenderTools.cpp:598–606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596}
597
598void RenderTools::CalculateTangentFrame(FloatR10G10B10A2& resultNormal, FloatR10G10B10A2& resultTangent, const Float3& normal)
599{
600 // [Deprecated in v1.10]
601 Float3 n;
602 Float4 t;
603 CalculateTangentFrame(n, t, normal);
604 resultNormal = FloatR10G10B10A2(n, 0);
605 resultTangent = FloatR10G10B10A2(t);
606}
607
608void RenderTools::CalculateTangentFrame(FloatR10G10B10A2& resultNormal, FloatR10G10B10A2& resultTangent, const Float3& normal, const Float3& tangent)
609{

Callers 1

ComputeTangentsMethod · 0.80

Calls 5

DotFunction · 0.85
Float4Class · 0.85
FloatR10G10B10A2Class · 0.70
NormalizeFunction · 0.50
LengthSquaredMethod · 0.45

Tested by

no test coverage detected