Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
lighting changes are applied to all the geometry in the frame #3533
Currently, the following code:
pointLight(...); box(...); spotLight(...); sphere(...);
would result in the box lit by the point and spot lights. But this behavior is erroneous, since lights should be considered part of the style (together with the fill and stroke colors, etc), and style changes only affect what comes afterwards, for example in this code
fill(255, 0, 0); box(...); fill(0, 255, 0); sphere(...);
the sphere will be green.