diff options
Diffstat (limited to 'js/lib/rdge/materials/julia-material.js')
-rw-r--r-- | js/lib/rdge/materials/julia-material.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/lib/rdge/materials/julia-material.js b/js/lib/rdge/materials/julia-material.js index a85bd6f7..c1eb2b6d 100644 --- a/js/lib/rdge/materials/julia-material.js +++ b/js/lib/rdge/materials/julia-material.js | |||
@@ -5,6 +5,7 @@ | |||
5 | </copyright> */ | 5 | </copyright> */ |
6 | 6 | ||
7 | var PulseMaterial = require("js/lib/rdge/materials/pulse-material").PulseMaterial; | 7 | var PulseMaterial = require("js/lib/rdge/materials/pulse-material").PulseMaterial; |
8 | var Texture = require("js/lib/rdge/texture").Texture; | ||
8 | 9 | ||
9 | var JuliaMaterial = function JuliaMaterial() { | 10 | var JuliaMaterial = function JuliaMaterial() { |
10 | /////////////////////////////////////////////////////////////////////// | 11 | /////////////////////////////////////////////////////////////////////// |
@@ -59,6 +60,10 @@ var JuliaMaterial = function JuliaMaterial() { | |||
59 | this._shader['default'].u_time.set( [this._time] ); | 60 | this._shader['default'].u_time.set( [this._time] ); |
60 | } | 61 | } |
61 | 62 | ||
63 | // set up the texture | ||
64 | var texMapName = this._propValues[this._propNames[0]]; | ||
65 | this._glTex = new Texture( world, texMapName ); | ||
66 | |||
62 | // set the shader values in the shader | 67 | // set the shader values in the shader |
63 | this.setResolution( [world.getViewportWidth(),world.getViewportHeight()] ); | 68 | this.setResolution( [world.getViewportWidth(),world.getViewportHeight()] ); |
64 | this.update( 0 ); | 69 | this.update( 0 ); |