entangled-worlds-orbiters-shared 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -9
- package/package.json +1 -1
- package/src/config/textureConfig.js +1 -1
- package/src/world/worldTexture.js +3 -0
- package/THIRD-PARTY-NOTICES.md +0 -5
package/README.md
CHANGED
|
@@ -6,7 +6,6 @@ A shared library containing core components for 3D world rendering, moons system
|
|
|
6
6
|
|
|
7
7
|
- **World System**: Core world rendering with textured spheres, normal materials, GLB models, and cloud shells
|
|
8
8
|
- **Moons System**: Orbital moon generation and management
|
|
9
|
-
- **Arrow UI**: Reusable UI component system based on lil-gui
|
|
10
9
|
- **Loaders**: Texture, GLB, and cubemap loading utilities
|
|
11
10
|
- **Core Rendering**: Lighting, Fresnel effects, and material utilities
|
|
12
11
|
- **Configuration**: Texture and configuration management system
|
|
@@ -38,7 +37,6 @@ npm link entangled-worlds-orbiters-shared
|
|
|
38
37
|
// Import specific modules
|
|
39
38
|
import { WorldManager } from 'entangled-worlds-orbiters-shared/world';
|
|
40
39
|
import { MoonsManager } from 'entangled-worlds-orbiters-shared/moons';
|
|
41
|
-
import { GUI } from 'entangled-worlds-orbiters-shared/arrow-ui';
|
|
42
40
|
|
|
43
41
|
// Or import everything
|
|
44
42
|
import * as EntangledWorlds from 'entangled-worlds-orbiters-shared';
|
|
@@ -57,10 +55,6 @@ import * as EntangledWorlds from 'entangled-worlds-orbiters-shared';
|
|
|
57
55
|
- `MoonsManager` - Moons orchestration
|
|
58
56
|
- `moonsGeneration` - Moon generation logic
|
|
59
57
|
|
|
60
|
-
### Arrow UI
|
|
61
|
-
- Complete UI component system based on lil-gui
|
|
62
|
-
- Controllers for boolean, color, function, number, option, and string inputs
|
|
63
|
-
|
|
64
58
|
### Loaders
|
|
65
59
|
- `cubeMapLoader` - Skybox loading
|
|
66
60
|
- `glbLoader` - GLB loading utilities
|
|
@@ -129,6 +123,4 @@ npm install three three-stdlib
|
|
|
129
123
|
|
|
130
124
|
## License
|
|
131
125
|
|
|
132
|
-
[MIT](LICENSE) © Plantasia Space.
|
|
133
|
-
|
|
134
|
-
`src/arrow-ui/` is derived from [lil-gui](https://github.com/georgealways/lil-gui) (MIT) — see [THIRD-PARTY-NOTICES.md](THIRD-PARTY-NOTICES.md).
|
|
126
|
+
[MIT](LICENSE) © Plantasia Space.
|
package/package.json
CHANGED
|
@@ -94,7 +94,7 @@ export async function loadTextureConfig(configUrl = null, useCache = true) {
|
|
|
94
94
|
* Get texture options for a specific category (clouds, moons, etc.)
|
|
95
95
|
* @param {string} category - Texture category (clouds, moons, skyboxes)
|
|
96
96
|
* @param {Object} config - Optional pre-loaded config object
|
|
97
|
-
* @returns {Promise<Object>} Options object suitable for
|
|
97
|
+
* @returns {Promise<Object>} Options object suitable for dropdown option lists
|
|
98
98
|
*/
|
|
99
99
|
export async function getTextureOptions(category, config = null) {
|
|
100
100
|
const textureConfig = config || await loadTextureConfig();
|
|
@@ -296,6 +296,9 @@ export async function makeSphere({
|
|
|
296
296
|
|
|
297
297
|
if (flags) applyFlagsToMaterial(material, flags);
|
|
298
298
|
const mesh = new THREE.Mesh(meshGeometry, material);
|
|
299
|
+
// Named so consumers can find the planet body by name (mirrors the
|
|
300
|
+
// normal-mode body's `worldNormalSphere`) — e.g. to modulate its material.
|
|
301
|
+
mesh.name = 'worldTextureSphere';
|
|
299
302
|
mesh.position.set(0, 0, 0);
|
|
300
303
|
|
|
301
304
|
// NEW: add cloud shell before glow
|
package/THIRD-PARTY-NOTICES.md
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
# Third-party notices
|
|
2
|
-
|
|
3
|
-
## Arrow UI (`src/arrow-ui/`)
|
|
4
|
-
|
|
5
|
-
Derived from [lil-gui](https://github.com/georgealways/lil-gui) by George Michael Brower, licensed under the [MIT License](https://github.com/georgealways/lil-gui/blob/master/LICENSE). The controllers and GUI core have been adapted for the Entangled Worlds / Orbiters apps (external stylesheet loading, custom controllers and behavior); the original license applies to the derived portions alongside this project's MIT license.
|