您好,目前您可以通过配置脚本实现此功能,具体如下:
var colors = [0.7647, 0.72549,0.68627, 0.64705,0.6078431, 0.568627,0.529411, 0.490196,0.45098, 0.4117647, 0.372549]; scene.getMeshByID('mesh_a9Wi090e9lCe_1624517783433').enableEdgesRender ing(); scene.getMeshByID('mesh_a9Wi090e9lCe_1624517783433').edgesWidth = 0.4; scene.getMeshByID('mesh_a9Wi090e9lCe_1624517783433').edgesColor =new BABYLON.Color4(0.0941, colors[0], 0.94509, 0.8); var i = 1; setInterval(()=>{ scene.getMeshByID('mesh_a9Wi090e9lCe_1624517783433').edgesColor = new BABYLON.Color4(0.0941, colors[i], 0.94509, 0.8); if(i==colors.length-1) i=0; 7980 i++; },1000)
刚添加上的阴影非常粗糙,需要进行阴影处理。首先在“过滤器”中选择“模糊指数”。选择“模糊指数后”打开“开启指数阴影模糊”按钮,调整“模糊体积”数值,数值越大,阴影越模糊;调整“暗度”数值,数值越大阴影越暗。也可调节上方的“阴影质量”,数值越大,质量越高。选中平行光,通过“移动”拉近光源与模型的距离,再通过“旋转”调整光照角度,从而使阴影偏移。更多操作指南请参考操作手册。(http://forum.fulima.com/xueyuan/manual.htm)