diff --git a/README.md b/README.md index 5ab643ca4..c8b08afbf 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # Create 3D worlds -Library of reusable Three.js components. +A library of REUSABLE Three.js components that you can play with. -Sakupio sam Three.js primere sa raznih strana i prepravio ih da budu reusable. +Over the years, I have gathered Three.js examples from various sources and modified them to be reusable. -Za razliku od ostalih kul Three.js primera koje možete samo gledati, ovde možete kombinovati različite elemente i praviti nove scene. Možete uzeti junaka iz jedne scene, zgrade iz druge, prirodu iz treće, itd. +Unlike other cool Three.js examples that you can just look at, here you can combine different elements and create new scenes. To begin with, you can replace any model or character in these examples. -Nadam se da ćete se zabavljati kao ja dok sam ovo pravio. +I hope you will have as much fun as I did making this. Developed by [mudroljub](https://twitter.com/mudroljub). @@ -19,12 +19,11 @@ npx live-server ## TODO -- ići redom po html fajlovima, srediti titlove i dodati izvor gde treba -- popraviti lightningStrike - svući three.js na lokal? -- dokumentovati - minimalni bekend za statistike / brojač poseta - testirati na raznim uređajima nakon dizanja na server +- dodati izvor gde treba +- write documentation ## BUGS: diff --git a/config.js b/config.js index 527183507..515a9b0b7 100644 --- a/config.js +++ b/config.js @@ -1,3 +1,3 @@ export default { - volume: 0 // .4 + volume: .4 } \ No newline at end of file diff --git a/index.html b/index.html index 5afd488a2..00e88f524 100644 --- a/index.html +++ b/index.html @@ -92,11 +92,11 @@

Create 3D worlds

A library of REUSABLE Three.js components that you can play with.

-

To begin with, you can replace any model or character in these examples.

+

Unlike other cool Three.js examples that you can just look at, here you can combine different elements and create new scenes. To begin with, you can replace any model or character in these examples.

-

But, there's much more besides these examples. Explore the source code.

+

I hope you will have as much fun as I did making this.

-

Hint: games are at the bottom ;)

+

Hint: GAMES are at the bottom ;)

Geometry

diff --git a/utils/light.js b/utils/light.js index 4ec7e0f95..6c91129f0 100644 --- a/utils/light.js +++ b/utils/light.js @@ -95,7 +95,6 @@ export function lightningStrike(light, scene = defaultScene) { const distance = randInt(100, 3000) audio.volume = mapRange(distance, 3000, 100, config.volume / 4, config.volume) - // TODO: fix light light.intensity = mapRange(distance, 3000, 100, 1.2, 2) const newColor = new THREE.Color().lerpColors(