From 4f4030480a21f1ed9ac3b1b1b433879b0ed1ead4 Mon Sep 17 00:00:00 2001 From: Mark Knol Date: Fri, 23 Feb 2018 13:02:40 +0100 Subject: [PATCH] DisplacementFilter.scale Seen here https://pixijs.download/v4.5.2/docs/filters_displacement_DisplacementFilter.js.html#line47 --- .../filters/displacement/DisplacementFilter.hx | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/pixi/filters/displacement/DisplacementFilter.hx b/src/pixi/filters/displacement/DisplacementFilter.hx index 538f0858..c280fdd1 100755 --- a/src/pixi/filters/displacement/DisplacementFilter.hx +++ b/src/pixi/filters/displacement/DisplacementFilter.hx @@ -1,5 +1,6 @@ package pixi.filters.displacement; +import pixi.core.math.Point; import pixi.core.textures.Texture; import pixi.core.sprites.Sprite; import pixi.core.renderers.webgl.filters.Filter; @@ -20,10 +21,15 @@ extern class DisplacementFilter extends Filter { function new(sprite:Sprite, ?scale:Float); /** - * The texture used for the displacement map. Must be power of 2 sized texture. - * - * @member {Texture} - * @memberof PIXI.filters.DisplacementFilter# - */ + * The texture used for the displacement map. Must be power of 2 sized texture. + * + * @member {Texture} + * @memberof PIXI.filters.DisplacementFilter# + */ var map:Texture; -} \ No newline at end of file + + /** + * The scale of the displacement. + */ + var scale:Point; +}