 
 'use strict' # just like JavaScript
 
-### WebGL ###
-#loader = new THREE.TextureLoader();
-#jsonLoader = new THREE.JSONLoader()
-[geometry, material, mesh] = [null,null,null]
+container = null
 
 ### `Main`
 

        @renderer.setSize(768,512)
        @renderer.setClearColor(0xFFFFFF,0)

    init: ->
        #jsonLoader.load("/rsc/3D/rocket.js", addModelToScene)
        geometry = new THREE.BoxGeometry(10,10,10)
        ###
        loader.load(
            '/rsc/rook-top.png'

                    { map: texture }))
        ###
        #texture = THREE.TextureLoader('/rsc/rook-top.png')
        sun_geo = new THREE.SphereGeometry(60,64,64)
        sun_mat = new THREE.MeshBasicMaterial(
            { map: THREE.ImageUtils.loadTexture(
                "/rsc/sketch/sun.png") } )
        @sun = new THREE.Mesh(sun_geo,sun_mat)
        @scene.add(@sun)
        light = new THREE.PointLight(0xFFFFFF,2,256)
        @scene.add(light)
        planet_geo = new THREE.SphereGeometry(16,16,16)
        planet_geo.applyMatrix(
            new THREE.Matrix4().makeTranslation(0,0,-150))
        planet_mat = new THREE.MeshLambertMaterial(
            { map: THREE.ImageUtils.loadTexture(
                "/rsc/sketch/planet.png") })
        @planet = new THREE.Mesh(planet_geo,planet_mat)
        @sun.add(@planet)
        #@planet.position.set(128,0,0)
        @scene.add(@planet)
        @camera.position.z = 256
        container = document.getElementById("CoffeeSketch")
        container.appendChild(@renderer.domElement)
        #floor_albedo = new THREE.
        #ImageUtils.loadTexture('/rsc/rook-top.png')

    update: ->
        #controls.update()

    ### `Main.render`

