How to set custom blend func?

front-to-back alpha blending for example requires GL_ONE_MINUS_DST_ALPHA, GL_ONE - how can this be set with playcanvas?
Also, how can a separate blend func be set for alpha (as can with WebGLRenderingContext.blendFuncSeparate() - Web APIs | MDN) ?

I believe you can set this via the graphics device:

won’t this be overwritten by the material though?

Ah, I best ask @mvaligursky on this :sweat_smile:

I don’t think there’s any public interface for this at the moment.
Under the hood, the material class stores those, so you could carefully set those yourself.

1 Like