Skip to content

Instantly share code, notes, and snippets.

@Reedbeta
Reedbeta / cool-game-programming-blogs.opml
Last active May 5, 2024 18:07
List of cool blogs on game programming, graphics, theoretical physics, and other random stuff
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Graphics, Games, Programming, and Physics Blogs</title>
</head>
<body>
<outline text="Tech News" title="Tech News">
<outline type="rss" text="Ars Technica" title="Ars Technica" xmlUrl="http://feeds.arstechnica.com/arstechnica/index/" htmlUrl="https://arstechnica.com"/>
<outline type="rss" text="Polygon - Full" title="Polygon - Full" xmlUrl="http://www.polygon.com/rss/index.xml" htmlUrl="https://www.polygon.com/"/>
<outline type="rss" text="Road to VR" title="Road to VR" xmlUrl="http://www.roadtovr.com/feed" htmlUrl="https://www.roadtovr.com"/>
@rygorous
rygorous / gist:7348868
Created November 7, 2013 04:13
It's more fun to compute!
// compute weights
// this is just a packed LUT of the tap weights; phrasing it like this
// gives *much* better code than using a table.
uint lane = gl_LocalInvocationID.x;
int shift = int(min(lane, 7-lane)) * 8;
ivec2 weights = bitfieldExtract(ivec2(0x0e182434, 0x08040100), shift, 8);
weights = (lane < 4) ? weights.xy : weights.yx;