UNPKG

three

Version:

JavaScript 3D library

22 lines (12 loc) 315 B
export default /* glsl */` vec3 transformedNormal = normalMatrix * objectNormal; #ifdef FLIP_SIDED transformedNormal = - transformedNormal; #endif #ifdef USE_TANGENT vec3 transformedTangent = normalMatrix * objectTangent; #ifdef FLIP_SIDED transformedTangent = - transformedTangent; #endif #endif `;