Add bilinear filtering

This commit is contained in:
austin committed 2020-07-01 17:42:54 -07:00
1 parent 20402784f7
commit 21fb0058ad
5 files changed
+54 -54

No files matched your search

+1 -2
View File
@@ -19,8 +19,7 @@ enum Engine_Input
ROTATE_Z_POS,
ROTATE_Z_NEG,
SCALE_UP,
SCALE_DOWN,
SHADING_TOGGLE
SCALE_DOWN
};
+3 -3
View File
@@ -10,6 +10,7 @@
// STRUCTURES
struct Material
{
bool smooth;
ColorF32 kAmbient;
ColorF32 kDiffuse;
};
@@ -75,7 +76,6 @@ struct Mesh
float scale;
Material material;
bool smooth;
Mesh_LocalData local;
Mesh_TransformedData transformed;
@@ -88,8 +88,8 @@ void CullBackfaces(
Point &camPosition);
void RenderMesh(
Engine_Buffer &buffer, Mesh_TransformedData &mesh, bool smooth, Texture &texture,
std::vector<TextureCoord> &uvs);
Engine_Buffer &buffer, Mesh_TransformedData &mesh,
Texture &texture, std::vector<TextureCoord> &uvs);
#define GEOMETRY_H