@babylonjs/viewer
Version:
The Babylon Viewer aims to simplify a specific but common Babylon.js use case: loading, viewing, and interacting with a 3D model.
3 lines (2 loc) • 357 B
JavaScript
const i={id:"_primitive",async applyMesh(i,o){const e=i._primitive?.mode,t=0===e?1:1===e?2:3===e?3:5===e?4:void 0;t&&(o._topology=t);const r=i._worldMatrix;r[0]*(r[5]*r[10]-r[6]*r[9])+r[1]*(r[6]*r[8]-r[4]*r[10])+r[2]*(r[4]*r[9]-r[5]*r[8])>0&&(o._reverseWinding=!0)}};export{i as default};
//# sourceMappingURL=gltf-feature-primitive-D-5Tvqd7.esm.min.js.map