added lighting support
fix flat surface coordinate gen
fix normal orientation