Blender
V3.3
|
#include "DNA_camera_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_shader_fx_types.h"
#include "DNA_view3d_types.h"
#include "BKE_gpencil.h"
#include "BLI_link_utils.h"
#include "BLI_memblock.h"
#include "DRW_render.h"
#include "BKE_camera.h"
#include "gpencil_engine.h"
Go to the source code of this file.
Classes | |
struct | gpIterVfxData |
Typedefs | |
typedef struct gpIterVfxData | gpIterVfxData |
typedef struct gpIterVfxData gpIterVfxData |
|
static |
Definition at line 24 of file gpencil_shader_fx.c.
References eShaderFxMode_Editmode, eShaderFxMode_Realtime, eShaderFxMode_Render, GPENCIL_ANY_EDIT_MODE, ShaderFxData::mode, and NULL.
|
static |
Definition at line 81 of file gpencil_shader_fx.c.
References Freestyle::c, GPENCIL_PrivateData::camera, copy_v2_fl(), KDL::cos(), GPENCIL_PrivateData::dof_params, DRW_shgroup_call_procedural_triangles(), DRW_shgroup_uniform_int_copy(), DRW_shgroup_uniform_vec2_copy(), DRW_STATE_WRITE_COLOR, DRW_view_persmat_get(), DRW_view_winmat_get(), DRW_viewport_size_get(), fabsf, BlurShaderFxData::flag, FX_BLUR_DOF_MODE, GPENCIL_PIXEL_FACTOR, GPENCIL_shader_fx_blur_get(), gpencil_vfx_pass_create(), mat4_to_scale(), max_ii(), min_ii(), mul_project_m4_v3_zfac(), mul_v2_fl(), NULL, Object::obmat, gpIterVfxData::pd, BlurShaderFxData::radius, BlurShaderFxData::rotation, BlurShaderFxData::samples, sh, KDL::sin(), state, and w().
void gpencil_vfx_cache_populate | ( | GPENCIL_Data * | vedata, |
Object * | ob, | ||
GPENCIL_tObject * | tgp_ob | ||
) |
Definition at line 577 of file gpencil_shader_fx.c.
References Object::data, GPENCIL_Data::fbl, GPENCIL_StorageList::pd, gpIterVfxData::pd, and GPENCIL_Data::stl.
Referenced by GPENCIL_cache_populate(), and gpencil_sbuffer_cache_populate_fast().
|
static |
Definition at line 133 of file gpencil_shader_fx.c.
References DRW_shgroup_call_procedural_triangles(), DRW_shgroup_uniform_float_copy(), DRW_shgroup_uniform_int_copy(), DRW_shgroup_uniform_vec3_copy(), DRW_STATE_WRITE_COLOR, ColorizeShaderFxData::factor, GPENCIL_shader_fx_colorize_get(), gpencil_vfx_pass_create(), ColorizeShaderFxData::high_color, ColorizeShaderFxData::low_color, ColorizeShaderFxData::mode, NULL, sh, and state.
|
static |
Definition at line 148 of file gpencil_shader_fx.c.
References DRW_shgroup_call_procedural_triangles(), DRW_shgroup_uniform_float_copy(), DRW_shgroup_uniform_vec2_copy(), DRW_STATE_WRITE_COLOR, FlipShaderFxData::flag, FX_FLIP_HORIZONTAL, FX_FLIP_VERTICAL, GPENCIL_shader_fx_transform_get(), gpencil_vfx_pass_create(), NULL, sh, and state.
|
static |
Definition at line 408 of file gpencil_shader_fx.c.
References GlowShaderFxData::blend_mode, GlowShaderFxData::blur, Freestyle::c, copy_v3_v3(), KDL::cos(), DRW_shgroup_call_procedural_triangles(), DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_int_copy(), DRW_shgroup_uniform_vec2_copy(), DRW_shgroup_uniform_vec4_copy(), DRW_STATE_BLEND_ADD_FULL, DRW_STATE_BLEND_ALPHA_PREMUL, DRW_STATE_BLEND_MUL, DRW_STATE_BLEND_SUB, DRW_STATE_WRITE_COLOR, eGplBlendMode_Add, eGplBlendMode_Divide, eGplBlendMode_Multiply, eGplBlendMode_Regular, eGplBlendMode_Subtract, eShaderFxGlowMode_Luminance, GlowShaderFxData::flag, FX_GLOW_USE_ALPHA, GlowShaderFxData::glow_color, GPENCIL_shader_fx_glow_get(), gpencil_vfx_pass_create(), max_ii(), min_ii(), GlowShaderFxData::mode, NULL, gpIterVfxData::pd, GlowShaderFxData::rotation, GlowShaderFxData::samples, GlowShaderFxData::select_color, sh, KDL::sin(), state, GlowShaderFxData::threshold, and GPENCIL_PrivateData::use_signed_fb.
|
static |
Definition at line 58 of file gpencil_shader_fx.c.
References BLI_LINKS_APPEND, BLI_memblock_alloc(), DRW_pass_create(), DRW_shgroup_create(), DRW_shgroup_uniform_texture_ref(), GPENCIL_PrivateData::gp_vfx_pool, gpIterVfxData::pd, sh, gpIterVfxData::source_color_tx, gpIterVfxData::source_fb, gpIterVfxData::source_reveal_tx, state, SWAP, gpIterVfxData::target_color_tx, GPENCIL_tVfx::target_fb, gpIterVfxData::target_fb, gpIterVfxData::target_reveal_tx, gpIterVfxData::tgp_ob, GPENCIL_tObject::vfx, and GPENCIL_tVfx::vfx_ps.
Referenced by gpencil_vfx_blur(), gpencil_vfx_colorize(), gpencil_vfx_flip(), gpencil_vfx_glow(), gpencil_vfx_pixelize(), gpencil_vfx_rim(), gpencil_vfx_shadow(), gpencil_vfx_swirl(), and gpencil_vfx_wave().
|
static |
Definition at line 238 of file gpencil_shader_fx.c.
References add_v2_fl(), copy_v2_fl2(), DRW_shgroup_call_procedural_triangles(), DRW_shgroup_uniform_int_copy(), DRW_shgroup_uniform_vec2_copy(), DRW_STATE_WRITE_COLOR, DRW_view_persmat_get(), DRW_view_winmat_get(), DRW_viewport_invert_size_get(), DRW_viewport_size_get(), fabsf, PixelShaderFxData::flag, FX_PIXEL_FILTER_NEAREST, GPENCIL_PIXEL_FACTOR, GPENCIL_shader_fx_pixelize_get(), gpencil_vfx_pass_create(), madd_v2_v2fl(), mat4_to_scale(), mul_project_m4_v3_zfac(), mul_v2_fl(), mul_v2_v2(), mul_v3_fl(), mul_v3_m4v3(), NULL, Object::obmat, sh, PixelShaderFxData::size, state, and w().
|
static |
Definition at line 166 of file gpencil_shader_fx.c.
References RimShaderFxData::blur, DRW_shgroup_call_procedural_triangles(), DRW_shgroup_create_sub(), DRW_shgroup_state_disable(), DRW_shgroup_state_enable(), DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_int_copy(), DRW_shgroup_uniform_vec2_copy(), DRW_shgroup_uniform_vec3_copy(), DRW_STATE_BLEND_ADD_FULL, DRW_STATE_BLEND_ALPHA_PREMUL, DRW_STATE_BLEND_MUL, DRW_STATE_BLEND_SUB, DRW_STATE_WRITE_COLOR, DRW_view_persmat_get(), DRW_view_winmat_get(), DRW_viewport_invert_size_get(), DRW_viewport_size_get(), eShaderFxRimMode_Add, eShaderFxRimMode_Divide, eShaderFxRimMode_Multiply, eShaderFxRimMode_Normal, eShaderFxRimMode_Overlay, eShaderFxRimMode_Subtract, fabsf, GPENCIL_PIXEL_FACTOR, GPENCIL_shader_fx_rim_get(), gpencil_vfx_pass_create(), RimShaderFxData::mask_rgb, mat4_to_scale(), max_ii(), min_ii(), RimShaderFxData::mode, mul_project_m4_v3_zfac(), mul_v2_fl(), mul_v2_v2(), NULL, Object::obmat, offset, RimShaderFxData::offset, RimShaderFxData::rim_rgb, RimShaderFxData::samples, sh, state, w(), and zero_v2().
|
static |
Definition at line 296 of file gpencil_shader_fx.c.
References ShadowShaderFxData::amplitude, ShadowShaderFxData::blur, copy_v2_fl2(), copy_v2_v2(), copy_v3_v3(), dot_v2v2(), DRW_shgroup_call_procedural_triangles(), DRW_shgroup_uniform_bool_copy(), DRW_shgroup_uniform_float_copy(), DRW_shgroup_uniform_int_copy(), DRW_shgroup_uniform_vec2_copy(), DRW_shgroup_uniform_vec4_copy(), DRW_STATE_BLEND_ALPHA_PREMUL, DRW_STATE_WRITE_COLOR, DRW_view_persmat_get(), DRW_view_winmat_get(), DRW_viewport_invert_size_get(), DRW_viewport_size_get(), fabsf, ShadowShaderFxData::flag, FX_SHADOW_USE_OBJECT, FX_SHADOW_USE_WAVE, GPENCIL_PIXEL_FACTOR, GPENCIL_shader_fx_shadow_get(), gpencil_vfx_pass_create(), mat4_to_scale(), max_ff(), max_ii(), min_ii(), mul_project_m4_v3_zfac(), mul_v2_fl(), mul_v2_v2(), mul_v3_fl(), mul_v3_m4v3(), NULL, ShadowShaderFxData::object, Object::obmat, offset, ShadowShaderFxData::offset, ShadowShaderFxData::orientation, ShadowShaderFxData::period, ShadowShaderFxData::phase, rescale_m4(), rotate_m4(), rotate_v2_v2fl(), ShadowShaderFxData::rotation, ShadowShaderFxData::samples, ShadowShaderFxData::scale, sh, ShadowShaderFxData::shadow_rgba, state, SWAP, translate_m4(), unit_m4(), w(), and zero_v2().
|
static |
Definition at line 532 of file gpencil_shader_fx.c.
References add_v2_fl(), SwirlShaderFxData::angle, copy_v3_v3(), DRW_shgroup_call_procedural_triangles(), DRW_shgroup_uniform_float_copy(), DRW_shgroup_uniform_vec2_copy(), DRW_STATE_WRITE_COLOR, DRW_view_persmat_get(), DRW_view_winmat_get(), DRW_viewport_size_get(), fabsf, GPENCIL_PIXEL_FACTOR, GPENCIL_shader_fx_transform_get(), gpencil_vfx_pass_create(), mat4_to_scale(), mul_project_m4_v3_zfac(), mul_v2_fl(), mul_v2_v2(), mul_v3_fl(), mul_v3_m4v3(), NULL, SwirlShaderFxData::object, Object::obmat, SwirlShaderFxData::radius, sh, state, and w().
|
static |
Definition at line 477 of file gpencil_shader_fx.c.
References WaveShaderFxData::amplitude, copy_v2_fl2(), copy_v2_v2(), dot_v2v2(), DRW_shgroup_call_procedural_triangles(), DRW_shgroup_uniform_float_copy(), DRW_shgroup_uniform_vec2_copy(), DRW_STATE_WRITE_COLOR, DRW_view_persmat_get(), DRW_view_winmat_get(), DRW_viewport_invert_size_get(), DRW_viewport_size_get(), fabsf, GPENCIL_PIXEL_FACTOR, GPENCIL_shader_fx_transform_get(), gpencil_vfx_pass_create(), mat4_to_scale(), max_ff(), mul_project_m4_v3_zfac(), mul_v2_fl(), mul_v2_v2(), mul_v3_fl(), mul_v3_m4v3(), NULL, Object::obmat, WaveShaderFxData::orientation, WaveShaderFxData::period, WaveShaderFxData::phase, sh, state, SWAP, and w().