made some updates for passing in light position and intensity