We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 305106b commit d6496c8Copy full SHA for d6496c8
1 file changed
src/renderer/webgl/WebGLShader.js
@@ -340,6 +340,16 @@ var WebGLShader = new Class({
340
return this;
341
},
342
343
+ /**
344
+ * Checks to see if the given uniform name exists and is active in this shader.
345
+ *
346
+ * @method Phaser.Renderer.WebGL.WebGLShader#hasUniform
347
+ * @since 3.50.0
348
349
+ * @param {string} name - The name of the uniform to check for.
350
351
+ * @return {boolean} `true` if the uniform exists, otherwise `false`.
352
+ */
353
hasUniform: function (name)
354
{
355
return this.uniforms.hasOwnProperty(name);
0 commit comments