Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/shaders/gpu_shader_2D_nodelink_vert.glsl
| /** | /** | ||||
| * 2D Quadratic Bezier thick line drawing | * 2D Quadratic Bezier thick line drawing | ||||
| **/ | */ | ||||
| #define MID_VERTEX 57 | #define MID_VERTEX 57 | ||||
| /* u is position along the curve, defining the tangent space. | /* u is position along the curve, defining the tangent space. | ||||
| * v is "signed" distance (compressed to [0..1] range) from the pos in expand direction */ | * v is "signed" distance (compressed to [0..1] range) from the pos in expand direction */ | ||||
| in vec2 uv; | in vec2 uv; | ||||
| in vec2 pos; /* verts position in the curve tangent space */ | in vec2 pos; /* verts position in the curve tangent space */ | ||||
| in vec2 expand; | in vec2 expand; | ||||
| ▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines | |||||