We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hey guys, lightSpecular(), for some reason, works perfectly in java mode but not Javascript mode. There is no error, but just no effect at all.
Example:
void setup(){
size(400, 400, P3D);
noStroke();
}
void draw(){
background(0);
lightSpecular(255,255,255);
directionalLight(249, 250, 91, 0,0,-1);
emissive(0, 26, 51);
fill(255);
translate(mouseX,mouseY,0);
sphere(40);
}
Thanks for any help.
Answers
FYI:
any answers?
Java mode seems to assume the same values for specular() as in lightSpecular() if you don't specify specular(). In JavaScript mode, you have to specify specular() explicitly, otherwise it uses a gray value.