Blender  V2.93
Public Member Functions | Protected Attributes | List of all members
Freestyle::SpatialNoiseShader Class Reference

#include <AdvancedStrokeShaders.h>

Inherits Freestyle::StrokeShader.

Public Member Functions

 SpatialNoiseShader (float iAmount, float ixScale, int nbOctave, bool smooth, bool pureRandom)
 
virtual ~SpatialNoiseShader ()
 
virtual int shade (Stroke &ioStroke) const
 
- Public Member Functions inherited from Freestyle::StrokeShader
 StrokeShader ()
 
virtual ~StrokeShader ()
 
virtual string getName () const
 

Protected Attributes

float _amount
 
float _xScale
 
int _nbOctave
 
bool _smooth
 
bool _pureRandom
 

Additional Inherited Members

- Public Attributes inherited from Freestyle::StrokeShader
void * py_ss
 

Detailed Description

[ Geometry Shader ]. Spatial Noise stroke shader. Moves the vertices to make the stroke more noisy.

See also
noise/noise.html

Definition at line 70 of file AdvancedStrokeShaders.h.

Constructor & Destructor Documentation

◆ SpatialNoiseShader()

Freestyle::SpatialNoiseShader::SpatialNoiseShader ( float  iAmount,
float  ixScale,
int  nbOctave,
bool  smooth,
bool  pureRandom 
)

Builds the shader.

Parameters
iAmountThe amplitude of the noise.
ixScaleThe noise frequency
nbOctaveThe number of octaves
smoothIf you want the noise to be smooth
pureRandomIf you don't want any coherence

Definition at line 90 of file AdvancedStrokeShaders.cpp.

References _amount, _nbOctave, _pureRandom, _smooth, _xScale, and Freestyle::NB_VALUE_NOISE.

◆ ~SpatialNoiseShader()

virtual Freestyle::SpatialNoiseShader::~SpatialNoiseShader ( )
inlinevirtual

Destructor.

Definition at line 87 of file AdvancedStrokeShaders.h.

Member Function Documentation

◆ shade()

int Freestyle::SpatialNoiseShader::shade ( Stroke ioStroke) const
virtual

Member Data Documentation

◆ _amount

float Freestyle::SpatialNoiseShader::_amount
protected

Definition at line 95 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SpatialNoiseShader().

◆ _nbOctave

int Freestyle::SpatialNoiseShader::_nbOctave
protected

Definition at line 97 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SpatialNoiseShader().

◆ _pureRandom

bool Freestyle::SpatialNoiseShader::_pureRandom
protected

Definition at line 99 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SpatialNoiseShader().

◆ _smooth

bool Freestyle::SpatialNoiseShader::_smooth
protected

Definition at line 98 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SpatialNoiseShader().

◆ _xScale

float Freestyle::SpatialNoiseShader::_xScale
protected

Definition at line 96 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SpatialNoiseShader().


The documentation for this class was generated from the following files: