-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTexmat.uh
34 lines (29 loc) · 848 Bytes
/
Texmat.uh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* File: Texmat.h
* Author: thijs
*
* Created on June 23, 2014, 2:23 PM
*/
#pragma once
#include "ppm.h"
#ifndef TEXMAT_H
#define TEXMAT_H
class Texmat {
public:
Texmat();
virtual ~Texmat();
Vec3Df getlocalMat(float x , float y);
void setBaseMat(const Material & mat);
void setNormals(PPM file,int mode , float strength);
void setDiffuse(PPM file,int mode , float strength);
void setTransparancy(PPM file,int mode , float strength);
void setAmbient(PPM file,int mode , float strength);
void setReflective(PPM file,int mode , float strength);
private:
Vec3Df getNormals(float x,float y);
Vec3Df getDiffuse(float x, float y);
int getTransparancy(float x , float y );
Vec3Df getAmibnet(float x , float y);
float getReflective (float x , float y);
}
#endif /* TEXMAT_H */