Skip to content

Commit

Permalink
[webgl] enable :tessellate & :fnormals opts for
Browse files Browse the repository at this point in the history
as-webgl-buffer-spec (for mesh types) by default
  • Loading branch information
postspectacular committed Jun 17, 2015
1 parent bdcec7a commit 1f447bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions geom-webgl/src/core.org
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,8 @@ using the protocol.
(extend-type thi.ng.geom.types.BasicMesh
PWebGLConvert
(as-webgl-buffer-spec
[_ {:keys [fnormals tessellate stride] :or {stride 3, fnormals true} :as spec}]
[_ {:keys [fnormals tessellate stride]
:or {fnormals true, tessellate true, stride 3} :as spec}]
(let [m (if tessellate (g/tessellate _) _)
faces (g/faces m)
num-faces (count faces)
Expand All @@ -660,7 +661,8 @@ using the protocol.
(extend-type thi.ng.geom.types.GMesh
PWebGLConvert
(as-webgl-buffer-spec
[_ {:keys [vnormals fnormals tessellate stride] :or {stride 3, fnormals true} :as spec}]
[_ {:keys [vnormals fnormals tessellate stride]
:or {fnormals true, tessellate true, stride 3} :as spec}]
(let [m (if tessellate (g/tessellate _) _)
faces (g/faces m)
num-faces (count faces)
Expand Down

0 comments on commit 1f447bc

Please sign in to comment.