TinyRenderer: implement triangle clipping against near-plane

TinyRenderer: implement texture UV-repeat by default (instead of clamp(0,1))
This commit is contained in:
Erwin Coumans
2017-04-06 14:31:34 -07:00
parent 0f2771b1d1
commit deb95c758b
5 changed files with 254 additions and 44 deletions

View File

@@ -18,5 +18,8 @@ struct IShader {
void triangle(mat<4,3,float> &pts, IShader &shader, TGAImage &image, float *zbuffer, const Matrix& viewPortMatrix);
void triangle(mat<4,3,float> &pts, IShader &shader, TGAImage &image, float *zbuffer, int* segmentationMaskBuffer, const Matrix& viewPortMatrix, int objectIndex);
void triangleClipped(mat<4,3,float> &clippedPts, mat<4,3,float> &pts, IShader &shader, TGAImage &image, float *zbuffer, const Matrix& viewPortMatrix);
void triangleClipped(mat<4,3,float> &clippedPts, mat<4,3,float> &pts, IShader &shader, TGAImage &image, float *zbuffer, int* segmentationMaskBuffer, const Matrix& viewPortMatrix, int objectIndex);
#endif //__OUR_GL_H__