Blender V5.3
builtin::widget Namespace Reference

Classes

struct  FragOut
struct  FragOutShadow
struct  Resources
struct  VertInShadow
struct  VertOut
struct  VertOutShadow
struct  Widget
struct  WidgetRaw
struct  WidgetShadow
union  WidgetUnion

Functions

void vert (const int vert_id, const int inst_id, Resources &srt, VertOut &v_out, float4 &position)
void frag (const ColorSpace &colorspace, const VertOut &v_out, FragOut &frag_out, const float4 frag_co, Resources &srt)
void shadow_vert (const WidgetShadow &srt, const VertInShadow &v_in, VertOutShadow &v_out, float4 &out_pos)
void shadow_frag (const VertOutShadow &v_out, FragOutShadow &frag_out, WidgetShadow &srt)

Function Documentation

◆ frag()

void builtin::widget::frag ( const ColorSpace & colorspace,
const VertOut & v_out,
FragOut & frag_out,
const float4 frag_co,
Resources & srt )

◆ shadow_frag()

void builtin::widget::shadow_frag ( const VertOutShadow & v_out,
FragOutShadow & frag_out,
WidgetShadow & srt )

Definition at line 131 of file gpu_shader_widget_shadow.bsl.hh.

References fragment, in, out, resource_table, shadow_frag(), and smoothstep().

Referenced by shadow_frag().

◆ shadow_vert()

void builtin::widget::shadow_vert ( const WidgetShadow & srt,
const VertInShadow & v_in,
VertOutShadow & v_out,
float4 & out_pos )

Definition at line 30 of file gpu_shader_widget_shadow.bsl.hh.

References in, min, normalize, out, position, resource_table, shadow_vert(), vertex, float4::w, and float4::x.

Referenced by shadow_vert().

◆ vert()

void builtin::widget::vert ( const int vert_id,
const int inst_id,
Resources & srt,
VertOut & v_out,
float4 & position )

Definition at line 279 of file gpu_shader_widget_base.bsl.hh.

References instance_id, out, position, resource_table, vert(), vertex, and vertex_id.

Referenced by vert().