跳到正文
Skillpedia
网站与界面(前端)14k · #11300

shader-dev

它能做什么

这项技能涵盖 36 种用 GLSL 代码制作视觉效果的着色器技术。适合希望实现高级三维或动态画面效果的图形程序员和创意编程者。

适用场景

  • ✓当你想用 GLSL 着色器制作三维或动态效果的时候。
  • ✓当你需要为视觉作品添加光照、噪声或流体效果的时候。
  • ✓当你想根据描述制作一个 ShaderToy 风格场景的时候。

技能链接

https://github.com/MiniMax-AI/skills/blob/main/skills/shader-dev/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请帮我做一个着色器,显示一个带有柔和阴影和动态烟雾的发光三维球体。”

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

工作原理

智能体会找到与你的请求匹配的技术,阅读其指南,并根据模板编写着色器代码。这项技能还包含底层数学的深入参考笔记。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Shader Craft

A unified skill covering 36 GLSL shader techniques (ShaderToy-compatible) for real-time visual effects.

Invocation

/shader-dev <request>

$ARGUMENTS contains the user's request (e.g. "create a raymarched SDF scene with soft shadows").

Skill Structure

shader-dev/
├── SKILL.md                      # Core skill (this file)
├── techniques/                   # Implementation guides (read per routing table)
│   ├── ray-marching.md           # Sphere tracing with SDF
│   ├── sdf-3d.md                 # 3D signed distance functions
│   ├── lighting-model.md         # PBR, Phong, toon shading
│   ├── procedural-noise.md       # Perlin, Simplex, FBM
│   └── ...                       # 34 more technique files
└── reference/                    # Detailed guides (read as needed)
    ├── ray-marching.md           # Math derivations & advanced patterns
    ├── sdf-3d.md                 # Extended SDF theory
    ├── lighting-model.md         # Lighting math deep-dive
    ├── procedural-noise.md       # Noise function theory
    └── ...                       # 34 more reference files

How to Use

  1. Read the Technique Routing Table below to identify which technique(s) match the user's request
  2. Read the relevant file(s) from techniques/ — each file contains core principles, implementation steps, and complete code templates
  3. If you need deeper understanding (math derivations, advanced patterns), follow the reference link at the bottom of each technique file to reference/
  4. Apply the WebGL2 Adaptation Rules below when generating standalone HTML pages

Technique Routing Table

User wants to create... Primary technique Combine with
3D objects / scenes from math ray-marching + sdf-3d lighting-model, shadow-techniques
Complex 3D shapes (booleans, blends) csg-boolean-operations sdf-3d, ray-marching
Infinite repeating patterns in 3D domain-repetition sdf-3d, ray-marching
Organic / warped shapes domain-warping procedural-noise
Fluid / smoke / ink effects fluid-simulation multipass-buffer
Particle effects (fire, sparks, snow) particle-system procedural-noise, color-palette
Physically-based simulations simulation-physics multipass-buffer
Game of Life / reaction-diffusion cellular-automata multipass-buffer, color-palette
Ocean / water surface water-ocean atmospheric-scattering, lighting-model
Terrain / landscape terrain-rendering atmospheric-scattering, procedural-noise
Clouds / fog / volumetric fire volumetric-rendering procedural-noise, atmospheric-scattering
Sky / sunset / atmosphere atmospheric-scattering volumetric-rendering
Realistic lighting (PBR, Phong) lighting-model shadow-techniques, ambient-occlusion
Shadows (soft / hard) shadow-techniques lighting-model
Ambient occlusion ambient-occlusion lighting-model, normal-estimation
Path tracing / global illumination path-tracing-gi analytic-ray-tracing, multipass-buffer
Precise ray-geometry intersections analytic-ray-tracing lighting-model
Voxel worlds (Minecraft-style) voxel-rendering lighting-model, shadow-techniques
Noise / FBM textures procedural-noise domain-warping
Tiled 2D patterns procedural-2d-pattern polar-uv-manipulation
Voronoi / cell patterns voronoi-cellular-noise color-palette
Fractals (Mandelbrot, Julia, 3D) fractal-rendering color-palette, polar-uv-manipulation
Color grading / palettes color-palette —
Bloom / tone mapping / glitch post-processing multipass-buff
常见问题

我需要懂数学吗?

不需要。这项技能为每种技术提供代码模板,额外的参考笔记则解释数学部分。

一个请求可以使用多种技术吗?

可以。它会把你的请求分配给所有匹配的技术,例如光线步进或噪声。

涵盖多少种技术?

这项技能涵盖 36 种用于实时效果的 GLSL 着色器技术。

详情

作者的原始描述

Comprehensive GLSL shader techniques for creating stunning visual effects — ray marching, SDF modeling, fluid simulation, particle systems, procedural generation, lighting, post-processing, and more.

repo: MiniMax-AI/skills

热度

GitHub 星标
14k
排名
#11300
许可证
MIT
更新时间
2026/4/18

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能