// https://www.pcg-random.org/
fn pcg(n: u32) -> u32 {
var h = n * 747796405u + 2891336453u;
h = ((h >> ((h >> 28u) + 4u)) ^ h) * 277803737u;
return (h >> 22u) ^ h;
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(((accru|spous)i|(adorn|align|amend|assay|b(eep|ray)|bawl|belay|bilk|bl(eat|eep|oop|urt)|braid|bruit|c(aulk|h(arm|aw|eep)|heat|hurn|oil)|caper|clack|clamp|cli(mb|nk)|croon|d(ec(ay|oy)|unk)|endow|flay|foray|frown|gait|gasp|gawp|glean|gr(asp|eet)|groom|hail|heist|hint|hoard|j(eer|ink)|kneel|l(isp|o(af|ot)|urk)|maim|maul|meld|moil|mump|oust|pl(ait|ead)|pr(ay|ey|ink)|prowl|quilt|r(aid|ant|eam|oam|olf)|scold|sculk|shark|shear|shirk|shout|skink|skirt|skulk|snook|snort|sorn|sp(ank|ew|urn)|spell|spiel|spo(ol|ut)|spray|stain|stint|stomp|stoo[kp]|str(ay|oy)|swarm|teem|tempt|thump|tout|trail|tweet|usurp|w(ank|oof)|waken|wreak|y(arn|awn|elp)|yearn|yowl)i|(batc|belc|ditc|fetc|filc|lurc|mooc|notc|shus|slas|wenc)hi|(chair|stunt)i|(clasp|learn)i|(codd|dabb)i|(embow|scalp)i|(hoax|nosh)i|(moan|scorn|thank)i|(perus|refut)i|(shew|strew)i|(slack|slick)i|(striv|thriv)i|abyi|admiri|adori|advisi|aidi|amassi|ampi|antei|argui|arisi|arousi|autoi|awardi|awi|bachi|baiti|bangi|banni|bargi|bathi|bayi|berimi|blanki|b | |
lari|blendi|blessi|blit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration for Alacritty, the GPU enhanced terminal emulator. | |
# Import additional configuration files | |
# | |
# Imports are loaded in order, skipping all missing files, with the importing | |
# file being loaded last. If a field is already present in a previous import, it | |
# will be replaced. | |
# | |
# All imports must either be absolute paths starting with `/`, or paths relative | |
# to the user's home directory starting with `~/`. |
- 2011 - A trip through the Graphics Pipeline 2011
- 2015 - Life of a triangle - NVIDIA's logical pipeline
- 2015 - Render Hell 2.0
- 2016 - How bad are small triangles on GPU and why?
- 2017 - GPU Performance for Game Artists
- 2019 - Understanding the anatomy of GPUs using Pokémon
- 2020 - GPU ARCHITECTURE RESOURCES
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Get the caret position in all cases | |
* | |
* @returns {object} left, top distance in pixels | |
*/ | |
getCaretTopPoint () { | |
const sel = document.getSelection() | |
const r = sel.getRangeAt(0) | |
let rect | |
let r2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define EPSILON 0.001 | |
precision mediump float; | |
uniform float time; | |
uniform vec2 resolution; | |
uniform vec2 mouse; | |
uniform sampler2D backbuffer; | |
vec2 uv2p(vec2 uv) {return ((uv*resolution) * 2. - resolution) / min(resolution.x, resolution.y);} | |
vec2 p2uv(vec2 p) {return ((p*min(resolution.x, resolution.y))+resolution)/(2.*resolution);} |
Gibber uses javascript.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<!-- npm install mathjs [email protected] --> | |
<script src='./node_modules/genish.js/dist/gen.lib.js'></script> | |
<script src='./node_modules/mathjs/dist/math.js'></script> | |
</head> | |
<body></body> | |
<script> | |
if( typeof OfflineAudioContext === 'undefined' ) window.OfflineAudioContext = webkitOfflineAudioContext |
NewerOlder