pixijs / lights

Adds dynamic lighting via deferred shading to PixiJS

Home Page:https://pixijs.io/lights/docs/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Normal maps not cleared after moving/removing object

Casmo opened this issue · comments

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

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);