diff options
author | pommicket <pommicket@gmail.com> | 2023-08-28 11:50:57 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-08-28 11:50:57 -0400 |
commit | f4cc8ce7a8712e2e840b0c120a3f86eadb665626 (patch) | |
tree | 36f5ee546dce6395006decc50418ccf7505f4237 /guide-src/development/js-features.html | |
parent | f790b4e1baa5dfe1296cf0887011583bee7afca8 (diff) |
add, sub, div, more work on the guide
Diffstat (limited to 'guide-src/development/js-features.html')
-rw-r--r-- | guide-src/development/js-features.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/guide-src/development/js-features.html b/guide-src/development/js-features.html new file mode 100644 index 0000000..ea8ac97 --- /dev/null +++ b/guide-src/development/js-features.html @@ -0,0 +1,22 @@ +--- modern JavaScript features + +<p> +pugl has no dependencies, and i'd like to keep it that way. +</p> + +<p> +i've been pretty liberal about using modern javascript; +even though this could in theory run on IE it doesn't +(in particular it's very nice to have template literals). +that said, try to only use features that have at least as much +support as webgl2 (i.e. >94%). +</p> + +<p> +we use webgl2 because: +<ul> + <li>having non-constant loops in shaders is nice</li> + <li>there aren't that many browsers that support webgl and ES6 but not webgl2 (looking at caniuse.com, they probably + make up around 2% of browser usage)</li> +</ul> +</p> |