Skip to content

Commit e41d5a0

Browse files
committed
Tidying up the class
1 parent e8a36a2 commit e41d5a0

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/renderer/webgl/pipelines/LightPipeline.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,12 @@ var LightPipeline = new Class({
185185
var height = renderer.height;
186186
var i;
187187

188+
// Reset lights if we've a different total (probably not strict enough test)
188189
if (lightCount !== this.lightCount)
189190
{
190-
// Reset lights
191191
for (i = 0; i < LIGHT_COUNT; i++)
192192
{
193193
this.set1f('uLights[' + i + '].radius', 0);
194-
195-
// renderer.setFloat1(program, 'uLights[' + i + '].radius', 0);
196194
}
197195

198196
this.lightCount = lightCount;
@@ -215,8 +213,6 @@ var LightPipeline = new Class({
215213

216214
this.set2f(lightName + 'position', point.x - (camera.scrollX * light.scrollFactorX * camera.zoom), height - (point.y - (camera.scrollY * light.scrollFactorY) * camera.zoom));
217215

218-
// renderer.setFloat2(program, lightName + 'position', point.x - (camera.scrollX * light.scrollFactorX * camera.zoom), height - (point.y - (camera.scrollY * light.scrollFactorY) * camera.zoom));
219-
220216
if (light.dirty)
221217
{
222218
this.set3f(lightName + 'color', light.r, light.g, light.b);

0 commit comments

Comments
 (0)