Blender V5.3
grease_pencil::vfx::Shadow Struct Reference

#include <gpencil_vfx.bsl.hh>

Public Member Functions

float2 compute_uvs (float2 screen_uv, float x) const
void process (const Vfx &srt, float2 screen_uv, FragOut &frag_out) const

Public Attributes

float4 shadow_color
float2 uv_rot_x
float2 uv_rot_y
float2 uv_offset
float2 blur_dir
float2 wave_dir
float2 wave_offset
float wave_phase
int samp_count
bool is_first_pass

Detailed Description

Definition at line 291 of file gpencil_vfx.bsl.hh.

Member Function Documentation

◆ compute_uvs()

float2 grease_pencil::vfx::Shadow::compute_uvs ( float2 screen_uv,
float x ) const
inline

Definition at line 303 of file gpencil_vfx.bsl.hh.

References blur_dir, dot(), sin, uv_offset, uv_rot_x, uv_rot_y, wave_dir, wave_offset, wave_phase, float2::x, x, and float2::y.

Referenced by process().

◆ process()

Member Data Documentation

◆ blur_dir

float2 grease_pencil::vfx::Shadow::blur_dir

Definition at line 296 of file gpencil_vfx.bsl.hh.

Referenced by compute_uvs().

◆ is_first_pass

bool grease_pencil::vfx::Shadow::is_first_pass

Definition at line 301 of file gpencil_vfx.bsl.hh.

Referenced by process().

◆ samp_count

int grease_pencil::vfx::Shadow::samp_count

Definition at line 300 of file gpencil_vfx.bsl.hh.

Referenced by process().

◆ shadow_color

float4 grease_pencil::vfx::Shadow::shadow_color

Definition at line 292 of file gpencil_vfx.bsl.hh.

Referenced by process().

◆ uv_offset

float2 grease_pencil::vfx::Shadow::uv_offset

Definition at line 295 of file gpencil_vfx.bsl.hh.

Referenced by compute_uvs().

◆ uv_rot_x

float2 grease_pencil::vfx::Shadow::uv_rot_x

Definition at line 293 of file gpencil_vfx.bsl.hh.

Referenced by compute_uvs().

◆ uv_rot_y

float2 grease_pencil::vfx::Shadow::uv_rot_y

Definition at line 294 of file gpencil_vfx.bsl.hh.

Referenced by compute_uvs().

◆ wave_dir

float2 grease_pencil::vfx::Shadow::wave_dir

Definition at line 297 of file gpencil_vfx.bsl.hh.

Referenced by compute_uvs().

◆ wave_offset

float2 grease_pencil::vfx::Shadow::wave_offset

Definition at line 298 of file gpencil_vfx.bsl.hh.

Referenced by compute_uvs().

◆ wave_phase

float grease_pencil::vfx::Shadow::wave_phase

Definition at line 299 of file gpencil_vfx.bsl.hh.

Referenced by compute_uvs().


The documentation for this struct was generated from the following file: