primitive rendering working