Skip to content

Instantly share code, notes, and snippets.

View arimger's full-sized avatar

Miłosz Matkowski arimger

View GitHub Profile
@arimger
arimger / Grid.shader
Last active September 16, 2022 03:22
Basic grid shader
Shader "Custom/Grid"
{
Properties
{
[PerRendererData]
_MainTex("Albedo (RGB)", 2D) = "white" {}
_LineColor("Line Color", Color) = (1,1,1,1)
_CellColor("Cell Color", Color) = (0,0,0,0)
@arimger
arimger / BrushPrefabDrawer.cs
Last active January 31, 2022 11:04
Simple tool to create objects on a specific layer in Unity
using UnityEditor;
using UnityEngine;
//NOTE: Editor-related scripts should be placed in an Editor folder
namespace Toolbox
{
[CustomPropertyDrawer(typeof(BrushPrefab))]
public class BrushPrefabDrawer : PropertyDrawer
{