(perspective-camera-3d-example game)

Example

(dotimes [i num-fs] (let [angle (/ (* i PI 2) num-fs) x (* (cos angle) radius) z (* (sin angle) radius)] (play-cljc.gl.core/render game (play-cljc.transforms/translate entity x 0 z))))

Source

(defn perspective-camera-3d-example [game] (gl game enable (gl game CULL_FACE)) (gl game enable (gl game DEPTH_TEST)) (let [entity (f-entity game (transform-f-data data/f-3d)) *state (atom {:cr 0})] (eu/listen-for-mouse game *state) (assoc game :entity entity :*state *state)))