Skip to content

Instantly share code, notes, and snippets.

@marns
marns / tf.py
Last active March 19, 2022 18:17
tf.py: World's thinnest Terraform wrapper
#!/usr/bin/env python3
#
# tf.py
# World's thinnest Terraform wrapper
# https://github.com/marns/tf.py
#
# Usage:
# 1. Create an alias to tf.py for your shell of choice (optional), e.g.:
# > echo "alias tf='./tf.py'" >> ~/.zshrc
# > source ~/.zshrc
@marns
marns / ARCameraBackgroundURP.cs
Last active February 9, 2021 21:10
ARCameraBackground with legacy renderer support stripped, + ARCameraBlur to blit camera frames to a texture and apply an optional blur / postprocess pass. Add ARCameraBackgroundURP to your camera instead of ARCameraBackground, and add ARCameraBlur with a RenderTexture. Draw that texture somewhere, e.g. on a Canvas image.
using System.Collections.Generic;
using UnityEngine.Serialization;
namespace UnityEngine.XR.ARFoundation
{
/// <summary>
/// ARCameraBackgroundURP without Legacy Renderer support.
///
/// <para>Add this component to a <c>Camera</c> to copy the color camera's texture onto the background.</para>
/// <para>If you are using the Lightweight Render Pipeline (version 5.7.2 or later) or the Univerisal Render