Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-06-01 11:26:18 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-06-01 11:26:18 +0300
commit0e8570b4158807e6a0cfcfb50dc17517740eca7d (patch)
treeb7dbe4cbe1c7da1c86703b6b176ea8cf097954af /source
parent334d823b2bd3e02ee44015452ec1ab375ef86b03 (diff)
GLSL: Attempt to fix errors in setting UV attributes
Diffstat (limited to 'source')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_vertex.glsl10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_vertex.glsl b/source/blender/gpu/shaders/gpu_shader_vertex.glsl
index a91d9e3e6f2..9a6537b4f09 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)) {