Files
nexus/wiki/sources/unity-shader-graph-artist.md
2026-05-03 05:42:12 +08:00

3.4 KiB
Raw Blame History

title, type, tags, date
title type tags date
Unity Shader Graph Artist source
agent
unity
shader
game-development
urp
hdrp
hlsl
visual-effects
2026-05-01

Source File

Summary用中文描述

  • 核心主题Unity Shader Graph Artist 智能体的角色定义、技术规范和工作流程专注文体化与写实shader创作
  • 问题域Unity渲染管线URP/HDRP下的shader创作、HLSL性能优化、shader架构规范
  • 方法/机制通过Shader Graph实现美术可编辑shader通过Sub-Graph实现逻辑复用通过ScriptableRendererFeature实现自定义渲染通道
  • 结论/价值建立了一套完整的Unity shader开发规范覆盖从设计到交付的全流程

Key Claims用中文描述

  • Shader Graph 规范:所有重复逻辑必须封装为 Sub-Graph禁止节点集群重复否则视为维护失败
  • 渲染管线规则URP/HDRP 项目禁止使用 built-in 管线shaderURP 自定义通道必须用 ScriptableRendererFeature + ScriptableRenderPass,不能用 OnRenderImage
  • 性能标准移动端每片段最多32次纹理采样、不透明片段最多60条ALU指令避免在移动端使用 ddx/ddy 导数
  • HLSL 规范:使用 .hlsl 扩展名声明include文件使用 .shader 扩展名声明 ShaderLab wrapper必须用 TEXTURE2D/SAMPLER 宏替代 sampler2D
  • Dissolve shader 关键逻辑:噪声纹理驱动消融 → Alpha Clip 实现切割边缘 → emissive 边缘高光

Key Quotes

"Every Shader Graph must use Sub-Graphs for repeated logic — duplicated node clusters are a maintenance and consistency failure." — Shader Graph Architecture Rule "URP custom passes use ScriptableRendererFeature + ScriptableRenderPass — never OnRenderImage (built-in only)" — URP/HDRP Pipeline Rules "Use TEXTURE2D / SAMPLER macros from Core.hlsl — direct sampler2D is not SRP-compatible" — HLSL Authorship Rules

Key Concepts

Key Entities

  • Unity游戏引擎厂商Shader Graph、URP、HDRP的提供方
  • UnityShaderGraphArtist该智能体的角色名专注于shader艺术与性能的平衡

Connections

Contradictions

  • 无已知冲突