Added TextureTintStrip pipeline

This commit is contained in:
Richard Davey 2020-01-17 17:38:24 +00:00
parent 162b07bd6b
commit 0af1303ba2
2 changed files with 3 additions and 0 deletions

View file

@ -23,6 +23,7 @@ var WebGLSnapshot = require('../snapshot/WebGLSnapshot');
var BitmapMaskPipeline = require('./pipelines/BitmapMaskPipeline'); var BitmapMaskPipeline = require('./pipelines/BitmapMaskPipeline');
var ForwardDiffuseLightPipeline = require('./pipelines/ForwardDiffuseLightPipeline'); var ForwardDiffuseLightPipeline = require('./pipelines/ForwardDiffuseLightPipeline');
var TextureTintPipeline = require('./pipelines/TextureTintPipeline'); var TextureTintPipeline = require('./pipelines/TextureTintPipeline');
var TextureTintStripPipeline = require('./pipelines/TextureTintStripPipeline');
/** /**
* @callback WebGLContextCallback * @callback WebGLContextCallback
@ -711,6 +712,7 @@ var WebGLRenderer = new Class({
this.pipelines = {}; this.pipelines = {};
this.addPipeline('TextureTintPipeline', new TextureTintPipeline({ game: game, renderer: this })); this.addPipeline('TextureTintPipeline', new TextureTintPipeline({ game: game, renderer: this }));
this.addPipeline('TextureTintStripPipeline', new TextureTintStripPipeline({ game: game, renderer: this }));
this.addPipeline('BitmapMaskPipeline', new BitmapMaskPipeline({ game: game, renderer: this })); this.addPipeline('BitmapMaskPipeline', new BitmapMaskPipeline({ game: game, renderer: this }));
this.addPipeline('Light2D', new ForwardDiffuseLightPipeline({ game: game, renderer: this, maxLights: config.maxLights })); this.addPipeline('Light2D', new ForwardDiffuseLightPipeline({ game: game, renderer: this, maxLights: config.maxLights }));

View file

@ -13,6 +13,7 @@ module.exports = {
BitmapMaskPipeline: require('./BitmapMaskPipeline'), BitmapMaskPipeline: require('./BitmapMaskPipeline'),
ForwardDiffuseLightPipeline: require('./ForwardDiffuseLightPipeline'), ForwardDiffuseLightPipeline: require('./ForwardDiffuseLightPipeline'),
TextureTintPipeline: require('./TextureTintPipeline'), TextureTintPipeline: require('./TextureTintPipeline'),
TextureTintStripPipeline: require('./TextureTintStripPipeline'),
ModelViewProjection: require('./components/ModelViewProjection') ModelViewProjection: require('./components/ModelViewProjection')
}; };