We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 07371e8 + 0860bd7 commit 25a711bCopy full SHA for 25a711b
src/webgl/p5.Texture.js
@@ -347,6 +347,7 @@ p5.Texture = class Texture {
347
}
348
349
glFilter(filter) {
350
+ const gl = this._renderer.GL;
351
if (filter === constants.NEAREST) {
352
return gl.NEAREST;
353
} else {
@@ -461,6 +462,7 @@ export class MipmapTexture extends p5.Texture {
461
462
463
464
glFilter(_filter) {
465
466
// TODO: support others
467
return gl.LINEAR_MIPMAP_LINEAR;
468
src/webgl/shaders/webgl2Compatibility.glsl
@@ -20,7 +20,7 @@ out vec4 outColor;
20
#define TEXTURE texture2D
21
22
#ifdef FRAGMENT_SHADER
23
-#define OUT_COLOR OUT_COLOR
+#define OUT_COLOR gl_FragColor
24
#endif
25
26
0 commit comments