Commit 34bd7676 authored by Mario Hlawitschka's avatar Mario Hlawitschka
Browse files

[CHANGE] code now maps [0,1] range of transfer function numbers to [0,255]...

[CHANGE] code now maps [0,1] range of transfer function numbers to [0,255] range for textures automatically
parent 40ba565d
......@@ -173,7 +173,7 @@ void WTransferFunction::sample1DTransferFunction( unsigned char*array, int width
}
for ( int j = 0; j < 4; ++j )
{
array[ 4*i + j ] = color[ j ];
array[ 4*i + j ] = color[ j ]*255.;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment