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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user