aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE/Materials
diff options
context:
space:
mode:
Diffstat (limited to 'js/helper-classes/RDGE/Materials')
-rw-r--r--js/helper-classes/RDGE/Materials/PulseMaterial.js3
-rw-r--r--js/helper-classes/RDGE/Materials/WaterMaterial.js2
2 files changed, 4 insertions, 1 deletions
diff --git a/js/helper-classes/RDGE/Materials/PulseMaterial.js b/js/helper-classes/RDGE/Materials/PulseMaterial.js
index 28f2a430..b0fbd998 100644
--- a/js/helper-classes/RDGE/Materials/PulseMaterial.js
+++ b/js/helper-classes/RDGE/Materials/PulseMaterial.js
@@ -185,6 +185,9 @@ function PulseMaterial()
185 // every material needs the base type and instance name 185 // every material needs the base type and instance name
186 var exportStr = "material: " + this.getShaderName() + "\n"; 186 var exportStr = "material: " + this.getShaderName() + "\n";
187 exportStr += "name: " + this.getName() + "\n"; 187 exportStr += "name: " + this.getName() + "\n";
188
189 var texMapName = this._propValues[this._propNames[0]];
190 exportStr += "texture: " + texMapName;
188 191
189 // every material needs to terminate like this 192 // every material needs to terminate like this
190 exportStr += "endMaterial\n"; 193 exportStr += "endMaterial\n";
diff --git a/js/helper-classes/RDGE/Materials/WaterMaterial.js b/js/helper-classes/RDGE/Materials/WaterMaterial.js
index 9ece3b45..49761c58 100644
--- a/js/helper-classes/RDGE/Materials/WaterMaterial.js
+++ b/js/helper-classes/RDGE/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;