mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
Better docs
This commit is contained in:
parent
7c929e52bc
commit
1e80f53f1d
1 changed files with 6 additions and 4 deletions
|
@ -1848,15 +1848,17 @@ var WebGLRenderer = new Class({
|
|||
},
|
||||
|
||||
/**
|
||||
* Wrapper for creating a WebGLProgram
|
||||
* Creates a WebGLProgram instance based on the given vertex and fragment shader source.
|
||||
*
|
||||
* Then compiles, attaches and links the program before returning it.
|
||||
*
|
||||
* @method Phaser.Renderer.WebGL.WebGLRenderer#createProgram
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param {string} vertexShader - Source to the vertex shader
|
||||
* @param {string} fragmentShader - Source to the fragment shader
|
||||
* @param {string} vertexShader - The vertex shader source code as a single string.
|
||||
* @param {string} fragmentShader - The fragment shader source code as a single string.
|
||||
*
|
||||
* @return {WebGLProgram} Raw WebGLProgram
|
||||
* @return {WebGLProgram} The linked WebGLProgram created from the given shader source.
|
||||
*/
|
||||
createProgram: function (vertexShader, fragmentShader)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue