Skip to content

Instantly share code, notes, and snippets.

View haxiomic's full-sized avatar
:octocat:
Everything is happening

George Corney haxiomic

:octocat:
Everything is happening
View GitHub Profile
@dwilliamson
dwilliamson / MarchingCubes.js
Last active September 26, 2025 12:53
Marching Cubes Lookup Tables
//
// Lookup Tables for Marching Cubes
//
// These tables differ from the original paper (Marching Cubes: A High Resolution 3D Surface Construction Algorithm)
//
// The co-ordinate system has the more convenient properties:
//
// i = cube index [0, 7]
// x = (i & 1) >> 0
// y = (i & 2) >> 1
@PiMaker
PiMaker / Phalanx.cs
Last active June 9, 2024 13:57
Avatar Phalanx - A way to upload multiple versions of a VRChat avatar with a single click
/*
Made by _pi_ in VRChat/@pimaker on GitHub
Usage:
* Make an empty GameObject
* "Add Component" a Phalanx
* Drop in your Avatar Descriptor
* Click "Get Data From Avatar"
* Get your Avatar ID from the pipeline component beneath the avatar descriptor
* Optionally: Set up a thumbnail and an overlay text to superimpose onto it dynamically
@sketchpunk
sketchpunk / arcball.js
Last active September 30, 2024 16:53
Maths for various camera movement ( Orbit, Arcball, FPS, Zoom, etc )
/** Using a faux sphere in screen space, determine the arc transform to orbit
* the camera around a target position. A continuous orientation will
* be provided for further calls.
*/
function arcBallTransform(
scrSize, // Screen size, vec2
scrPos0, // Starting mouse position, vec2
scrPos1, // Ending Mouse Positiong, vec2
rotOrientation, // Current arc orientation, quaternion
targetPos, // Position to orbit around
@MichaelMoroz
MichaelMoroz / BH.shader
Last active March 25, 2025 16:06
VR Schwarzschild black hole shader (works with SPS and SPS-I)
Shader "Misha/Schwartzschild"
{
Properties
{
[Header(Black Hole)]
_EventHorizonRadius("Event Horizon Radius", Range(0.0, 0.5)) = 0.075
[Header(Accretion)]
[HDR] _AccretionColor("Color", Color) = (1,1,1,1)