66 Real in_ridx = 1.0f,
Real out_ridx = 1.0f )
89 m.
ambient = Color( 0.1, 0.0, 0.0 );
90 m.diffuse = Color( 0.85, 0.05, 0.05 );
91 m.specular = Color( 1.0, 0.8, 0.8 );
93 m.coef_diffusion = 1.0f;
94 m.coef_reflexion = 0.05f;
95 m.coef_refraction = 0.0f;
96 m.in_refractive_index = 1.0f;
97 m.out_refractive_index = 1.0f;
103 m.ambient = Color( 0.1125, 0.0675, 0.054 );
104 m.diffuse = Color( 0.714, 0.4284, 0.18144 );
105 m.specular = Color( 0.9, 0.8, 0.7 );
108 m.coef_diffusion = 0.5f;
109 m.coef_reflexion = 0.75f;
110 m.coef_refraction = 0.0f;
111 m.in_refractive_index = 1.0f;
112 m.out_refractive_index = 1.0f;
118 m.ambient = Color( 0.0f, 0.01f, 0.0f );
119 m.diffuse = Color( 0.09568, 0.77424, 0.10 );
120 m.specular = Color( 0.9, 1.0, 0.9 );
121 m.shinyness = 0.6*128.0;
122 m.coef_diffusion = 0.15f;
123 m.coef_reflexion = 0.5f;
124 m.coef_refraction = 0.65f;
125 m.in_refractive_index = 1.5f;
126 m.out_refractive_index = 1.0f;
132 m.ambient = Color( 0.0, 0.0, 0.0 );
133 m.diffuse = Color( 0.95, 0.95, 1.0 );
134 m.specular = Color( 1.0, 1.0, 1.0 );
136 m.coef_diffusion = 0.01f;
137 m.coef_reflexion = 0.05f;
138 m.coef_refraction = 0.98f;
139 m.in_refractive_index = 1.5f;
140 m.out_refractive_index = 1.0f;
Material(Color amb, Color diff, Color spec, Real shiny=0.0f, Real cdiff=1.0f, Real crefl=0.0f, Real crefr=0.0f, Real in_ridx=1.0f, Real out_ridx=1.0f)
Constructor from colors and shinyness.
static Material mix(Real t, const Material &m1, const Material &m2)
Mixes two material (t=0 gives m1, t=1 gives m2, t=0.5 gives their average)