Bug 412 : ambientLights() passing red arg to both red and blue in P3D
Last modified: 2006-10-10 18:43




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
jetonski
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2006-10-10 16:23
test code:
---
size(400,400,P3D);
ambientLight(0,0,255);
fill(255);
ellipse(100,100,50,50);
---

ambientLights(255,0,0) illuminates things as magenta
ambientLights(0,0,255) does not illuminate (shows up black)
ambientLights(255,255,0) illuminates white.

It would appear that the first arg (red) is getting used to set both red
and blue in the GL call.
Additional Comment #1 From fry 2006-10-10 18:43
found and fixed, thanks for the report.

notes: this also affects OPENGL because lights are handled inside P3D.