Skip to content

Commit

Permalink
Merge pull request #85 from andrewisen-tikab/feature
Browse files Browse the repository at this point in the history
Fix `bvh`
  • Loading branch information
andrewisen-tikab authored Aug 31, 2023
2 parents 6e5756a + 8de876e commit 760a310
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/src/Example.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import * as THREE from 'three';
import Stats from 'three/addons/libs/stats.module.js';
import { computeBoundsTree, disposeBoundsTree, acceleratedRaycast } from 'three-mesh-bvh';

// @ts-ignore
THREE.BufferGeometry.prototype.computeBoundsTree = computeBoundsTree;
// @ts-ignore
THREE.BufferGeometry.prototype.disposeBoundsTree = disposeBoundsTree;
THREE.Mesh.prototype.raycast = acceleratedRaycast;

import { CSS3DRenderer } from 'three/addons/renderers/CSS3DRenderer.js';
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
Expand Down

0 comments on commit 760a310

Please sign in to comment.