File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1848,15 +1848,17 @@ var WebGLRenderer = new Class({
18481848 } ,
18491849
18501850 /**
1851- * Wrapper for creating a WebGLProgram
1851+ * Creates a WebGLProgram instance based on the given vertex and fragment shader source.
1852+ *
1853+ * Then compiles, attaches and links the program before returning it.
18521854 *
18531855 * @method Phaser.Renderer.WebGL.WebGLRenderer#createProgram
18541856 * @since 3.0.0
18551857 *
1856- * @param {string } vertexShader - Source to the vertex shader
1857- * @param {string } fragmentShader - Source to the fragment shader
1858+ * @param {string } vertexShader - The vertex shader source code as a single string.
1859+ * @param {string } fragmentShader - The fragment shader source code as a single string.
18581860 *
1859- * @return {WebGLProgram } Raw WebGLProgram
1861+ * @return {WebGLProgram } The linked WebGLProgram created from the given shader source.
18601862 */
18611863 createProgram : function ( vertexShader , fragmentShader )
18621864 {
You can’t perform that action at this time.
0 commit comments