mirror of
https://github.com/photonstorm/phaser
synced 2024-11-21 20:23:19 +00:00
Added JSDocs
This commit is contained in:
parent
305106bebe
commit
d6496c86cf
1 changed files with 10 additions and 0 deletions
|
@ -340,6 +340,16 @@ var WebGLShader = new Class({
|
|||
return this;
|
||||
},
|
||||
|
||||
/**
|
||||
* Checks to see if the given uniform name exists and is active in this shader.
|
||||
*
|
||||
* @method Phaser.Renderer.WebGL.WebGLShader#hasUniform
|
||||
* @since 3.50.0
|
||||
*
|
||||
* @param {string} name - The name of the uniform to check for.
|
||||
*
|
||||
* @return {boolean} `true` if the uniform exists, otherwise `false`.
|
||||
*/
|
||||
hasUniform: function (name)
|
||||
{
|
||||
return this.uniforms.hasOwnProperty(name);
|
||||
|
|
Loading…
Reference in a new issue