diff --git a/README.md b/README.md index f484303..fe69799 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ What sets this library apart is its utilization of the GPU for all tasks. This i To run the basic example: ``` $ git clone https://github.com/miguelmyers8/PlanetTechJS.git -$ cd PlanetTechJS/exmaples +$ cd PlanetTechJS/examples $ python3 -m http.server ``` Past `http://localhost:8000/` into the browser. @@ -34,7 +34,8 @@ https://github.com/miguelmyers8/PlanetTechJS/assets/18605314/f4621d3a-85ff-4224- ## Build From Source -If you would like to work on this, the first thing you need to do is install it locally. +If you would like to work on this, here is a example of how to get it working in your react project. +The first thing you need to do is install it locally. Copy the coi-serviceworker.js file from ./examples and paste it in the root directory where your index.html file is located, then link to it. Afterward, run the following commands. ``` diff --git a/examples/index.html b/examples/index.html index ccae66a..915d66c 100644 --- a/examples/index.html +++ b/examples/index.html @@ -13,7 +13,7 @@ "three": "https://unpkg.com/three@0.162/build/three.module.js", "three/addons/": "https://unpkg.com/three@0.162/examples/jsm/", "three/nodes": "https://unpkg.com/three@0.162/examples/jsm/nodes/Nodes.js", - "planettech": "https://unpkg.com/planettech@0.0.8-alpha.0.1.3" + "planettech": "https://unpkg.com/planettech@0.0.8-alpha.0.1.6" } } diff --git a/package.json b/package.json index 1e234f1..1f46dc4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "homepage": "https://miguelmyers8.github.io/PlanetTechJS/examples/", "name": "planettech", - "version": "0.0.8-alpha.0.1.5", + "version": "0.0.8-alpha.0.1.6", "description": "Toolkit for creating real 3D planets that can be transtioned from ground to sky.", "main": "index.js", "type": "module", diff --git a/src/engine/quad.js b/src/engine/quad.js index 380bc7a..f4936dc 100644 --- a/src/engine/quad.js +++ b/src/engine/quad.js @@ -3,7 +3,7 @@ import * as THREE from 'three'; import {QuadTrees} from './quadtree.js' import {norm} from './utils.js' import {QuadWorker} from './utils.js'; -import {worker} from './worker' +import {worker} from './worker.js' export class Quad{ constructor(w,h,ws,hs,d){