GBagley Posted July 16, 2015 Share Posted July 16, 2015 Hi, I'm starting to play with shaders (AbstractFilter) in PIXI, but have gotten stuck trying to use the alpha value. It seems that in the vertex shader the attribute aColor.a (the alpha) is always at 1.0, even though in pixi I'm specifying that the alpha on the graphics object is lower. Which alpha value from pixi is being passed to the shader? Example here: http://jsfiddle.net/tLc5c8yd/ In this, one box has an alpha of 0.6 and the other has an alpha of 1.0. In the vertex shader, I'm trying to change the emitted color of the vertex based on the alpha (>= 1.0 is red, < 1 is green) but they both come up the same color. Quote Link to comment Share on other sites More sharing options...
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.