API Reference > Classes > PRC Graphical Classes > OdPrcMaterialGeneric Class > OdPrcMaterialGeneric Methods > setSpecular Method > OdPrcMaterialGeneric::setSpecular Method (double, double, double, bool)
OdPrcMaterialGeneric::setSpecular Method (double, double, double, bool)
Syntax
C++
void setSpecular(double r, double g, double b, bool preventDuplication = false);
Parameters 
Description 
double r 
[in] A new red component value to be set. 0-1 range.  
double g 
[in] A new green component value to be set. 0-1 range.  
double b 
[in] A new blue component value to be set. 0-1 range.  
bool preventDuplication = false 
[in] Add new color to the end of color array or search the array to prevent duplication. 

Sets a new specular color. Object must be database resident. 

 

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.