Skip to content

Instantly share code, notes, and snippets.

View z3y's full-sized avatar

z3y

View GitHub Profile
Shader "z3y/shader exam"
{
Properties
{
_Fresnel ("Fresnel", Float) = 5
_MainTex ("CGINCLUDE
#define RETURN(result) return (result);}
sampler2D _MainTex;
float4 _MainTex_ST;
fixed _Fresnel;
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &554534513086891066
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
#if UNITY_EDITOR
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
public class OutlineVertexColorPostProcessor : AssetPostprocessor
{
#if UNITY_EDITOR
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Unity.Burst;
using Unity.Collections;
using Unity.Jobs;
using UnityEditor;
@z3y
z3y / UdonFlight.cs
Last active June 9, 2025 21:37
U# Script for flying in VRChat
// Create a new U# Script named UdonFlight.cs, paste this and attach it to a game object
// doesn't work in CyanEmu
// double jump to enably fly mode
// E or Q to go up or down, in VR right joystick up or down
// Noclip objects are optional, it swaps layers to 17: Walkthrough and back
// if empty it's just normal fly mode
// Get all gameobjects will only find objects with colliders on layer 0 currently
// If there's more things you can collide with add them manually
// For UI you can attach a box collider on the canvas and turn on is trigger
// speed up build time removing unneeded postprocessing shaders, passes and keywords from vrchat worlds
#if UNITY_EDITOR
#if VRC_SDK_VRCSDK2 || VRC_SDK_VRCSDK3
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEditor.Build;
using UnityEditor.Rendering;
using UnityEngine;
using UnityEngine.Rendering;
// turn objects into a synced vrchat pickup with one click
// Right Click > Create Pickup
#if UNITY_EDITOR
#if VRC_SDK_VRCSDK3
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using VRC.SDK3.Components;
@z3y
z3y / config
Created July 13, 2020 21:23
i3wm config
#exec sudo mount -t ntfs /dev/sda1 /mnt/disk3
#exec sudo mount -t ntfs /dev/sdb1 /mnt/disk4
for_window [class="feh|Keepassx|mpv|Mumble|Pavucontrol|Steam"] floating enable
for_window [title="^Minecraft .*"] floating enable
for_window [title="Preferences$"] floating enable
for_window [title="Steam - Update News"] kill
for_window [window_role="^conversation$"] floating enable
RChat F keys (AnimatorOverrideController)
Shift + F1 - IDLE
Shift + F2 - FIST
Shift + F3 - HANDOPEN
Shift + F4 - FINGERPOINT
Shift + F5 - VICTORY
Shift + F6 - ROCKNROLL
Shift + F7 - HANDGUN
Shift + F8 - THUMBSUP
### Keybase proof
I hereby claim:
* I am z3y on github.
* I am z3y0 (https://keybase.io/z3y0) on keybase.
* I have a public key ASCDcEEd8V3siAmXbV93hkGjntfB2ArjqgwwQlP5MfmffQo
To claim this, I am signing this object: