|
Blender V4.3
|
#include <BasicStrokeShaders.h>
Inherits Freestyle::StrokeShader.
Public Member Functions | |
| IncreasingColorShader (float iRm, float iGm, float iBm, float iAlpham, float iRM, float iGM, float iBM, float iAlphaM) | |
| 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 |
[ Color Shader ]. Assigns a varying color to the stroke. The user specifies 2 colors A and B. The stroke color will change linearly from A to B between the first and the last vertex.
Definition at line 271 of file BasicStrokeShaders.h.
|
inline |
Builds the shader from 2 user-specified colors.
| iRm | The first color red component |
| iGm | The first color green component |
| iBm | The first color blue component |
| iAlpham | The first color alpha value |
| iRM | The second color red component |
| iGM | The second color green component |
| iBM | The second color blue component |
| iAlphaM | The second color alpha value |
Definition at line 295 of file BasicStrokeShaders.h.
|
inlinevirtual |
Returns the string corresponding to the shader's name.
Reimplemented from Freestyle::StrokeShader.
Definition at line 316 of file BasicStrokeShaders.h.
The shading method.
Reimplemented from Freestyle::StrokeShader.
Definition at line 214 of file BasicStrokeShaders.cpp.
References float, Freestyle::Stroke::strokeVerticesBegin(), Freestyle::Stroke::strokeVerticesEnd(), Freestyle::Stroke::strokeVerticesSize(), and v.