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 UnityEngine; | |
using UnityEngine.Rendering; | |
using UnityEngine.Rendering.Universal; | |
public class TestRendererFeature : ScriptableRendererFeature | |
{ | |
private TestRenderPass testRenderPass; | |
public Material fogMaterial; | |
public Color fogColor; |
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 UnityEngine; | |
namespace AltShift.Productivity | |
{ | |
// Extracted from: https://www.december.com/html/spec/colorpercompact.html | |
public static class ExtendedColor | |
{ | |
public static Color _100_euro = new Color(0.53f, 0.78f, 0.49f); | |
public static Color _20_pound = new Color(0.64f, 0.4f, 0.51f); | |
public static Color _6_ball = new Color(0.11f, 0.39f, 0.33f); |
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; | |
namespace AltShift.Maths.Randomization | |
{ | |
// No-alloc version coded from Random source code | |
// https://referencesource.microsoft.com/#mscorlib/system/random.cs | |
public unsafe struct SeededRandomNumberGenerator | |
{ | |
private const int MSEED = 161803398; | |
private const int MZ = 0; |
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
Shader "Unlit/Screen Space Normals" | |
{ | |
Properties | |
{ | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Opaque" } | |
Pass |
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
#pragma kernel CSMain | |
RWTexture2D<float4> Result; | |
Texture2D<float4> InputTexture; | |
uint textureWidth; | |
uint textureHeight; | |
uint maxIteration; | |
[numthreads(8,8,1)] |
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
Shader "Crying Suns/Command Center Glass" | |
{ | |
Properties | |
{ | |
[PerRendererData] _MainTex ("Main Texture (ignored)", 2D) = "white" {} | |
[NoScaleOffset] _ReflectionTex ("Reflection Texture", 2D) = "black" {} | |
_ReflectionAlpha ("Reflection Alpha", Range(0, 1)) = 0.25 | |
_ReflectionScale ("Reflection Scale", Range(0, 1)) = 1 | |
[HideInInspector] _SunCenteredViewportPos ("Sun Centered Viewport Position", Vector) = (0, 0, 0, 0) | |
[HideInInspector] _SunAngle ("Sun Angle", Float) = 0 |
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 UnityEngine; | |
[RequireComponent(typeof(Camera))] | |
public class FogComponent : MonoBehaviour | |
{ | |
public Shader myFogShader; | |
public Color fogColor = Color.red; | |
private Material myFogMaterial; |
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
Shader "Animated Alpha" | |
{ | |
Properties | |
{ | |
[PerRendererData] _MainTex ("Texture", 2D) = "white" {} | |
_TargetColor ("Target Color", Color) = (1, 1, 1, 0) | |
_AlphaAttenuation ("Alpha Attenuation", Vector) = (0, 0.25, 0.75, 1) | |
} | |
SubShader |