Skip to content

Commit

Permalink
Ugly hack to work around bug #78 in kibit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rovanion committed Nov 9, 2016
1 parent 3cf0d6a commit 98a581c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/weather_magic/models.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
(defonce sphere
(-> (s/sphere 1)
(g/center)
(g/as-mesh {:mesh (glm/gl-mesh 4096 #{:uv :vnorm})
(g/as-mesh {:mesh (glm/gl-mesh 4096 (set '(:uv :vnorm)))
:res 32
:attribs {:uv (attr/supplied-attrib
:uv (fn [[u v]] (vec2 (- 1 u) v)))
:vnorm (fn [_ _ v _] (m/normalize v))}})))

(defonce plane
(-> (rect/rect 4 3)
(g/as-mesh {:mesh (glm/gl-mesh 4096 #{:uv :vnorm})
(g/as-mesh {:mesh (glm/gl-mesh 4096 (set '(:uv :vnorm)))
:res 32
:attribs {:uv (attr/supplied-attrib
:uv (fn [[u v]] (vec2 (- 1 u) v)))
Expand Down

0 comments on commit 98a581c

Please sign in to comment.