dewctl 0.12.0 → 0.13.0

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.
@@ -267,7 +267,7 @@ and [lights and materials](https://alpha.dewdrop.world/docs/lighting) each light
267
267
  | glass, water, ice | a transparent material with `userData.modelLayer = 'surface'`, described as the surface |
268
268
  | wet ground, reflections | the ground at low `roughness`, which shows the lights in it, and "wet" in its words |
269
269
  | leaves, grass, a fence, lace | cards with a cut-out texture and an `alphaTest` |
270
- | grass in the wind, a waving flag, a swell on the water | a `VertexMaterial` whose WGSL program moves the vertices every frame ([moving vertices](https://alpha.dewdrop.world/docs/vertex)) |
270
+ | grass in the wind, a waving flag, a swell on the water | a `DewMaterial` whose WGSL program moves the vertices every frame, drawn in its one `color` ([moving vertices](https://alpha.dewdrop.world/docs/vertex)) |
271
271
  | shadows | every light casts them; a softer edge from a larger `userData.angle` on the sun |
272
272
  | a sign you can read | the letters built as meshes or in the sign's texture; a sign only described shows no word |
273
273
  | big clouds | white spheres stacked into towers about 1 km or more away, described as a cloud |
@@ -38,7 +38,7 @@ Dewdrop lights the three.js scene, then draws every frame in the game's style
38
38
  ([prompt and descriptions](https://alpha.dewdrop.world/docs/prompting)).
39
39
 
40
40
  `scene.fog`, lines (`Line`, `LineSegments`, `LineLoop`), render targets and post-processing don't show. A
41
- `ShaderMaterial`'s shaders don't run (to move vertices, use a `VertexMaterial`, below), and `RectAreaLight` and `scene.environment` light nothing. Sprites, points and
41
+ `ShaderMaterial`'s shaders don't run (to move vertices, use a `DewMaterial`, below), and `RectAreaLight` and `scene.environment` light nothing. Sprites, points and
42
42
  transparent materials draw as glows. The prompt is at most 4 KiB, the background description and each description
43
43
  at most 1 KiB. A scene draws at most 65,536 objects (each mesh counts once, and so does each instance), and holds
44
44
  up to 4,096 lights and 4,096 textures ([what works](https://alpha.dewdrop.world/docs/limits#the-look)).
@@ -102,11 +102,12 @@ Shapes ([shapes](https://alpha.dewdrop.world/docs/renderer#shapes)):
102
102
  - **Small moving things lose their shape.** Make what matters large in frame. Fish, flocks and sparks: muted,
103
103
  about 0.6 m long or more, 8 m or more from the camera
104
104
  ([what to watch for](https://alpha.dewdrop.world/docs/renderer#what-to-watch-for)).
105
- - **Moving vertices is a `VertexMaterial`:** grass in the wind, a waving flag, a swell on the water. Write
106
- `fn vertex(v: Vertex) -> Moved` in a `.wgsl` file in `src/`, import it, and give it as the `program` of a
107
- `VertexMaterial` from `dewdrop-sdk/vertex`, shaded as a standard material; set `renderer.programTime` from the
108
- game's clock every frame for its `time()`. `vite build` names the line of a program Dewdrop can't run
109
- ([moving vertices](https://alpha.dewdrop.world/docs/vertex)).
105
+ - **Moving vertices is a `DewMaterial`:** grass in the wind, a waving flag, a swell on the water. Write
106
+ `fn vertex(v: Vertex) -> Moved` in a `.wgsl` file in `src/`, import it, and give it as the `module` of a
107
+ `THREE.DewMaterial` with a `maxDisplacement` (0 unless set, which holds every vertex still) and its numbers as
108
+ `params`; the mesh is drawn in the material's `color`, with no map. Set `renderer.programTime` from the game's
109
+ clock every frame for its `time()`, and `paramsNeedUpdate = true` after changing `params`. `vite build` names the
110
+ line of a program Dewdrop can't run ([moving vertices](https://alpha.dewdrop.world/docs/vertex)).
110
111
  - **Atmosphere is words.** Haze, mist, rain and god rays go in the prompt's scene sentence.
111
112
 
112
113
  Words ([prompt and descriptions](https://alpha.dewdrop.world/docs/prompting)):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dewctl",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "Build and publish three.js games on Dewdrop.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/project.js CHANGED
@@ -180,7 +180,7 @@ export async function build(project, signal) {
180
180
  const STARTER_FILES=['package.json','src','index.html','vite.config.js'];
181
181
  // The SDK a new game depends on — the range moves with the SDK's minor, since a caret on 0.x stays within one —
182
182
  // and this CLI, at its own version.
183
- const SDK_RANGE='^0.11.0';
183
+ const SDK_RANGE='^0.12.0';
184
184
  const CLI_RANGE=`^${JSON.parse(readFileSync(new URL('../package.json',import.meta.url),'utf8')).version}`;
185
185
  // The games a new one can start from: Blank, which ships with this CLI, and the starter games in the public
186
186
  // starter-templates repository, a folder each, at the commit this release pins.