Skip to content

Instantly share code, notes, and snippets.

@jean-moreno
jean-moreno / TextureCombiner.cs
Last active Jun 28, 2021
Texture Combiner utility for Unity: create an RGBA texture from 4 different input textures (note: place both files in an Editor folder)
View TextureCombiner.cs
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
public class TextureCombiner : EditorWindow
{
[MenuItem("Tools/Texture Combiner...")]
static void Open()
{
var w = GetWindow<TextureCombiner>(true, "Texture Combiner");
@jean-moreno
jean-moreno / pillar_shader.shader
Created Nov 3, 2017
Quick shader with animatable emission color based on a specific texture (red = mask, green = animation)
View pillar_shader.shader
Shader "Custom/pillar_shader"
{
Properties
{
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Glossiness ("Smoothness", Range(0,1)) = 0.5
_Metallic ("Metallic", Range(0,1)) = 0.0
[Space]
_EmissionTex ("Emission", 2D) = "white" {}