Physically based rendering from first principles