Skip to content

Commit

Permalink
fixed broken three.js cdn urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanuel Farauanu committed Oct 19, 2023
1 parent f43d4de commit 4d3fe25
Show file tree
Hide file tree
Showing 8 changed files with 33,104 additions and 29,146 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

A 3D procedural skyscraper generator with shaders in Three.js.

## Running
## Running on local

Run using `serve.sh`.
Run using `python3 -m http.server` or with your favourite static site server tool.

## Requirements

Working internet connection, Python, a WebGL2 capable browser

Note: make sure broswer is updated and use it preferably in incognito mode if making changes to files (files serverd by python server are cached by default is some Python versions).
Working internet connection, Python, a modern browser
30 changes: 15 additions & 15 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<html>
<head>
<title>My first three.js app</title>
<style>
body { margin: 0; }
canvas { width: 100%; height: 100% }
</style>
</head>
<body>
<script src="lib/three.js"></script>
<script src='https://threejs.org/examples/js/geometries/TeapotBufferGeometry.js'></script>
<script src='https://threejs.org/examples/js/controls/OrbitControls.js'></script>
<script src="main.js"></script>
</body>
</html>
<html>
<head>
<link href="data:image/x-icon;base64,AAABAAEAEBACAAAAAACwAAAAFgAAACgAAAAQAAAAIAAAAAEAAQAAAAAAQAAAAAAAAAAAAAAAAgAAAAAAAAAwLy0AAAAAAGrWAABq1gAAatYAAGrWAABqFgAAa1YAAAtWAAC4VgAAu9AAALvbAACT2wAA18MAAMf/AADv/wAA7/8AAP//AABq1gAAatYAAGrWAABq1gAAahYAAGtWAAALVgAAuFYAALvQAAC72wAAk9sAANfDAADH/wAA7/8AAO//AAD//wAA" rel="icon" type="image/x-icon">
<title>My first three.js app</title>
<style>
body { margin: 0; }
canvas { width: 100%; height: 100% }
</style>
</head>
<body>
<script type="module" src="lib/three.js"></script>
<script type="module" src="lib/orbitcontrols.js"></script>
<script type="module" src="main.js"></script>
</body>
</html>
Loading

0 comments on commit 4d3fe25

Please sign in to comment.