Skip to content

Instantly share code, notes, and snippets.

View yCatDev's full-sized avatar
🎱
I just exist

Grebenuk Denis yCatDev

🎱
I just exist
View GitHub Profile
@yCatDev
yCatDev / UnlitTexture.shader
Last active September 29, 2021 17:59 — forked from phi-lira/UnlitTexture.shader
URP Unlit Color Fade example
Shader "Custom/UnlitTexture"
{
Properties
{
[MainColor] _BaseColor("BaseColor", Color) = (1,1,1,1)
[MainTexture] _BaseMap("BaseMap", 2D) = "white" {}
}
// Universal Render Pipeline subshader. If URP is installed this will be used.
SubShader
@yCatDev
yCatDev / Greyscale.cs
Created September 28, 2020 19:24 — forked from CptAsgard/Greyscale.cs
Unity Greyscale image effect
using UnityEngine;
using System.Collections;
public class Greyscale : MonoBehaviour {
public Material mat;
void Start() {
mat.SetFloat( "_Power", 0.0f );
}