Hacker News new | ask | show | jobs
by tripzilch 61 days ago
> Who ever heard of a graphics technique that was only ever programmed once, and then used everywhere without substantial iteration?

while I agree with your general point, since you're asking, the table from Paul Bourke's marching cubes code comes to mind:

https://paulbourke.net/geometry/polygonise/

another one is the "fast hash" GLSL pseudo random number generator that everyone copies from Inigo Quilez:

    float rand(vec2 co){
        return fract(sin(dot(co, vec2(12.9898, 78.233))) * 43758.5453);
    }
despite those constants clearly being the result of some keyboard-bashing, they are copied far and wide :-)