Skip to content

Instantly share code, notes, and snippets.

@antonsem
antonsem / arproxy.shader
Last active April 3, 2024 20:54 — forked from StigOlavsen/arproxy.shader
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
{
@obscuren
obscuren / GlassShader.shader
Created October 25, 2018 11:55
A Unity3D Glass Shader
Shader "GridGames/GlassShader"
{
Properties {
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {}
_Colour ("Colour", Color) = (1,1,1,1)
_Bump ("Distortion", 2D) = "bump" {}
_Magnitude ("Magnitude", Range(0,1)) = 0.05
}
SubShader {
@IJEMIN
IJEMIN / ExportPackage.cs
Created December 3, 2017 10:08
Unity Export Package with Tag and Layers and Input Settings
// 단순 유니티 패키지 제작용 스크립트
using UnityEngine;
using System.Collections;
using UnityEditor;
public static class ExportPackage {
@Lyken17
Lyken17 / torch.sh
Last active January 9, 2021 10:23
Install torch and related utilities on ubuntu 16.04
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh
source ~/.zshrc
# update common package to latest
luarocks install torch
luarocks install nn
luarocks install graph
luarocks install cunn
@AdrianaVecc
AdrianaVecc / FlippingNormals.shader
Created April 19, 2017 01:00
A shader to invert a sphere's normals in Unity in order to see it from inside out. Useful to create a 360 video player
Shader "Flipping Normals" {
Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
}
SubShader {
Tags { "RenderType" = "Opaque" }
Cull Off