Blender  V3.3
overlay_paint_info.hh File Reference
#include "gpu_shader_create_info.hh"

Go to the source code of this file.

Functions

OVERLAY_shader_paint_face.

Used for face selection mode in Weight, Vertex and Texture Paint.

 do_static_compilation (true) .vertex_in(0
 
pos vertex_in(1, Type::VEC4, "nor") .push_constant(Type additional_info ("overlay_paint_face") .additional_info("drw_clipped") .do_static_compilation(true)
 
OVERLAY_shader_paint_texture.

Used in Texture Paint mode for the Stencil Image Masking.

GPU_SHADER_INTERFACE_INFO(overlay_paint_texture_iface, "").smooth(Type pos vertex_in (1, Type::VEC2, "mu") .vertex_out(overlay_paint_texture_iface) .sampler(0
 
GPU_SHADER_INTERFACE_INFO(overlay_paint_texture_iface, "").smooth(Type pos maskImage push_constant(Type::VEC3, "maskColor") .push_constant(Type additional_info ("overlay_paint_texture") .additional_info("drw_clipped") .do_static_compilation(true)
 
OVERLAY_shader_paint_vertcol.

It should be used to draw a Vertex Paint overlay. But it is currently unreachable.

GPU_SHADER_INTERFACE_INFO(overlay_paint_vertcol_iface, "").smooth(Type pos vertex_in(1, Type::VEC3, "ac") .vertex_out(overlay_paint_vertcol_iface) .push_constant(Type additional_info ("overlay_paint_vertcol") .additional_info("drw_clipped") .do_static_compilation(true)
 
OVERLAY_shader_paint_weight.

Used to display Vertex Weights. overlay paint weight is for wireframe display mode.

smooth(Type::VEC2, "weight_interp") .smooth(Type weight vertex_in (1, Type::VEC3, "pos") .vertex_in(2
 
smooth(Type::VEC2, "weight_interp") .smooth(Type weight nor vertex_out (overlay_paint_weight_iface) .sampler(0
 
smooth(Type::VEC2, "weight_interp") .smooth(Type weight nor colorramp push_constant(Type::FLOAT, "opacity") .push_constant(Type additional_info("overlay_paint_weight") .define("FAKE_SHADING") .push_constant(Type additional_info ("overlay_paint_weight") .additional_info("drw_clipped") .do_static_compilation(true)
 
 additional_info ("overlay_paint_weight_fake_shading") .additional_info("drw_clipped") .do_static_compilation(true)
 

OVERLAY_shader_paint_point.

Used for vertex selection mode in Weight and Vertex Paint.

GPU_SHADER_INTERFACE_INFO(overlay_overlay_paint_point_iface, "").smooth(Type pos fragColor draw_globals
 
GPU_SHADER_INTERFACE_INFO(overlay_overlay_paint_point_iface, "").smooth(Type pos vertex_in (1, Type::VEC4, "nor") .vertex_out(overlay_overlay_paint_point_iface) .fragment_out(0
 
GPU_SHADER_INTERFACE_INFO(overlay_overlay_paint_point_iface, "").smooth(Type pos fragColor vertex_source ("overlay_paint_point_vert.glsl") .fragment_source("overlay_point_varying_color_frag.glsl") .additional_info("draw_modelmat"
 
 additional_info ("overlay_paint_point") .additional_info("drw_clipped") .do_static_compilation(true)
 

Function Documentation

◆ additional_info() [1/6]

pos vertex_in (1, Type::VEC4, "nor") .push_constant(Type additional_info ( "overlay_paint_face"  )

◆ additional_info() [2/6]

additional_info ( "overlay_paint_point"  )

◆ additional_info() [3/6]

GPU_SHADER_INTERFACE_INFO (overlay_paint_texture_iface, "").smooth(Type pos maskImage push_constant (Type::VEC3, "maskColor") .push_constant(Type additional_info ( "overlay_paint_texture"  )

◆ additional_info() [4/6]

GPU_SHADER_INTERFACE_INFO (overlay_paint_vertcol_iface, "").smooth(Type pos vertex_in (1, Type::VEC3, "ac") .vertex_out(overlay_paint_vertcol_iface) .push_constant(Type additional_info ( "overlay_paint_vertcol"  )

◆ additional_info() [5/6]

smooth (Type::VEC2, "weight_interp") .smooth(Type weight nor colorramp push_constant (Type::FLOAT, "opacity") .push_constant(Type additional_info ("overlay_paint_weight") .define("FAKE_SHADING") .push_constant(Type additional_info ( "overlay_paint_weight"  )

◆ additional_info() [6/6]

additional_info ( "overlay_paint_weight_fake_shading"  )

◆ do_static_compilation()

do_static_compilation ( true  )

◆ vertex_in() [1/3]

GPU_SHADER_INTERFACE_INFO (overlay_paint_texture_iface, "").smooth(Type pos vertex_in ( ,
Type::VEC2  ,
"mu"   
)

◆ vertex_in() [2/3]

smooth (Type::VEC2, "weight_interp") .smooth(Type weight vertex_in ( ,
Type::VEC3  ,
"pos"   
)

◆ vertex_in() [3/3]

GPU_SHADER_INTERFACE_INFO (overlay_overlay_paint_point_iface, "").smooth(Type pos vertex_in ( ,
Type::VEC4  ,
"nor"   
)

◆ vertex_out()

smooth (Type::VEC2, "weight_interp") .smooth(Type weight nor vertex_out ( overlay_paint_weight_iface  )

◆ vertex_source()

GPU_SHADER_INTERFACE_INFO (overlay_overlay_paint_point_iface, "").smooth(Type pos fragColor vertex_source ( "overlay_paint_point_vert.glsl"  )

Variable Documentation

◆ draw_globals

GPU_SHADER_INTERFACE_INFO (overlay_overlay_paint_point_iface, "").smooth(Type pos fragColor draw_globals

Definition at line 44 of file overlay_paint_info.hh.