Skip to content
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

Expose the light position so that it can be modified #3

Merged
merged 2 commits into from
Apr 27, 2014

Conversation

rcmaniac25
Copy link
Contributor

No description provided.

@rcmaniac25
Copy link
Contributor Author

Solves issue #2 except the color portion. I forgot I mentioned that and didn't actually write code for it.

I'm getting sloppy...

jdan added a commit that referenced this pull request Apr 27, 2014
Expose the light position so that it can be modified
@jdan jdan merged commit ba84b5d into jdan:master Apr 27, 2014
@jdan
Copy link
Owner

jdan commented Apr 27, 2014

I was originally opposed to having a setter for this, but it's a good idea since we only want the user the specify a light position (not an angle), and we don't want to calculate the angle every time we draw a surface.

Thanks for this, cool stuff.

@rcmaniac25
Copy link
Contributor Author

No problem. Yea, exposing calculated values isn't exactly the best idea and is where setters are useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants