From 4f7590251dd0fa4c07e04fd1f7fc927d9223c9b4 Mon Sep 17 00:00:00 2001 From: hwc487 Date: Thu, 8 Mar 2012 09:32:06 -0800 Subject: Fix for runtime Radial blur material --- js/lib/rdge/materials/radial-blur-material.js | 3 +++ js/lib/rdge/runtime/RuntimeGeomObj.js | 1 + 2 files changed, 4 insertions(+) diff --git a/js/lib/rdge/materials/radial-blur-material.js b/js/lib/rdge/materials/radial-blur-material.js index 89116af4..d0d05e8d 100644 --- a/js/lib/rdge/materials/radial-blur-material.js +++ b/js/lib/rdge/materials/radial-blur-material.js @@ -161,6 +161,9 @@ var RadialBlurMaterial = function RadialBlurMaterial() { // every material needs the base type and instance name var exportStr = "material: " + this.getShaderName() + "\n"; exportStr += "name: " + this.getName() + "\n"; + + var texMapName = this._propValues[this._propNames[0]]; + exportStr += "texture: " + texMapName + "\n"; // every material needs to terminate like this exportStr += "endMaterial\n"; diff --git a/js/lib/rdge/runtime/RuntimeGeomObj.js b/js/lib/rdge/runtime/RuntimeGeomObj.js index 93d4d9a1..3dc81be2 100644 --- a/js/lib/rdge/runtime/RuntimeGeomObj.js +++ b/js/lib/rdge/runtime/RuntimeGeomObj.js @@ -109,6 +109,7 @@ var RuntimeGeomObj = function RuntimeGeomObj() case "star": case "zinvert": case "keleidoscope": + case "radialBlur": case "pulse": mat = new RuntimePulseMaterial(); break; default: -- cgit v1.2.3