File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,17 @@ var WEBGL_CONST = require('./const');
1010
1111/**
1212 * @classdesc
13- * TODO
13+ * Instances of the WebGLShader class belong to the WebGL Pipeline classes. When the pipeline is
14+ * created it will create an instance of this class for each one of its shaders, as defined in
15+ * the pipeline configuration.
16+ *
17+ * This class encapsulates everything needed to manage a shader in a pipeline, including the
18+ * shader attributes and uniforms, as well as lots of handy methods such as `set2f`, for setting
19+ * uniform values on this shader.
20+ *
21+ * Typically, you do not create an instance of this class directly, as it works in unison with
22+ * the pipeline to which it belongs. You can gain access to this class via a pipeline's `shaders`
23+ * array, post-creation.
1424 *
1525 * @class WebGLShader
1626 * @memberof Phaser.Renderer.WebGL
You can’t perform that action at this time.
0 commit comments