Commit 17ad9c4a authored by Ken Martin's avatar Ken Martin
Browse files

fixed a bug

parent a578674a
......@@ -51,7 +51,7 @@ float vtkColorScalars::GetScalar(int i)
rgba = this->GetColor(i);
s = (rgba[3]/255.0) * (0.30*rgba[0] + 0.59*rgba[1] + 0.11*rgba[2]);
if ( s > 1.0 ) s = 1.0;
return s;
}
......
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