Blender  V3.3
Functions | Variables
rna_shader_fx.c File Reference
#include <float.h>
#include <limits.h>
#include <stdlib.h>
#include "DNA_gpencil_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_shader_fx_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_math.h"
#include "BLT_translation.h"
#include "BKE_animsys.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "rna_internal.h"
#include "WM_api.h"
#include "WM_types.h"

Go to the source code of this file.

Functions

static void rna_def_shader_fx_blur (BlenderRNA *brna)
 
static void rna_def_shader_fx_colorize (BlenderRNA *brna)
 
static void rna_def_shader_fx_wave (BlenderRNA *brna)
 
static void rna_def_shader_fx_pixel (BlenderRNA *brna)
 
static void rna_def_shader_fx_rim (BlenderRNA *brna)
 
static void rna_def_shader_fx_shadow (BlenderRNA *brna)
 
static void rna_def_shader_fx_glow (BlenderRNA *brna)
 
static void rna_def_shader_fx_swirl (BlenderRNA *brna)
 
static void rna_def_shader_fx_flip (BlenderRNA *brna)
 
void RNA_def_shader_fx (BlenderRNA *brna)
 

Variables

const EnumPropertyItem rna_enum_object_shaderfx_type_items []
 
static const EnumPropertyItem rna_enum_shaderfx_rim_modes_items []
 
static const EnumPropertyItem rna_enum_shaderfx_glow_modes_items []
 
static const EnumPropertyItem rna_enum_shaderfx_colorize_modes_items []
 
static const EnumPropertyItem rna_enum_glow_blend_modes_items []
 

Function Documentation

◆ RNA_def_shader_fx()

void RNA_def_shader_fx ( BlenderRNA brna)

◆ rna_def_shader_fx_blur()

static void rna_def_shader_fx_blur ( BlenderRNA brna)
static

◆ rna_def_shader_fx_colorize()

static void rna_def_shader_fx_colorize ( BlenderRNA brna)
static

◆ rna_def_shader_fx_flip()

static void rna_def_shader_fx_flip ( BlenderRNA brna)
static

◆ rna_def_shader_fx_glow()

static void rna_def_shader_fx_glow ( BlenderRNA brna)
static

◆ rna_def_shader_fx_pixel()

static void rna_def_shader_fx_pixel ( BlenderRNA brna)
static

◆ rna_def_shader_fx_rim()

static void rna_def_shader_fx_rim ( BlenderRNA brna)
static

◆ rna_def_shader_fx_shadow()

static void rna_def_shader_fx_shadow ( BlenderRNA brna)
static

◆ rna_def_shader_fx_swirl()

static void rna_def_shader_fx_swirl ( BlenderRNA brna)
static

◆ rna_def_shader_fx_wave()

static void rna_def_shader_fx_wave ( BlenderRNA brna)
static

Variable Documentation

◆ rna_enum_glow_blend_modes_items

const EnumPropertyItem rna_enum_glow_blend_modes_items[]
static
Initial value:
= {
{eGplBlendMode_Regular, "REGULAR", 0, "Regular", ""},
{eGplBlendMode_Add, "ADD", 0, "Add", ""},
{eGplBlendMode_Subtract, "SUBTRACT", 0, "Subtract", ""},
{eGplBlendMode_Multiply, "MULTIPLY", 0, "Multiply", ""},
{eGplBlendMode_Divide, "DIVIDE", 0, "Divide", ""},
{0, NULL, 0, NULL, NULL}}
@ eGplBlendMode_Regular
@ eGplBlendMode_Add
@ eGplBlendMode_Multiply
@ eGplBlendMode_Divide
@ eGplBlendMode_Subtract

Definition at line 76 of file rna_shader_fx.c.

Referenced by rna_def_shader_fx_glow().

◆ rna_enum_object_shaderfx_type_items

