mirror of
https://github.com/processing/processing4.git
synced 2026-02-02 13:21:07 +01:00
fill() also sets the ambient color (as the old P3D used to do)
This commit is contained in:
@@ -4079,6 +4079,22 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
this.strokeCap = cap;
|
||||
}
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
// FILL COLOR
|
||||
|
||||
|
||||
protected void fillFromCalc() {
|
||||
super.fillFromCalc();
|
||||
|
||||
// Setting the ambient color from the current fill
|
||||
// is what the old P3D did and allows to have an
|
||||
// default ambient color when the user doesn't specify
|
||||
// it explicitly.
|
||||
ambientFromCalc();
|
||||
}
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
Reference in New Issue
Block a user