Skip to content

Instantly share code, notes, and snippets.

View ssell's full-sized avatar
🐢
🐢🐢🐢🐢🐢

Steven Sell ssell

🐢
🐢🐢🐢🐢🐢
View GitHub Profile
@ssell
ssell / VoxelGenerator.cs
Created July 3, 2023 16:04
Simple Unity Collider Voxelizer
using System.Collections.Generic;
using UnityEngine;
namespace VertexFragment
{
/// <summary>
/// Generates a list of voxel points for a given collider.
/// </summary>
public static class VoxelGenerator
{
@ssell
ssell / UnityFbxExport.py
Last active July 15, 2022 20:44
Blender to Unity FBX Export Settings
import bpy
op = bpy.context.active_operator
# Save to:
# C:\Program Files\Blender Foundation\Blender {version}\{version}\scripts\presets\operator\export_scene.fbx\
# Example:
# C:\Program Files\Blender Foundation\Blender 3.1\3.1\scripts\presets\operator\export_scene.fbx\UnityFbxExport.py
op.use_selection = True
op.use_active_collection = False
@ssell
ssell / gist:19cf1f96ac84be7f15545e6a0da5d741
Created March 27, 2019 16:59
List of Windows API Functions
_TrackMouseEvent
AbnormalTermination
AbortDoc
AbortPath
AbortPrinter
AbortProc
AbortSystemShutdown
AccessNtmsLibraryDoor
AcquireSRWLockExclusive
AcquireSRWLockShared
@ssell
ssell / main.cpp
Created December 17, 2018 23:00
C++ Logger Concept
#include <string>
#include <sstream>
#include <iostream>
enum LogLevel
{
Info = 0,
Debug,
Warning,
Error
@ssell
ssell / FrustumPlanes.cs
Last active January 17, 2022 05:36
Implementation of a Unity ECS instanced Sprite renderer with basic frustum culling.
using Unity.Mathematics;
using Unity.Rendering;
using UnityEngine;
namespace Realms
{
/// <summary>
/// Based on Unity.Rendering.FrustumPlanes since those aren't public for some reason.
/// </summary>
public struct FrustumPlanes