Skip to content

Instantly share code, notes, and snippets.

@Forenard
Forenard / GrabPass.shader
Created November 28, 2023 07:40
VRChat Crasher Projector Shader Example
Shader "Custom/GrabPass"
{
SubShader
{
Tags { "Queue" = "Overlay" }
GrabPass
{
"_UVTenkaiGrabTex"
}
Pass
@Forenard
Forenard / LUT.shader
Last active November 15, 2023 21:43
FULLSCREEN LUT COLORGRADING SHADER FOR VRCHAT
Shader "SFX/LUT"
{
Properties
{
[NoScaleOffset]_LUTTex ("LUT Texture", 2D) = "white" { }
}
SubShader
{
Tags { "RenderType" = "Overlay" "Queue" = "Overlay" "ForceNoShadowCasting" = "True" "IgnoreProjector" = "True" "PreviewType" = "Plane" "DisableBatching" = "True" }
Cull Front
@Forenard
Forenard / TruchetTiling.glsl
Created August 11, 2023 13:59
TruchetTiling.glsl
#version 300 es
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif
out vec4 outColor;
@Forenard
Forenard / Uint4Copy.shader
Created June 29, 2023 19:58
Blitでuint4をそのままコピーするシェーダー
Shader "Unlit/Uint4Copy"
{
Properties
{
[NoScaleOffset] _MainTex ("Texture", 2D) = "white" { }
}
SubShader
{
Tags { "RenderType" = "Opaque" }
Pass
@Forenard
Forenard / POOL.glsl
Created May 14, 2023 09:57
POOL.glsl
precision highp float;
uniform vec2 resolution;
uniform vec2 mouse;
uniform float time;
uniform sampler2D backbuffer;
out vec4 outColor;
#define iChannel1 backbuffer
#define iResolution resolution
#define iTime time
@Forenard
Forenard / fix_bmp_gui.py
Created March 30, 2023 18:36
Audacityでbmpファイルにmisalignment glitchを起こす際に壊れたヘッダを修復するスクリプト
import tkinter as tk
from tkinterdnd2 import DND_FILES, TkinterDnD
class App(tk.Frame):
def __init__(self, master=None):
super().__init__(master)
self.create_widgets()
def create_widgets(self):
@Forenard
Forenard / TransparentWindow.cs
Created August 4, 2022 18:42
For Unity exe builds, make the specified background color transparent and display everything else on top.
/// こちらはオリジナルのソースコード
/// https://gist.github.com/wakagomo/fe74ec4a7b74f2e3299a7f2ecc359722
/// に追記したものです。
///
/// オリジナルとの違い:
/// - 0x00FF00が透過する
/// - 透過していない部分は常に最上面に表示されるが、透過した部分はそのままクリックできる
using System;
using System.Runtime.InteropServices;