Skip to content

Instantly share code, notes, and snippets.

@Voltes
Voltes / SobelFilter.shader
Created December 25, 2022 08:18 — forked from mattatz/SobelFilter.shader
Sobel filter shader for Unity.
Shader "Mattatz/SobelFilter" {
Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
_DeltaX ("Delta X", Float) = 0.01
_DeltaY ("Delta Y", Float) = 0.01
}
SubShader {
Tags { "RenderType"="Opaque" }
@Voltes
Voltes / FlowMap.shader
Created December 25, 2022 08:17 — forked from TarasOsiris/FlowMap.shader
Flow Map Shader for Unity3D. Used with Sprites.
Shader "Custom/Flow Map"
{
Properties
{
[PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {}
_Color ("Tint", Color) = (1,1,1,1)
// Flow
_FlowMap ("Flow Map", 2D) = "white" {}
_FlowSpeed ("Flow Speed", float) = 0.05
@Voltes
Voltes / MovingParticleContext.cs
Created December 25, 2022 07:53 — forked from totallyRonja/MovingParticleContext.cs
This script allows you to display movement of particle systems without them moving for tweaking them in the editor. This script is CC0, but I'd be happy if you credit me as Ronja(https://twitter.com/totallyRonja) and maybe give me some money for what I do (https://www.patreon.com/RonjaTutorials) (https://ko-fi.com/ronjatutorials)
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using UnityEngine;
using UnityEditor;
using UnityEditor.EditorTools;
// Tagging a class with the EditorTool attribute and no target type registers a global tool. Global tools are valid for any selection, and are accessible through the top left toolbar in the editor.
[EditorTool("Moving Particle Context")]
@Voltes
Voltes / GradientGraphic.cs
Created December 24, 2022 10:31 — forked from yasirkula/GradientGraphic.cs
Create 4-color gradient UI graphics in Unity
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Sprites;
using UnityEngine.UI;
#if UNITY_2017_4 || UNITY_2018_2_OR_NEWER
using UnityEngine.U2D;
#endif
using Sprites = UnityEngine.Sprites;
#if UNITY_EDITOR
@Voltes
Voltes / ColorGradient.shader
Created December 24, 2022 10:31 — forked from xeniaeo/ColorGradient.shader
ColorGradient shader
// Made with Amplify Shader Editor
// Available at the Unity Asset Store - http://u3d.as/y3X
Shader "Custom/ColorGradient"
{
Properties
{
_Color0("Color 0", Color) = (0,0,0,0)
_Color1("Color 1", Color) = (0,0,0,0)
_Gradient_Posistion("Gradient_Posistion", Float) = 0.03
_Gradient_Level("Gradient_Level", Range( 0 , 10)) = 0.92
@Voltes
Voltes / WavyImage.cs
Created January 3, 2022 20:02 — forked from yasirkula/WavyImage.cs
Create UI image with wave animation in Unity
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Sprites;
using UnityEngine.UI;
#if UNITY_2017_4 || UNITY_2018_2_OR_NEWER
using UnityEngine.U2D;
#endif
#if UNITY_EDITOR
using UnityEditor;
using UnityEngine;
using UnityEditor;
using System;
using System.Collections;
using System.Collections.Generic;
public class ColorToCSharp : EditorWindow
{
[SerializeField]
private bool _usedColorPickerOnce = false;
@Voltes
Voltes / List.md
Last active August 29, 2015 14:27 — forked from msurguy/List.md
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):