Subversion Repositories gelsvn

Rev

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

Rev 443 Rev 510
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")
28
        /// Index of refraction
32
        float ior_out;
29
        float ior;
33
 
30
 
34
        /// Transmission filter
31
        /// Transmission filter
35
        float transmission[3];
32
        float transmission[3];
36
 
33
 
37
        /** Illumination model
34
        /** Illumination model
Line 47... Line 44...
47
        bool has_texture;
44
        bool has_texture;
48
				std::string tex_path, tex_name;
45
				std::string tex_path, tex_name;
49
				int tex_id;
46
				int tex_id;
50
 
47
 
51
			Material():	name("default"),
48
			Material():	name("default"),
52
					 tex_path(""), tex_name(""), tex_id(-1) 
49
					 tex_path(""), tex_name(""), tex_id(-1), has_texture(false) 
53
						{
50
						{
54
                ior_in = 1.5f;
51
                ior = 1.5f;
55
                ior_out = 1.0f;
-
 
56
								shininess = 0.0f;
52
								shininess = 0.0f;
57
								diffuse[0] = 0.8f;
53
								diffuse[0] = 0.8f;
58
								diffuse[1] = 0.8f;
54
								diffuse[1] = 0.8f;
59
								diffuse[2] = 0.8f;
55
								diffuse[2] = 0.8f;
60
								diffuse[3] = 1.0f;
56
								diffuse[3] = 1.0f;