[]3D阴影无法渲染出来

//添加方向光
var directionLight = scene.addChild(new Laya.DirectionLight());
directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6);
directionLight.direction = new Laya.Vector3(1, -1, 0);

directionLight.shadow = true;
directionLight.shadowDistance = 3;
directionLight.shadowResolution = 2048;
directionLight.shadowPSSMCount = 1;
directionLight.shawowPCFType = 3;
box.meshRender.receiveShadow = true;
sphere.meshRender.castShadow = true; box 和 sphere 都是 Sprite3D 的,贴了2D贴图,为啥出不来阴影
已邀请:

a43345

赞同来自:

可以了 distance设置大一点

Monica - 知识达人

赞同来自:

好的,有问题再联系!

要回复问题请先

商务合作
商务合作