|
Blender V4.3
|
#include <BasicStrokeShaders.h>
Inherits Freestyle::StrokeShader.
Public Member Functions | |
| BackboneStretcherShader (float iAmount=2.0f) | |
| virtual string | getName () const |
| virtual int | shade (Stroke &stroke) const |
Public Member Functions inherited from Freestyle::StrokeShader | |
| StrokeShader () | |
| virtual | ~StrokeShader () |
Additional Inherited Members | |
Public Attributes inherited from Freestyle::StrokeShader | |
| void * | py_ss |
[ Geometry Shader ]. Stretches the stroke at its two extremities and following the respective directions: v(1)v(0) and v(n-1)v(n).
Definition at line 383 of file BasicStrokeShaders.h.
|
inline |
Builds the shader.
| iAmount | The stretching amount value. |
Definition at line 392 of file BasicStrokeShaders.h.
|
inlinevirtual |
Returns the string corresponding to the shader's name.
Reimplemented from Freestyle::StrokeShader.
Definition at line 397 of file BasicStrokeShaders.h.
The shading method
Reimplemented from Freestyle::StrokeShader.
Definition at line 310 of file BasicStrokeShaders.cpp.
References Freestyle::Stroke::getLength2D(), l, Freestyle::VecMat::Vec< T, N >::normalize(), Freestyle::Stroke::strokeVerticesBegin(), Freestyle::Stroke::strokeVerticesEnd(), Freestyle::Stroke::UpdateLength(), Freestyle::x, and y.