constrain the r/g/b properly in the renderer

its still buggy is my guess, but this makes it at least display outside screen