aboutsummaryrefslogtreecommitdiff
path: root/js/lib/geom
diff options
context:
space:
mode:
authorhwc4872012-04-13 07:08:42 -0700
committerhwc4872012-04-13 07:08:42 -0700
commit331b2ad4d602016f9bb3d03be759fd81fed50c10 (patch)
tree6bd56180f319d400881356626f32919a4d6b1f63 /js/lib/geom
parent1fa8516bcd0fb0277c13a7081b5a51ce041d3496 (diff)
downloadninja-331b2ad4d602016f9bb3d03be759fd81fed50c10.tar.gz
Cloud Material
Diffstat (limited to 'js/lib/geom')
-rwxr-xr-xjs/lib/geom/rectangle.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/lib/geom/rectangle.js b/js/lib/geom/rectangle.js
index f41c27f6..d4dd8033 100755
--- a/js/lib/geom/rectangle.js
+++ b/js/lib/geom/rectangle.js
@@ -12,7 +12,11 @@ var MaterialsModel = require("js/models/materials-model").MaterialsModel;
12// GL representation of a rectangle. 12// GL representation of a rectangle.
13// Derived from class GeomObj 13// Derived from class GeomObj
14/////////////////////////////////////////////////////////////////////// 14///////////////////////////////////////////////////////////////////////
15var Rectangle = function GLRectangle() { 15var Rectangle = function GLRectangle()
16{
17 if (!MaterialsModel)
18 MaterialsModel = require("js/models/materials-model").MaterialsModel;
19
16 // CONSTANTS 20 // CONSTANTS
17 this.N_TRIANGLES = 15; 21 this.N_TRIANGLES = 15;
18 22