Place color uniform settings in render function

This is so that the same shader can support multiple colors.