【发布时间】:2013-08-28 23:46:37
【问题描述】:
我想问一下,JSON模型格式3.1如何定义透明材质。我尝试过使用 JSON,但没有成功:
{
"metadata": {
"formatVersion" : 3
},
"materials": [{
"DbgColor" : 15658734,
"DbgIndex" : 0,
"DbgName" : "dummy",
"illumination" : 2,
"opticalDensity" : 0.5,
"transparency" : 0.5,
"colorAmbient" : [ 0.9, 0.1, 0.1 ],
"colorDiffuse" : [ 0.1, 0.7, 0.1 ]
}],
"vertices": [0,0,0, 100,0,0, 100,100,0, 0,100,0 ],
"normals": [],
"colors": [1,0,0, 0,1,0 ],
"uvs": [],
"faces": [67, 0,1,2,3,0, 1]
}
我也尝试过使用不同的照明、光密度和透明度值,但也没有运气。
谢谢杨
【问题讨论】:
标签: javascript json three.js webgl