File tree 1 file changed +0
-8
lines changed
1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -282,36 +282,28 @@ p5.prototype.shader = function(s) {
282
282
*
283
283
* // This variable will hold our vertex shader source code
284
284
* let vertSrc = `
285
- *
286
285
* attribute vec3 aPosition;
287
286
* attribute vec2 aTexCoord;
288
287
* uniform mat4 uProjectionMatrix;
289
288
* uniform mat4 uModelViewMatrix;
290
289
* varying vec2 vTexCoord;
291
290
*
292
291
* void main() {
293
- *
294
292
* vTexCoord = aTexCoord;
295
- *
296
293
* vec4 position = vec4(aPosition, 1.0);
297
- *
298
294
* gl_Position = uProjectionMatrix * uModelViewMatrix * position;
299
295
* }
300
296
* `;
301
297
*
302
298
* // This variable will hold our fragment shader source code
303
299
* let fragSrc = `
304
- *
305
300
* precision mediump float;
306
301
*
307
302
* varying vec2 vTexCoord;
308
303
*
309
304
* void main() {
310
- *
311
305
* vec2 uv = vTexCoord;
312
- *
313
306
* vec3 color = vec3(uv.x, uv.y, min(uv.x + uv.y, 1.0));
314
- *
315
307
* gl_FragColor = vec4(color, 1.0);
316
308
* }
317
309
* `;
You can’t perform that action at this time.
0 commit comments