Skip to content

Instantly share code, notes, and snippets.

@jamesarndt82
jamesarndt82 / Mesh2DLit.shader
Created April 22, 2026 13:01
Mesh2DLit is a modified version of Unity’s built-in Mesh2D-Lit-Default shader for the URP 2D Renderer. It enables 3D mesh geometry to participate fully in the 2D lighting pipeline, while adding vertex color tinting support for art-driven control.
Shader "Custom/Mesh2DLit"
{
Properties
{
_MainTex("Diffuse", 2D) = "white" {}
_MaskTex("Mask", 2D) = "white" {}
_NormalMap("Normal Map", 2D) = "bump" {}
_White("Tint", Color) = (1,1,1,1)
}
@jamesarndt82
jamesarndt82 / DoomGlow.cs
Created June 19, 2022 13:11 — forked from TiliSleepStealer/DoomGlow.cs
Doom glow - fake volumetric light glow effect in Unity by Tili_us
// This file is in the public domain. Where
// a public domain declaration is not recognized, you are granted
// a license to freely use, modify, and redistribute this file in
// any way you choose.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// Unity remake of a fake volumetric light glow effect
@jamesarndt82
jamesarndt82 / CubemapTextureBuilder.cs
Created October 13, 2021 17:52 — forked from RemyUnity/CubemapTextureBuilder.cs
Unity utility to convert 6 texture to a single cubemap texture
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.Linq;
using System.IO;
public class CubemapTextureBuilder : EditorWindow
{
[MenuItem("Tools/Cubemap Builder")]
@jamesarndt82
jamesarndt82 / TransparentBackgroundScreenshotRecorder.cs
Created March 4, 2019 13:40 — forked from bitbutter/TransparentBackgroundScreenshotRecorder.cs
Rendering screenshots from Unity3d with transparent backgrounds
using UnityEngine;
using System.Collections;
using System.IO;
/*
Usage:
1. Attach this script to your chosen camera's game object.
2. Set that camera's Clear Flags field to Solid Color.
3. Use the inspector to set frameRate and framesToCapture