How draw rect() with texture with alpha channel?

i have this problem… in 2d the problem not exists… but in 3d when i draw boxes… apears background color in sprites…

sprites are drawed with a simple shape with rect()

Maybe try using image() instead? It works for me:

PImage img_mnk;

void setup(){
  size(400,400,P3D);
  img_mnk = loadImage("http://www.tfguy44.com/games/data/monkey.png");
}

void draw(){
  background(128);
  translate(200,200);
  rotateY(map(mouseX,0,width,-PI,PI));
  image(img_mnk,-40,-40);
}

Sorry… i draw shapes on PGraphics object,

i prepare an example to test it.