glotzerlab / plato

Efficient visualization of particle data supporting several rendering engines.
https://plato-draw.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
12 stars 4 forks source link

Use default directional lights in pythreejs backend #12

Closed bdice closed 5 years ago

bdice commented 5 years ago

I'm all for setting up a default lighting scheme for the pythreejs backend in the name of getting something decent drawn on the screen with a minimal amount of code (so the light feature isn't necessary in this case). Default lights were added in the vispy backend in 33d7b8164c1055a9339de83d248840bcc43d81ce if you want to use the same directions and relative intensities.

Originally posted by @klarh in https://github.com/glotzerlab/plato/issues/11#issuecomment-464735873