Skip to content

Commit

Permalink
changed work to worker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmyers8 committed Mar 27, 2024
1 parent a56a44d commit 32414cd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
```
Expand Down
2 changes: 1 addition & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"three": "https://unpkg.com/[email protected]/build/three.module.js",
"three/addons/": "https://unpkg.com/[email protected]/examples/jsm/",
"three/nodes": "https://unpkg.com/[email protected]/examples/jsm/nodes/Nodes.js",
"planettech": "https://unpkg.com/[email protected].3"
"planettech": "https://unpkg.com/[email protected].6"
}
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/engine/quad.js
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 32414cd

Please sign in to comment.