是否可以使用照明贴图或发光贴图?我试过“mapEmissive”:“illumination_3.jpg”和“colorEmissive”:[0.5,0.5,0.5],但似乎无法让它工作。我看到他们是Ekitson在github上提到的代码实现....
我的JSON文件材质属性: “材料”:[{ “阴影”:“Phong”, “DbgColor”:15658734, “DbgIndex”:0, “DbgName”:“military_space_fighter_black3”, “colorAmbient”:[0.588,0.588,0.588], “colorDiffuse”:[0.588,0.588,0.588], “colorSpecular”:[0.5,0.5,0.5], “colorEmissive”:[0.5,0.5,0.5], “照明”:2, “mapAmbient”:“super_black_color_3.jpg”, “mapBump”:“bump_3.jpg”, “mapDiffuse”:“super_black_color_3.jpg”, “mapEmissive”:“illumination_3.jpg”, “mapSpecular”:“specular_3.jpg”, “opticalDensity”:1.5, “specularCoef”:10.0, “透明度”:0.0 }],
答案 0 :(得分:0)
在r55中没有“mapEmissive”或“colorEmissive”属性。如果你看一下webgl_materials.html示例,你会发现材料有一个“发射”属性。