popkat Posted November 7, 2015 Share Posted November 7, 2015 Hello, it seems that only some of pixi blend modes are implemented. I need to implement Overlay and Lighten modes, question; where can I start to do this?, (edit: I know about the programming involved, what I need is some help to modify Pixi source code) Thanks!, Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted November 7, 2015 Share Posted November 7, 2015 Do you use autoDetect or CanvasRenderer? Quote Link to comment Share on other sites More sharing options...
popkat Posted November 7, 2015 Author Share Posted November 7, 2015 Hi, I'm using autoDetect, but the application requires webgl (no need for 2d context support). The docs says " The WebGL renderer only supports the NORMAL, ADD, MULTIPLY and SCREEN blend modes. Anything else will silently act like NORMAL." (https://pixijs.github.io/docs/PIXI.html#.BLEND_MODES) Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted November 7, 2015 Share Posted November 7, 2015 Look at https://github.com/pixijs/pixi.js/blob/master/src/core/renderers/webgl/WebGLRenderer.js#L520 Quote Link to comment Share on other sites More sharing options...
popkat Posted November 7, 2015 Author Share Posted November 7, 2015 this is what I was looking for. I love you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.