From 6ffbbf275f2c4178c0bf24cf41db02eb6c0d619f Mon Sep 17 00:00:00 2001 From: Daniel Mecke Date: Thu, 28 Jun 2012 20:14:17 +0300 Subject: [PATCH] As suggested by hurik in the impactjs forum. This is much cleaner as you don't have to touch the framework itself. --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f51ad52..97bd92c 100644 --- a/README.md +++ b/README.md @@ -66,13 +66,12 @@ update: function() { } ``` -* add the Lighting Draw calls to the impact.js lib/impact/game.js around the entitydrawing ( or somewhere else ) +* add the Lighting Draw calls to your main.js ``` -draw: function() { - ... +drawEntities: function() { this.lightManager.drawLightMap(); - this.drawEntities(); + this.parent(); this.lightManager.drawShadowMap(); } ```