Re-wrote rendering equation