Adding basic texture fragment shader kernel

This commit is contained in:
2019-12-25 00:09:14 +02:00
parent e57702936e
commit 2e6ddd2ff2
11 changed files with 412 additions and 89 deletions
+2 -2
View File
@@ -7,11 +7,11 @@
class Model {
private:
void load_texture(std::string filename, const char *suffix, TGAImage &img);
public:
TGAImage diffusemap_;
TGAImage normalmap_;
TGAImage specularmap_;
void load_texture(std::string filename, const char *suffix, TGAImage &img);
public:
std::vector<Vec3f> verts_;
std::vector<std::vector<Vec3i> > faces_; // attention, this Vec3i means vertex/uv/normal
std::vector<Vec3f> norms_;