/**
* WebGL Model Viewer - Vertex.js
* Copyright © Cyril Diagne 2010.
*
* @author kikko.fr
*/

Vertex = function(posArray) { 

	this.p = vec3.create(posArray);//$V(posArray); // position
	this.t = vec3.create();//$V([0, 0, 0]);
	this.n = vec3.create();//$V([0, 0, 0]);  // normal
	this.uv = null;//[0, 0]; // texture coords
	
	// usefull when parsing external 3d format using per-face-uv indices
	this.uvId = null;
	
	this.color = 0;
	
	this.normalLineBuffer = null;

	this.setUV = function(uvArray) {
		this.uv = uvArray;
	}
};
