Add bilinear filtering
This commit is contained in:
5 files changed
+54
-54
No files matched your search
+1
-2
@@ -19,8 +19,7 @@ enum Engine_Input
|
||||
ROTATE_Z_POS,
|
||||
ROTATE_Z_NEG,
|
||||
SCALE_UP,
|
||||
SCALE_DOWN,
|
||||
SHADING_TOGGLE
|
||||
SCALE_DOWN
|
||||
};
|
||||
|
||||
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user