-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathREADME
30 lines (22 loc) · 832 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# subsurf.js
GPU/WebGL subdivision surface rendering library. It works by subdividing an input mesh
once, decomposing it into bicubic patches, which it evaluates on the GPU. It does
this by packing the patch parameters into a texture, then rendering each patch
via (a single) vertex array of 2D u,v points.
Right now, the "library" is more of a demo, as I'm unsure what sort of API
would be best.
Contributors welcome.
This project is public domain, except for the following files:
scripts/vectormath.js
scripts/draw.js
scripts/math.js
scripts/require.js
. . . which make use of code from an Apple WebGL demo, as well as require.js.
The rest of the files are public domain:
scripts/patch.js
scripts/subdiv.js
scripts/mesh.js
scripts/polyfil.js
scripts/screen.js
scripts/modaltool.js
scripts/app.js