    :antialias true
    :resize true))
 
-(put! engine "Hi!")
-
-(defn on-js-reload []
-  (println "this is borked :c") 
+(defn on-js-reload [] 
   (put! engine [:new-scene scene]))

            [kushana.scene :refer [with-ids]]
            [cljs.core.async :refer [put!]])
  (:use-macros [kushana.scene :only [defscene]]))

(enable-console-print!)

(defscene scene
  (with-ids

      :name "ground1"
      :width 6
      :height 6
      :rotation [0 0 0]
      :subdivisions 2]
     [:camera/free
      :name "camera1"
      :set-target [0 0 0]
      :position [0 5 -10]
      :attach-control ["renderCanvas" true]]])
  (fn [scene-graph input]
    (if (= (first input) :new-scene)
      (second input)
      scene-graph))
  :clearColor [0.2 0.3 0.4])

(defonce engine
