[Bf-blender-cvs] [b4f4d1d] compositor-2016: GLSL: Attempt to fix errors in setting UV attributes
Sergey Sharybin
noreply at git.blender.org
Wed Jun 8 21:52:05 CEST 2016
Commit: b4f4d1d150ab33f7d5fa10a607256b1535ea2e21
Author: Sergey Sharybin
Date: Wed Jun 1 10:26:18 2016 +0200
Branches: compositor-2016
https://developer.blender.org/rBb4f4d1d150ab33f7d5fa10a607256b1535ea2e21
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