Advertisement
netgrind

Untitled

Feb 18th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. package fx ;
  2. import luxe.Color;
  3. import phoenix.Shader;
  4. import phoenix.Texture;
  5.  
  6. /**
  7. * ...
  8. * @author netgrind
  9. */
  10. @name('Flip')
  11. @description('flip')
  12. @path("Effects/Fuck/Flip")
  13.  
  14. class FXFlip extends Effect {
  15.  
  16. public var i_tex:Texture = Main.getTexture();
  17. public var i_flip:Texture = Main.getTexture();
  18. public var i_val:Float = 0.5;
  19. public var o_tex:Texture = Main.getTexture();
  20. var s:Shader = Luxe.loadShader("assets/shader/flip.glsl");
  21.  
  22. override public function process():Void {
  23. super.process();
  24. i_flip.slot = 3;
  25. s.set_uniform_texture('flip', i_flip);
  26. s.set_uniform_float('val', i_val);
  27. o_tex = ShaderUtils.applyShader(i_tex, o_tex, s);
  28. }
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement