Skip to content

Instantly share code, notes, and snippets.

View rob5300's full-sized avatar
๐Ÿ™ƒ
Trying out new things

Robert rob5300

๐Ÿ™ƒ
Trying out new things
View GitHub Profile
@rob5300
rob5300 / SortCosmeticFiles.py
Created August 29, 2021 12:23
Sort VMT, VTF and MDL/VVD/VTX files into seperate directories
import shutil
import os
import sys
here = os.path.dirname(__file__)
class SortingSet:
targetFolder = ""
matches = []
@rob5300
rob5300 / hologram.vfx
Last active November 2, 2022 20:30
Simple Hologram shader for S&Box
HEADER
{
CompileTargets = ( IS_SM_50 && ( PC || VULKAN ) );
Description = "Hologram Effect";
}
FEATURES
{
#include "common/features.hlsl"
@rob5300
rob5300 / pixelate_colour_dither.vfx
Created June 27, 2022 18:49
Retro Pixelation + Low Bit Colour + Dither Post Processing Effect for S&Box
HEADER
{
CompileTargets = ( IS_SM_50 && ( PC || VULKAN ) );
Description = "Retro Pixelation + Low Bit Colour + Dither Post Effect";
}
FEATURES
{
}
@rob5300
rob5300 / UniTaskDemo_CancellationToken.cs
Last active November 11, 2024 21:57
An example on using a Cancellation Token from a CancellationTokenSource to stop an async function in Unity. Uses UniTask.
using Cysharp.Threading.Tasks;
using System;
using System.Threading;
using UnityEngine;
public class UniTaskDemo_CancellationToken : MonoBehaviour
{
CancellationTokenSource animateTokenSource;
void Start()