0
I am writing a software renderer for the Kotlin port of Dear ImGui. In order to be feature complete, I needed to add barycentric coloring to some triangles for things such as color pickers. I have implemented barycentric erndering as below, but it takes 75-95 percent of the time spent on the cpu ...