[Bf-blender-cvs] [0e8570b] master: GLSL: Attempt to fix errors in setting UV attributes

Sergey Sharybin noreply at git.blender.org
Wed Jun 1 10:26:23 CEST 2016


Commit: 0e8570b4158807e6a0cfcfb50dc17517740eca7d
Author: Sergey Sharybin
Date:   Wed Jun 1 10:26:18 2016 +0200
Branches: master
https://developer.blender.org/rB0e8570b4158807e6a0cfcfb50dc17517740eca7d

GLSL: Attempt to fix errors in setting UV attributes

===================================================================

M	source/blender/gpu/shaders/gpu_shader_vertex.glsl

===================================================================

diff --git a/source/blender/gpu/shaders/gpu_shader_vertex.glsl b/source/blender/gpu/shaders/gpu_shader_vertex.glsl
index a91d9e3..9a6537b 100644
--- a/source/blender/gpu/shaders/gpu_shader_vertex.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_vertex.glsl
@@ -46,6 +46,16 @@ bool is_srgb(int info)
 #endif
 }
 
+void set_var_from_attr(float attr, int info, out float var)
+{
+	var = attr;
+}
+
+void set_var_from_attr(vec2 attr, int info, out vec2 var)
+{
+	var = attr;
+}
+
 void set_var_from_attr(vec3 attr, int info, out vec3 var)
 {
 	if (is_srgb(info)) {




More information about the Bf-blender-cvs mailing list