Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

void Impala::Visualization::Plot::HeightMap::Val2Material ( double  v  )  [inline]

Definition at line 131 of file HeightMap.h.

References Impala::Visualization::Plot::Plottable::mMaxY, and Impala::Visualization::Plot::Plottable::mMinY.

Referenced by Draw().

00132     {
00133         GLfloat material[4] = { 1.0, 1.0, 1.0, 1.0 };
00134         v -= mMinY;
00135         v /= (mMaxY - mMinY);
00136         material[0] = v;
00137         material[1] = 1.-v;
00138         material[2] = -fabs(v - .5)*2.;
00139         glMaterialfv(GL_FRONT, GL_AMBIENT, material);
00140     }


Generated on Fri Mar 19 11:52:40 2010 for ImpalaSrc by  doxygen 1.5.1