You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WebGL warning: drawElementsInstanced: Texture level 0 would be read by TEXTURE_2D unit 2, but written by framebuffer attachment COLOR_ATTACHMENT0, which would be illegal feedback.
Snippet:
letlayer;functionsetup(){createCanvas(200,200,WEBGL);layer=createFramebuffer();}functiondraw(){noStroke();layer.begin();background(255)fill(0)ambientLight(100);// comment out to make it workcircle(0,0,40)layer.end();// Visualize either the color or the depthpush();if(mouseIsPressed){texture(layer.depth);}else{texture(layer.color);}plane(width,height);pop();}
Most appropriate sub-area of p5.js?
p5.js version
2.0 beta 5
Web browser and version
Firefox
Operating system
MacOS
Steps to reproduce this
Steps:
ambientLight(100)
Instead of drawing, you get this console error:
Snippet:
Live: https://editor.p5js.org/davepagurek/sketches/MFZRK8RBe
The text was updated successfully, but these errors were encountered: