Skip to content

Instantly share code, notes, and snippets.

@Ooseykins
Ooseykins / DesktopCapture.cs
Last active September 10, 2021 10:32
Unity component to read uDesktopDuplication (or other) texture as single colour
using UnityEngine;
using System;
public class DesktopCapture : MonoBehaviour
{
[SerializeField]
uDesktopDuplication.Texture uddTexture;
public Light spotLight;
[Tooltip("Power of 2 to use for the texture size")]
@thallippoli
thallippoli / Pulse
Last active July 11, 2022 07:04
Pulsing shader in Unity
Shader "Custom/Glow" {
Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
_GlowColor ("Glow Color", Color ) = ( 1.0, 1.0, 1.0, 1.0 )
_Frequency( "Glow Frequency", Float ) = 1.0
_MinPulseVal( "Minimum Glow Multiplier", Range( 0, 1 ) ) = 0.5
}
SubShader {
Tags { "RenderType"="Opaque" }
LOD 200
@benstr
benstr / readme.md
Created January 31, 2014 22:11
Gist Markdown Cheatsheet

#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6


Paragraph