Blender V5.3
draw::pointcloud Namespace Reference

Classes

struct  Point
struct  ShapePoint

Functions

Point object_to_world (Point pt, float4x4 object_to_world)
float3x3 facing_matrix (const float3 V, const float3 up_axis, bool flip)
ShapePoint shape_point_get (const Point pt, const float3 V, const float3 up_axis, const eObjectInfoFlag ob_flag, bool flip=false)
float get_customdata_float (const int point_id, const samplerBuffer cd_buf)
float2 get_customdata_vec2 (const int point_id, const samplerBuffer cd_buf)
float3 get_customdata_vec3 (const int point_id, const samplerBuffer cd_buf)
float4 get_customdata_vec4 (const int point_id, const samplerBuffer cd_buf)
float2 get_barycentric ()

Function Documentation

◆ facing_matrix()

float3x3 draw::pointcloud::facing_matrix ( const float3 V,
const float3 up_axis,
bool flip )

Definition at line 43 of file draw_pointcloud.bsl.hh.

References cross, facing_matrix(), normalize, and V.

Referenced by facing_matrix(), and shape_point_get().

◆ get_barycentric()

float2 draw::pointcloud::get_barycentric ( )

Definition at line 153 of file draw_pointcloud.bsl.hh.

References get_barycentric().

Referenced by get_barycentric().

◆ get_customdata_float()

float draw::pointcloud::get_customdata_float ( const int point_id,
const samplerBuffer cd_buf )

Definition at line 133 of file draw_pointcloud.bsl.hh.

References get_customdata_float(), and texelFetch().

Referenced by attr_load_float(), and get_customdata_float().

◆ get_customdata_vec2()

float2 draw::pointcloud::get_customdata_vec2 ( const int point_id,
const samplerBuffer cd_buf )

Definition at line 138 of file draw_pointcloud.bsl.hh.

References get_customdata_vec2(), and texelFetch().

Referenced by attr_load_float2(), and get_customdata_vec2().

◆ get_customdata_vec3()

float3 draw::pointcloud::get_customdata_vec3 ( const int point_id,
const samplerBuffer cd_buf )

Definition at line 143 of file draw_pointcloud.bsl.hh.

References get_customdata_vec3(), and texelFetch().

Referenced by attr_load_float3(), attr_load_uv(), and get_customdata_vec3().

◆ get_customdata_vec4()

float4 draw::pointcloud::get_customdata_vec4 ( const int point_id,
const samplerBuffer cd_buf )

◆ object_to_world()

◆ shape_point_get()

ShapePoint draw::pointcloud::shape_point_get ( const Point pt,
const float3 V,
const float3 up_axis,
const eObjectInfoFlag ob_flag,
bool flip = false )

Return the normal of the expanded position in world-space.

  • pt : world space curve point.
  • V : world space view vector (toward viewer) at pt.P.

Definition at line 60 of file draw_pointcloud.bsl.hh.

References facing_matrix(), flag_test(), draw::pointcloud::ShapePoint::N, OBJECT_NEGATIVE_SCALE, draw::pointcloud::Point::P, draw::pointcloud::ShapePoint::P, draw::pointcloud::Point::radius, shape_point_get(), draw::pointcloud::Point::shape_pos, and V.

Referenced by eevee::geom_pointcloud(), shape_point_get(), and workbench::prepass::vert_pointcloud().