updated nebular.cpp for viewing angle