fixed normal calculations for generated terrain