I borrowed crt.hlsl from Hammster although I've tweaked it a little.
You need a terminal profile with something like this in it:
| // Tips for converting GLSL functions to Unity functions | |
| // vec turn into float (usually massive comand all replace works) | |
| // fract -> frac | |
| // mod -> modf | |
| // time, iTime, u_Time -> _Time.y | |
| float3 hsv2rgb(float3 c) { | |
| c = float3(c.x, clamp(c.yz, 0.0, 1.0)); | |
| float4 K = float4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0); |
| Shader "Custom/swirl" | |
| { | |
| 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 | |
| } | |
| SubShader |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class AlansBlendShapeClipVowels : MonoBehaviour | |
| { | |
| [Range(0f, 1f)] public float A; | |
| [Range(0f, 1f)] public float E; | |
| [Range(0f, 1f)] public float I; | |
| [Range(0f, 1f)] public float O; |
| using UnityEngine; | |
| using UnityEngine.InputSystem; | |
| //!!>> This script should NOT be placed in an "Editor" folder. Ideally placed in a "Plugins" folder. | |
| namespace Invertex.UnityInputExtensions.Interactions | |
| { | |
| /// https://gist.github.com/Invertex | |
| /// <summary> | |
| /// Custom Hold interaction for New Input System. | |
| /// With this, the .performed callback will be called everytime the Input System updates. |
| var path = Path.Combine(path, exe); | |
| ProcessStartInfo startInfo = new ProcessStartInfo(path); | |
| startInfo.Arguments =""; | |
| startInfo.UseShellExecute = false; | |
| System.Diagnostics.Process.Start(startInfo); | |
| // launch hidden or minimized | |
| var path = Path.Combine(path, exe); | |
| ProcessStartInfo startInfo = new ProcessStartInfo(path); | |
| startInfo.Arguments =""; |
| // i copied and pasted these functions from the sticker sheet | |
| // As t runs from 0 to 1 (our normalized palette index or domain), | |
| //the cosine oscilates c times with a phase of d. | |
| //The result is scaled and biased by a and b to meet the desired constrast and brightness. | |
| // http://www.iquilezles.org/www/articles/palettes/palettes.htm | |
| // to see this function graphed out go to: https://www.desmos.com/calculator/rz7abjujdj | |
| vec3 cosPalette( float t , vec3 brightness, vec3 contrast, vec3 osc, vec3 phase) | |
| { |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using Sirenix.OdinInspector; | |
| using System; | |
| public class Goaper : MonoBehaviour | |
| { | |
| [TitleGroup("Parameters")] | |
| [OnValueChanged("OnParameterChanged")] | |
| public List<Parameter> parameters = new List<Parameter>(); |
I borrowed crt.hlsl from Hammster although I've tweaked it a little.
You need a terminal profile with something like this in it:
| using namespace System.Management.Automation | |
| using namespace System.Management.Automation.Language | |
| if ($host.Name -eq 'ConsoleHost') | |
| { | |
| Import-Module PSReadLine | |
| } | |
| #Import-Module PSColors | |
| #Import-Module posh-git | |
| Import-Module -Name Terminal-Icons |
{ // This is the shader and a background with the monitor in it, because that's easy "experimental.pixelShaderPath": "C:\\Users\\Jaykul\\crt.hlsl", "backgroundImage": "C:\\Users\\Jaykul\\crt.png", "backgroundImageAlignment": "center",