Subversion Repositories gelsvn

Rev

Rev 195 | Rev 443 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 195 Rev 421
Line 23... Line 23...
23
				float specular[4];		
23
				float specular[4];		
24
				
24
				
25
				/// Specular exponent
25
				/// Specular exponent
26
				float shininess;			
26
				float shininess;			
27
 
27
 
-
 
28
        /// Index of refraction in the inverted normal direction ("inside")
-
 
29
        float ior_in;
-
 
30
 
-
 
31
        /// Index of refraction in the normal direction ("outside")
-
 
32
        float ior_out;
-
 
33
 
-
 
34
        /// Transmission filter
-
 
35
        float transmission[3];
-
 
36
 
-
 
37
        /** Illumination model
-
 
38
              0 - Color
-
 
39
              1 - Color and ambient
-
 
40
              2 - Color and ambient and highlight
-
 
41
              3 - Reflection
-
 
42
              4 - Reflection and refraction
-
 
43
            Refer to the MTL format specification for more models. 
-
 
44
            Only numbers from 0 to 10 have a specific meaning. */
-
 
45
        int illum;
-
 
46
        
28
			bool has_texture;
47
        bool has_texture;
29
				std::string tex_path, tex_name;
48
				std::string tex_path, tex_name;
30
				int tex_id;
49
				int tex_id;
31
 
50
 
32
			Material():	name("default"),
51
			Material():	name("default"),
33
					 tex_path(""), tex_name(""), tex_id(-1) 
52
					 tex_path(""), tex_name(""), tex_id(-1) 
34
						{
53
						{
-
 
54
                ior_in = 1.5f;
-
 
55
                ior_out = 1.0f;
35
								shininess = 0;
56
								shininess = 0;
36
								diffuse[0] = 0.8f;
57
								diffuse[0] = 0.8f;
37
								diffuse[1] = 0.8f;
58
								diffuse[1] = 0.8f;
38
								diffuse[2] = 0.8f;
59
								diffuse[2] = 0.8f;
39
								diffuse[3] = 1.0f;
60
								diffuse[3] = 1.0f;
Line 43... Line 64...
43
								ambient[3] = 1.0f;
64
								ambient[3] = 1.0f;
44
								specular[0] = 0.0f;
65
								specular[0] = 0.0f;
45
								specular[1] = 0.0f;
66
								specular[1] = 0.0f;
46
								specular[2] = 0.0f;
67
								specular[2] = 0.0f;
47
								specular[3] = 1.0f;
68
								specular[3] = 1.0f;
-
 
69
                transmission[0] = 0.0f;
-
 
70
                transmission[1] = 0.0f;
-
 
71
                transmission[2] = 0.0f;
-
 
72
                illum = 2;
48
						}
73
						}
49
		};
74
		};
50
}
75
}
51
 
76
 
52
#endif
77
#endif