View ToggleComponentAsset.cs
using UnityEngine;
using UnityEngine.Playables;
public class ToggleComponentAsset : PlayableAsset {
public ExposedReference<MonoBehaviour> Component;
public bool EnabledOnStart;
public bool EnabledOnEnd;
public override Playable CreatePlayable(PlayableGraph graph, GameObject owner) {
View orbital.preset
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!181963792 &2655988077585873504
Preset:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: orbital
m_TargetType:
m_NativeTypeID: 198
View Tetra.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExecuteInEditMode] . // Runs the code in the editor as well as in Play mode
[RequireComponent(typeof(MeshFilter), typeof(MeshRenderer))] . // Create the required components when you first add the script
public class Tetra : MonoBehaviour {
// Use this for initialization
void Start () {
View dups.txt
celebrating-birthday-isabelle', 'Celebrating the Birthday of Isabelle ', '', '',
'5th-captain-pugwash-charity-golf-day', '5th Captain Pugwash Charity Golf Day', '
'cake-bake', 'Cake Bake ', '', '', '', '2017-09-28', '', 0, NULL, '', '2017-10-02
'ball', 'Ball', '', '', '', '2018-10-27', '', 0, NULL, '', '2017-10-02 11:09:27',
'green-bows-made-and-sold-raise-awareness', 'Green Bows sold for Mito ', '', '',
'second-hand-book-corner', 'Second Hand Book Corner', '', '', '', '2017-10-06', '
'edinburgh-marathon-festival-full-marathon', 'Edinburgh Marathon Festival Full Ma
'2018-bath-half-marathon', '2018 Bath Half Marathon', '', '', '', '2018-03-04', '
'selling-gifts-warlingham-school', 'Selling Gifts at Warlingham School', '', '',
'school-music-concert', 'School Music Concert', '', '', '', '2017-11-24', '', 0,
View iq.hlsl
Shader "AAA Raymarching iq" {
Subshader {
Pass {
Cull off
CGPROGRAM
#pragma vertex vertex_shader
#pragma fragment pixel_shader
View spheres.cginc
inline float DistanceFunction(float3 pos)
{
float d1 = Sphere(Repeat(pos, 2), 1);
float d2 = Sphere(Repeat(pos + float3(1,1,1), 2), (_SinTime+1)/1.2);
return max(d1, -d2);
}
View polar.cginc
inline float DistanceFunction(float3 pos)
{
float t = myMod(_Time.x * 14, 360);
//pModMirror2(pos.xy, float2(t,t));
//pModMirror2(pos.xz, t);
pModPolar(pos.xz, t);
float box = Box(pos, float3(1,1,1));
float sphere = Sphere(pos - float3(1,1,1), 1);
float d = min(box,sphere);
float guard = -fBoxCheap(pos, float3(.25,.25,.25));
View menger.cginc
inline float DistanceFunction(float3 pos)
{
float t = myMod(_Time.x * 4, 4) + 1;
return MengerSponge(pos, t);
}
View weirdboxes.cginc
float fBoxCheap(float3 p, float3 b) { //cheap box
return vmax(abs(p) - b);
}
inline float fBox(float3 p, float3 b) {
float3 d = abs(p) - b;
return length(max(d, float3(0,0,0))) + vmax(min(d, float3(0,0,0)));
}
inline float DistanceFunction(float3 pos)
View fmod2.cginc
float fBoxCheap(float3 p, float3 b) { //cheap box
return vmax(abs(p) - b);
}
inline float fBox(float3 p, float3 b) {
float3 d = abs(p) - b;
return length(max(d, float3(0,0,0))) + vmax(min(d, float3(0,0,0)));
}
inline float DistanceFunction(float3 pos)