Build a single-file WebGPU "material study" page called "Castle Jelly", in the style of my jelly diorama series (Pirate Jelly / Island Jelly): a square block of wobbly jelly lake on a table in a paper studio, cut faces showing candy strata, italic serif masthead "Castle / Jelly.", glass control panel on the right, "How to play" line at the bottom-left, UI in English, mobile bottom-sheet layout.
The diorama: a fairy-tale castle on a cliff. The back-left of the block is a plateau whose front is a sheer wall of candy-striped rock (layer-cake strata that match the block's cut faces, a talus under the lake), meshed from an SDF with surface nets, mossy where it faces up. On the lawn: a cream castle with round towers, glossy pink/lilac/blue cone roofs, gold finials, fluttering pennants, crenellated walls, a great hall, arched windows (dark glass by day, lamplight at night), a gatehouse with a drawbridge, a brazier by the gate, gummy pines, flowering bushes, reeds. A river wells up from a spring, runs past the gate under the drawbridge and pours off the lip as a waterfall that arcs down into the jelly lake — and keeps going inside the jelly: a fraying plume, bubbles driven down then rising, bright threads of current streaming along the lake floor. The falls pound the surface (shallow-water waves, foam, spray, mist). A little royal galleon (blue hull, white sails, crown standard) sails laps of the lake.
Interactions: Fireworks (rockets off the towers, coloured bursts that light the castle and the lake; automatic at night), Lower/Raise bridge, Royal salute (ship fires, splash), Wishing coins (into the pool under the falls); tap a tower / the gate / the brazier / the ship, drag the water to make waves, tip the block, throw coins and balls, bend the pines. Sliders: Firmness, Waterfall (flow), Wave damping, Time of day (noon → sunset → night with stars). Flavours: Glacier, Rose, Lilac. Shadows, caustics, refraction through the jelly, fixed-step physics.
한국어 번역
내 젤리 디오라마 시리즈(Pirate Jelly / Island Jelly) 스타일로 "Castle Jelly"라는 단일 파일 WebGPU "material study" 페이지를 만드세요: 종이 스튜디오의 테이블 위에 놓인 흔들리는 젤리 호수의 정사각형 블록, 캔디 지층이 드러난 절단면, 이탤릭 세리프 마스트헤드 "Castle / Jelly.", 오른쪽의 유리 컨트롤 패널, 왼쪽 하단의 "How to play" 줄, 영어 UI, 모바일 하단 시트 레이아웃.
디오라마: 절벽 위의 동화 속 성. 블록의 뒤쪽 왼편은 고원으로, 그 전면은 캔디 줄무늬 암석의 수직 벽입니다(블록의 절단면과 맞물리는 케이크 층 지층, 호수 아래의 너덜지대). SDF에서 surface nets로 메시를 만들고, 위를 향한 면에는 이끼가 자랍니다. 잔디 위에는 크림색 성이 있습니다: 둥근 탑, 광택 있는 분홍/라일락/파란 원뿔 지붕, 금색 꼭대기 장식, 펄럭이는 페넌트, 총안이 있는 성벽, 대연회장, 아치형 창(낮에는 어두운 유리, 밤에는 등불 빛), 도개교가 있는 성문, 성문 옆의 화로, 구미 소나무, 꽃이 핀 덤불, 갈대. 샘에서 강물이 솟아나와 성문 옆을 지나 도개교 아래로 흐르고, 끝에서 폭포가 되어 아치를 그리며 젤리 호수로 떨어집니다 — 그리고 젤리 속에서도 계속됩니다: 흩어지며 풀리는 물기둥, 아래로 밀려갔다가 다시 떠오르는 기포, 호수 바닥을 따라 흐르는 밝은 물살의 실. 폭포가 수면을 때립니다(얕은 물 파도, 거품, 물보라, 안개). 작은 왕실 갤리온(파란 선체, 흰 돛, 왕관 깃발)이 호수를 한 바퀴씩 돕니다.
상호작용: 불꽃놀이(탑에서 로켓이 발사되고, 색색의 불꽃이 성과 호수를 비춥니다; 밤에는 자동), 다리 내리기/올리기, 왕실 예포(배가 발포하고 물보라), 소원 동전(폭포 아래 연못으로); 탑/성문/화로/배를 탭하고, 물을 드래그해 파도를 만들고, 블록을 기울이고, 동전과 공을 던지고, 소나무를 휘게 하세요. 슬라이더: Firmness, Waterfall (flow), Wave damping, Time of day (noon → sunset → night with stars). 향: Glacier, Rose, Lilac. 그림자, 코스틱, 젤리를 통과하는 굴절, 고정 스텝 물리.