added light fix to debugrender