       texture = new THREE.Texture( @assetHandler.getFile("texture")[i] )
       texture.needsUpdate = true
 
-      shaderUniforms["surface_#{i}.texture"] =      { type: "t", value: 0, texture: texture }
+      shaderUniforms["surface_#{i}.texture"] =      { type: "t", value: texture }
       shaderUniforms["surface_#{i}.threshold"] =    { type: "f", value: @surfaces[i].threshold }
       shaderUniforms["surface_#{i}.draw_surface"] = { type: "i", value: @surfaces[i].draw_surface }
       shaderUniforms["surface_#{i}.draw_map"] =     { type: "i", value: @surfaces[i].draw_map }

    @parameters.screenHeight = height

    @renderer.setSize( width, height )
    @camera.aspect = width / height
    @camera.updateProjectionMatrix()



    input = new Input.KeyboardNoLoop(
      #enable or disable surface
      "m" : => @surfaces[0].draw_surface = +!@surfaces[0].draw_surface
      "p" : => @surfaces[1].draw_surface = +!@surfaces[1].draw_surface

      # thresholds
      "," : => @surfaces[0].threshold
      "." : => @surfaces[0].threshold
      "[" : => @surfaces[1].threshold
      "]" : => @surfaces[1].threshold

      "t" :  ->

