Skip to content

Commit

Permalink
Get it all working
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Oct 31, 2021
1 parent 950c57d commit 4f418b0
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion example/cpuPathTracing.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
GenerateMeshBVHWorker,
} from '../src/workers/GenerateMeshBVHWorker.js';
import { ANTIALIAS_OFFSETS, ANTIALIAS_WIDTH, EPSILON, getBasisFromNormal, isDirectionValid } from './pathtracing/utils.js';
import '@babel/polyfill';

THREE.Mesh.prototype.raycast = acceleratedRaycast;
THREE.BufferGeometry.prototype.computeBoundsTree = computeBoundsTree;
Expand Down
1 change: 0 additions & 1 deletion example/distancecast.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { TransformControls } from 'three/examples/jsm/controls/TransformControls
import { MarchingCubes } from 'three/examples/jsm/objects/MarchingCubes.js';
import { acceleratedRaycast, computeBoundsTree, disposeBoundsTree, MeshBVHVisualizer } from '../src/index.js';
import SimplexNoise from 'simplex-noise';
import '@babel/polyfill';

THREE.Mesh.prototype.raycast = acceleratedRaycast;
THREE.BufferGeometry.prototype.computeBoundsTree = computeBoundsTree;
Expand Down
1 change: 1 addition & 0 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
2 changes: 1 addition & 1 deletion example/raycast.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function addRaycaster() {
} );

}
alert('TEST')

function updateFromOptions() {

// Update raycaster count
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"types": "src/index.d.ts",
"sideEffects": false,
"scripts": {
"start": "concurrently \"parcel watch ./example/*.html --dist-dir ./example/dev-bundle/ --public-url . --no-cache --no-hmr\" \"static-server\"",
"start": "concurrently \"cd example && parcel watch ./*.html --dist-dir ./dev-bundle/ --public-url . --no-cache --no-hmr\" \"static-server\"",
"build": "rollup -c",
"build-examples": "parcel build ./example/*.html --dist-dir ./example/bundle/ --public-url . --no-cache --no-hmr --no-content-hash",
"test": "jest",
"build-examples": "cd example && parcel build ./*.html --dist-dir ./bundle/ --public-url . --no-cache --no-hmr --no-content-hash",
"test": "cd test && jest",
"lint": "eslint \"./src/**/*.{js,ts}\" \"./test/**/*.{js,ts}\" \"./example/*.js\" && tsc --noEmit",
"benchmark": "node benchmark/run-benchmark.js",
"prepublishOnly": "npm run build"
Expand Down
2 changes: 1 addition & 1 deletion src/workers/GenerateMeshBVHWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class GenerateMeshBVHWorker {
constructor() {

this.running = false;
this.worker = new Worker( new URL( import.meta.url, './generateAsync.worker.js' ), { type: 'module' } );
this.worker = new Worker( new URL( './generateAsync.worker.js', import.meta.url ), { type: 'module' } );

}

Expand Down
File renamed without changes.

0 comments on commit 4f418b0

Please sign in to comment.