//This line of code performs the lighting equation. The first hard-coded values of 0.3 is the specular mask value.
//gl_FragColor.rgb =
// calcPhongSpotLight( newPos, normalize( normal ), albedo, 0.3, 16.0, -vsPos.z, 0.3 );
//Change the first "0.3" value to "gloss", Like this:
gl_FragColor.rgb =
calcPhongSpotLight( newPos, normalize( normal ), albedo, gloss, 16.0, -vsPos.z, 0.3 );