Blender
V3.3
|
#include <AdvancedStrokeShaders.h>
Public Member Functions | |
SpatialNoiseShader (float iAmount, float ixScale, int nbOctave, bool smooth, bool pureRandom) | |
virtual | ~SpatialNoiseShader () |
virtual int | shade (Stroke &ioStroke) const |
![]() | |
StrokeShader () | |
virtual | ~StrokeShader () |
virtual string | getName () const |
Protected Attributes | |
float | _amount |
float | _xScale |
int | _nbOctave |
bool | _smooth |
bool | _pureRandom |
Additional Inherited Members | |
![]() | |
void * | py_ss |
[ Geometry Shader ]. Spatial Noise stroke shader. Moves the vertices to make the stroke more noisy.
Definition at line 56 of file AdvancedStrokeShaders.h.
Freestyle::SpatialNoiseShader::SpatialNoiseShader | ( | float | iAmount, |
float | ixScale, | ||
int | nbOctave, | ||
bool | smooth, | ||
bool | pureRandom | ||
) |
Builds the shader.
iAmount | The amplitude of the noise. |
ixScale | The noise frequency |
nbOctave | The number of octaves |
smooth | If you want the noise to be smooth |
pureRandom | If you don't want any coherence |
Definition at line 76 of file AdvancedStrokeShaders.cpp.
References _amount, _nbOctave, _pureRandom, _smooth, _xScale, Freestyle::NB_VALUE_NOISE, and smooth().
|
inlinevirtual |
Destructor.
Definition at line 73 of file AdvancedStrokeShaders.h.
|
virtual |
The shading method.
Reimplemented from Freestyle::StrokeShader.
Definition at line 91 of file AdvancedStrokeShaders.cpp.
References _amount, _nbOctave, _pureRandom, _smooth, _xScale, Freestyle::RandGen::drand48(), Freestyle::NB_VALUE_NOISE, noise(), Freestyle::VecMat::Vec< T, N >::normalizeSafe(), Freestyle::UnaryFunction0D< T >::result, Freestyle::StrokeVertex::strokeLength(), Freestyle::PseudoNoise::turbulenceLinear(), Freestyle::PseudoNoise::turbulenceSmooth(), Freestyle::Stroke::UpdateLength(), v, v2, and Freestyle::Stroke::verticesBegin().
|
protected |
Definition at line 81 of file AdvancedStrokeShaders.h.
Referenced by shade(), and SpatialNoiseShader().
|
protected |
Definition at line 83 of file AdvancedStrokeShaders.h.
Referenced by shade(), and SpatialNoiseShader().
|
protected |
Definition at line 85 of file AdvancedStrokeShaders.h.
Referenced by shade(), and SpatialNoiseShader().
|
protected |
Definition at line 84 of file AdvancedStrokeShaders.h.
Referenced by shade(), and SpatialNoiseShader().
|
protected |
Definition at line 82 of file AdvancedStrokeShaders.h.
Referenced by shade(), and SpatialNoiseShader().