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");
58 inline const osg::Vec4& getOutlineColor()
const;
61 inline void setOutlineColor(
const osg::Vec4& color);
64 inline float getOutlineLineWidth()
const;
67 inline void setOutlineLineWidth(
float w);
70 inline int getLightNumber()
const;
73 inline void setLightNumber(
int n);
int getLightNumber() const
Definition Cartoon:109
void setLightNumber(int n)
Definition Cartoon:114
void setOutlineColor(const osg::Vec4 &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
Definition Cartoon:89
Cartoon & operator=(const Cartoon &)
Definition Cartoon:77
void setOutlineLineWidth(float w)
Definition Cartoon:104
Cartoon(const Cartoon ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
float getOutlineLineWidth() const
Definition Cartoon:99
virtual ~Cartoon()
Definition Cartoon:76
void dirtyTechniques()
Definition Effect:207
@ SHALLOW_COPY
Definition CopyOp:47
void setWidth(float width)
float getWidth() const
Definition LineWidth:50
@ FRONT_AND_BACK
Definition Material:102
void setEmission(Face face, const Vec4 &emission)
const Vec4 & getEmission(Face face) const
Definition AnisotropicLighting:25
#define OSGFX_EXPORT
Definition osgFX/Export:27