We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e13c9ca + f743204 commit 06e6b1aCopy full SHA for 06e6b1a
src/webgl/material.js
@@ -63,7 +63,7 @@ p5.prototype.loadShader = function(vertFilename, fragFilename) {
63
* @example
64
* <div modernizr='webgl'>
65
* <code>
66
- * // the 'varying's are shader between both vertex & fragment shaders
+ * // the 'varying's are shared between both vertex & fragment shaders
67
* var varying = 'precision highp float; varying vec2 vPos;';
68
*
69
* // the vertex shader is called for each vertex
@@ -93,6 +93,8 @@ p5.prototype.loadShader = function(vertFilename, fragFilename) {
93
94
* var mandel;
95
* function setup() {
96
+ * createCanvas(100, 100, WEBGL);
97
+ *
98
* // create and initialize the shader
99
* mandel = createShader(vs, fs);
100
* shader(mandel);
0 commit comments