Pixi.js: PIXI v5.03 mesh blendMode

Created on 29 May 2019  路  8Comments  路  Source: pixijs/pixi.js

Hi,

Can't seem to get a mesh to apply its blendMode when placed over another sprite.

(see this codepen I just made: https://codepen.io/bmdproject99/pen/araNEg )

I wonder if the bug in v4 is back in v5?

(See the v4 issue: https://github.com/pixijs/pixi.js/issues/2754 )

I tried setting blendMode to the shader, but still no luck.

Any thoughts?

bmd

馃憤 Not A Bug

All 8 comments

https://www.pixiplayground.com/#/edit/785nGjqG5wSZoa9r2Xn7I

Third param in mesh constructor should be state, not uniforms . That mistake breaks all webgl state management.

var mesh1 = new PIXI.Mesh(geometry, shader/*, uniforms*/);
var mesh2 = new PIXI.Mesh(geometry, shader/*, uniforms*/);

@GoodBoyDigital @bigtimebuddy do you guys think we need to guard users from that problem somehow?

Thanks for speedy response, and the solution!.
I had used the following example, where uniforms are listed as third parameter:
https://pixijs.io/examples/#/mesh/uniforms.js

Not anymore.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings