Commit: 7fcb0bf71e5ebb911a22ac628b74f26cf77f16ce
Author: Antony Riakiotakis
Date: Wed Apr 8 16:30:26 2015 +0200
Branches: master
https://developer.blender.org/rB7fcb0bf71e5ebb911a22ac628b74f26cf77f16ce
Attempt GLSL compile fix in opensuse linux basically, we passed a vec3
as a float.
===================================================================
M source/blender/nodes/shader/nodes/node_shader_bsdf_anisotropic.c
===================================================================
diff --git a/source/blender/nodes/shader/nodes/node_shader_bsdf_anisotropic.c
b/source/blender/nodes/shader/nodes/node_shader_bsdf_anisotropic.c
index b9c94fc..8dda7b0 100644
--- a/source/blender/nodes/shader/nodes/node_shader_bsdf_anisotropic.c
+++ b/source/blender/nodes/shader/nodes/node_shader_bsdf_anisotropic.c
@@ -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)
{
- if (!in[3].link)
- in[3].link = GPU_builtin(GPU_VIEW_NORMAL);
+ if (!in[4].link)
+ in[4].link = GPU_builtin(GPU_VIEW_NORMAL);
return GPU_stack_link(mat, "node_bsdf_anisotropic", in, out);
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs