aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE/Materials/RadialBlurMaterial.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/helper-classes/RDGE/Materials/RadialBlurMaterial.js')
-rw-r--r--js/helper-classes/RDGE/Materials/RadialBlurMaterial.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/helper-classes/RDGE/Materials/RadialBlurMaterial.js b/js/helper-classes/RDGE/Materials/RadialBlurMaterial.js
index 25331b54..732800cf 100644
--- a/js/helper-classes/RDGE/Materials/RadialBlurMaterial.js
+++ b/js/helper-classes/RDGE/Materials/RadialBlurMaterial.js
@@ -37,6 +37,8 @@ function RadialBlurMaterial()
37 this.getTextureMap = function() { return this._texMap.slice(0); } 37 this.getTextureMap = function() { return this._texMap.slice(0); }
38 this.setTextureMap = function(m) { this._propValues[this._propNames[0]] = m.slice(0); this.updateTexture(); } 38 this.setTextureMap = function(m) { this._propValues[this._propNames[0]] = m.slice(0); this.updateTexture(); }
39 39
40 this.isAnimated = function() { return true; }
41
40 /////////////////////////////////////////////////////////////////////// 42 ///////////////////////////////////////////////////////////////////////
41 // Material Property Accessors 43 // Material Property Accessors
42 /////////////////////////////////////////////////////////////////////// 44 ///////////////////////////////////////////////////////////////////////
@@ -92,6 +94,9 @@ function RadialBlurMaterial()
92 94
93 this.init = function( world ) 95 this.init = function( world )
94 { 96 {
97 // save the world
98 if (world) this.setWorld( world );
99
95 // set up the shader 100 // set up the shader
96 this._shader = new jshader(); 101 this._shader = new jshader();
97 this._shader.def = radialBlurMaterialDef; 102 this._shader.def = radialBlurMaterialDef;