我按你说的改了一下CustomMaterial.js,效果正确了,现在我想不用代码,直接改.lmat材质文件能直接调用自定义的shader么?应该怎么写?
@asanwu
{
"type":"CustomMaterial",
"props":{
"name":"zhousi",
"renderMode":1
},
"customProps":{
"ambientColor":[
0.6,
0.6,
0.6
],
"diffuseColor":[
1,
1,
1
],
"specularColor":[
1,
1,
1,
8
],
"reflectColor":[
1,
1,
1,
1
],
"emissionColor":[
0,
0,
0
],
"albedoColor":[
1,
1,
1,
1
],
"diffuseTexture":{
"texture2D":"zhousi.png"
},
"normalTexture":{
"texture2D":"007.png"
},
"specularTexture":{
"texture2D":""
},
"emissiveTexture":{
"texture2D":""
},
"ambientTexture":{
"texture2D":""
},
"reflectTexture":{
"texture2D":""
}
}
}