From ae7eb87564632ce7c676bd728b8ff2710ff0bb83 Mon Sep 17 00:00:00 2001 From: hwc487 Date: Wed, 18 Apr 2012 15:44:26 -0700 Subject: Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into Snapping_II Conflicts: js/tools/Rotate3DToolBase.js js/tools/RotateStage3DTool.js js/tools/Translate3DToolBase.js js/tools/modifier-tool-base.js --- js/lib/rdge/materials/cloud-material.js | 10 +++++++--- js/lib/rdge/materials/pulse-material.js | 5 +++-- js/lib/rdge/texture.js | 1 - 3 files changed, 10 insertions(+), 6 deletions(-) (limited to 'js') diff --git a/js/lib/rdge/materials/cloud-material.js b/js/lib/rdge/materials/cloud-material.js index 28796c42..4200c1b2 100644 --- a/js/lib/rdge/materials/cloud-material.js +++ b/js/lib/rdge/materials/cloud-material.js @@ -23,6 +23,8 @@ var CloudMaterial = function CloudMaterial() { this._shaderName = "cloud"; this._texMap = 'assets/images/cloud10.png'; + //this._texMap = 'assets/images/CL13.png'; + //this._texMap = 'assets/images/material_paint.png'; //this._texMap = 'assets/images/us_flag.png'; //this._texMap = 'assets/images/cubelight.png'; this._diffuseColor = [0.5, 0.5, 0.5, 0.5]; @@ -36,8 +38,10 @@ var CloudMaterial = function CloudMaterial() { // parameter initial values this._time = 0.0; this._surfaceAlpha = 0.5; - this._zmin = 2.0; - this._zmax = 5.0; +// this._zmin = 2.0; +// this._zmax = 5.0; + this._zmin = 5.0; + this._zmax = 10.0; // the adjusted zMin and zMax values are // what get sent to the shader. They are initialized @@ -211,7 +215,7 @@ var CloudMaterial = function CloudMaterial() { { if (this._srcWorld) { - this._srcWorld.update(); + //this._srcWorld.update(); this._srcWorld.draw(); g_Engine.setContext( this.getWorld()._canvas.rdgeid ); } diff --git a/js/lib/rdge/materials/pulse-material.js b/js/lib/rdge/materials/pulse-material.js index 9cb500c8..4ba5110e 100644 --- a/js/lib/rdge/materials/pulse-material.js +++ b/js/lib/rdge/materials/pulse-material.js @@ -25,8 +25,9 @@ var PulseMaterial = function PulseMaterial() this._name = "PulseMaterial"; this._shaderName = "pulse"; - //this._texMap = 'assets/images/cubelight.png'; - this._texMap = 'texture'; + this._texMap = 'assets/images/cubelight.png'; + //this._texMap = 'assets/images/cloud10.png'; + //this._texMap = 'texture'; this._time = 0.0; this._dTime = 0.01; diff --git a/js/lib/rdge/texture.js b/js/lib/rdge/texture.js index 628f22ba..e0bf3364 100644 --- a/js/lib/rdge/texture.js +++ b/js/lib/rdge/texture.js @@ -205,7 +205,6 @@ function Texture( dstWorld, texMapName, wrap, mips ) } var renderer = world.getRenderer(); - var imageData; var width = srcCanvas.width, height = srcCanvas.height; if (!this.isPowerOfTwo(width) || !this.isPowerOfTwo(height)) { -- cgit v1.2.3