Blender V5.3
draw::curves Namespace Reference

Classes

struct  Segment
struct  Indirection
struct  Point
struct  ShapePoint

Functions

float get_customdata_float (const int curve_id, const samplerBuffer cd_buf)
float2 get_customdata_vec2 (const int curve_id, const samplerBuffer cd_buf)
float3 get_customdata_vec3 (const int curve_id, const samplerBuffer cd_buf)
float4 get_customdata_vec4 (const int curve_id, const samplerBuffer cd_buf)

Detailed Description

Library to create hairs dynamically from control points. This is less bandwidth intensive than fetching the vertex attributes but does more ALU work per vertex. This also reduces the amount of data the CPU has to precompute and transfer for each update.

Function Documentation

◆ get_customdata_float()

float draw::curves::get_customdata_float ( const int curve_id,
const samplerBuffer cd_buf )

Definition at line 260 of file draw_curves.bsl.hh.

References get_customdata_float(), and texelFetch().

Referenced by get_customdata_float().

◆ get_customdata_vec2()

float2 draw::curves::get_customdata_vec2 ( const int curve_id,
const samplerBuffer cd_buf )

Definition at line 265 of file draw_curves.bsl.hh.

References get_customdata_vec2(), and texelFetch().

Referenced by get_customdata_vec2(), and workbench::prepass::vert_curves().

◆ get_customdata_vec3()

float3 draw::curves::get_customdata_vec3 ( const int curve_id,
const samplerBuffer cd_buf )

Definition at line 270 of file draw_curves.bsl.hh.

References get_customdata_vec3(), and texelFetch().

Referenced by get_customdata_vec3(), and workbench::prepass::vert_curves().

◆ get_customdata_vec4()

float4 draw::curves::get_customdata_vec4 ( const int curve_id,
const samplerBuffer cd_buf )

Definition at line 275 of file draw_curves.bsl.hh.

References get_customdata_vec4(), and texelFetch().

Referenced by get_customdata_vec4().