williamsma Posted October 26, 2016 Share Posted October 26, 2016 Coming from a WebGL background and new to PIXI.js, so I am used to sending multiple texture maps to a single Fragment Shader. I sense PIXI.js framework sends a default texture map to the fragment shader, but found little on sending multiple texture maps to a single Fragment Shader. Perhaps this is a restriction of the Framework. My question is how to send multiple texture maps to a single Fragment Shader. Is there a simple example of this? Appreciate any pointing in the right direction. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted October 26, 2016 Share Posted October 26, 2016 https://github.com/pixijs/pixi-picture uses two textures: one is copy of framebuffer under object, the second is the object itself. As a result, we can use OVERLAY blendMode in webgl Quote Link to comment Share on other sites More sharing options...
williamsma Posted October 27, 2016 Author Share Posted October 27, 2016 Ok, thanks much for the response. I'll take a look at it. Are there any .js file(s) I should focus on? Quote Link to comment Share on other sites More sharing options...
xerver Posted October 28, 2016 Share Posted October 28, 2016 Here is an example of a filter in the lib that lets you specify a texture: https://github.com/pixijs/pixi.js/tree/master/src/filters/displacement 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.