feat(ShaderBake): 全局参数注入(光照/环境/自定义全局量)
- 渲染前把勾选的全局量写进 Shader 全局,命令缓冲执行完按相反顺序还原,不污染编辑器状态 - 常用预设:光照方向/颜色、环境光三段、反射探针、_Time - 从 shader 源文件扫描非材质属性的 uniform 声明,按类型生成可编辑条目 - 侧边栏新增可折叠的"全局参数"区,贴图引用不进 JSON(资产引用无法可靠序列化)
This commit is contained in:
@@ -287,6 +287,16 @@
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
/* ── 全局参数行 ── */
|
||||
.global-enabled {
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.global-name {
|
||||
width: 118px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.prop-vec-part > .unity-label {
|
||||
min-width: 12px;
|
||||
font-size: 10px;
|
||||
|
||||
Reference in New Issue
Block a user