Inheritance diagram for osgFX::Cartoon:

Public Member Functions | |
| Cartoon () | |
| Cartoon (const Cartoon ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
| META_Effect (osgFX, Cartoon,"Cartoon","This effect implements a technique called 'Cel-Shading' to produce a ""cartoon-style (non photorealistic) rendering. Two passes are required: ""the first one draws solid surfaces, the second one draws the outlines. ""A vertex program is used to setup texture coordinates for a sharp lighting ""texture on unit 0 which is generated on-the-fly.\n""This effect requires the ARB_vertex_program extension ""or OpenGL Shading Language.","Marco Jez; OGLSL port by Mike Weiblen") | |
| const osg::Vec4 & | getOutlineColor () const |
| void | setOutlineColor (const osg::Vec4 &color) |
| float | getOutlineLineWidth () const |
| void | setOutlineLineWidth (float w) |
| int | getLightNumber () const |
| void | setLightNumber (int n) |
Protected Member Functions | |
| virtual | ~Cartoon () |
| Cartoon & | operator= (const Cartoon &) |
| bool | define_techniques () |
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
abstract method to be implemented in derived classes; its purpose if to create the techniques that can be used for obtaining the desired effect. You will usually call addTechnique() inside this method. Implements osgFX::Effect. |
|
|
get the OpenGL light number |
|
|
get the outline color |
|
|
get the outline line width |
|
||||||||||||||||||||||||||||
|
|
|
|
|
|
|
set the OpenGL light number that will be used in lighting computations |
|
|
set the outline color |
|
|
set the outline line width |
1.4.2