diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-06-01 11:26:18 +0300 |
---|---|---|
committer | Jeroen Bakker <j.bakker@atmind.nl> | 2016-06-08 22:45:40 +0300 |
commit | b4f4d1d150ab33f7d5fa10a607256b1535ea2e21 (patch) | |
tree | 0a0b609185a845b098722423f20b9a97ef391006 | |
parent | 0db963e3a7c5949a2398cc1afe7e07cf95584e91 (diff) |
GLSL: Attempt to fix errors in setting UV attributes
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_vertex.glsl | 10 |
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)) { |