Browse Source

Adds image child element support to the effect profile_COMMON element. In addition to the library_images top level element Textures can appear in library effects and referenced by a surface.

John Pywtorak 13 years ago
parent
commit
3873c3a9e9
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/extras/loaders/ColladaLoader.js

+ 6 - 0
src/extras/loaders/ColladaLoader.js

@@ -3226,6 +3226,12 @@ THREE.ColladaLoader = function () {
 					this.parseNewparam( child );
 					break;
 
+				case 'image':
+
+					var _image = ( new _Image() ).parse( child );
+					images[ _image.id ] = _image;
+					break;
+
 				case 'extra':
 					break;