Commit d5a441d3 authored by Jan Möbius's avatar Jan Möbius

Set alpha value for color plugin settings to 1.0

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14426 383ad7c9-94d9-4d36-a494-682f7c89f535
parent bfe9162f
...@@ -158,6 +158,9 @@ void ColorPlugin::setDefaultColor() { ...@@ -158,6 +158,9 @@ void ColorPlugin::setDefaultColor() {
ambient_color = 0.2f * materialColorDefault_; ambient_color = 0.2f * materialColorDefault_;
diffuse_color = 0.6f * materialColorDefault_; diffuse_color = 0.6f * materialColorDefault_;
specular_color = 0.8f * materialColorDefault_; specular_color = 0.8f * materialColorDefault_;
ambient_color[3] = 1.0f;
diffuse_color[3] = 1.0f;
specular_color[3] = 1.0f;
// Set background color // Set background color
PluginFunctions::setBackColor( backgroundColorDefault_ ); PluginFunctions::setBackColor( backgroundColorDefault_ );
...@@ -201,6 +204,9 @@ void ColorPlugin::setPresentationColor() { ...@@ -201,6 +204,9 @@ void ColorPlugin::setPresentationColor() {
ambient_color = 0.2f * materialColorPresentation_; ambient_color = 0.2f * materialColorPresentation_;
diffuse_color = 0.6f * materialColorPresentation_; diffuse_color = 0.6f * materialColorPresentation_;
specular_color = 0.8f * materialColorPresentation_; specular_color = 0.8f * materialColorPresentation_;
ambient_color[3] = 1.0f;
diffuse_color[3] = 1.0f;
specular_color[3] = 1.0f;
// Set background color // Set background color
PluginFunctions::setBackColor( backgroundColorPresentation_ ); PluginFunctions::setBackColor( backgroundColorPresentation_ );
...@@ -244,6 +250,9 @@ void ColorPlugin::setPaperColor() { ...@@ -244,6 +250,9 @@ void ColorPlugin::setPaperColor() {
ambient_color = 0.2f * materialColorPaper_; ambient_color = 0.2f * materialColorPaper_;
diffuse_color = 0.5f * materialColorPaper_; diffuse_color = 0.5f * materialColorPaper_;
specular_color = 0.8f * materialColorPaper_; specular_color = 0.8f * materialColorPaper_;
ambient_color[3] = 1.0f;
diffuse_color[3] = 1.0f;
specular_color[3] = 1.0f;
// Set background color // Set background color
PluginFunctions::setBackColor( backgroundColorPaper_ ); PluginFunctions::setBackColor( backgroundColorPaper_ );
......
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