Blender
V3.3
|
#include <AdvancedStrokeShaders.h>
Public Member Functions | |
CalligraphicShader (real iMinThickness, real iMaxThickness, const Vec2f &iOrientation, bool clamp) | |
virtual | ~CalligraphicShader () |
virtual int | shade (Stroke &ioStroke) const |
![]() | |
StrokeShader () | |
virtual | ~StrokeShader () |
virtual string | getName () const |
Protected Attributes | |
real | _maxThickness |
real | _minThickness |
Vec2f | _orientation |
bool | _clamp |
Additional Inherited Members | |
![]() | |
void * | py_ss |
[ Thickness Shader ]. Assigns thicknesses to the stroke vertices so that the stroke looks like made with a calligraphic tool. i.e. The stroke will be the thickest in a main direction, the thinnest in the direction perpendicular to this one, and an interpolation in between.
Definition at line 19 of file AdvancedStrokeShaders.h.
Freestyle::CalligraphicShader::CalligraphicShader | ( | real | iMinThickness, |
real | iMaxThickness, | ||
const Vec2f & | iOrientation, | ||
bool | clamp | ||
) |
Builds the shader.
iMinThickness | The minimum thickness in the direction perpendicular to the main direction. |
iMaxThickness | The maximum thickness in the main direction. |
iOrientation | The 2D vector giving the main direction. |
clamp | Tells ??? |
Definition at line 22 of file AdvancedStrokeShaders.cpp.
References _clamp, _maxThickness, _minThickness, _orientation, blender::math::clamp(), and Freestyle::VecMat::Vec< T, N >::normalize().
|
inlinevirtual |
Destructor.
Definition at line 37 of file AdvancedStrokeShaders.h.
|
virtual |
The shading method
Reimplemented from Freestyle::StrokeShader.
Definition at line 34 of file AdvancedStrokeShaders.cpp.
References _clamp, _maxThickness, _minThickness, _orientation, Freestyle::StrokeVertex::attribute(), fabs(), Freestyle::VecMat::Vec< T, N >::normalizeSafe(), Freestyle::UnaryFunction0D< T >::result, Freestyle::StrokeAttribute::setColor(), Freestyle::StrokeAttribute::setThickness(), v, and Freestyle::Stroke::verticesBegin().
|
protected |
Definition at line 48 of file AdvancedStrokeShaders.h.
Referenced by CalligraphicShader(), and shade().
|
protected |
Definition at line 45 of file AdvancedStrokeShaders.h.
Referenced by CalligraphicShader(), and shade().
|
protected |
Definition at line 46 of file AdvancedStrokeShaders.h.
Referenced by CalligraphicShader(), and shade().
|
protected |
Definition at line 47 of file AdvancedStrokeShaders.h.
Referenced by CalligraphicShader(), and shade().