void setupLights(){ // lights(); ambient(0, 0, 0); specular(0,255,0); emissive(0, 0, 0); shininess(1); ambientLight(0,0,0); directionalLight(0,0,0,0,0,0); } void renderLights() { lightFalloff(1, 0.0, 0.0); pointLight(255, 255, 255, -500, -250, 150); pointLight(255, 255, 255, 0, -250, 150); pointLight(255, 255, 255, 500, -250, 150); /* int v = round(abs(sineWave(18750)*255)); println("light "+v); pointLight(v, v, v, 0, 0, 100); lightFalloff(2, 0.0, 0.0); pointLight(255, 0, 0, sineWave(18750)*1000, -200, 100); pointLight(255, 0, 0, sineWave(18750)*1000, -200, 100); pointLight(255, 212, 255, sineWave(37500)*1000, -200, 100); pointLight(128, 255, 255, sineWave(56250)*1000, -200, 100); pointLight(255, 212, 255, sineWave(93750)*1000, -200, 100); lightFalloff(2, 0.0, 0.0); pointLight(128, 64, 32, sineWave(77777)*1500, -200, 300);*/ }