Skip to content

Instantly share code, notes, and snippets.

View sterlingcrispin's full-sized avatar
🍃
every sound is a song

Sterling Crispin sterlingcrispin

🍃
every sound is a song
View GitHub Profile
@sterlingcrispin
sterlingcrispin / HLSL Minify
Last active March 18, 2023 15:58
ArtBlocks helpful files for artists
if you need to minifiy an HLSL shader
you can use this website
https://ctrl-alt-test.fr/minifier/?main
@sterlingcrispin
sterlingcrispin / gist:b4b7fc80ae784098cfb491ed597e5739
Created May 29, 2020 01:46 — forked from DuncanF/gist:353509dd397ea5f292fa52d1b9b5133d
Unity lockless (no GPU readback) marching cubes via Graphics.DrawProceduralIndirect - some slight faffing because compute shader must append full triangle (3 verts) at a time to render correctly, but this means the appendbuffer count is 3 times smaller than it needs to be, so we have to invoke a very short compute shader (FixupIndirectArgs) just…
MarchingCubesGPU.cs:
...
// DrawProceduralIndirect
ComputeBuffer argsBuffer;
[StructLayout(LayoutKind.Sequential)]
struct DrawCallArgBuffer
{
public const int size =
sizeof(int) +
sizeof(int) +
@sterlingcrispin
sterlingcrispin / Calvin_Bitcoin.svg
Created February 5, 2018 02:14
Calvin peeing on bitcoin and crypto
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.