You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/gameobjects/shader/Shader.js
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,7 @@ var TransformMatrix = require('../components/TransformMatrix');
77
77
* @param {number} [width=128] - The width of the Game Object.
78
78
* @param {number} [height=128] - The height of the Game Object.
79
79
* @param {string[]} [textures] - Optional array of texture keys to bind to the iChannel0...3 uniforms. The textures must already exist in the Texture Manager.
80
+
* @param {any} [textureData] - Additional texture data if you want to create shader with none NPOT textures.
* @param {(string|Phaser.Display.BaseShader)} key - The key of the shader to use from the shader cache, or a BaseShader instance.
471
472
* @param {string[]} [textures] - Optional array of texture keys to bind to the iChannel0...3 uniforms. The textures must already exist in the Texture Manager.
Copy file name to clipboardExpand all lines: src/gameobjects/shader/ShaderFactory.js
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -22,13 +22,14 @@ var GameObjectFactory = require('../GameObjectFactory');
22
22
* @param {number} [width=128] - The width of the Game Object.
23
23
* @param {number} [height=128] - The height of the Game Object.
24
24
* @param {string[]} [textures] - Optional array of texture keys to bind to the iChannel0...3 uniforms. The textures must already exist in the Texture Manager.
0 commit comments