roamwright 0.61.10 → 0.61.11

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.
@@ -46,8 +46,6 @@ function earShell(gb, o) {
46
46
  fold = o.fold ?? 1,
47
47
  bend = o.bend ?? 0,
48
48
  fur = o.fur ?? 0,
49
- // Keep the original exponent and thickness path verbatim when no canid shaping option is passed so existing cat bytes never shift.
50
- shaped = o.tip !== undefined || o.fold !== undefined || o.bend !== undefined || o.fur !== undefined,
51
49
  tipExp = o.tip === undefined ? 0.78 : 1.02 - 0.64 * o.tip,
52
50
  folded = fold < 1 && bend > 0,
53
51
  crease = folded ? Math.min(0.24, Math.max(0.08, (1 - fold) * 0.48)) : 0,
@@ -167,16 +165,11 @@ function earShell(gb, o) {
167
165
  const f = frame(t, s),
168
166
  n = normal(t, s, N),
169
167
  k = skin(t, s) * back;
170
- let p;
171
- if (shaped) {
172
- // Offset along the world-space surface normal so folded and tilted ears keep uniform skin thickness.
173
- p = world(f, P);
174
- p[0] -= n[0] * k;
175
- p[1] -= n[1] * k;
176
- p[2] -= n[2] * k;
177
- } else {
178
- p = world([f[0] - n[0] * k, f[1] - n[1] * k, f[2] - n[2] * k], P);
179
- }
168
+ // the back stands off along the world-space normal, so a folded or tilted ear keeps one skin thickness
169
+ const p = world(f, P);
170
+ p[0] -= n[0] * k;
171
+ p[1] -= n[1] * k;
172
+ p[2] -= n[2] * k;
180
173
  return [p.slice(), side > 0 ? n.slice() : n.map(v => -v)];
181
174
  });
182
175
  for (const k of order)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roamwright",
3
- "version": "0.61.10",
3
+ "version": "0.61.11",
4
4
  "description": "A procedural worldbuilding engine built on top of Three.js. Generate landscapes with rivers and changing weather, animate crowds, and explore on foot or in flight.",
5
5
  "keywords": [
6
6
  "threejs",