From 431b6fa7610e59074b4ebb3e9e712672f185b8ad Mon Sep 17 00:00:00 2001 From: hwc487 Date: Thu, 19 Jul 2012 11:44:50 -0700 Subject: Renamed Raiders material to Dark Blur, and Paris to Blue Sky. --- js/lib/rdge/materials/radial-blur-material.js | 14 +++++++------- js/lib/rdge/materials/water-material.js | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) (limited to 'js/lib/rdge') diff --git a/js/lib/rdge/materials/radial-blur-material.js b/js/lib/rdge/materials/radial-blur-material.js index 1f89f79e..2d26638b 100644 --- a/js/lib/rdge/materials/radial-blur-material.js +++ b/js/lib/rdge/materials/radial-blur-material.js @@ -176,22 +176,22 @@ var radialBlurMaterialDef = }; -var RaidersMaterial = function RaidersMaterial() { +var DarkBlurMaterial = function DarkBlurMaterial() { // initialize the inherited members this.inheritedFrom = RadialBlurMaterial; this.inheritedFrom(); - this._name = "Raiders"; - this._shaderName = "raiders"; + this._name = "Dark Blur"; + this._shaderName = "darkBlur"; - this._texMap = 'assets/images/raiders.png'; + this._texMap = 'assets/images/darkblur.png'; this._propValues[this._propNames[0]] = this._texMap.slice(0); // duplicate method required this.dup = function (world) { // allocate a new uber material - var newMat = new RaidersMaterial(); + var newMat = new DarkBlurMaterial(); // copy over the current values; var propNames = [], propValues = [], propTypes = [], propLabels = []; @@ -204,10 +204,10 @@ var RaidersMaterial = function RaidersMaterial() { }; } -RaidersMaterial.prototype = new Material(); +DarkBlurMaterial.prototype = new Material(); if (typeof exports === "object") { - exports.RaidersMaterial = RaidersMaterial; + exports.DarkBlurMaterial = DarkBlurMaterial; } diff --git a/js/lib/rdge/materials/water-material.js b/js/lib/rdge/materials/water-material.js index c7e7313c..9997244c 100644 --- a/js/lib/rdge/materials/water-material.js +++ b/js/lib/rdge/materials/water-material.js @@ -165,16 +165,16 @@ var waterMaterialDef = } }; -var ParisMaterial = function ParisMaterial() +var BlueSkyMaterial = function BlueSkyMaterial() { // initialize the inherited members this.inheritedFrom = WaterMaterial; this.inheritedFrom(); - this._name = "Paris"; - this._shaderName = "paris"; + this._name = "Blue Sky"; + this._shaderName = "blueSky"; - this._defaultTexMap = 'assets/images/paris.png'; + this._defaultTexMap = 'assets/images/bluesky.png'; this._propValues[this._propNames[0]] = this._defaultTexMap.slice(0); //this._diffuseColor = [0.5, 0.5, 0.5, 0.5]; @@ -191,7 +191,7 @@ var ParisMaterial = function ParisMaterial() this._shader.init(); // set up the material node - this._materialNode = RDGE.createMaterialNode("parisMaterial" + "_" + world.generateUniqueNodeID()); + this._materialNode = RDGE.createMaterialNode("blueSkyMaterial" + "_" + world.generateUniqueNodeID()); this._materialNode.setShader(this._shader); this._time = 0; @@ -206,9 +206,9 @@ var ParisMaterial = function ParisMaterial() } -ParisMaterial.prototype = new PulseMaterial(); +BlueSkyMaterial.prototype = new PulseMaterial(); if (typeof exports === "object") { - exports.ParisMaterial = ParisMaterial; + exports.BlueSkyMaterial = BlueSkyMaterial; } -- cgit v1.2.3 From e9d08c7af751d75af16371fcac06fd1af8a60fac Mon Sep 17 00:00:00 2001 From: hwc487 Date: Mon, 23 Jul 2012 14:37:51 -0700 Subject: Bugs fixed: 1915 - Data.JSON too large. Reduced mesh size and limited precision of fp numbers 1381 - Background transparency in preview. 1740 - File Save As caused WebGL to stop animating. Crossed RDGE IDs 1954 - Texture change from material popup broke screen rendering. Set correct context on property change. --- js/lib/rdge/materials/material.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js/lib/rdge') diff --git a/js/lib/rdge/materials/material.js b/js/lib/rdge/materials/material.js index e8571e9d..227a772a 100755 --- a/js/lib/rdge/materials/material.js +++ b/js/lib/rdge/materials/material.js @@ -263,6 +263,10 @@ var Material = function GLMaterial( world ) { var material = this._materialNode; if (material) technique = material.shaderProgram[this.getTechniqueName()]; + // make sure RDGE has the correct context + if (this.getWorld()) + RDGE.globals.engine.setContext( this.getWorld().getCanvas().rdgeid ); + if(prop === "gradient") { this.setGradientData(value); } else { -- cgit v1.2.3