This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Alternative version of an existing TF2 shading implementation that applies tints to a texture's alpha channel | |
// Allows for adding "paint" to hats that support the feature | |
// $blendtintbybasealpha is always assumed to be 1 for performance purposes. Do use the original shader for unpainted items | |
// Original: https://forum.unity.com/threads/team-fortress-2-toon-shader-in-unity-free-version.93194/ | |
Shader "Toon/Team Fortress 2 - Painted" { | |
Properties{ | |
_Paint("Paint", Color) = (1, 1, 1, 1) | |
_RimColor("Rim Color", Color) = (0.97,0.88,1,0.75) | |
_RimPower("Rim Power", Float) = 2.5 | |
_MainTex("Diffuse (RGB) Alpha (A)", 2D) = "white" {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using UnityEngine; | |
public class PositionListTool : MonoBehaviour | |
{ | |
[SerializeField] | |
List<Vector3> positions = new List<Vector3>(); | |
public List<Vector3> GetPositions() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEditor; | |
using UnityEngine; | |
namespace MWU.Shared.Utilities | |
{ | |
/// <summary> | |
/// Adds 'Create Empty at Root' shortcut for the GameObject / right-click context menu to create an empty gameobject at 0,0,0 | |
/// Original can be found here: https://gist.github.com/gekidoslair/359535dd108ce3dfac6b564ad37e42fe | |
/// </summary> | |
public class CreateEmptyAtRoot : MonoBehaviour |