Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

feat(verse): wear feathered angel wings on the figure's back

rubenluetke10-beepd0c3d56193f3
diff --git a/jarvis/ui/web/frontend/src/components/society/office/OfficeAgents.tsx b/jarvis/ui/web/frontend/src/components/society/office/OfficeAgents.tsx
index 3d7edc1069..d960713f0d 100644
--- a/jarvis/ui/web/frontend/src/components/society/office/OfficeAgents.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/office/OfficeAgents.tsx
@@ -41,6 +41,7 @@ import { agentLogoAsset } from "@/components/agentic/AgentMark";
import { LevelChip } from "../progression/LevelHud";
import { agentSubject, petSubject } from "../progression/progressionApi";
import { useProgression } from "../progression/progressionStore";
+import { AngelWings, useWearsWings } from "../progression/effects/AngelWings";
/** The agent's symbol walks behind it as a little pet, about a fifth of its height. */
export const PET_SIZE_M = 0.26;
@@ -224,6 +225,7 @@ function Walker({ agent, desk, ctx, arrivesByElevator, awake, reduced, selected,
const body = useRef<Group>(null);
const ring = useRef<Mesh>(null);
const drive = useRef<FigureDrive>({ mode: "idle", speed: 0 });
+ const wings = useWearsWings("agent", agentSubject(agent.agentId));
const rng = useMemo(() => createRng(agent.agentId), [agent.agentId]);
const mover = useRef<Mover>({ ...(arrivesByElevator ? ctx.spawn : { x: 0, z: 0 }), heading: Math.PI, path: [] });
const plan = useRef<Plan | null>(null);
@@ -425,7 +427,8 @@ function Walker({ agent, desk, ctx, arrivesByElevator, awake, reduced, selected,
onClick={(event) => { event.stopPropagation(); onSelect(agent.agentId); }}
onPointerOver={() => { document.body.style.cursor = "pointer"; }}
onPointerOut={() => { document.body.style.cursor = ""; }}>
- {!isGigi && <ToyFigure look={look} drive={drive} paused={!awake} heightM={OFFICE_FIGURE_HEIGHT_M} seatHeight={seatHeight} />}
+ {!isGigi && <ToyFigure look={look} drive={drive} paused={!awake} heightM={OFFICE_FIGURE_HEIGHT_M} seatHeight={seatHeight}
+ back={wings ? <AngelWings drive={drive} paused={!awake} reduced={reduced} /> : undefined} />}
</group>
<Nameplate agent={agent} activity={activity} selected={selected} onSelect={onSelect} height={isGigi ? leadPlate : undefined} />
<AgentBubble agent={agent} lines={lines} selected={selected} onSelect={onSelect}
diff --git a/jarvis/ui/web/frontend/src/components/society/office/OfficePlayer.tsx b/jarvis/ui/web/frontend/src/components/society/office/OfficePlayer.tsx
index 54d07c1dd8..f09ff51663 100644
--- a/jarvis/ui/web/frontend/src/components/society/office/OfficePlayer.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/office/OfficePlayer.tsx
@@ -25,6 +25,7 @@ import { jumpSquash, newJump, pressJump, stepJump } from "./officeJump";
import { useProgression } from "../progression/progressionStore";
import { PERSON_SUBJECT } from "../progression/progressionApi";
import { LevelChip } from "../progression/LevelHud";
+import { AngelWings, useWearsWings } from "../progression/effects/AngelWings";
/** The person's pace: a brisk walk, and a sprint on Shift (m/s). */
export const PLAYER_WALK_SPEED = 2.0;
@@ -164,6 +165,8 @@ export function OfficePlayer({ layout, grid, look, name, awake, reduced }: {
if (state.cheerUntil > prev.cheerUntil && !reduced) pressJump(jump);
}), [jump, reduced]);
const level = useProgression((s) => (s.snapshot ? s.subjects[PERSON_SUBJECT]?.level ?? 1 : null));
+ const wings = useWearsWings("person", PERSON_SUBJECT);
+ const airborne = useMemo(() => () => jump.airborne, [jump]);
// Arrive by the elevator once per app run; coming back to the map keeps the
// character where it was, unless a changed floor plan put that spot in a wall.
@@ -290,7 +293,8 @@ export function OfficePlayer({ layout, grid, look, name, awake, reduced }: {
<meshBasicMaterial color="#f5b83d" transparent opacity={0.8} side={DoubleSide} depthWrite={false} />
</mesh>
<group ref={body}>
- <ToyFigure look={look} drive={drive} paused={!awake} heightM={OFFICE_FIGURE_HEIGHT_M} holding={hasBone ? <TreatBone scale={1.15} /> : undefined} />
+ <ToyFigure look={look} drive={drive} paused={!awake} heightM={OFFICE_FIGURE_HEIGHT_M} holding={hasBone ? <TreatBone scale={1.15} /> : undefined}
+ back={wings ? <AngelWings drive={drive} airborne={airborne} paused={!awake} reduced={reduced} /> : undefined} />
{!firstPerson && (
<Html center position={[0, OFFICE_FIGURE_HEIGHT_M + 0.35, 0]} zIndexRange={[25, 0]}>
<span className="office-plate office-plate-player" data-office-ui>
diff --git a/jarvis/ui/web/frontend/src/components/society/office/ToyFigure.tsx b/jarvis/ui/web/frontend/src/components/society/office/ToyFigure.tsx
index fded1b4c84..3da1b85715 100644
--- a/jarvis/ui/web/frontend/src/components/society/office/ToyFigure.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/office/ToyFigure.tsx
@@ -522,9 +522,11 @@ export interface ToyFigureProps {
seatHeight?: number;
/** Something held in the right hand (e.g. a dog treat); the arm then stays raised forward. */
holding?: ReactNode;
+ /** Worn on the upper back (e.g. the level wings); rides the torso through every hop and lean. */
+ back?: ReactNode;
}
-export function ToyFigure({ look, drive, paused, heightM = TOY_HEIGHT, seatHeight = 0.52, holding }: ToyFigureProps) {
+export function ToyFigure({ look, drive, paused, heightM = TOY_HEIGHT, seatHeight = 0.52, holding, back }: ToyFigureProps) {
const holds = useRef(false);
holds.current = !!holding;
const scale = heightM / TOY_HEIGHT;
@@ -620,6 +622,7 @@ export function ToyFigure({ look, drive, paused, heightM = TOY_HEIGHT, seatHeigh
<mesh geometry={GEO.lowSphere} material={matte(look.skin)} position={[0, TOY.neckY - 0.01, 0]} scale={[0.07, 0.04, 0.07]} />
<Arm side={1} look={look} shoulder={lShoulder} elbow={lElbow} />
<Arm side={-1} look={look} shoulder={rShoulder} elbow={rElbow} holding={holding} />
+ {back && <group position={[0, 0.2, -TOY.torso.d / 2 - 0.01]}>{back}</group>}
<group ref={head} position={[0, TOY.neckY, 0]}>
<mesh geometry={GEO.sphere} material={matte(look.skin)} position={[0, HD.y, 0]} scale={[HD.rx, HD.ry, HD.rz]} castShadow />
<Face look={look} />
diff --git a/jarvis/ui/web/frontend/src/components/society/progression/ProgressionLayer.tsx b/jarvis/ui/web/frontend/src/components/society/progression/ProgressionLayer.tsx
index 496a774d8f..554af9115f 100644
--- a/jarvis/ui/web/frontend/src/components/society/progression/ProgressionLayer.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/progression/ProgressionLayer.tsx
@@ -50,7 +50,8 @@ function Flair({ loadout, source, topSource, top, scale, paused, reduced }: {
<>
{loadout.aura && <CosmeticAura kind={loadout.aura as AuraKind} source={source} scale={scale} paused={paused} reduced={reduced} />}
{loadout.trail && !reduced && <CosmeticTrail kind={loadout.trail as TrailKind} source={source} scale={scale} paused={paused} />}
- {loadout.gadget && <CosmeticGadget kind={loadout.gadget as GadgetKind} source={topSource ?? source} top={top} scale={scale}
+ {/* The wings are worn on the figure itself (AngelWings in ToyFigure's back slot), not floated beside it. */}
+ {loadout.gadget && loadout.gadget !== "gadget_wings" && <CosmeticGadget kind={loadout.gadget as GadgetKind} source={topSource ?? source} top={top} scale={scale}
paused={paused} reduced={reduced} />}
</>
);
diff --git a/jarvis/ui/web/frontend/src/components/society/progression/effects/AngelWings.tsx b/jarvis/ui/web/frontend/src/components/society/progression/effects/AngelWings.tsx
new file mode 100644
index 0000000000..caf4216074
--- /dev/null
+++ b/jarvis/ui/web/frontend/src/components/society/progression/effects/AngelWings.tsx
@@ -0,0 +1,240 @@
+/**
+ * The level-40 wings: a pair of feathered angel wings worn on the figure's
+ * back. They are rendered inside the figure's torso, so they ride every hop,
+ * bob and lean of the body instead of following its ground position.
+ *
+ * Each wing is an arm (shoulder → elbow → wrist) carrying a fan of long
+ * secondaries and two rows of coverts, and a hand at the wrist carrying the
+ * primaries and their coverts. The feathers of one layer are one instanced
+ * mesh, so a whole wing costs a handful of draw calls. The wings fold tight
+ * while the wearer sits, tuck in while it walks, rest half open while it
+ * stands and spread wide and beat while it is in the air.
+ */
+import { useLayoutEffect, useRef } from "react";
+import { useFrame } from "@react-three/fiber";
+import {
+ AdditiveBlending, Color, DoubleSide, Euler, Matrix4, Quaternion, Shape, ShapeGeometry, Vector3,
+ type BufferGeometry, type Group, type InstancedMesh,
+} from "three";
+import type { FigureMode } from "../../figures/FigureRig";
+import { useProgression } from "../progressionStore";
+import { equippedFor } from "../cosmetics";
+import { glowTexture } from "./flairTextures";
+
+/** One feather in its wing's plane: x points away from the body, y up (rig metres). */
+interface Feather {
+ x: number;
+ y: number;
+ /** Direction the quill points, radians from +x towards +y. */
+ angle: number;
+ length: number;
+ /** Vane width as a share of the length. */
+ width: number;
+ /** Depth offset; more negative sits nearer a viewer behind the wearer. */
+ z: number;
+ colour: string;
+}
+
+const PEARL = "#fbf8ef";
+const WHITE = "#ffffff";
+const GOLD = "#f6dfa4";
+
+let featherGeometry: BufferGeometry | null = null;
+let covertGeometry: BufferGeometry | null = null;
+
+/** A unit-length feather along +x, its tip bent slightly back like a real vane. */
+function bentFeather(shape: Shape): BufferGeometry {
+ const geometry = new ShapeGeometry(shape, 8);
+ const position = geometry.attributes.position;
+ for (let i = 0; i < position.count; i += 1) {
+ const x = position.getX(i);
+ position.setZ(i, -0.09 * x * x);
+ }
+ geometry.computeVertexNormals();
+ return geometry;
+}
+
+/** Long flight feather: narrow leading vane, wider trailing vane, rounded tip. Shared by every wearer. */
+function flightFeather(): BufferGeometry {
+ if (featherGeometry) return featherGeometry;
+ const s = new Shape();
+ s.moveTo(0, 0);
+ s.bezierCurveTo(0.15, 0.06, 0.55, 0.1, 0.86, 0.07);
+ s.quadraticCurveTo(1, 0.04, 1, 0);
+ s.quadraticCurveTo(0.98, -0.08, 0.82, -0.12);
+ s.bezierCurveTo(0.55, -0.15, 0.15, -0.1, 0, 0);
+ featherGeometry = bentFeather(s);
+ return featherGeometry;
+}
+
+/** Short, round covert feather. Shared by every wearer. */
+function covertFeather(): BufferGeometry {
+ if (covertGeometry) return covertGeometry;
+ const s = new Shape();
+ s.moveTo(0, 0);
+ s.bezierCurveTo(0.2, 0.2, 0.75, 0.24, 1, 0);
+ s.bezierCurveTo(0.75, -0.24, 0.2, -0.2, 0, 0);
+ covertGeometry = bentFeather(s);
+ return covertGeometry;
+}
+
+const DEG = Math.PI / 180;
+const lerp = (a: number, b: number, t: number) => a + (b - a) * t;
+
+/** The arm's leading edge: shoulder, elbow, wrist (wing plane, rig metres). */
+const ARM: readonly [number, number][] = [[0.03, 0], [0.2, 0.3], [0.4, 0.5]];
+
+function onArm(t: number): [number, number] {
+ const k = Math.min(1, Math.max(0, t)) * (ARM.length - 1);
+ const i = Math.min(ARM.length - 2, Math.floor(k));
+ const f = k - i;
+ return [lerp(ARM[i][0], ARM[i + 1][0], f), lerp(ARM[i][1], ARM[i + 1][1], f)];
+}
+
+function armLayers(): { secondaries: Feather[]; coverts: Feather[] } {
+ const secondaries: Feather[] = [];
+ for (let i = 0; i < 10; i += 1) {
+ const u = i / 9;
+ const [x, y] = onArm(u * 0.96);
+ secondaries.push({ x, y, angle: lerp(-93, -58, u) * DEG, length: lerp(0.44, 0.52, u), width: 0.95, z: i * 0.002, colour: PEARL });
+ }
+ const coverts: Feather[] = [];
+ for (let i = 0; i < 11; i += 1) {
+ const u = i / 10;
+ const [x, y] = onArm(u);
+ coverts.push({ x, y: y - 0.04, angle: lerp(-82, -50, u) * DEG, length: 0.22, width: 1, z: -0.02 + i * 0.001, colour: WHITE });
+ }
+ for (let i = 0; i < 13; i += 1) {
+ const u = i / 12;
+ const [x, y] = onArm(u);
+ coverts.push({ x, y: y + 0.01, angle: lerp(-70, -35, u) * DEG, length: 0.12, width: 1.1, z: -0.032 + i * 0.001, colour: WHITE });
+ }
+ return { secondaries, coverts };
+}
+
+const PRIMARY_LENGTHS = [0.6, 0.7, 0.73, 0.71, 0.67, 0.63, 0.59, 0.56, 0.53, 0.5];
+
+function handLayers(): { primaries: Feather[]; coverts: Feather[] } {
+ const primaries: Feather[] = PRIMARY_LENGTHS.map((length, i) => {
+ const u = i / (PRIMARY_LENGTHS.length - 1);
+ const gold = new Color(GOLD).lerp(new Color(PEARL), u).getStyle();
+ return { x: lerp(0.07, 0, u), y: lerp(0.02, 0, u), angle: lerp(34, -54, u) * DEG, length, width: 0.85, z: 0.01 + i * 0.002, colour: gold };
+ });
+ const coverts: Feather[] = [];
+ for (let i = 0; i < 6; i += 1) {
+ const u = i / 5;
+ coverts.push({ x: lerp(0.06, -0.02, u), y: lerp(0.03, -0.02, u), angle: lerp(26, -40, u) * DEG, length: 0.26, width: 1, z: -0.015 + i * 0.001, colour: WHITE });
+ }
+ return { primaries, coverts };
+}
+
+const ARM_LAYERS = armLayers();
+const HAND_LAYERS = handLayers();
+
+function Feathers({ feathers, geometry, shadow }: { feathers: readonly Feather[]; geometry: BufferGeometry; shadow: boolean }) {
+ const mesh = useRef<InstancedMesh>(null);
+ useLayoutEffect(() => {
+ const m = mesh.current;
+ if (!m) return;
+ const matrix = new Matrix4();
+ const q = new Quaternion();
+ const e = new Euler();
+ const p = new Vector3();
+ const s = new Vector3();
+ const c = new Color();
+ feathers.forEach((f, i) => {
+ // Rolled a little about the quill so neighbours overlap like shingles.
+ q.setFromEuler(e.set(0.28, 0, f.angle));
+ matrix.compose(p.set(f.x, f.y, f.z), q, s.set(f.length, f.length * f.width, f.length));
+ m.setMatrixAt(i, matrix);
+ m.setColorAt(i, c.set(f.colour));
+ });
+ m.instanceMatrix.needsUpdate = true;
+ if (m.instanceColor) m.instanceColor.needsUpdate = true;
+ }, [feathers]);
+ return (
+ <instancedMesh ref={mesh} args={[geometry, undefined, feathers.length]} castShadow={shadow} frustumCulled={false}>
+ <meshStandardMaterial color={WHITE} roughness={0.55} metalness={0} emissive="#fff1cf" emissiveIntensity={0.22} side={DoubleSide} />
+ </instancedMesh>
+ );
+}
+
+/** How open the wings rest in each figure mode (0 folded, 1 spread). */
+const SPREAD: Record<FigureMode, number> = {
+ idle: 0.5, walk: 0.3, work: 0, talk: 0.45, sit: 0, sleep: 0, celebrate: 0.95, wave: 0.85,
+};
+
+export interface WingMotion {
+ /** True while the wearer is off the floor (a jump): the wings spread and beat. */
+ airborne?: () => boolean;
+}
+
+export function AngelWings({ drive, airborne, paused, reduced }: {
+ drive: { current: { mode: FigureMode } };
+ paused: boolean;
+ reduced: boolean;
+} & WingMotion) {
+ const arms = useRef<(Group | null)[]>([]);
+ const hands = useRef<(Group | null)[]>([]);
+ const state = useRef({ spread: SPREAD.idle, clock: Math.random() * 10, beat: 0 });
+
+ useFrame((_, rawDt) => {
+ const s = state.current;
+ const dt = paused ? 0 : Math.min(rawDt, 0.1);
+ const flying = !!airborne?.();
+ const target = flying ? 1 : SPREAD[drive.current.mode] ?? SPREAD.idle;
+ s.spread += (target - s.spread) * (1 - Math.exp(-(flying ? 14 : 6) * dt));
+ s.clock += dt;
+ // A strong beat in the air that fades out after landing; a slow breath on the ground.
+ s.beat += ((flying ? 1 : 0) - s.beat) * (1 - Math.exp(-8 * dt));
+ const calm = reduced ? 0 : 1;
+ const breath = 0.05 * Math.sin(s.clock * 1.7) * calm;
+ const stroke = 0.5 * s.beat * Math.sin(s.clock * 15) * calm;
+ const lag = 0.4 * s.beat * Math.sin(s.clock * 15 - 0.7) * calm;
+ const k = s.spread;
+ for (let i = 0; i < 2; i += 1) {
+ const arm = arms.current[i];
+ const hand = hands.current[i];
+ if (arm) {
+ arm.rotation.y = lerp(1.25, 0.12, k);
+ arm.rotation.z = lerp(-0.3, 0.08, k) + breath + stroke;
+ }
+ if (hand) {
+ hand.rotation.y = lerp(1.1, 0, k);
+ hand.rotation.z = lerp(-0.75, 0, k) + breath * 0.6 + lag;
+ }
+ }
+ });
+
+ return (
+ <group>
+ {[1, -1].map((side, i) => (
+ // Leaned back a little so the arch clears the head; the right wing mirrors the left.
+ <group key={side} position={[side * 0.04, 0, 0]} scale={[side, 1, 1]} rotation={[-0.28, 0, 0]}>
+ <group ref={(g) => { arms.current[i] = g; }}>
+ <mesh position={[0.36, 0.12, 0.06]} scale={1.25}>
+ <planeGeometry args={[1, 1]} />
+ <meshBasicMaterial map={glowTexture()} color="#ffe7a8" transparent opacity={0.3} blending={AdditiveBlending} depthWrite={false} toneMapped={false} />
+ </mesh>
+ <Feathers feathers={ARM_LAYERS.secondaries} geometry={flightFeather()} shadow />
+ <Feathers feathers={ARM_LAYERS.coverts} geometry={covertFeather()} shadow={false} />
+ <group ref={(g) => { hands.current[i] = g; }} position={[ARM[2][0], ARM[2][1], 0]}>
+ <Feathers feathers={HAND_LAYERS.primaries} geometry={flightFeather()} shadow />
+ <Feathers feathers={HAND_LAYERS.coverts} geometry={covertFeather()} shadow={false} />
+ </group>
+ </group>
+ </group>
+ ))}
+ </group>
+ );
+}
+
+/** True when this subject currently wears the wings (unlocked, and not swapped out by the person). */
+export function useWearsWings(kind: "person" | "agent", subjectId: string): boolean {
+ return useProgression((s) => {
+ const rewards = s.snapshot?.rewards;
+ const level = s.subjects[subjectId]?.level;
+ if (!rewards || !level) return false;
+ return equippedFor(rewards, kind, level, kind === "person" ? s.choices.person : undefined).gadget === "gadget_wings";
+ });
+}
diff --git a/jarvis/ui/web/frontend/src/components/society/progression/effects/CosmeticWear.tsx b/jarvis/ui/web/frontend/src/components/society/progression/effects/CosmeticWear.tsx
index 1d2a1d159f..702e5b7940 100644
--- a/jarvis/ui/web/frontend/src/components/society/progression/effects/CosmeticWear.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/progression/effects/CosmeticWear.tsx
@@ -5,12 +5,12 @@
*
* Auras: a warm glow, a turning rune circle, a crackling storm ring and the
* prismatic legend circle with rising motes. Gadgets: a hovering drone, a
- * halo, a crown and a pair of light wings.
+ * halo and a crown. The wings are worn on the figure's back (AngelWings).
*/
-import { useEffect, useMemo, useRef, type RefObject } from "react";
+import { useEffect, useMemo, useRef } from "react";
import { useFrame } from "@react-three/fiber";
import {
- AdditiveBlending, BufferAttribute, BufferGeometry, Color, DoubleSide, Shape, ShapeGeometry,
+ AdditiveBlending, BufferAttribute, BufferGeometry, Color, DoubleSide,
type Group, type LineSegments, type Mesh, type MeshBasicMaterial, type Points,
} from "three";
import { EFFECT_COLOURS, type RewardId } from "../levelCatalog";
@@ -173,10 +173,7 @@ function Motes({ radius, paused }: { radius: number; paused: boolean }) {
// ------------------------------------------------------------------ gadgets
-/**
- * `top` is the height of the wearer's head top above the floor; `heading`
- * (from the source) turns the wings onto its back.
- */
+/** `top` is the height of the wearer's head top above the floor. */
export function CosmeticGadget({ kind, source, top, scale = 1, paused, reduced }: {
kind: GadgetKind; source: FlairSource; top: number; scale?: number; paused: boolean; reduced: boolean;
}) {
@@ -184,9 +181,7 @@ export function CosmeticGadget({ kind, source, top, scale = 1, paused, reduced }
const extra = useRef<Group>(null);
const blink = useRef<Mesh>(null);
const group = useFollow(source, paused, (g, at, t) => {
- const lift = at.y !== undefined && kind !== "gadget_wings" ? at.y : top;
- g.position.set(at.x, kind === "gadget_wings" ? top * 0.55 : lift, at.z);
- if (kind === "gadget_wings") g.rotation.y = at.heading ?? 0;
+ g.position.set(at.x, at.y ?? top, at.z);
const calm = reduced ? 0 : 1;
if (kind === "gadget_halo" && spinner.current) {
spinner.current.position.y = 0.14 * scale + 0.025 * Math.sin(t * 2.2) * calm;
@@ -201,13 +196,6 @@ export function CosmeticGadget({ kind, source, top, scale = 1, paused, reduced }
}
if (blink.current) (blink.current.material as MeshBasicMaterial).opacity = Math.sin(t * 6) > 0.2 ? 1 : 0.2;
}
- if (kind === "gadget_wings" && extra.current) {
- // Each wing swings its tip backwards (+θ about y sends +x towards −z) and forwards again.
- const sweep = WING_REST + (reduced ? 0 : 0.22 + 0.22 * Math.sin(t * 3.2));
- const [left, right] = extra.current.children;
- if (left) left.rotation.y = sweep;
- if (right) right.rotation.y = -sweep;
- }
});
const [main, accent] = EFFECT_COLOURS[kind];
return (
@@ -265,38 +253,6 @@ export function CosmeticGadget({ kind, source, top, scale = 1, paused, reduced }
</group>
</group>
)}
- {kind === "gadget_wings" && <Wings refGroup={extra} colour={main} scale={scale} />}
- </group>
- );
-}
-
-/** The wings' resting sweep behind the back, radians. */
-const WING_REST = 0.35;
-
-function Wings({ refGroup, colour, scale }: { refGroup: RefObject<Group>; colour: string; scale: number }) {
- const geometry = useMemo(() => {
- // One feathered wing, drawn outward along +x from the shoulder.
- const s = new Shape();
- s.moveTo(0, 0);
- s.bezierCurveTo(0.18, 0.2, 0.42, 0.26, 0.6, 0.18);
- s.lineTo(0.5, 0.08);
- s.lineTo(0.56, 0.0);
- s.lineTo(0.42, -0.04);
- s.lineTo(0.46, -0.13);
- s.lineTo(0.3, -0.12);
- s.bezierCurveTo(0.18, -0.12, 0.06, -0.06, 0, 0);
- return new ShapeGeometry(s, 12);
- }, []);
- useEffect(() => () => geometry.dispose(), [geometry]);
- return (
- <group ref={refGroup} position={[0, 0, -0.13 * scale]} scale={scale}>
- {[1, -1].map((side) => (
- <group key={side} rotation={[0, side * WING_REST, 0]}>
- <mesh geometry={geometry} scale={[side, 1, 1]}>
- <meshBasicMaterial color={colour} transparent opacity={0.55} blending={AdditiveBlending} depthWrite={false} side={DoubleSide} />
- </mesh>
- </group>
- ))}
</group>
);
}
diff --git a/jarvis/ui/web/frontend/src/components/society/progression/levelCatalog.ts b/jarvis/ui/web/frontend/src/components/society/progression/levelCatalog.ts
index 967cd2d12c..2d987ffe77 100644
--- a/jarvis/ui/web/frontend/src/components/society/progression/levelCatalog.ts
+++ b/jarvis/ui/web/frontend/src/components/society/progression/levelCatalog.ts
@@ -73,5 +73,5 @@ export const EFFECT_COLOURS: Record<Exclude<RewardId, `frame_${string}`>, readon
gadget_drone: ["#e2e8f0", "#38bdf8"],
gadget_halo: ["#ffe28a"],
gadget_crown: ["#ffcf40", "#e11d48"],
- gadget_wings: ["#bfe9ff", "#ffffff"],
+ gadget_wings: ["#fbf8ef", "#f6dfa4"],
};