跳到正文
Skillpedia
视频剪辑7.2k · #13348

ice-frost-skill-vfx

它能做什么

这个技能指导智能体制作游戏技能中的冰霜效果,包括蔓延在地面上并从手中迸发的霜花。适合希望霜花看起来是生长出来、而不是画出来的游戏开发者。

适用场景

  • ✓游戏技能需要在表面上蔓延的霜或冰的时候。
  • ✓霜花需要以分支的图案向外生长的时候。
  • ✓冰效果看起来像扁平的绘制图案、需要更有生命力的时候。

技能链接

https://github.com/MengTo/Skills/blob/main/agent-skills/game-combat/ice-frost-skill-vfx/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/MengTo/Skills/blob/main/agent-skills/game-combat/ice-frost-skill-vfx/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请让我的冰霜技能从手中开始,沿地面生长出分支状的霜花,并向外蔓延。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会在处理器上从起点生长霜花分支,然后用这一图案绘制随时间向外蔓延的精细羽状边缘。它会让该效果与其他技能的效果保持相同的视觉风格。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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. growFrost runs 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
常见问题

它涵盖风和碎冰效果吗?

涵盖。技能把风和碎裂效果作为冰的视觉语言的一部分。

它使用哪个引擎?

Three.js,配合 WebGL2 和自定义着色器。

它与火焰技能有什么不同?

火焰技能涵盖火苗和烟雾,这个技能涵盖霜、冰以及它们在地面上的蔓延方式。

详情

作者的原始描述

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

热度

GitHub 星标
7.2k
排名
#13348
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能