Skip to content

Instantly share code, notes, and snippets.

View lunarcloud's full-sized avatar

Sam Sarette lunarcloud

View GitHub Profile
@lunarcloud
lunarcloud / UnityBuilderExample.cs
Last active February 25, 2022 00:24
Adds Build Menu Options in Unity (No Need to Swap Platform to build) - ensure inside an "Editor" folder.
using UnityEngine;
using UnityEditor;
using UnityEditor.Build.Reporting;
public class Builder
{
static readonly string appName = "ExampleApp";
static readonly string[] appLevels = new[] {
"Assets/Scene1.unity",
"Assets/SceneB.unity"
@lunarcloud
lunarcloud / anaglyph.shader
Last active April 21, 2022 20:29
Godot Anaglyph Shader
shader_type canvas_item;
render_mode unshaded; // TODO experiment with blend_disabled and mix with texture(SCREEN_TEXTURE, SCREEN_UV) ?
uniform float separation : hint_range(-25, 5) = 0.0;
uniform vec4 left_color : hint_color = vec4(0, 0, 1, 1);
uniform vec4 right_color : hint_color = vec4(1, 0, 0, 1);
const float s = 1000.0;
const vec3 greyscale = vec3(0.299, 0.587, 0.114)