feat(ShaderBake): 面片网格与选面、导出尺寸预设

- 面片改成"一格一张 UV 区域"的网格,向左/下扩展时新格 UV 编号递减(左邻为 [-1,0])
- 每格 UV 编号可单独改写,并在右侧实时显示
- 浏览图支持点选面片(与烘焙同一套投影做射线求交),选中格显示高亮框与 UV 编号
- 输出尺寸增加常用预设下拉与"匹配面片比例"
This commit is contained in:
2026-11-05 17:43:11 +08:00
parent 0db9bd5462
commit a0512ad450
7 changed files with 583 additions and 42 deletions
+28
View File
@@ -181,6 +181,34 @@
margin-right: 4px;
}
.field-quarter {
flex-grow: 1;
flex-shrink: 1;
min-width: 0;
margin-right: 3px;
font-size: 10px;
}
/* ── 浏览图里的选中面片高亮 ── */
.face-overlay {
position: absolute;
display: none;
border-width: 1px;
border-color: rgb(255, 196, 64);
background-color: rgba(255, 196, 64, 0.14);
}
.face-overlay-label {
position: absolute;
left: 2px;
top: 2px;
font-size: 10px;
color: rgb(255, 224, 160);
background-color: rgba(0, 0, 0, 0.55);
padding: 0 4px;
border-radius: 2px;
}
.field-toggle {
font-size: 11px;
margin-top: 2px;