Skip to content

Commit 0d6d784

Browse files
committed
No need for dirty property
1 parent 82c1ea8 commit 0d6d784

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

src/gameobjects/lights/Light.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,6 @@ var Light = new Class({
9797
*/
9898
this.cameraFilter = 0;
9999

100-
/**
101-
* The dirty state of the light. A dirty light will reset all of its shader attributes.
102-
*
103-
* @name Phaser.GameObjects.Light#dirty
104-
* @type {boolean}
105-
* @since 3.50.0
106-
*/
107-
this.dirty = true;
108-
109100
this.setScrollFactor(1, 1);
110101
},
111102

@@ -141,8 +132,6 @@ var Light = new Class({
141132

142133
this.color.set(color[0], color[1], color[2]);
143134

144-
this.dirty = true;
145-
146135
return this;
147136
},
148137

@@ -160,8 +149,6 @@ var Light = new Class({
160149
{
161150
this.intensity = intensity;
162151

163-
this.dirty = true;
164-
165152
return this;
166153
},
167154

@@ -179,8 +166,6 @@ var Light = new Class({
179166
{
180167
this.radius = radius;
181168

182-
this.dirty = true;
183-
184169
return this;
185170
}
186171

0 commit comments

Comments
 (0)