aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE/Materials/FlatMaterial.js
diff options
context:
space:
mode:
authorhwc4872012-02-07 14:35:55 -0800
committerhwc4872012-02-07 14:35:55 -0800
commit2d4da18a778471b02e188ad668752e331ee76127 (patch)
treed1aee0417e6e9ad0335c9e6232d49001a4e425ba /js/helper-classes/RDGE/Materials/FlatMaterial.js
parent9d122c5f1632b1225a543049913c36b9a030110c (diff)
downloadninja-2d4da18a778471b02e188ad668752e331ee76127.tar.gz
test code for deformation shader
Diffstat (limited to 'js/helper-classes/RDGE/Materials/FlatMaterial.js')
-rw-r--r--js/helper-classes/RDGE/Materials/FlatMaterial.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/js/helper-classes/RDGE/Materials/FlatMaterial.js b/js/helper-classes/RDGE/Materials/FlatMaterial.js
index c8eb3b6c..de039231 100644
--- a/js/helper-classes/RDGE/Materials/FlatMaterial.js
+++ b/js/helper-classes/RDGE/Materials/FlatMaterial.js
@@ -26,10 +26,13 @@ function FlatMaterial()
26 /////////////////////////////////////////////////////////////////////// 26 ///////////////////////////////////////////////////////////////////////
27 // Property Accessors 27 // Property Accessors
28 /////////////////////////////////////////////////////////////////////// 28 ///////////////////////////////////////////////////////////////////////
29 this.getColor = function() { return this._color; } 29 this.getColor = function() { return this._color; }
30 this.getShaderName = function() { return this._shaderName; } 30 this.getShaderName = function() { return this._shaderName; }
31 31
32 this.isAnimated = function() { return false; } 32 this.isAnimated = function() { return false; }
33 this.hasVertexDeformation = function() { return true; }
34 this._hasVertexDeformation = true;
35 this._vertexDeformationTolerance = 0.2;
33 36
34 //////////////////////////////////s///////////////////////////////////// 37 //////////////////////////////////s/////////////////////////////////////
35 // Methods 38 // Methods
@@ -55,6 +58,7 @@ function FlatMaterial()
55// this._shader.colorMe.u_limit1.set( [0.25] ); 58// this._shader.colorMe.u_limit1.set( [0.25] );
56// this._shader.colorMe.u_limit2.set( [0.5] ); 59// this._shader.colorMe.u_limit2.set( [0.5] );
57// this._shader.colorMe.u_limit3.set( [0.75] ); 60// this._shader.colorMe.u_limit3.set( [0.75] );
61// this._shader.colorMe.u_center.set( [0.0] );
58// this._shader.colorMe.u_taperAmount.set( [0.5] ); 62// this._shader.colorMe.u_taperAmount.set( [0.5] );
59 } 63 }
60 64
@@ -146,6 +150,7 @@ flatShaderDef =
146 //'u_limit1': { 'type': 'float' }, 150 //'u_limit1': { 'type': 'float' },
147 //'u_limit2': { 'type': 'float' }, 151 //'u_limit2': { 'type': 'float' },
148 //'u_limit3': { 'type': 'float' }, 152 //'u_limit3': { 'type': 'float' },
153 //'u_center': { 'type': 'float' },
149 //'u_taperAmount': { 'type': 'float' } 154 //'u_taperAmount': { 'type': 'float' }
150 }, 155 },
151 }, 156 },