Transparent images

Thanks for answer :hugs:

Mmmm the problem appears when using a not rect image

Like this one:

Example code
float rotx = PI/4;
float roty = PI/4;

void setup() {
  size(displayWidth, displayHeight, P3D);
  tex = loadImage("cloud.png");
  imageMode(CENTER);
}

void draw() {
  background(200,200,0);
  strokeWeight(5);
  for(int i = 0; i < width; i += 50){
    line(i,0,i,height);
  
  }
  translate(width/2.0, height/2.0, 100);
  rotateX(rotx);
  rotateY(roty);
  
  if ( dotint ) tint(0,200,200,100);
  else          noTint();
  
  image(tex,0/2,0/2);
}

void mouseDragged() {
  float rate = 0.01;
  rotx += (pmouseY-mouseY) * rate;
  roty += (mouseX-pmouseX) * rate;
}

boolean dotint=false;

void mousePressed() {
    dotint = ! dotint;
    println(" tint: "+dotint);
}


And have just realized that is not about the tint (In my other app, when I not use the tint, it works well, but the image doesn’t rotate, maybe it depends on the deepness)