Skip to content

Instantly share code, notes, and snippets.

@andrewgotow
andrewgotow / reflist.cpp
Created January 16, 2026 23:06
Resource Linked List
#include <iostream>
#include <vector>
#include <algorithm>
struct Resource;
struct ListLink {
Resource* item;
unsigned slot;
bool used;
@andrewgotow
andrewgotow / A list thing.
Last active January 15, 2026 04:54
Resource Linked List
#include <iostream>
#include <vector>
#include <algorithm>
struct Resource;
struct ListLink {
Resource* ptr;
unsigned idx;
@andrewgotow
andrewgotow / simpleblur.shader
Last active February 22, 2019 17:18
Post-process shader for separable gaussian blur with linear sampling.
Shader "Postprocess/Simple Blur"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
}
SubShader
{
Tags { "RenderType"="Opaque" }
LOD 100
@andrewgotow
andrewgotow / IntersectionGlow.shader
Created September 11, 2016 16:52
Unity - Depth Intersection Shader
Shader "Unlit/Intersection Glow"
{
Properties
{
_Color ("Color", Color) = (1,0,0,1)
}
SubShader
{
Tags { "RenderType"="Transparent" "Queue"="Transparent" }
LOD 100