triangle rendering working