[0]drawMeshInstance 合批渲染无法使用Scene的环境光

单个建立plane mesh,使用材质mat后,加入到scene里,可以被scene里设置的Ambient环境光影响,颜色显示是正常的。
 
但是批量渲染只用到了camera,没有使用到scene, 渲染出来全是黑色的,没有光照。
 
                let instanceCMD = buf.drawMeshInstance( Laya.PrimitiveMesh.createPlane(100, 100),
                    0, matrixs_block_, mat_, 0, materialBlock, length_);
 
camera.addCommandBuffer(Laya.CameraEventFlags.BeforeTransparent,buf);
已邀请:

phhh

赞同来自:

默认的环境光依赖IBL采样的结果,你如果没有使用到scene你可以设置scene的环境光模式为solidColor
 

要回复问题请先

商务合作
商务合作