equal
deleted
inserted
replaced
27 #ifndef MATERIAL_H |
27 #ifndef MATERIAL_H |
28 #define MATERIAL_H |
28 #define MATERIAL_H |
29 |
29 |
30 #include "common.h" |
30 #include "common.h" |
31 #include "vector.h" |
31 #include "vector.h" |
32 #include "noise.h" |
|
33 |
32 |
34 /** |
33 /** |
35 * perlin noise |
34 * perlin noise |
36 */ |
35 */ |
37 Float perlin(Float x, Float y, Float z); |
36 Float perlin(Float x, Float y, Float z); |
289 { ambient = amb; diffuse = dif; specular = spec; shininess = shin; }; |
288 { ambient = amb; diffuse = dif; specular = spec; shininess = shin; }; |
290 void setReflectivity(const Float refl) { reflectivity = refl; }; |
289 void setReflectivity(const Float refl) { reflectivity = refl; }; |
291 void setTransmissivity(const Float trans, const Float rindex) |
290 void setTransmissivity(const Float trans, const Float rindex) |
292 { transmissivity = trans; refract_index = rindex; }; |
291 { transmissivity = trans; refract_index = rindex; }; |
293 void setSmooth(bool sm) { smooth = sm; }; |
292 void setSmooth(bool sm) { smooth = sm; }; |
|
293 void setTexture(Texture *tex) { texture = tex; }; |
294 }; |
294 }; |
295 |
295 |
296 #endif |
296 #endif |