Blender Git Loki

Git Commits -> Revision d48597e

Revision d48597e by Clément Foucault (master)
April 5, 2018, 14:08 (GMT)
GPUShader: Add 2D Nodelink shader.

Special shader to draw nodelinks for the node editor.

We only pass bezier points to the GPU and vertex position is handled inside
the vertex shader.
The arrow is also part of the batch to avoid separate drawcalls for it.

We still draw 2 pass one for shadow and one for the link color on top.

One variation to draw instances of theses links so that we only do one
drawcall.

Commit Details:

Full Hash: d48597eb5422b33d5edc80f3b6d8d927f2f40444
Parent Commit: 5fba445
Lines Changed: +130, -1

2 Added Paths:

/source/blender/gpu/shaders/gpu_shader_2D_nodelink_frag.glsl (+10, -0) (View)
/source/blender/gpu/shaders/gpu_shader_2D_nodelink_vert.glsl (+106, -0) (View)

3 Modified Paths:

/source/blender/gpu/CMakeLists.txt (+2, -0) (Diff)
/source/blender/gpu/GPU_shader.h (+3, -1) (Diff)
/source/blender/gpu/intern/gpu_shader.c (+9, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021