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

Implement #524 Allow flat colors. Adds an edit control for Ambient li… #653

Merged
merged 1 commit into from Jul 18, 2020

Conversation

phkahler
Copy link
Member

@whitequark can you have a look at the text window code here? The change[c] link isn't working.

When that's fixed we should be able to turn off the 2 directional lights (set intensity to 0) and turn up ambient to 1 to get flat colors.

@phkahler
Copy link
Member Author

@whitequark never mind, got it. It seems to work. Setting both lights brightness to zero and the ambient to 1.0 yields flat coloring.

@@ -218,6 +224,10 @@ void TextWindow::ShowConfiguration() {
CO(SS.lightDir[i]), i, &ScreenChangeLightDirection,
SS.lightIntensity[i], i, &ScreenChangeLightIntensity);
}
Printf(false, "%Bp Ambient Lighting "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, this should be lowercase to follow the style of that dialog.

Suggested change
Printf(false, "%Bp Ambient Lighting "
Printf(false, "%Bp ambient lighting "

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Good call it's all lower case.

@whitequark whitequark merged commit 188b2e2 into solvespace:master Jul 18, 2020
@whitequark
Copy link
Contributor

Thanks!

@phkahler phkahler deleted the ambient-light branch July 18, 2020 16:08
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.

None yet

2 participants