gl_FrontFacing
gl_FrontFacing
impacted by the order of the vertexes of a triangle?
gl_FrontFacing
is determined by the surface normal and the surface normal is determined by looking at the vectors created by the vertexes of the triangle, the order of specification must be
gl_FrontFacing
Uniform data tends to be values such as transformation matrices, object level parameters, or arguments to shaders. This data is by definition "small" and tends to be updated each time an object is drawn.
gl.bufferData(gl.ARRAY_BUFFER,flatten(bcs),gl.STATIC_DRAW);
Uniform data includes items such as transformation matrices. They are communicated via a call to glUniformMatrix*** or glUniform*. An example might be
gl.uniformMatrix4fv(this.projLoc, false,flatten(proj)); gl.uniform4fv(this.colorLoc, c);