mirror of
https://github.com/photonstorm/phaser
synced 2024-12-25 12:33:38 +00:00
21 lines
598 B
JavaScript
21 lines
598 B
JavaScript
|
var RenderPass = require('./RenderPass');
|
||
|
var FactoryContainer = require('../../gameobjects/FactoryContainer');
|
||
|
|
||
|
var RenderPassFactory = {
|
||
|
|
||
|
KEY: 'renderPass',
|
||
|
|
||
|
add: function (x, y, width, height, shaderName, fragmentShader)
|
||
|
{
|
||
|
return this.children.add(new RenderPass(this.state, x, y, width, height, shaderName, fragmentShader));
|
||
|
},
|
||
|
|
||
|
make: function (x, y, width, height, shaderName, fragmentShader)
|
||
|
{
|
||
|
return new RenderPass(this.state, x, y, width, height, shaderName, fragmentShader);
|
||
|
}
|
||
|
|
||
|
};
|
||
|
|
||
|
module.exports = FactoryContainer.register(RenderPassFactory);
|