const EnumPropertyItem rna_enum_object_shaderfx_type_items[]
Initial value:
= {
{eShaderFxType_Blur, "FX_BLUR", ICON_SHADERFX, "Blur", "Apply Gaussian Blur to object"},
"FX_COLORIZE",
ICON_SHADERFX,
"Colorize",
"Apply different tint effects"},
{eShaderFxType_Flip, "FX_FLIP", ICON_SHADERFX, "Flip", "Flip image"},
{eShaderFxType_Glow, "FX_GLOW", ICON_SHADERFX, "Glow", "Create a glow effect"},
{eShaderFxType_Pixel, "FX_PIXEL", ICON_SHADERFX, "Pixelate", "Pixelate image"},
{eShaderFxType_Rim, "FX_RIM", ICON_SHADERFX, "Rim", "Add a rim to the image"},
{eShaderFxType_Shadow, "FX_SHADOW", ICON_SHADERFX, "Shadow", "Create a shadow effect"},
{eShaderFxType_Swirl, "FX_SWIRL", ICON_SHADERFX, "Swirl", "Create a rotation distortion"},
"FX_WAVE",
ICON_SHADERFX,
"Wave Distortion",
"Apply sinusoidal deformation"},
{0, NULL, 0, NULL, NULL},
}
@ eShaderFxType_Pixel
@ eShaderFxType_Rim
@ eShaderFxType_Swirl
@ eShaderFxType_Glow
@ eShaderFxType_Flip
@ eShaderFxType_Blur
@ eShaderFxType_Shadow
@ eShaderFxType_Colorize
@ eShaderFxType_Wave

Definition at line 33 of file rna_shader_fx.c.

Referenced by OBJECT_OT_shaderfx_add(), rna_def_object_shaderfxs(), RNA_def_shader_fx(), and shaderfx_add_itemf().

◆ rna_enum_shaderfx_colorize_modes_items

const EnumPropertyItem rna_enum_shaderfx_colorize_modes_items[]
static
Initial value:
= {
{eShaderFxColorizeMode_GrayScale, "GRAYSCALE", 0, "Gray Scale", ""},
{eShaderFxColorizeMode_Sepia, "SEPIA", 0, "Sepia", ""},
{eShaderFxColorizeMode_Duotone, "DUOTONE", 0, "Duotone", ""},
{eShaderFxColorizeMode_Transparent, "TRANSPARENT", 0, "Transparent", ""},
{eShaderFxColorizeMode_Custom, "CUSTOM", 0, "Custom", ""},
{0, NULL, 0, NULL, NULL}}
@ eShaderFxColorizeMode_Custom
@ eShaderFxColorizeMode_GrayScale
@ eShaderFxColorizeMode_Transparent
@ eShaderFxColorizeMode_Duotone
@ eShaderFxColorizeMode_Sepia

Definition at line 68 of file rna_shader_fx.c.

Referenced by rna_def_shader_fx_colorize().

◆ rna_enum_shaderfx_glow_modes_items

const EnumPropertyItem rna_enum_shaderfx_glow_modes_items[]
static
Initial value:
= {
{eShaderFxGlowMode_Luminance, "LUMINANCE", 0, "Luminance", ""},
{eShaderFxGlowMode_Color, "COLOR", 0, "Color", ""},
{0, NULL, 0, NULL, NULL}}
@ eShaderFxGlowMode_Luminance
@ eShaderFxGlowMode_Color

Definition at line 63 of file rna_shader_fx.c.

Referenced by rna_def_shader_fx_glow().

◆ rna_enum_shaderfx_rim_modes_items

const EnumPropertyItem rna_enum_shaderfx_rim_modes_items[]
static
Initial value:
= {
{eShaderFxRimMode_Normal, "NORMAL", 0, "Regular", ""},
{eShaderFxRimMode_Overlay, "OVERLAY", 0, "Overlay", ""},
{eShaderFxRimMode_Add, "ADD", 0, "Add", ""},
{eShaderFxRimMode_Subtract, "SUBTRACT", 0, "Subtract", ""},
{eShaderFxRimMode_Multiply, "MULTIPLY", 0, "Multiply", ""},
{eShaderFxRimMode_Divide, "DIVIDE", 0, "Divide", ""},
{0, NULL, 0, NULL, NULL}}
@ eShaderFxRimMode_Multiply
@ eShaderFxRimMode_Add
@ eShaderFxRimMode_Normal
@ eShaderFxRimMode_Overlay
@ eShaderFxRimMode_Subtract
@ eShaderFxRimMode_Divide

Definition at line 54 of file rna_shader_fx.c.

Referenced by rna_def_shader_fx_rim().