Transparency problem
in
Programming Questions
•
27 days ago
- void setup() {
- size(200,200,P3D);
- noStroke();
- }
- void draw() {
- background(0);
- pushMatrix();
- translate(mouseX,mouseY,0);
- fill(255,0,0);
- sphere(20);
- popMatrix();
- hint(DISABLE_DEPTH_TEST);
- fill(50,0,0,100);
- rect(0,0,100,100);
- hint(ENABLE_DEPTH_TEST);
- }
1