https://github.com/mrdoob/three.js/issues/936
Dbg => Debug
This is mainly for checking for how the conversion from some other format went, to see correspondences and have fallbacks for edge cases.
DbgColor: Debug colors are there as fallback if there was some mess with materials in the original data (if asset pipeline cannot figure out original material color, it'll give unique debug color to such material).
DbgIndex: Index is help to see immediately which position in the array material has when looking at JSON file (e.g. if you want to access material by index and don't want to count).
DbgName: Name is not necessarily unique, again as original data can be messy, it just reflects what was in the original data (if there was something).
three.js调试技巧
本文主要介绍了在使用three.js过程中的一些调试技巧,包括如何通过颜色、索引和名称来检查从其他格式转换过来的数据是否正确,以便更好地理解JSON文件中材料的对应关系。
5942

被折叠的 条评论
为什么被折叠?



