Blender V5.3
overlay::xray_fade Namespace Reference

Classes

struct  TexelData
struct  Resources
struct  VertOut
struct  FragOut

Functions

void vert_main (const int &vert_id, VertOut &v_out, float4 &position)
void frag_main (Resources &srt, const VertOut &v_in, FragOut &frag_out)

Variables

PipelineGraphic pipeline (vert_main, frag_main)

Detailed Description

Overlay X-Ray fade.

Adds a low-opacity fade behind scene geometry. This allows for a nice transition between opaque, X-ray and wireframe modes, and is only available if X-ray mode is enabled or we are in wireframe mode.

Function Documentation

◆ frag_main()

void overlay::xray_fade::frag_main ( Resources & srt,
const VertOut & v_in,
FragOut & frag_out )

◆ vert_main()

void overlay::xray_fade::vert_main ( const int & vert_id,
VertOut & v_out,
float4 & position )

Definition at line 55 of file overlay_xray_fade.bsl.hh.

References fullscreen_vertex(), out, position, vert_main(), vertex, and vertex_id.

Referenced by vert_main().

Variable Documentation

◆ pipeline

PipelineGraphic overlay::xray_fade::pipeline(vert_main, frag_main) ( vert_main ,
frag_main  )