This file contains hidden or 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 that changes width of every second pixel by shifting UVs. |
This file contains hidden or 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 "Unlit/WorldSpaceTextures" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Opaque" } | |
LOD 100 |
This file contains hidden or 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 "Unlit/BorderedDepthCube" | |
{ | |
Properties | |
{ | |
_Color("Colour", Color) = (1,1,1,1) | |
_BorderWidth("Border Width", float) = 0.03 | |
_BorderStrength("Border Strength", float) = 0.3 | |
} | |
SubShader | |
{ |
This file contains hidden or 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 "Stereoscopic/Stereo180Panorama_SideBySide" | |
{ | |
Properties{ | |
[NoScaleOffset] _MainTex("Texture", 2D) = "white" {} | |
} | |
SubShader{ | |
Pass{ | |
CGPROGRAM | |
#pragma vertex vert | |
#pragma fragment frag |
This file contains hidden or 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
# Adding Mesh Function | |
################################################# | |
import bpy | |
def add_mesh(name, verts, faces, edges=None, col_name="Collection"): | |
if edges is None: | |
edges = [] | |
mesh = bpy.data.meshes.new(name) | |
obj = bpy.data.objects.new(mesh.name, mesh) | |
col = bpy.data.collections.get(col_name) |
This file contains hidden or 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
//functions from here: | |
//http://www.chilliant.com/rgb2hsv.html | |
float3 HUEtoRGB(in float H) | |
{ | |
float R = abs(H * 6 - 3) - 1; | |
float G = 2 - abs(H * 6 - 2); | |
float B = 2 - abs(H * 6 - 4); | |
return saturate(float3(R, G, B)); | |
} |
This file contains hidden or 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 "Unlit/DrawLine" | |
{ | |
Properties | |
{ | |
_Color("Line Colour", Color) = (0.5,0.5,0.5,1) | |
_Width ("Line Width", float) = 2.0 | |
_FadeWidth("Fade Width", float) = 0.1 | |
} | |
SubShader | |
{ |
This file contains hidden or 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 "Unlit/SparkleMaterial" | |
{ | |
//this will display a texture centred at the 0.5,0.5 point in the uvs of the mesh but scaled and rotated to match the screen | |
//_ImageSize sets the size of the texture in pixels | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
_ImageSize("Image Size", float) = 30 | |
} | |
SubShader |
This file contains hidden or 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 "Skybox/SpaceWarp" | |
{ | |
Properties{ | |
_Color("Star Colour", Color) = (0.5,0.5,0.5,1) | |
_MidColor("Midground Colour", Color) = (0.5,0.5,0.5,1) | |
_BackColor("Background Colour", Color) = (0.5,0.5,0.5,1) | |
_FadeColor("Fade Colour", Color) = (0.5,0.5,0.5,1) | |
_GridSize("Grid Size", int) = 50 | |
_MinStarSize("Min Star Size", Range(0.0, 1.0)) = 0.1 | |
_MaxStarSize("Max Star Size", Range(0.0, 1.0)) = 0.3 |
This file contains hidden or 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 JokerTeleport : MonoBehaviour | |
{ | |
[SerializeField] | |
SkinnedMeshRenderer displayMesh; |
OlderNewer