TinyRenderer: discard pixels beyond farplane

pybullet: printf build date/time
This commit is contained in:
Erwin Coumans
2017-05-25 17:25:14 -07:00
parent dcdb3d40ba
commit 2b9c67b07c
4 changed files with 12 additions and 3 deletions

View File

@@ -11,6 +11,8 @@ Matrix projection(float coeff=0.f); // coeff = -1/c
Matrix lookat(Vec3f eye, Vec3f center, Vec3f up);
struct IShader {
float m_nearPlane;
float m_farPlane;
virtual ~IShader();
virtual Vec4f vertex(int iface, int nthvert) = 0;
virtual bool fragment(Vec3f bar, TGAColor &color) = 0;