ice-frost-skill-vfx
Skill này làm gì
Skill này hướng dẫn agent làm các hiệu ứng băng của một skill game, gồm sương giá lan trên mặt đất và bùng ra từ bàn tay. Nó dành cho lập trình viên game muốn sương giá trông như mọc lên, không như bị sơn lên.
Khi nào nên dùng
- ✓Khi một skill game cần sương giá hoặc băng lan trên bề mặt.
- ✓Khi sương giá cần lớn lên theo các nhánh tỏa ra ngoài.
- ✓Khi hiệu ứng băng trông như một họa tiết sơn phẳng và cần thêm sức sống.
Liên kết skill
https://github.com/MengTo/Skills/blob/main/agent-skills/game-combat/ice-frost-skill-vfx/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Làm cho skill băng của tôi lan sương giá trên sàn từ bàn tay, với các nhánh tỏa ra ngoài.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent mọc các nhánh sương giá trên bộ xử lý từ một điểm bắt đầu, rồi dùng họa tiết đó để vẽ các mép mảnh lan ra theo thời gian. Nó giữ hiệu ứng trong cùng phong cách hình ảnh với các skill khác.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Ice and Frost Skill VFX
Use this for the effect half of an ice or frost skill: what forms in the hand, what spreads across the ground, what erupts, what the wind does and what breaks. Reach for a sibling instead in these cases:
- Lightning, an energy orb, black afterimage smoke and air bursts:
lightning-energy-skill-vfx. This skill reuses its clock, composite, impact frames and flash limiter. - Flames, smoke, embers and burning ground:
fire-smoke-skill-vfx. - Readable, budgeted gameplay effects in general (telegraphs, status, cleanup rules):
create-game-vfx. Its readability rules still apply here. - Scoring a skill out of 10, or polishing the caster's body and timing:
game-dev-combat-skill-polish.
Source: a brief for elemental skill pages built to the Black Lightning demo's bar, with the notes the user gave on that demo ("not as in-your-face", "more fine lines", "smooth transitions", "a more realistic floor", "no sliding textures", "more detail in the shadows"). There is no character: the frost blooms in an implied hand at chest height. Then eight self-critique rounds, two rounds of review on the blizzard, and a three-round dream loop against GPT Image edits of the page's own frames (see references/scorecard.md).
Verified stack: Three.js r170, WebGL2, GLSL ShaderMaterials (one in GLSL3 for a two-target bake), HalfFloat render targets with a depth texture, a 96³ baked noise texture, and a hand-written bloom, composite and FXAA. No post-processing library. The demo's floor is Poly Haven's Snow 02 by Rob Tuytel (CC0), its 1k colour, normal and AO/roughness maps in demo/assets/ground/, embedded by demo/build.mjs as data URIs so the page opens from disk.
The mechanism
Frost is grown once and drawn by its arrival time; ice is traced against its own planes; the air is marched where the cold pools.
- Grow the frost, then let the shader reveal it.
growFrostruns a small diffusion-limited growth on the CPU in about 50 ms: stems, barbs and sub-barbs advance as events in one time-ordered heap, so whichever tip reaches a patch first claims it and later tips stop against it. Every segment carries the time the front reached it. The tree is baked once into a 2048-wide HalfFloat distance field, and the ground shader draws hairlines from it by comparing that arrival time with the frost clock. Nothing is re-rolled or scrolled: the pattern grows. - Ice is a convex hull you can trace exactly. Each spike is a set of planes (sides, tip facets, chips, a base) clipped from a cube. The fragment shader refracts into the hull, finds the exit plane in closed form, reflects internally while total internal reflection holds, and samples a mip-mapped copy of the world pass for what is seen through it. Cracks are planes too: the spike shatters along exactly the planes the viewer watched crack.
- Pieces are rigid bodies with one contact. Every fragment and chunk keeps its hull vertices, so the lowest corner is known each substep. An impulse with friction lands it, and when it slows it tips onto the face nearest the snow, so nothing ends balanced on a point, floating or sunk.
- Mist is a ray march in banks, not cards. Each bank is a wind-stretched ellipsoid marched over its own span at a third of the resolution, with domain-warped fibres advected in two crossfaded phases so it churns in place. A mist-only debug view (
fx.debug = 'mist') is how it was calibrated. - One wind field moves everything. A column vortex (foot inflow, core lift, top outflow, an S-shaped axis) drives the powder, the flakes, the hairline streamers and the mist's rotation.
- One clock and one composite, as in
lightning-energy-skill-vfx: holds freeze every layer, a time ramp slows the crack, refraction rings go into a half-resolution distortion buffer, bloom has a high threshold, and the impact frame draws after tone mapping. FXAA runs only on pixels the ice pass marks, because MSAA on a HalfFloat target resolves to garbage.
Reuse the working effect
Copy assets/frost-energy.mjs and assets/frost-growth.mjs side by side (frost-energy imports ./frost-growth.mjs). You pass in your own THREE, and neither module imports a second copy. The demo runs these same modules, inlined by demo/build.mjs because a page opened from disk cannot import modules.
import { creat
Câu hỏi thường gặp
Có bao gồm gió hoặc băng vỡ không?
Có. Skill bao gồm hiệu ứng gió và băng vỡ như một phần của ngôn ngữ hình ảnh băng.
Nó dùng engine nào?
Three.js với WebGL2 và shader tùy chỉnh.
Khác gì với skill lửa?
Skill lửa lo ngọn lửa và khói. Skill này lo sương giá, băng và cách chúng lan trên mặt đất.
Chi tiết
Mô tả gốc của tác giả
Build the effects of an ice and frost skill as one visual language in Three.js. Frost that grows like real frost, not a painted fern: a dendritic tree grown on the CPU from a seed point, stems racing outward with barbs and sub-barbs that compete for space in one time-ordered queue, side branches leaned toward their tips, baked into a distance field so the shader draws hairline feathers growing out from the seed with a bright tip, rime, crystal glints and a contact shadow. Faceted ice spikes built from half-spaces and ray-traced against their own planes (Snell, Fresnel, total internal reflectio
repo: MengTo/Skills
Độ phổ biến
- Sao GitHub
- 7.2k
- Vị trí xếp hạng
- #13348
- Giấy phép
- MIT
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
3d-cloth-material
7.2kGiúp agent của bạn tạo vải dệt 3D trông thật trong Three.js, với sợi dệt, ánh bóng nhẹ, nếp gấp tự nhiên, viền gấu và đường may.
3d-falling-leaves
7.2kGiúp agent của bạn thêm lá rơi chân thực vào cảnh 3D, với lá xoay tròn, trôi theo gió và được tái sử dụng khi máy quay di chuyển.
3d-four-seasons
7.2kGiúp agent của bạn thêm diện mạo xuân, hạ, thu, đông vào cảnh 3D, thay đổi cây cối, ánh sáng, bầu trời và tuyết mà không cần dựng lại cảnh.
3d-high-poly-models
7.2kGiúp agent của bạn dựng mô hình 3D chi tiết với hình dạng mượt và cạnh trông thật, rồi tạo các phiên bản nhẹ hơn chạy tốt trên web.
Skill tương tự
taste-application
280kGiúp agent tạo video theo phong cách cụ thể: sao chép nhịp dựng từ video mẫu, tạo cảnh mới, chỉnh màu và ghép với các đoạn có sẵn.
taste-distillation
280kGiúp agent phân tích video để tạo style pack gồm màu sắc, nhịp cắt và yếu tố hình ảnh, tái sử dụng để tạo video mới cùng phong cách.
ui-demo
280kGiúp agent ghi lại video demo giao diện chỉn chu. Hữu ích để tạo hướng dẫn hoặc cho thấy một ứng dụng web hoạt động ra sao.