Changeset 2836 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Nov 12, 2004, 1:49:40 PM (20 years ago)
- Location:
- orxonox/trunk/importer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/importer/material.cc
r2823 r2836 55 55 setAmbient(0,0,0); 56 56 setSpecular(0,0,0); 57 setShininess(0.0); 57 58 setTransparency(0.0); 59 58 60 } 59 61 … … 134 136 } 135 137 138 void Material::setShininess (float shini) 139 { 140 shininess = shini; 141 } 142 void Material::setShininess (char* shini) 143 { 144 setShininess (atof(shini)); 145 } 136 146 137 147 void Material::setTransparency (float trans) … … 180 190 // setting up Sprecular 181 191 glMaterialfv(GL_FRONT, GL_SPECULAR, specular); 192 193 // setting up Shininess 194 glMaterialf(GL_FRONT, GL_SHININESS, shininess); 182 195 183 196 // setting illumination Model -
orxonox/trunk/importer/material.h
r2823 r2836 30 30 void setSpecular (float r, float g, float b); 31 31 void setSpecular (char* rgb); 32 void setShininess (float shini); 33 void setShininess (char* shini); 32 34 void setTransparency (float trans); 33 35 void setTransparency (char* trans); … … 45 47 float ambient [4]; 46 48 float specular [4]; 49 float shininess; 47 50 float transparency; 48 51 -
orxonox/trunk/importer/object.cc
r2833 r2836 325 325 { 326 326 tmpMat->setSpecular(Buffer+3); 327 } 328 // setting The Specular Shininess 329 else if (!strncmp(Buffer, "Ns", 2)) 330 { 331 tmpMat->setShininess(Buffer+3); 327 332 } 328 333 }
Note: See TracChangeset
for help on using the changeset viewer.