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

#include <AdvancedStrokeShaders.h>

Inheritance diagram for Freestyle::SpatialNoiseShader:
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
voidpy_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 56 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 76 of file AdvancedStrokeShaders.cpp.

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

◆ ~SpatialNoiseShader()

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

Destructor.

Definition at line 73 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 81 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SpatialNoiseShader().

◆ _nbOctave

int Freestyle::SpatialNoiseShader::_nbOctave
protected

Definition at line 83 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SpatialNoiseShader().

◆ _pureRandom

bool Freestyle::SpatialNoiseShader::_pureRandom
protected

Definition at line 85 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SpatialNoiseShader().

◆ _smooth

bool Freestyle::SpatialNoiseShader::_smooth
protected

Definition at line 84 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SpatialNoiseShader().

◆ _xScale

float Freestyle::SpatialNoiseShader::_xScale
protected

Definition at line 82 of file AdvancedStrokeShaders.h.

Referenced by shade(), and SpatialNoiseShader().


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