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