File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ var Class = require('../../utils/Class');
33var Components = require ( './components' ) ;
44var GameObject = require ( '../../gameobjects/GameObject' ) ;
55var GetFastValue = require ( '../../utils/object/GetFastValue' ) ;
6+ var Pipeline = require ( '../../gameobjects/components/Pipeline' ) ;
67var Image = require ( '../../gameobjects/image/Image' ) ;
78var Vector2 = require ( '../../math/Vector2' ) ;
89
@@ -22,7 +23,8 @@ var MatterImage = new Class({
2223 Components . Sleep ,
2324 Components . Static ,
2425 Components . Transform ,
25- Components . Velocity
26+ Components . Velocity ,
27+ Pipeline
2628 ] ,
2729
2830 initialize :
@@ -59,6 +61,8 @@ var MatterImage = new Class({
5961 }
6062
6163 this . setPosition ( x , y ) ;
64+
65+ this . initPipeline ( 'TextureTintPipeline' ) ;
6266 }
6367
6468} ) ;
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ var Class = require('../../utils/Class');
44var Components = require ( './components' ) ;
55var GameObject = require ( '../../gameobjects/GameObject' ) ;
66var GetFastValue = require ( '../../utils/object/GetFastValue' ) ;
7+ var Pipeline = require ( '../../gameobjects/components/Pipeline' ) ;
78var Sprite = require ( '../../gameobjects/sprite/Sprite' ) ;
89var Vector2 = require ( '../../math/Vector2' ) ;
910
@@ -23,7 +24,8 @@ var MatterSprite = new Class({
2324 Components . Sleep ,
2425 Components . Static ,
2526 Components . Transform ,
26- Components . Velocity
27+ Components . Velocity ,
28+ Pipeline
2729 ] ,
2830
2931 initialize :
@@ -62,6 +64,8 @@ var MatterSprite = new Class({
6264 }
6365
6466 this . setPosition ( x , y ) ;
67+
68+ this . initPipeline ( 'TextureTintPipeline' ) ;
6569 }
6670
6771} ) ;
You can’t perform that action at this time.
0 commit comments