| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/opengl/goochshadinggl.h>

Public Member Functions | |
| GoochShadingGL (bool distinguish=false, const Color &warmColor=Color(0.6, 0.6, 0.0), const Color &coolColor=Color(0.0, 0.0, 0.6), float kWarm=0.45f, float kCool=0.45f) | |
| bool | distinguishEdges () const |
| void | distinguishEdges (bool) |
| const Color & | getWarmColor () const |
| void | setWarmColor (const Color &) |
| const Color & | getCoolColor () const |
| void | setCoolColor (const Color &) |
| float | getWarmCoeffiecient () const |
| float | getCoolCoeffiecient () const |
| void | setCoolAndWarmCoeffiecients (float warm, float cool) |
| VRS_TYPEINFO (GoochShadingGL, EdgeEnhancementGL) | |
| VRS_SERIALIZABLE (GoochShadingGL) | |
| VRS::GoochShadingGL::GoochShadingGL | ( | bool | distinguish = false, |
|
| const Color & | warmColor = Color(0.6, 0.6, 0.0), |
|||
| const Color & | coolColor = Color(0.0, 0.0, 0.6), |
|||
| float | kWarm = 0.45f, |
|||
| float | kCool = 0.45f | |||
| ) | [inline] |
| bool VRS::GoochShadingGL::distinguishEdges | ( | ) | const [inline] |
Technical illustrations using Gooch Shaging that interpolate warmth and coolness of surface colors using a warm and cool color and additional coefficients: k_cool = k_blue+alpha*k_diffuse (=coolColor+kCool) k_warm = k_yellow+beta*k_diffuse (=warmColor+kWarm) k_final = ((NdotL+1.0)*0.5) * k_warm + (1-((NdotL+1.0)*0.5)) k_cool;
| void VRS::GoochShadingGL::distinguishEdges | ( | bool | d | ) | [inline] |
Distinguish between profile edges (black) and inner edges (white).
| const Color & VRS::GoochShadingGL::getWarmColor | ( | ) | const [inline] |
| void VRS::GoochShadingGL::setWarmColor | ( | const Color & | color | ) | [inline] |
| const Color & VRS::GoochShadingGL::getCoolColor | ( | ) | const [inline] |
| void VRS::GoochShadingGL::setCoolColor | ( | const Color & | color | ) | [inline] |
Set and get warm and cool colors.
| float VRS::GoochShadingGL::getWarmCoeffiecient | ( | ) | const [inline] |
| float VRS::GoochShadingGL::getCoolCoeffiecient | ( | ) | const [inline] |
| void VRS::GoochShadingGL::setCoolAndWarmCoeffiecients | ( | float | warm, | |
| float | cool | |||
| ) | [inline] |
Set and get warm and cool coefficients.
| VRS::GoochShadingGL::VRS_TYPEINFO | ( | GoochShadingGL | , | |
| EdgeEnhancementGL | ||||
| ) |
| VRS::GoochShadingGL::VRS_SERIALIZABLE | ( | GoochShadingGL | ) |