jjwallace Posted March 23, 2016 Share Posted March 23, 2016 I am trying to get shaders to work in Phaser, I see a plane Deformation working in phaser but what about something like this? https://www.shadertoy.com/view/4s2Xzc How easy is this? Link to comment Share on other sites More sharing options...
drhayes Posted March 24, 2016 Share Posted March 24, 2016 Phaser calls shaders "Filters". Here's a link to the Filters section of the examples site for Phaser: http://phaser.io/examples/v2/category/filters Basically, the source for the shader is a constructor argument to a Phaser.Filter object. You can then set that as one member of the "filters" array for a sprite or group or the stage. Link to comment Share on other sites More sharing options...
Recommended Posts