I am trying to convert a 330 shader to 110 but can't find a work around for:
v_norm = normalize(mat3(modelview) * vNormal);
The error returned is:
GLSL 110 does not allow sub- or super-matrix constructors
The complete shader:
#version 110
attribute vec3 vPosition;
attribute vec3 vNormal;
varying vec3 v_norm;
uniform mat4 modelview;
void main()
{
gl_Position = modelview * vec4(vPosition, 1.0);
v_norm = normalize(mat3(modelview) * vNormal);
v_norm = vNormal;
}