added triangle rendering