Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: PIXI.filters.DropShadowFilter is not a constructor #2622

Closed
alamboley opened this issue Jun 3, 2016 · 3 comments
Closed

TypeError: PIXI.filters.DropShadowFilter is not a constructor #2622

alamboley opened this issue Jun 3, 2016 · 3 comments

Comments

@alamboley
Copy link

alamboley commented Jun 3, 2016

Modified this example http://pixijs.github.io/examples/index.html?s=filters&f=blur-filter.js&title=Blur with the code below:

var renderer = PIXI.autoDetectRenderer(800, 600);
document.body.appendChild(renderer.view);
var stage = new PIXI.Container();

var littleRobot = PIXI.Sprite.fromImage('_assets/depth_blur_moby.jpg');
littleRobot.position.x = (renderer.width / 2) - 200;
littleRobot.position.y = 100;
stage.addChild(littleRobot);

littleRobot.filters = [new PIXI.filters.DropShadowFilter()];

requestAnimationFrame(animate);

function animate() {
    renderer.render(stage);
    requestAnimationFrame( animate );
}

And I got: TypeError: PIXI.filters.DropShadowFilter is not a constructor.

@rbozan
Copy link

rbozan commented Aug 9, 2016

Seems they removed the filter in version 4

@GoodBoyDigital
Copy link
Member

GoodBoyDigital commented Aug 9, 2016

closing for now as filter is due to reappear in the pixi-filters repo

@lock
Copy link

lock bot commented Feb 25, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Feb 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants