rvandoosselaer / Blocks

A block (voxel) engine for jMonkeyEngine
BSD 3-Clause "New" or "Revised" License
42 stars 14 forks source link

Enable vertex lighting in block material #28

Closed rvandoosselaer closed 4 years ago

rvandoosselaer commented 4 years ago

All of the normals in a face of the chunk mesh are facing in the same direction. This means that doing per vertex lighting should almost have the same results as the default per pixel lighting but will be a lot faster.

Enable vertex lighting in the material and check the results.