Skip to content

Instantly share code, notes, and snippets.

View wackoisgod's full-sized avatar

Andrew Spiering wackoisgod

  • San Francisco
  • 08:30 (UTC -07:00)
View GitHub Profile
@regner
regner / BuildProject.xml
Last active June 26, 2025 22:42
A sample BuildGraph script for building, cooking, and packaging an Unreal project.
<?xml version='1.0' ?>
<!--
Why is this one giant script instead of a bunch of smaller scripts?
Mostly this comes down to BuildGraph and personal preference. As the language BuildGraph isn't
really much of a programming language there is no easy way to use an IDE and jump between
includes, find usages of variables, and just generally quickly search things. It was found to
be easier to have a single large file that a developer can quickly jump up and down in when
trying to understand what the BuildGraph script is doing.
@PranavSK
PranavSK / .gitattributes
Last active March 10, 2022 10:08 — forked from nemotoo/.gitattributes
.gitattributes for Unity3D with git-lfs
# Unity
*.cs diff=csharp text
*.cginc text
*.shader text
# Unity YAML
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
@BastienClement
BastienClement / gist:b34f14dd93381498a7a1
Created June 17, 2014 17:20
The CASC (Content Addressable Storage Container) Filesystem
---------------------------------------------------------------------
| The CASC (Content Addressable Storage Container) Filesystem |
| Warlords of Draenor Alpha, Build 6.0.1.18125 |
| Written April 14th, 2014 by Caali |
| Version 1.2 |
---------------------------------------------------------------------
Distribution and reproduction of this specification are allowed without
limitation, as long as it is not altered. Quotation in other works is
freely allowed, as long as the source and author of the quote are stated.
@coastwise
coastwise / gist:5951291
Created July 8, 2013 18:33
Compute horizontal field of view in Unity
float vFOVInRads = Camera.main.fieldOfView * Mathf.Deg2Rad;
float hFOVInRads = 2 * Mathf.Atan( Mathf.Tan(vFOVInRads / 2) * Camera.main.aspect);
float hFOV = hFOVInRads * Mathf.Rad2Deg;