Skip to content

Instantly share code, notes, and snippets.

View rogueyoshi's full-sized avatar
🕹️
Focusing

Al Murray rogueyoshi

🕹️
Focusing
View GitHub Profile
@rogueyoshi
rogueyoshi / startgg.css
Last active October 10, 2022 05:35
start.gg bracket isolation css
* {
visibility: collapse;
}
.bracket, .bracket * {
visibility: visible;
}
.bracket {
position: absolute;
@rogueyoshi
rogueyoshi / _headers
Last active June 18, 2021 17:17
Netlify headers file for Unity 2019 WebGL Builds with Brotli Compression and WASM Streaming
/*.unityweb
Content-Encoding: br
Content-Type: application/octet-stream
/*.wasm
Content-Encoding: br
Content-Type: application/wasm
@rogueyoshi
rogueyoshi / relocalize.cs
Last active August 28, 2020 00:02
ARFoundation Simple Re-Localization using only Tracked Images
// A simple way to create persistent AR experiences just from a single (or more) tracked image alone.
// After the image is found, ARFoundation SLAM works it's magic for position tracking.
// To use: Create your scene in Unity as you would for a normal project and place one or more objects corresponding to the sync point.
// This presumes you have a scene with objects in Unity space corresponding to where they would appear physically.
// Make sure that the objects in Unity space corresponding to the image targets has the same pose as it would in physical space.
// Requires an ARTrackedImageManagerComponent
private void OnTrackedImagesChanged(ARTrackedImagesChangedEventArgs imageEventArgs)
{
foreach (var updatedImage in imageEventArgs.updated)
{