47 "This effect implements a technique called 'Cel-Shading' to produce a "
48 "cartoon-style (non photorealistic) rendering. Two passes are required: "
49 "the first one draws solid surfaces, the second one draws the outlines. "
50 "A vertex program is used to setup texture coordinates for a sharp lighting "
51 "texture on unit 0 which is generated on-the-fly.\n"
52 "This effect requires the ARB_vertex_program extension "
53 "or OpenGL Shading Language.",
55 "Marco Jez; OGLSL port by Mike Weiblen");
101 return _wf_lw->getWidth();
Vec4f Vec4
Definition Vec4:21
The osgFX library is a NodeKit that extends the core scene graph to provide a special effects framewo...
Definition AnisotropicLighting:25
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
@ FRONT_AND_BACK
Definition Material:102
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
int getLightNumber() const
get the OpenGL light number
Definition Cartoon:109
void setLightNumber(int n)
set the OpenGL light number that will be used in lighting computations
Definition Cartoon:114
void setOutlineColor(const osg::Vec4 &color)
set the outline color
Definition Cartoon:94
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
get the outline color
Definition Cartoon:89
Cartoon & operator=(const Cartoon &)
Definition Cartoon:77
void setOutlineLineWidth(float w)
set the outline line width
Definition Cartoon:104
Cartoon(const Cartoon ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
float getOutlineLineWidth() const
get the outline line width
Definition Cartoon:99
virtual ~Cartoon()
Definition Cartoon:76
bool define_techniques()
abstract method to be implemented in derived classes; its purpose if to create the techniques that ca...
void dirtyTechniques()
force rebuilding of techniques on next traversal
Definition Effect:207
#define OSGFX_EXPORT
Definition Export:27