aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/materials/taper-material.js
diff options
context:
space:
mode:
authorhwc4872012-04-05 05:30:55 -0700
committerhwc4872012-04-05 05:30:55 -0700
commitb6a8f72f670a8edee35554a4ca3a0618c526d651 (patch)
treeca10bd5b870bd318270ad32093c87e768612d830 /js/lib/rdge/materials/taper-material.js
parent32c973351bc6f4d682205b788dc6235fc9452e07 (diff)
downloadninja-b6a8f72f670a8edee35554a4ca3a0618c526d651.tar.gz
Re-added taper and twist-vert materials.
Diffstat (limited to 'js/lib/rdge/materials/taper-material.js')
-rw-r--r--js/lib/rdge/materials/taper-material.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/js/lib/rdge/materials/taper-material.js b/js/lib/rdge/materials/taper-material.js
index 15b7b2b0..efba3807 100644
--- a/js/lib/rdge/materials/taper-material.js
+++ b/js/lib/rdge/materials/taper-material.js
@@ -4,15 +4,17 @@
4 (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. 4 (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5 </copyright> */ 5 </copyright> */
6 6
7var MaterialParser = require("js/lib/rdge/materials/material-parser").MaterialParser; 7var Material = require("js/lib/rdge/materials/material").Material;
8var Texture = require("js/lib/rdge/texture").Texture;
9
8/////////////////////////////////////////////////////////////////////// 10///////////////////////////////////////////////////////////////////////
9// Class GLMaterial 11// Class GLMaterial
10// RDGE representation of a material. 12// RDGE representation of a material.
11/////////////////////////////////////////////////////////////////////// 13///////////////////////////////////////////////////////////////////////
12function TaperMaterial() 14var TaperMaterial = function TaperMaterial()
13{ 15{
14 // initialize the inherited members 16 // initialize the inherited members
15 this.inheritedFrom = GLMaterial; 17 this.inheritedFrom = Material;
16 this.inheritedFrom(); 18 this.inheritedFrom();
17 19
18 /////////////////////////////////////////////////////////////////////// 20 ///////////////////////////////////////////////////////////////////////
@@ -250,3 +252,7 @@ taperShaderDef =
250 } 252 }
251}; 253};
252 254
255
256if (typeof exports === "object") {
257 exports.TaperMaterial = TaperMaterial;
258}