Skip to content

Instantly share code, notes, and snippets.

Brush
Bubbles
Cel Vinyl
Chromatic Wave
Coarse Bristles
Comet
Concave Hull
Dance Floor
Diamond
Disco
draw.path: string jsonString
draw.text: string text
draw.svg: string pathString
brush.type: string brushId
brush.color.shift: Vector3 hsv
brush.color: string colorString
brush.size: float size
brush.enlarge: float size
brush.reduce: float size
camera.teleport: Vector3 translation
<html>
<head><meta charset='UTF-8'></head>
<body>
<label>Turn: <input id='turn' value='45'></label>
<label>Length: <input id='length' value='2'></label>
<label>Repeats: <input id='repeats' value='6'></label>
<button onclick='run();'>Run</button>
Bubbles has FloatProperties/_ScrollRate?: True
Bubbles has FloatProperties/_ScrollJitterIntensity?: True
Bubbles has FloatProperties/_ScrollJitterFrequency?: True
Bubbles has FloatProperties/_SpreadRate?: True
Bubbles has TextureProperties/_MainTex?: True
CelVinyl has FloatProperties/_Cutoff?: True
CelVinyl has ColorProperties/_Color?: True
CelVinyl has TextureProperties/_MainTex?: True
"FloatProperties":{
"_Bulge":2.25,
"_DisplacementAmount":1.45,
"_DisplacementExponent":2.84,
"_EmissionScroll1":15.0,
"_EmissionScroll2":-10.0,
"_FlameFadeMax":30.0,
"_FlameFadeMin":8.53,
"_Metallic":0.0,
"_NumSides":4.0,
Isohedral Tiling Wallpaper Group Tile
IH1 p1 Hexagon
IH2 pg Hexagon
IH3 pg Hexagon
IH4 p2 Hexagon
IH5 pgg Hexagon
IH6 pgg Hexagon
IH7 p3 Hexagon
IH8 p2 Hexagon
IH9 pgg Hexagon
@andybak
andybak / MaterialGradientDrawer.cs
Created March 8, 2021 08:47 — forked from totallyRonja/MaterialGradientDrawer.cs
A Material Property Drawer for the [Gradient] attribute which lets you edit gradients and adds them to the shader as textures. More information here: https://twitter.com/totallyRonja/status/1368704187580682240
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
using Object = UnityEngine.Object;
public class MaterialGradientDrawer : MaterialPropertyDrawer {
private static Dictionary<(int, string), Gradient> knownGradients = new Dictionary<(int, string), Gradient>();
// Standard shader with triplanar mapping
// https://github.com/keijiro/StandardTriplanar
Shader "Standard Triplanar Transparent"
{
Properties
{
_Color("", Color) = (1, 1, 1, 1)
_MainTex("", 2D) = "white" {}
using UnityEngine;
public class SetTrackOffsetPositionOnRelease : MonoBehaviour
{
public GameObject feet;
public Transform target;
void OnEnable()
{
MoveToTarget();
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Reflection;
using System.Text;
using TiltBrush;
using UnityEditor;
using UnityEngine;
using Valve.Newtonsoft.Json.Utilities;