diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-04-18 20:12:28 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-04-18 22:33:09 +0300 |
commit | 85b4398d90be1d11399e94c4d641e5ce0fd69189 (patch) | |
tree | b60d9cc9354a871a0c3af9d75d3c1aec8a89e714 /source/blender/draw/engines | |
parent | 94789e30a587fc1ed834bc2a2a80295edd72ac5c (diff) |
Draw Manager: Fix uniforms array not been found.
Diffstat (limited to 'source/blender/draw/engines')
-rw-r--r-- | source/blender/draw/engines/clay/clay.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/engines/clay/clay.c b/source/blender/draw/engines/clay/clay.c index 7aa5e226a61..2d26adf1fe2 100644 --- a/source/blender/draw/engines/clay/clay.c +++ b/source/blender/draw/engines/clay/clay.c @@ -417,9 +417,9 @@ static DRWShadingGroup *CLAY_shgroup_create(CLAY_Data *vedata, DRWPass *pass, in DRW_shgroup_uniform_buffer(grp, "depthtex", &txl->depth_dup, depthloc); DRW_shgroup_uniform_texture(grp, "matcaps", e_data.matcap_array, matcaploc); DRW_shgroup_uniform_mat4(grp, "WinMatrix", (float *)e_data.winmat); - DRW_shgroup_uniform_vec4(grp, "viewvecs", (float *)e_data.viewvecs, 3); + DRW_shgroup_uniform_vec4(grp, "viewvecs[0]", (float *)e_data.viewvecs, 3); DRW_shgroup_uniform_vec4(grp, "ssao_params", e_data.ssao_params, 1); - DRW_shgroup_uniform_vec3(grp, "matcaps_color", (float *)e_data.matcap_colors, 24); + DRW_shgroup_uniform_vec3(grp, "matcaps_color[0]", (float *)e_data.matcap_colors, 24); DRW_shgroup_uniform_int(grp, "mat_id", material_id, 1); |