Blender
V3.3
|
#include <BasicStrokeShaders.h>
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 |
![]() | |
StrokeShader () | |
virtual | ~StrokeShader () |
Additional Inherited Members | |
![]() | |
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 279 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 303 of file BasicStrokeShaders.h.
|
inlinevirtual |
Returns the string corresponding to the shader's name.
Reimplemented from Freestyle::StrokeShader.
Definition at line 324 of file BasicStrokeShaders.h.
|
virtual |
The shading method.
Reimplemented from Freestyle::StrokeShader.
Definition at line 208 of file BasicStrokeShaders.cpp.
References float(), Freestyle::Stroke::strokeVerticesBegin(), Freestyle::Stroke::strokeVerticesEnd(), Freestyle::Stroke::strokeVerticesSize(), and v.