Browse Source

Examples: Add comment for offscreen canvas example

Mugen87 7 years ago
parent
commit
c63211754f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      examples/worker/offscreenCanvas.js

+ 2 - 0
examples/worker/offscreenCanvas.js

@@ -18,6 +18,8 @@ function init( offscreen, width, height, pixelRatio ) {
 
 
 	clock = new THREE.Clock();
 	clock = new THREE.Clock();
 
 
+	// we don't use ImageLoader since it has a DOM dependecy (HTML5 image element)
+
 	var loader = new THREE.ImageBitmapLoader();
 	var loader = new THREE.ImageBitmapLoader();
 
 
 	loader.load( '../textures/crate.gif', function ( imageBitmap ) {
 	loader.load( '../textures/crate.gif', function ( imageBitmap ) {