Skip to content

Commit

Permalink
Adding three.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lucapericlp committed Feb 5, 2024
1 parent 3ce367c commit 09815dc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hydra/imports.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
const PERiPERiDEFAULTS = async () => {
await loadScript("https://hyper-hydra.glitch.me/hydra-text.js")
await loadScript("https://hyper-hydra.glitch.me/hydra-tap.js")
await loadScript("https://cdn.jsdelivr.net/gh/rexmalebka/hydra-threejs@changes/hack/dist/hydra-three.js")

const myFont = new FontFace('PressStart', 'url(https://fonts.gstatic.com/s/pressstart2p/v15/e3t4euO8T-267oIAQAu6jDQyK3nVivNm4I81.woff2');
await myFont.load();
document.fonts.add(myFont);

hydraText.font = "PressStart"
hydraText.lineWidth = "2%"
}
6 changes: 6 additions & 0 deletions hydra/plugins/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Hydra three was taken from: https://github.com/rexmalebka/hydra-threejs & we can
reliably access it like:

https://cdn.jsdelivr.net/gh/rexmalebka/hydra-threejs@changes/hack/dist/hydra-three.js

Other links didn't work for some reason to ECMA
1 change: 1 addition & 0 deletions hydra/plugins/hydra-three.js

Large diffs are not rendered by default.

0 comments on commit 09815dc

Please sign in to comment.