This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _Example4 | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class MotionLogic : MonoBehaviour | |
{ | |
public float speed = 1.0f; | |
[Range(0.5f, 3.5f)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "BitShiftProductions/VoronoiMagic2" | |
{ | |
Properties | |
{ | |
} | |
SubShader | |
{ | |
Tags { "RenderType" = "Opaque" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "BitShiftProgrammer/DirectionalColour" | |
{ | |
Properties | |
{ | |
_Tex1 ("Texture 1", 2D) = "white" {} | |
_Tex2("Texture 2", 2D) = "white"{} | |
_Tex3("Texture 3", 2D) = "white"{} | |
} | |
SubShader | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "BitShiftProductions/Noises" | |
{ | |
Properties | |
{ | |
_MainTex("Texture", 2D)="white" | |
_NoiseScale("Noise Scale",Float) = 5.0 | |
_Strength("Noise Strength",Float) = 1.0 | |
} | |
SubShader | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "BitShiftProgrammer/AnimatedFish" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
_EffectRadius("Wave Effect Radius",Range(0.0,1.0)) = 0.5 | |
_WaveSpeed("Wave Speed", Range(0.0,100.0)) = 3.0 | |
_WaveHeight("Wave Height", Range(0.0,30.0)) = 5.0 | |
_WaveDensity("Wave Density", Range(0.0001,1.0)) = 0.007 | |
_Yoffset("Y Offset",Float) = 0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
public interface IUseMagic | |
{ | |
void UseMagic(); | |
} | |
public class MagicUser : IUseMagic | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
[RequireComponent(typeof(SkinnedMeshRenderer))] | |
public class AudioVisualizer : MonoBehaviour | |
{ | |
[Range(1.0f,4500.0f)] | |
public float multiplier; | |
public int minRange = 0; | |
public int maxRange = 64; | |
private SkinnedMeshRenderer skinnedMeshRenderer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class JarvisMarchConvexHull : MonoBehaviour | |
{ | |
public Transform[] points; | |
[Range(0.05f,1.5f)] | |
public float size; | |
public bool drawIt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class SurfaceImitator : MonoBehaviour | |
{ | |
public SurfaceGenerator reference; | |
public bool generateCollider = true; | |
private Mesh mesh; | |
private Vector3[] vertices; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class SurfaceGenerator : MonoBehaviour | |
{ | |
public bool generateContinuously = false; | |
public bool generateCollider = false; | |
[Range(0.1f,50.0f)] | |
public float yScaling = 5.0f; | |
[Range(0.1f,20.0f)] | |
public float detailScaling = 1.0f; |