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

Add option to use flat lighting in pyrender.Viewer #211

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pbsds
Copy link

@pbsds pbsds commented Jan 18, 2022

  • Add flat kwarg to pyrender.Viewer.
  • Add keybind to toggle it (SHIFT+L).
  • Reword some documentation from "Toggles" to "Cycles" when concerned with more that two states.

Tested working in my environment.

fixes #51

pbsds added 3 commits January 18, 2022 19:07
It will OR `RenderFlags.FLAT` into the Viewer._renderer.render flags
Pressing L without shift disables the flat lighting without cycling the previous lighting mode
Some of the keybinds are documented to "toggle" between more that two states.
"Cycle" is more specific in these cases.
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.

Possible to disable lighting (directly render base RGB)?
1 participant