RenderableFace.js 546 B

123456789101112131415161718192021222324
  1. /**
  2. * @author mrdoob / http://mrdoob.com/
  3. */
  4. THREE.RenderableFace = function () {
  5. this.id = 0;
  6. this.v1 = new THREE.RenderableVertex();
  7. this.v2 = new THREE.RenderableVertex();
  8. this.v3 = new THREE.RenderableVertex();
  9. this.normalModel = new THREE.Vector3();
  10. this.vertexNormalsModel = [ new THREE.Vector3(), new THREE.Vector3(), new THREE.Vector3() ];
  11. this.vertexNormalsLength = 0;
  12. this.color = new THREE.Color();
  13. this.material = null;
  14. this.uvs = [ new THREE.Vector2(), new THREE.Vector2(), new THREE.Vector2() ];
  15. this.z = 0;
  16. };