Skip to content

Instantly share code, notes, and snippets.

@EIZENHORN91
EIZENHORN91 / AutohookAttribute.cs
Created April 7, 2019 15:41 — forked from LotteMakesStuff/AutohookAttribute.cs
[Autohook] property drawer for unity - Add this [Autohook] attribute to a property to and the inspector will automagically hook up a valid reference for you if it can find a component attached to the same game object that matches the field you put it on. You can watch a demo of this in action here https://youtu.be/faVt09NGzws <3
// NOTE DONT put in an editor folder!
using UnityEngine;
public class AutohookAttribute : PropertyAttribute
{
}
@EIZENHORN91
EIZENHORN91 / PhysicallyBasedExample.shader
Created October 12, 2018 07:41 — forked from phi-lira/PhysicallyBasedExample.shader
Physically Based Example shader that works with Lightweight Render Pipeline (LWRP) 4.X.X-preview
// When creating shaders for Lightweight Render Pipeline you can you the ShaderGraph which is super AWESOME!
// However, if you want to author shaders in shading language you can use this teamplate as a base.
// Please note, this shader does not match perfomance of the built-in LWRP Lit shader.
// This shader works with LWRP 4.X.X preview version
Shader "Lightweight Render Pipeline/4.0.0-preview/Physically Based Example"
{
Properties
{
// Specular vs Metallic workflow
[HideInInspector] _WorkflowMode("WorkflowMode", Float) = 1.0