Skip to content

Instantly share code, notes, and snippets.

@wikiti
wikiti / !FAB-CLAIM-README.md
Last active October 25, 2025 22:32
A script to automatically add all Quixel MegaScans items to your FAB account

Important

As per the beginning of 2025, Quixel assets are no longer free to claim, so this script is not useful anymore. Comments have been disabled due to this reason.

Note

This script was built for educational purposes. Due to how FAB APIs are built to handle search pagination, all assets might not be claimable through this script. With the last script update, a total of ~600 scanned pages, with ~14k assets. Please note that, by clicking on the "Claim All" quixel button, you'll already have claimed all assets for future free usage, beyond 2024 (official response). This script simply makes sure that assets are added to a library.

Script to add all quixel megascan items to your FAB account

As quixel megascan items will stop being free after 2024. So, this script will go through all Quixel MegaScan items and add them to your account. Quixel would be working on

@FleshMobProductions
FleshMobProductions / SpringMotion.cs
Last active September 9, 2024 09:35
Ryan Juckett's Code for Damped Springs (https://www.ryanjuckett.com/damped-springs/) implemented in C# using UnityEngine Mathf methods
using UnityEngine;
namespace FMPUtils.Extensions
{
public static class SpringMotion
{
// Reference video:
// https://www.youtube.com/watch?v=bFOAipGJGA0
// Instant "Game Feel" Tutorial - Secrets of Springs Explained (by Toyful Games)
// The channel LlamAcademy also made an adaption of the concept for Unity,
@herohiralal
herohiralal / EdgeDetection.shader
Created June 29, 2021 02:20
URP Sobel Edge Detection
Shader "Universal Render Pipeline/Post-Processing/EdgeDetection"
{
Properties
{
[Toggle(ENABLED)] __enabled("Enabled", Float) = 1
[MainTex] [HideInInspector] _MainTex ("Base Map", 2D) = "white" { }
[MainColor] _Color ("Color", Color) = (1, 1, 1, 1)
_Thickness ("Thickness", Float) = 0
@khadzhynov
khadzhynov / SkyboxCubemapHorizonHSV.shader
Created April 14, 2021 17:10
Cubemap shader with adjustable vertical Scale/Offset and HSV color controls.
/*
Cubemap shader with adjustable vertical Scale/Offset and HSV color controls.
Creation goal was to enable user to create several casually-looking skyboxes in different colors from single image, drawn in 2d editing software.
Features:
- Doesn't requires 6-sides cubemap, or spherical projection: texture can be easily drawn in any 2d image editing software;
- "V Offset" option allows to move horizon line up and down with ease;
- "V Scale" allows to stretch texture;
- Rotation feature sets horizontal offset (as in original shader).
- HSV controls allows to change colors.
@shivaduke28
shivaduke28 / URP_Normal.shader
Last active March 16, 2024 08:43
simple URP Lit shaders for learning
Shader "MyShader/URP_Normal"
{
Properties
{
[Header(Base Color)]
[MainTexture]_BaseMap("_BaseMap (Albedo)", 2D) = "white" {}
[HDR][MainColor]_BaseColor("_BaseColor", Color) = (1,1,1,1)
[Header(Normal)]
[MainTexture]_NormalMap("_NormalMap", 2D) = "white" {}
}
@scottgarner
scottgarner / WebSocketBridge.cs
Created April 18, 2019 04:59
Unity WebSocket Bridge using System.Net.WebSockets
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Net.WebSockets;
using UnityEngine;
@rngtm
rngtm / TriangleNode.cs
Last active August 24, 2025 22:39
正三角形タイルを出力するShaderGraphカスタムノード (Unity2021ver : https://gist.github.com/rngtm/2ce62f55c4e80bdf5570402bd4d66dc7)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor.ShaderGraph;
using System.Reflection;
[Title("Distance", "Triangle")]
public class TriangleNode : CodeFunctionNode
{
public TriangleNode()
using UnityEngine;
public class DistanceJoint3D : MonoBehaviour {
public Transform ConnectedRigidbody;
public bool DetermineDistanceOnStart = true;
public float Distance;
public float Spring = 0.1f;
public float Damper = 5f;
@jgonzosan
jgonzosan / Camera Shake
Last active January 10, 2021 00:46
This script can be used to add shake to a camera in Unity. This is useful for explosions or erratic movements of the camera that can either be sustained or short.
using UnityEngine;
using System.Collections;
public class Shake : MonoBehaviour
{
public float shakeDuration = 0f;
public float shakeAmount = 0.7f;
public float decreaseFactor = 1.0f;
public bool soloStart;
@ditzel
ditzel / KdTree.cs
Last active September 15, 2025 15:31
k-d Tree
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Profiling;
public class KdTree<T> : IEnumerable<T>, IEnumerable where T : Component
{
protected KdNode _root;
protected KdNode _last;