     offsetY = $("#header").height()
     canvasX = event.clientX
     canvasY = event.clientY + offsetY
-    mouse2D.x = ( canvasX / MYTHREE.global.W ) * 2 - 1
-    mouse2D.y = - ( canvasY / MYTHREE.global.W ) * 2 + 1
+    mouse2D.x = ( canvasX / MYTHREE.const.W ) * 2 - 1
+    mouse2D.y = - ( canvasY / MYTHREE.const.W ) * 2 + 1
     #console.log("mouse X, Y", mouse2D.x, mouse2D.y); #-1.0 ~ 1.0 
     intersects = raycaster.intersectObjects( scene.children )
     if intersects.length > 0

window.MYTHREE = window.MYTHREE || {}

MYTHREE.W = window.innerWidth;
MYTHREE.H = window.innerHeight;

#グリッド線
MYTHREE.getGrid = ->

#レンダラー
MYTHREE.getRenderer = ->
  renderer = new THREE.CanvasRenderer;
  renderer.setSize(MYTHREE.const.W, MYTHREE.const.H)
  renderer

#平行光源
MYTHREE.getDirectionalLight = ->
  light = new THREE.DirectionalLight( 0xffffff, 3 ); 
  light

MYTHREE.global = {}
MYTHREE.global.voxels = {};
