Skip to content

Instantly share code, notes, and snippets.

View zbagley's full-sized avatar

Zachary Bagley zbagley

View GitHub Profile
@tsubaki
tsubaki / SpawnObject.cs
Last active June 20, 2019 19:55
AR Foundation create object
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR.ARFoundation;
[RequireComponent(typeof(ARSessionOrigin))]
public class SpawnObject : MonoBehaviour {
private ARSessionOrigin origin;
private List<ARRaycastHit> hitResults = new List<ARRaycastHit>();
@StigOlavsen
StigOlavsen / arproxy.shader
Last active November 10, 2021 08:01
Unity shader for LWRP and AR Foundation, renders as transparent with occlusion and shadows. Put this on AR planes to get shadows and occlusion for 3D objects.
Shader "AR Proxy"
{
Properties
{
}
SubShader
{
Tags
{