EgtGraphics :
- piccola modifica gestione colori Zmap.
This commit is contained in:
+3
-3
@@ -350,14 +350,14 @@ Scene::DrawGeoObj( const IGdbIterator& iIter, int nPass, const MdStMkCol& siObj)
|
||||
Material mMat ;
|
||||
if ( ! iIter.GetCalcMaterial( mMat))
|
||||
mMat.Set( m_colDef) ;
|
||||
// secondo materiale per parti lavorate (tonalità spostata di 22.5 deg)
|
||||
// secondo materiale per parti lavorate (tonalità spostata di 18 deg)
|
||||
Color cCol2 = siObj.colObj ;
|
||||
Material mMat2( mMat) ;
|
||||
// se richiesto diverso
|
||||
if (( m_nShowZmap & ZSM_COLORS) != 0) {
|
||||
HSV hsv = GetHSVFromColor( siObj.colObj) ;
|
||||
hsv.dHue += ANG_RIGHT / 4 ;
|
||||
hsv.dVal *= 0.9 ;
|
||||
hsv.dHue += ANG_RIGHT / 5 ;
|
||||
hsv.dVal *= 1.2 ;
|
||||
cCol2 = GetColorFromHSV( hsv) ;
|
||||
mMat2.Set( cCol2) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user