-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
This isn't a bug. I'm trying to wrap my mind around webgl and play-cljc.
After rendering a few rectangles and triangles I'd thought I'd try to make a circle.
Reading up on how to do this most guides (example) recommend using the TRIANGLE_FAN primitive.
But it seems c/render is hard coded to use the TRIANGLES primitive
play-cljc/src/play_cljc/gl/core.cljc
Lines 341 to 344 in f2ed4eb
| (gl game drawElements (gl game TRIANGLES) draw-count type 0) | |
| (if instance-count | |
| (gl game drawArraysInstanced (gl game TRIANGLES) 0 draw-count instance-count) | |
| (gl game drawArrays (gl game TRIANGLES) 0 draw-count))))) |
Any tips would be appreciated.
Metadata
Metadata
Assignees
Labels
No labels