diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-08-13 16:30:29 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-08-14 00:01:18 +0300 |
commit | 77b39bbaa0c796b936f8691c1431f467d4f39981 (patch) | |
tree | 7ca96767ca82b7138eb58577ddd811b7aaac7a9f /source/blender/nodes/shader/node_shader_util.c | |
parent | 822de6e9e1b87e2ed3571e7166281fa622c28c02 (diff) |
Cleanup: Rename GPU_* functions to make more sense
* Remove GPU_link_changed which is unused.
* Remove all GPU link function that are not used anymore.
* GPU_uniform_buffer is now GPU_uniform.
* GPU_texture_ramp is now GPU_color_band.
* GPU_uniform is now GPU_constant.
Diffstat (limited to 'source/blender/nodes/shader/node_shader_util.c')
-rw-r--r-- | source/blender/nodes/shader/node_shader_util.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/nodes/shader/node_shader_util.c b/source/blender/nodes/shader/node_shader_util.c index 63c1cac566d..80cfba00e0a 100644 --- a/source/blender/nodes/shader/node_shader_util.c +++ b/source/blender/nodes/shader/node_shader_util.c @@ -257,12 +257,12 @@ void node_shader_gpu_tex_mapping(GPUMaterial *mat, bNode *node, GPUNodeStack *in static float min[3] = {-FLT_MAX, -FLT_MAX, -FLT_MAX}; GPUNodeLink *tmin, *tmax, *tmat0, *tmat1, *tmat2, *tmat3; - tmin = GPU_uniform_buffer((domin) ? texmap->min : min, GPU_VEC3); - tmax = GPU_uniform_buffer((domax) ? texmap->max : max, GPU_VEC3); - tmat0 = GPU_uniform_buffer((float *)texmap->mat[0], GPU_VEC4); - tmat1 = GPU_uniform_buffer((float *)texmap->mat[1], GPU_VEC4); - tmat2 = GPU_uniform_buffer((float *)texmap->mat[2], GPU_VEC4); - tmat3 = GPU_uniform_buffer((float *)texmap->mat[3], GPU_VEC4); + tmin = GPU_uniform((domin) ? texmap->min : min); + tmax = GPU_uniform((domax) ? texmap->max : max); + tmat0 = GPU_uniform((float *)texmap->mat[0]); + tmat1 = GPU_uniform((float *)texmap->mat[1]); + tmat2 = GPU_uniform((float *)texmap->mat[2]); + tmat3 = GPU_uniform((float *)texmap->mat[3]); GPU_link(mat, "mapping", in[0].link, tmat0, tmat1, tmat2, tmat3, tmin, tmax, &in[0].link); |