diff options
author | Valerio Virgillito | 2012-03-13 11:15:34 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-03-13 11:15:34 -0700 |
commit | f6b958360d82854bdaf51848e7fd715d1f633179 (patch) | |
tree | 80f6c08bb730089bdd3f26310df8d2363f9ba863 /js/helper-classes/backup-delete/Materials/WaterMaterial.js | |
parent | c24f58c10231c30d3a8a4c9fb9a4f395dd746180 (diff) | |
parent | 4d7b86f55c504ee4e8c2460cf6b60cb9a2cf18f0 (diff) | |
download | ninja-f6b958360d82854bdaf51848e7fd715d1f633179.tar.gz |
Merge pull request #105 from joseeight/FileIO-Build-Candidate
File I/O adding webGL/canvas data functionality
Diffstat (limited to 'js/helper-classes/backup-delete/Materials/WaterMaterial.js')
-rw-r--r-- | js/helper-classes/backup-delete/Materials/WaterMaterial.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/helper-classes/backup-delete/Materials/WaterMaterial.js b/js/helper-classes/backup-delete/Materials/WaterMaterial.js index 101a8c0c..49761c58 100644 --- a/js/helper-classes/backup-delete/Materials/WaterMaterial.js +++ b/js/helper-classes/backup-delete/Materials/WaterMaterial.js | |||
@@ -22,7 +22,7 @@ function WaterMaterial() | |||
22 | this._name = "WaterMaterial"; | 22 | this._name = "WaterMaterial"; |
23 | this._shaderName = "water"; | 23 | this._shaderName = "water"; |
24 | 24 | ||
25 | this._texMap = 'assets/images/rocky-normal.jpg'; | 25 | this._texMap = 'assets/images/rocky-normal.jpg\n'; |
26 | 26 | ||
27 | this._time = 0.0; | 27 | this._time = 0.0; |
28 | this._dTime = 0.01; | 28 | this._dTime = 0.01; |
@@ -71,7 +71,7 @@ function WaterMaterial() | |||
71 | this._shader.init(); | 71 | this._shader.init(); |
72 | 72 | ||
73 | // set up the material node | 73 | // set up the material node |
74 | this._materialNode = createMaterialNode("waterMaterial"); | 74 | this._materialNode = createMaterialNode("waterMaterial_" + world.generateUniqueNodeID()); |
75 | this._materialNode.setShader(this._shader); | 75 | this._materialNode.setShader(this._shader); |
76 | 76 | ||
77 | this._time = 0; | 77 | this._time = 0; |