You can forceZero via the config now

This commit is contained in:
Richard Davey 2020-10-30 17:49:39 +00:00
parent 0a006e4c20
commit 4e7e5629d2

View file

@ -13,4 +13,5 @@
* @property {Phaser.Types.Renderer.WebGL.WebGLPipelineAttributesConfig} [attributes] - An array of shader attribute data. All shaders bound to this pipeline must use the same attributes.
* @property {string[]} [uniforms] - An array of shader uniform names that will be looked-up to get the locations for. If you need to assign multiple shaders, see the `shaders` property.
* @property {Phaser.Types.Renderer.WebGL.WebGLPipelineShaderConfig[]} [shaders] - An array of shaders, all of which are created for this one pipeline. Uses the `vertShader`, `fragShader`, `attributes` and `uniforms` properties of this object as defaults.
* @property {boolean} [forceZero=false] - Force the shader to use just a single sampler2d? Set for anything that extends the Single Pipeline.
*/