/tiny_renderer

My implemention of tinyrenderer

Primary LanguageC++GNU General Public License v3.0GPL-3.0

tiny_renderer

My implemention of tinyrenderer

what dose I have done?

  • draw line
  • draw triangle in two ways
  • z-buffer and use barycentric coordinates to calculate z value
  • perspective projection
  • gouraud shading:

Using gprof to analyze the performance

a

get max and min in cpp

std::numeric_limits<float>::max()