html5 - Filters on DisplayObject Not working -


i'm trying add dropshadowfilter / blurfilter / glowfilter simple sprite on stage. if target flash, looks , behaves fine. when target html5, see nothing.

the wiki says "available on platforms" (link). doing wrong?

i'm importing import openfl.filters.blurfilter; import openfl.display.sprite;

here code im using:

var s:sprite = new sprite(); s.graphics.beginfill(0xff0000, 1); s.graphics.drawcircle(50, 50, 50); s.graphics.endfill(); var blur:blurfilter = new blurfilter(40, 40, 1); s.filters = [blur]; addchild(s); 

html5 printscreen: enter image description here

flash printscreen: enter image description here

right there little no support filters on target flash.

the news working on implementing custom shaders , filters openfl next on every target uses opengl. here pr , discussion https://github.com/openfl/openfl/pull/697

html5 webgl

i guess filters implemented via software html5 canvas, i'm not focusing on in pr.


Comments