From 6d84a4ecfd4914048bc815c7d1bfedec28d4bc22 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 23 May 2016 14:28:47 +0200 Subject: Fix wrong vertex color in BI GLSL mode The issue was caused by recent normalization added to the GLSL attributes. --- source/blender/gpu/shaders/gpu_shader_material.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/gpu') diff --git a/source/blender/gpu/shaders/gpu_shader_material.glsl b/source/blender/gpu/shaders/gpu_shader_material.glsl index 506c9641d12..4d7f6d5b44c 100644 --- a/source/blender/gpu/shaders/gpu_shader_material.glsl +++ b/source/blender/gpu/shaders/gpu_shader_material.glsl @@ -149,7 +149,7 @@ void color_to_normal(vec3 color, out vec3 normal) void vcol_attribute(vec4 attvcol, out vec4 vcol) { - vcol = vec4(attvcol.x/255.0, attvcol.y/255.0, attvcol.z/255.0, 1.0); + vcol = vec4(attvcol.x, attvcol.y, attvcol.z, 1.0); } void uv_attribute(vec2 attuv, out vec3 uv) -- cgit v1.2.3