Fix wrong vertex color in BI GLSL mode

The issue was caused by recent normalization added to the GLSL attributes.
This commit is contained in:
Sergey Sharybin
2016-05-23 14:28:47 +02:00
parent 2aa4b6045a
commit 6d84a4ecfd

View File

@@ -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)