MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / getNormal

Method getNormal

Source/Falcor/Scene/SceneBuilder.cpp:142–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 int32_t getFaceCount() const { return (int32_t)mMesh.faceCount; }
141 void getPosition(float position[], int32_t face, int32_t vert) const { FALCOR_ASSERT_LT(size_t(face) * 3 + vert, mPositions.size()); memcpy(position, mPositions.data() + (face * 3 + vert), sizeof(float3)); }
142 void getNormal(float normal[], int32_t face, int32_t vert) { *reinterpret_cast<float3*>(normal) = mMesh.getNormal(face, vert); }
143 void getTexCrd(float texCrd[], int32_t face, int32_t vert) { *reinterpret_cast<float2*>(texCrd) = mMesh.getTexCrd(face, vert); }
144
145 void setTangent(const float tangent[], float sign, int32_t face, int32_t vert)

Callers 2

generateTangentsMethod · 0.45
generateTangentsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected