Morder Posted May 4 Share Posted May 4 Trying to add the simple layer/lights to a scene with a tilemap and when the lightSprite is set to MULTIPLY mode the tilemap just disappears. ADD mode works but the coloring is terrible. The following link is a minimal sample that shows the failure. https://jsfiddle.net/g1cm7xjb/ Could someone help me to understand where I'm going wrong? (I actually saw a post by someone else that showed exactly what I was trying to accomplish but alas no code there) Thanks Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted May 4 Share Posted May 4 you have to check source code , if there's blendmodes at all in tilemap. Quote Link to comment Share on other sites More sharing options...
Morder Posted May 4 Author Share Posted May 4 Thanks! That got me in the right direction. Tilemap does not support blendmode but adding `gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA)` (BLEND_MODES.NORMAL) to the tilemap works like a charm. I'll have to study how pixi implements `.blendMode` and see what I can do to make a PR. 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.