79 constexpr float div = 1.0f / 255.0f;
80 int a = int(mat[0][3]);
81 int b = int(mat[1][3]);
82 int c = int(mat[2][3]);
83 int d = int(mat[3][3]);
84 dataA =
float4(a & 0xFF, a >> 8,
b & 0xFF,
b >> 8) * div;
85 dataB =
float4(c & 0xFF, c >> 8, d & 0xFF, d >> 8) * div;
86 mat[0][3] = mat[1][3] = mat[2][3] = 0.0f;
99 frag_out.color = v_out.final_color;
101 sel.select_id_output(sel_out.select_id, frag_co);
#define DRW_CLIPPING_UBO_SLOT
#define OVERLAY_GLOBALS_SLOT
#define compilation_constant
VecBase< float, D > normalize(VecOp< float, D >) RET
float dot(VecOp< float, D >, VecOp< float, D >) RET
MatBase< float, 4, 4 > float4x4
float4 pack_line_data(float2 frag_co, float2 edge_start, float2 edge_pos)
void wire_frag(draw::Select &sel, const float4 frag_co, const VertOut &v_out, const draw::SelectOut &sel_out, FragOut &frag_out)
float2 compute_dir(float2 v0, float2, float2 v2)
float4x4 extract_matrix_packed_data(float4x4 mat, float4 &dataA, float4 &dataB)
@ V3D_SHADING_OBJECT_COLOR
@ V3D_SHADING_RANDOM_COLOR
@ V3D_SHADING_SINGLE_COLOR
ClippingConstant constants
const float4(& drw_clipping_)[6]
void set_clipping_distances(float3 ws_P, float &dist0, float &dist1, float &dist2, float &dist3, float &dist4, float &dist5) const