float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
return mix(rand(fl), rand(fl + 1.0), fc);
}
This file contains hidden or 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 hidden or 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
| //PIXELBOY BY @WTFMIG EAT A BUTT WORLD BAHAHAHAHA POOP MY PANTS | |
| // - edited by @Nothke to use screen height for #LOWREZJAM | |
| using UnityEngine; | |
| using System.Collections; | |
| [ExecuteInEditMode] | |
| [AddComponentMenu("Image Effects/PixelBoy")] | |
| public class PixelBoy : MonoBehaviour | |
| { | |
| public int h = 64; |
This file contains hidden or 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 "FX/PixelDot" | |
| { | |
| Properties | |
| { | |
| [NoScaleOffset] _MainTex ("Texture", 2D) = "white" {} | |
| _Color ("Color", Color) = (1, 1, 1, 1) | |
| _Size ("Pixel Size", Range(1, 64)) = 1 | |
| } | |
| SubShader | |
| { |
This file contains hidden or 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
| namespace JamesFrowen | |
| { | |
| public interface ISomeInterface | |
| { | |
| void SomeMethod(); | |
| } | |
| [System.Serializable] | |
| public class SomeInterfaceWrapper : InterfaceWrapper<ISomeInterface> | |
| { |
This file contains hidden or 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
| # Simulator for depth comparison error (i.e. z-fighting) | |
| # Nathan Reed, June 2015 | |
| # Written for Python 3.4; requires numpy | |
| import math | |
| import numpy as np | |
| import optparse | |
| # Parse command-line options | |
| parser = optparse.OptionParser() |
This file contains hidden or 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; | |
| using System.Collections.Concurrent; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Threading.Tasks; | |
| using UnityEditor; | |
| using UnityEditorInternal; | |
| using UnityEngine; | |
| namespace Naninovel |
This file contains hidden or 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
| const id = "kiriban-fuminige-kinshi"; | |
| const conversions = [ | |
| { unit: "K", rate: 1000 }, | |
| { unit: "M", rate: 1000000 }, | |
| { unit: "B", rate: 1000000000 }, | |
| { unit: "万", rate: 10000 }, | |
| ]; | |
| function run(target) { |
This file contains hidden or 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 "Universal Render Pipeline/2D/SimpleSpriteShader" | |
| { | |
| Properties | |
| { | |
| _MainTex("_MainTex", 2D) = "white" {} | |
| } | |
| HLSLINCLUDE | |
| #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl" |
This file contains hidden or 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; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using Object = UnityEngine.Object; | |
| namespace DancePadInput | |
| { | |
| public enum Player | |
| { | |
| Any, |