Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/multires_inline.h
| Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | else if (corner == 2) { | ||||
| copy_v3_v3(tangent_matrix[1], dPdu); | copy_v3_v3(tangent_matrix[1], dPdu); | ||||
| } | } | ||||
| else if (corner == 3) { | else if (corner == 3) { | ||||
| copy_v3_v3(tangent_matrix[0], dPdu); | copy_v3_v3(tangent_matrix[0], dPdu); | ||||
| copy_v3_v3(tangent_matrix[1], dPdv); | copy_v3_v3(tangent_matrix[1], dPdv); | ||||
| mul_v3_fl(tangent_matrix[0], -1.0f); | mul_v3_fl(tangent_matrix[0], -1.0f); | ||||
| } | } | ||||
| else { | else { | ||||
| BLI_assert(!"Unhandled corner index"); | BLI_assert_msg(0, "Unhandled corner index"); | ||||
| } | } | ||||
| cross_v3_v3v3(tangent_matrix[2], dPdu, dPdv); | cross_v3_v3v3(tangent_matrix[2], dPdu, dPdv); | ||||
| normalize_v3(tangent_matrix[0]); | normalize_v3(tangent_matrix[0]); | ||||
| normalize_v3(tangent_matrix[1]); | normalize_v3(tangent_matrix[1]); | ||||
| normalize_v3(tangent_matrix[2]); | normalize_v3(tangent_matrix[2]); | ||||
| } | } | ||||