45 #define INIT_GP_TYPE(typeName) \
46 (types[eGpencilModifierType_##typeName] = &modifierType_Gpencil_##typeName)
74 const int gpl_passindex,
87 if (mlayername[0] !=
'\0') {
113 if (gpl_passindex > 0) {
126 if (mpassindex > 0) {
128 if (gp_style->
index != mpassindex) {
133 if (gp_style->
index == mpassindex) {
139 if ((minpoints > 0) && (gps->
totpoints < minpoints)) {
151 if ((dvert !=
NULL) && (def_nr != -1)) {
153 weight = dw ? dw->
weight : -1.0f;
154 if ((weight >= 0.0f) && (
inverse == 1)) {
158 if ((weight < 0.0f) && (
inverse == 0)) {
163 if ((weight < 0.0f) && (
inverse == 1)) {
169 if ((dvert ==
NULL) && (def_nr != -1)) {
General operations, lookup, etc. for materials.
struct Material * BKE_gpencil_material(struct Object *ob, short act)
Object is a sort of wrapper for general info.
float get_modifier_point_weight(MDeformVert *dvert, bool inverse, int def_nr)
#define INIT_GP_TYPE(typeName)
bool is_stroke_affected_by_modifier(Object *ob, char *mlayername, Material *material, const int mpassindex, const int gpl_passindex, const int minpoints, bGPDlayer *gpl, bGPDstroke *gps, const bool inv1, const bool inv2, const bool inv3, const bool inv4)
void gpencil_modifier_type_init(GpencilModifierTypeInfo *types[])
Group RGB to Bright Vector Camera Vector Combine Material Light Line Style Layer Add Ambient Diffuse Glossy Refraction Transparent Toon Principled Hair Volume Principled Light Particle Volume Image Sky Noise Wave Voronoi Brick Texture Vector Combine Vertex Separate Vector White RGB Map Time
Group RGB to Bright Vector Camera Vector Combine Material Light Line Style Layer Add Ambient Diffuse Glossy Refraction Transparent Toon Principled Hair Volume Principled Light Particle Volume Image Texture
Group RGB to Bright Vector Camera Vector Combine Material Light Line Style Layer Add Ambient Diffuse Glossy Refraction Transparent Toon Principled Hair Volume Principled Light Particle Volume Image Sky Noise Wave Voronoi Brick Texture Vector Combine Vertex Color
Group RGB to Bright Vector Camera Vector Combine Material Light Line Style Layer Add Ambient Diffuse Glossy Refraction Transparent Toon Principled Hair Volume Principled Light Particle Volume Image Sky Noise Wave Voronoi Brick Texture Vector Combine Vertex Separate Vector White Noise
btMatrix3x3 inverse() const
Return the inverse of the matrix.
void Multiply(const JntArray &src, const double &factor, JntArray &dest)
struct MaterialGPencilStyle * gp_style