把法线纹理按数据读取,检查切线与UV边界
本页展示随包原生输入和验收参考。目标产品运行状态:未运行。表格与图片不代表产品已经生成的结果。
input.csv / practice-data.json


本课实际输入字段
| texture | role | color_space | tangent_rule | seam |
|---|---|---|---|---|
| box-base.png | baseColor | sRGB | not a tangent map | color reference |
| box-normal.png | normalTexture | linear data | TANGENT supplied or renderer computes | UV seam A |
| box-normal-off | disabled | none | compare same camera | geometry-only baseline |


按数据接入
reference.csv:作者验收映射,不是目标API回包
| item | expected | identity |
|---|---|---|
| 数据读取 | Normal不是sRGB颜色 | author_acceptance_reference |
| 测试 | 同视角开关normal定位接缝 | author_acceptance_reference |
| 硬边 | 纸盒折面不可一概抹平 | author_acceptance_reference |
实际原生GLB读回
{
"measurements": {},
"files": [
{
"file": "author-control.glb",
"bytes": 4368,
"extensionsUsed": [],
"animations": 0
}
]
}应当保留的约束
| item | expected | identity |
|---|---|---|
| 数据读取 | Normal不是sRGB颜色 | author_acceptance_reference |
| 测试 | 同视角开关normal定位接缝 | author_acceptance_reference |
| 硬边 | 纸盒折面不可一概抹平 | author_acceptance_reference |
故意构造的错误样例
| case | bad_value | why_reject |
|---|---|---|
| 接错 | normal.png接baseColor | 变蓝紫不等凹凸 |
| 误修 | 所有面光滑 | 破坏应有折面 |
先保存真实产品输出,再逐项对照。actualOutput / actualResult 在未执行时保持 not_run,不能把这里的期望值复制成已测结果。