SciProgCentre / visionforge

Visualization module for dataforge
Apache License 2.0
36 stars 8 forks source link

Demo: add directional light #73

Open Shimuuar opened 2 years ago

Shimuuar commented 2 years ago

Demo only uses ambient light so all faces are are illuminated equally and so have identical color. Picture will look much nicer if directional light is added to scene. It's even more important in more complicated geometries.

Note. Not all materials interact correctly with directed light (MeshStandardMaterial does)

altavir commented 2 years ago

Fixed in 0.2.1. Lights are added as objects instead of scene options.