pixijs / lights

Adds dynamic lighting via deferred shading to PixiJS
https://pixijs.io/lights/docs/index.html
MIT License
198 stars 29 forks source link

Normal maps not cleared after moving/removing object #10

Closed Casmo closed 8 years ago

Casmo commented 8 years ago

Hi,

When I move an object or remove an object from the stage that has a normal map attached to it the area where it previously was is not "cleared".

refresh.

Here is an example of the effect: JSFiddle

Casmo commented 8 years ago

I obviously fixed by placing a background in the scene. Thanks for the great plugin!

var texture = PIXI.Texture.fromImage('http://cdn.couchfriends.com/games/breakout/assets/tiled-background.png');
var background = new PIXI.TilingSprite(texture, w, h);
stage.addChild(background);