[0]3D场景中png图片无法透明

3D场景中png图片无法透明
var material = new Laya.UnlitMaterial();
            Laya.Texture2D.load(pic, Laya.Handler.create(this, function(texture){
                material.renderMode=1;
                material.albedoTexture = texture;
            }));  
已邀请:

Laya_Fred

赞同来自:

您好,是想将png图片作为3d场景内模型材质,并设置为不透明材质吗?可以使用BlinnPhongMaterial来实现,通过设置BlinnPhone材质的渲染模式为Cutout,就可以根据png图片的alpha值实现透明效果。LayaAir3D之BlinnPhong材质

要回复问题请先

商务合作
商务合作