[0]shaderPass里renderState的blend参数为啥不起作用啊

shaderPass:[
        {
            pipeline:Forward,
            VS:unlitVS,
            FS:unlitPS,
            statefirst:true,
            renderState:{
                cull: "Back",
                blend: "Seperate",
                // srcBlend:"One",
                // dstBlend:"One",
                srcBlendRGB:"One",
                dstBlendRGB:"One",
                srcBlendAlpha:"Zero",
                dstBlendAlpha:"One",
                // blendEquation:"ADD",
                // blendEquationRGB:"ADD",
                // blendEquationAlpha:"ADD",
                // depthTest:0,
                depthWrite:false,
                // stencilRef:0,
                // stencilTest:0,
                // stencilWrite:0,
                // stencilOp:0,
            }
        }
    ]
已邀请:

半城烟沙

赞同来自:

您好,非常感谢您的反馈,我们在shaderPass中测试发现,其实改变blend参数区别还是比较明显的。您看看是不是渲染队列问题,Laya.Sprite3D自身的问题,或者是不是受到其他后处理shader影响导致的。(图二,左边是未加Blend,右边是加了Blend)
希望能帮助到您

要回复问题请先

商务合作
商务合作