My vertex and fragment shaders compile correctly on WebGL running Chrome Canary build. But I got the following shader link error:
Code :
Could not pack varying _v_lifetime
With the following code snippets of my fragment shader
// If the normal is facing the light
if (NdotL > 0.0)
{
// Add the diffuse contribution
color += v_diffuse * NdotL;

// Re-normalize the half vector
vec3 HV = normalize(v_halfVector);
float NdotHV = max(dot(N, HV), 0.0);

// Add the specular contribution
color += material_specular * light0.specular * pow(NdotHV, material_shininess);
}
What does it mean?
Where can I get info that document typical linker error?

When I remove the following code snippets:
// Re-normalize the half vector
vec3 HV = normalize(v_halfVector);
float NdotHV = max(dot(N, HV), 0.0);

// Add the specular contribution
color += material_specular * light0.specular * pow(NdotHV, material_shininess);
The error disappears.

Thanks in advance for your help.