New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lighting changes are applied to all the geometry in the frame #3533

Closed
codeanticode opened this Issue Aug 5, 2015 · 1 comment

Comments

Projects
None yet
1 participant
@codeanticode
Member

codeanticode commented Aug 5, 2015

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.

@codeanticode codeanticode added the opengl label Aug 5, 2015

@codeanticode codeanticode self-assigned this Aug 5, 2015

@codeanticode codeanticode changed the title from lighting changes are applied to all the geometry in the frame to lighting changes are applied to all the geometry in the frame Aug 5, 2015

@codeanticode

This comment has been minimized.

Show comment
Hide comment
@codeanticode

codeanticode Aug 5, 2015

Member

fixed with deb29b3

Member

codeanticode commented Aug 5, 2015

fixed with deb29b3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment