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
| //https://docs.unity3d.com/Manual/SL-UnityShaderVariables.html | |
| //https://github.com/TwoTailsGames/Unity-Built-in-Shaders/blob/master/CGIncludes/UnityCG.cginc - Most interesting stuff ;) | |
| //https://github.com/TwoTailsGames/Unity-Built-in-Shaders/tree/master/CGIncludes | |
| //https://docs.unity3d.com/Manual/SL-Shader.html | |
| //http://developer.download.nvidia.com/CgTutorial/cg_tutorial_appendix_e.html | |
| //https://unity3d.com/how-to/shader-profiling-and-optimization-tips | |
| //https://docs.unity3d.com/Manual/SL-UnityShaderVariables.html | |
| //http://www.deepskycolors.com/archive/2010/04/21/formulas-for-Photoshop-blending-modes.html | |
| //http://www.iquilezles.org/blog/ | |
| //https://www.youtube.com/channel/UCcAlTqd9zID6aNX3TzwxJXg |
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/ScreenFade" | |
| { | |
| Properties | |
| { | |
| //https://docs.unity3d.com/Manual/SL-Properties.html | |
| //[HideInInspector] | |
| //[NoScaleOffset] | |
| //[Normal] | |
| //[HDR] | |
| //[Gamma] |
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
| // ***************** | |
| // Types of Shaders: | |
| // * Surface Shader: | |
| // lit shaders that affect lighting of an object | |
| // * Unlit Shader: | |
| // vertex and fragment shader, control vertex properties | |
| // * Image Effect Shader: |
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 "Name" { | |
| Properties { | |
| _Name ("display name", Range (min, max)) = number | |
| _Name ("display name", Float) = number | |
| _Name ("display name", Int) = number | |
| _Name ("display name", Color) = (number,number,number,number) | |
| _Name ("display name", Vector) = (number,number,number,number) |
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 "Custom/StandardSurfaceShaderWithVertexColor" { | |
| Properties { | |
| _MainTint("Global Color Tint", Color) = (1,1,1,1) | |
| } | |
| SubShader { | |
| Tags { "RenderType"="Opaque" } | |
| LOD 200 | |
| CGPROGRAM | |
| #pragma surface surf Lambert vertex:vert |
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
| #ifndef __MATRIX_INCLUDED__ | |
| #define __MATRIX_INCLUDED__ | |
| #define IDENTITY_MATRIX float4x4(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1) | |
| float4x4 inverse(float4x4 m) { | |
| float n11 = m[0][0], n12 = m[1][0], n13 = m[2][0], n14 = m[3][0]; | |
| float n21 = m[0][1], n22 = m[1][1], n23 = m[2][1], n24 = m[3][1]; | |
| float n31 = m[0][2], n32 = m[1][2], n33 = m[2][2], n34 = m[3][2]; | |
| float n41 = m[0][3], n42 = m[1][3], n43 = m[2][3], n44 = m[3][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
| Shader "Test/SmoothZoomTexture" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| [KeywordEnum(Basic,Manual,Blend,Compare)]Mode("Mode", Int) = 0 | |
| _Blend("Blend", Range(0,1)) = 1 | |
| [Header(Mip Map)] | |
| _MipMapMin("MipMap Min", Int) = 4 |
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; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using UnityEngine; | |
| /// <summary> | |
| /// A simple free camera to be added to a Unity game object. | |
| /// | |
| /// Keys: |
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 TMPro; | |
| using UnityEngine; | |
| [RequireComponent(typeof(TextMeshProUGUI))] | |
| public class BuildDisplayer : MonoBehaviour | |
| { | |
| private TextMeshProUGUI Text; | |
| private void Awake() | |
| { |
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
| // source https://gist.github.com/Su-s/438be493ae692318c73e30367cbc5c2a | |
| using System; | |
| using System.IO; | |
| using System.IO.Compression; | |
| using System.Text; | |
| namespace TarLib | |
| { | |
| public class Tar |