forked from bartvdbraak/blender
Attempt GLSL compile fix in opensuse linux basically, we passed a vec3
as a float.
This commit is contained in:
parent
bf11e362c5
commit
7fcb0bf71e
@ -51,8 +51,8 @@ static void node_shader_init_anisotropic(bNodeTree *UNUSED(ntree), bNode *node)
|
|||||||
|
|
||||||
static int node_shader_gpu_bsdf_anisotropic(GPUMaterial *mat, bNode *UNUSED(node), bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
|
static int node_shader_gpu_bsdf_anisotropic(GPUMaterial *mat, bNode *UNUSED(node), bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
|
||||||
{
|
{
|
||||||
if (!in[3].link)
|
if (!in[4].link)
|
||||||
in[3].link = GPU_builtin(GPU_VIEW_NORMAL);
|
in[4].link = GPU_builtin(GPU_VIEW_NORMAL);
|
||||||
|
|
||||||
return GPU_stack_link(mat, "node_bsdf_anisotropic", in, out);
|
return GPU_stack_link(mat, "node_bsdf_anisotropic", in, out);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user