├── .gitignore ├── Assets ├── Demo.unity ├── Demo.unity.meta ├── Material.meta ├── Material │ ├── FlipBookMat.mat │ └── FlipBookMat.mat.meta ├── Script.meta ├── Script │ ├── FlipBook.cs │ └── FlipBook.cs.meta ├── Shader.meta ├── Shader │ ├── FlipBookShader.shader │ └── FlipBookShader.shader.meta ├── Texture.meta └── Texture │ ├── Page1.jpg │ ├── Page1.jpg.meta │ ├── Page2.png │ ├── Page2.png.meta │ ├── Page3.png │ └── Page3.png.meta ├── LICENSE ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset └── UnityConnectSettings.asset └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | /[Ll]ibrary/ 2 | /[Tt]emp/ 3 | /[Oo]bj/ 4 | /[Bb]uild/ 5 | /[Bb]uilds/ 6 | /Assets/AssetStoreTools* 7 | 8 | # Visual Studio 2015 cache directory 9 | /.vs/ 10 | 11 | # Autogenerated VS/MD/Consulo solution and project files 12 | ExportedObj/ 13 | .consulo/ 14 | *.csproj 15 | *.unityproj 16 | *.sln 17 | *.suo 18 | *.tmp 19 | *.user 20 | *.userprefs 21 | *.pidb 22 | *.booproj 23 | *.svd 24 | *.pdb 25 | 26 | # Unity3D generated meta files 27 | *.pidb.meta 28 | 29 | # Unity3D Generated File On Crash Reports 30 | sysinfo.txt 31 | 32 | # Builds 33 | *.apk 34 | *.unitypackage 35 | -------------------------------------------------------------------------------- /Assets/Demo.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenjd/Unity-Flip-Book-With-Shader/5fd328d06eb9f6b1620fb797a41d201123155852/Assets/Demo.unity -------------------------------------------------------------------------------- /Assets/Demo.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dcabfab3efa8ff043b12dcefd7be5a0e 3 | timeCreated: 1503761618 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Material.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 899453adada8e9045ba947f7edafcb30 3 | folderAsset: yes 4 | timeCreated: 1503752547 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Material/FlipBookMat.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenjd/Unity-Flip-Book-With-Shader/5fd328d06eb9f6b1620fb797a41d201123155852/Assets/Material/FlipBookMat.mat -------------------------------------------------------------------------------- /Assets/Material/FlipBookMat.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fbd37a4f0cbfcd7439a061b4811c817b 3 | timeCreated: 1503819883 4 | licenseType: Free 5 | NativeFormatImporter: 6 | mainObjectFileID: 2100000 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Script.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3418bffb5585bb647aa4667b3770a866 3 | folderAsset: yes 4 | timeCreated: 1503752525 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Script/FlipBook.cs: -------------------------------------------------------------------------------- 1 | // 2 | // created by jiadong chen 3 | // http://www.chenjd.me 4 | // 5 | 6 | using System.Collections; 7 | using System.Collections.Generic; 8 | using UnityEngine; 9 | using UnityEngine.EventSystems; 10 | 11 | public class FlipBook : MonoBehaviour, IDragHandler, IPointerDownHandler, IPointerUpHandler 12 | { 13 | 14 | #region 字段 15 | 16 | public List pages = new List(); 17 | 18 | private int curPageIndex; 19 | private float curPageAngle; 20 | private float totalPageAngle; 21 | 22 | private Texture frontTex; 23 | private Texture backTex; 24 | private bool isFliping; 25 | private Material mat; 26 | 27 | 28 | #endregion 29 | 30 | 31 | #region 方法 32 | 33 | public void Start() 34 | { 35 | StartCoroutine(Gravity()); 36 | this.mat = this.GetComponent().sharedMaterial; 37 | } 38 | 39 | public void OnPointerDown(PointerEventData eventData) 40 | { 41 | this.isFliping = true; 42 | } 43 | 44 | public void OnDrag(PointerEventData eventData) 45 | { 46 | this.totalPageAngle = this.totalPageAngle - eventData.delta.x * 0.005f; 47 | this.curPageIndex = (int)Mathf.Floor(this.totalPageAngle); 48 | } 49 | 50 | public void OnPointerUp(PointerEventData eventData) 51 | { 52 | this.isFliping = false; 53 | } 54 | 55 | void Update() 56 | { 57 | if(this.pages.Count == 0) 58 | { 59 | return; 60 | } 61 | this.frontTex = this.pages[this.curPageIndex % this.pages.Count]; 62 | this.backTex = this.pages[(this.curPageIndex + 1) % this.pages.Count]; 63 | 64 | this.mat.SetFloat("_CurPageAngle", this.totalPageAngle - this.curPageIndex); 65 | this.mat.SetTexture("_MainTex", this.frontTex); 66 | this.mat.SetTexture("_BackTex", this.backTex); 67 | } 68 | 69 | 70 | private IEnumerator Gravity() 71 | { 72 | 73 | while (!this.isFliping) { 74 | int targetPageIndex = this.totalPageAngle - this.curPageIndex > 0.5f ? this.curPageIndex + 1 : this.curPageIndex; 75 | 76 | this.totalPageAngle = Mathf.Lerp (this.totalPageAngle, targetPageIndex, 0.03f); 77 | 78 | if (Mathf.Abs (this.totalPageAngle - targetPageIndex) < 0.001f) 79 | { 80 | this.totalPageAngle = targetPageIndex; 81 | this.curPageIndex = targetPageIndex; 82 | break; 83 | } 84 | yield return null; 85 | } 86 | 87 | this.isFliping = true; 88 | 89 | yield return null; 90 | 91 | StartCoroutine (Gravity()); 92 | } 93 | 94 | 95 | #endregion 96 | 97 | } 98 | -------------------------------------------------------------------------------- /Assets/Script/FlipBook.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 641c01e8e51d1aa4db5ece49cc4fd355 3 | timeCreated: 1503752592 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 03649baa11083754eb17f5040468c1b9 3 | folderAsset: yes 4 | timeCreated: 1503752531 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Shader/FlipBookShader.shader: -------------------------------------------------------------------------------- 1 | // 2 | // created by jiadong chen 3 | // http://www.chenjd.me 4 | // 5 | 6 | Shader "chenjd/FlipBookShader" 7 | { 8 | Properties 9 | { 10 | _MainTex ("Texture", 2D) = "white" {} 11 | _BackTex ("BackPage", 2D) = "white" {} 12 | _CurPageAngle ("CurPageAngle", Range(0,1)) = 0 13 | } 14 | 15 | SubShader 16 | { 17 | 18 | Tags { "RenderType"="Opaque" } 19 | LOD 100 20 | 21 | CGINCLUDE 22 | 23 | #include "UnityCG.cginc" 24 | #define pi 3.1415926 25 | 26 | sampler2D _MainTex; 27 | float4 _MainTex_ST; 28 | 29 | sampler2D _BackTex; 30 | float4 _BackTex_ST; 31 | 32 | float _CurPageAngle; 33 | 34 | struct appdata 35 | { 36 | float4 vertex : POSITION; 37 | float2 uv : TEXCOORD0; 38 | }; 39 | 40 | struct v2f 41 | { 42 | float2 uv : TEXCOORD0; 43 | UNITY_FOG_COORDS(1) 44 | float4 vertex : SV_POSITION; 45 | }; 46 | 47 | 48 | float4 flip_book(float4 vertex) 49 | { 50 | float4 temp = vertex; 51 | 52 | float theta = _CurPageAngle * pi; 53 | 54 | float flipCurve = exp(-0.1 * pow(vertex.x - 0.5, 2)) * _CurPageAngle; 55 | 56 | theta += flipCurve; 57 | 58 | temp.x = vertex.x * cos(clamp(theta, 0, pi)); 59 | temp.y = vertex.x * sin(clamp(theta, 0, pi)); 60 | 61 | vertex = temp; 62 | 63 | return vertex; 64 | } 65 | 66 | v2f vert_flip (appdata v) 67 | { 68 | v2f o; 69 | o.uv = TRANSFORM_TEX(v.uv, _MainTex); 70 | o.uv.xy = 1 - o.uv.xy; 71 | 72 | float4 vertex = o.uv.x <= 0.5 ? v.vertex : flip_book(v.vertex); 73 | o.vertex = UnityObjectToClipPos(vertex); 74 | 75 | return o; 76 | } 77 | 78 | v2f vert_next_page(appdata v) 79 | { 80 | v2f o; 81 | o.uv = TRANSFORM_TEX(v.uv, _MainTex); 82 | o.uv.y = 1 - o.uv.y; 83 | 84 | o.vertex = UnityObjectToClipPos(v.vertex); 85 | 86 | return o; 87 | } 88 | 89 | fixed4 frag_flip (v2f i) : SV_Target 90 | { 91 | fixed4 col = tex2D(_MainTex, i.uv); 92 | UNITY_APPLY_FOG(i.fogCoord, col); 93 | return col; 94 | } 95 | 96 | fixed4 frag_flip_back (v2f i) : SV_Target 97 | { 98 | i.uv.x = 1 - i.uv.x; 99 | fixed4 col = tex2D(_BackTex, i.uv); 100 | return col; 101 | } 102 | 103 | ENDCG 104 | 105 | 106 | //用3个pass来实现翻书的效果 107 | //第一页 108 | Pass 109 | { 110 | Cull Back 111 | 112 | CGPROGRAM 113 | #pragma vertex vert_flip 114 | #pragma fragment frag_flip 115 | 116 | ENDCG 117 | } 118 | 119 | //翻起来的背面 120 | Pass 121 | { 122 | Cull Front 123 | Offset -1, -1 124 | 125 | CGPROGRAM 126 | #pragma vertex vert_flip 127 | #pragma fragment frag_flip_back 128 | ENDCG 129 | } 130 | 131 | //第二页 132 | Pass 133 | { 134 | Cull Back 135 | Offset 1, 1 136 | 137 | CGPROGRAM 138 | 139 | #pragma vertex vert_next_page 140 | #pragma fragment frag_flip_back 141 | 142 | ENDCG 143 | } 144 | 145 | } 146 | } 147 | -------------------------------------------------------------------------------- /Assets/Shader/FlipBookShader.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ab50a8ebea3aea64cadd7bb35e55e731 3 | timeCreated: 1503800756 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Texture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3d4214aac201fd44aa83c9e5c19b5ca9 3 | folderAsset: yes 4 | timeCreated: 1503752555 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Texture/Page1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenjd/Unity-Flip-Book-With-Shader/5fd328d06eb9f6b1620fb797a41d201123155852/Assets/Texture/Page1.jpg -------------------------------------------------------------------------------- /Assets/Texture/Page1.jpg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bbaa4aa4e1bb91a4daeb3b5672373b71 3 | timeCreated: 1503822498 4 | licenseType: Free 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 4 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 1 11 | sRGBTexture: 1 12 | linearTexture: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 6 25 | cubemapConvolution: 0 26 | seamlessCubemap: 0 27 | textureFormat: 1 28 | maxTextureSize: 2048 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | compressionQuality: 50 37 | spriteMode: 0 38 | spriteExtrude: 1 39 | spriteMeshType: 1 40 | alignment: 0 41 | spritePivot: {x: 0.5, y: 0.5} 42 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 43 | spritePixelsToUnits: 100 44 | alphaUsage: 1 45 | alphaIsTransparency: 0 46 | spriteTessellationDetail: -1 47 | textureType: 0 48 | textureShape: 1 49 | maxTextureSizeSet: 0 50 | compressionQualitySet: 0 51 | textureFormatSet: 0 52 | platformSettings: 53 | - buildTarget: DefaultTexturePlatform 54 | maxTextureSize: 2048 55 | textureFormat: -1 56 | textureCompression: 1 57 | compressionQuality: 50 58 | crunchedCompression: 0 59 | allowsAlphaSplitting: 0 60 | overridden: 0 61 | spriteSheet: 62 | serializedVersion: 2 63 | sprites: [] 64 | outline: [] 65 | spritePackingTag: 66 | userData: 67 | assetBundleName: 68 | assetBundleVariant: 69 | -------------------------------------------------------------------------------- /Assets/Texture/Page2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenjd/Unity-Flip-Book-With-Shader/5fd328d06eb9f6b1620fb797a41d201123155852/Assets/Texture/Page2.png -------------------------------------------------------------------------------- /Assets/Texture/Page2.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3798b7c5942523e44abf44282623cd6c 3 | timeCreated: 1503822497 4 | licenseType: Free 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 4 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 1 11 | sRGBTexture: 1 12 | linearTexture: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 6 25 | cubemapConvolution: 0 26 | seamlessCubemap: 0 27 | textureFormat: 1 28 | maxTextureSize: 2048 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | compressionQuality: 50 37 | spriteMode: 0 38 | spriteExtrude: 1 39 | spriteMeshType: 1 40 | alignment: 0 41 | spritePivot: {x: 0.5, y: 0.5} 42 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 43 | spritePixelsToUnits: 100 44 | alphaUsage: 1 45 | alphaIsTransparency: 0 46 | spriteTessellationDetail: -1 47 | textureType: 0 48 | textureShape: 1 49 | maxTextureSizeSet: 0 50 | compressionQualitySet: 0 51 | textureFormatSet: 0 52 | platformSettings: 53 | - buildTarget: DefaultTexturePlatform 54 | maxTextureSize: 2048 55 | textureFormat: -1 56 | textureCompression: 1 57 | compressionQuality: 50 58 | crunchedCompression: 0 59 | allowsAlphaSplitting: 0 60 | overridden: 0 61 | spriteSheet: 62 | serializedVersion: 2 63 | sprites: [] 64 | outline: [] 65 | spritePackingTag: 66 | userData: 67 | assetBundleName: 68 | assetBundleVariant: 69 | -------------------------------------------------------------------------------- /Assets/Texture/Page3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenjd/Unity-Flip-Book-With-Shader/5fd328d06eb9f6b1620fb797a41d201123155852/Assets/Texture/Page3.png -------------------------------------------------------------------------------- /Assets/Texture/Page3.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d84879c4aa81e334f9081d89f7eeef14 3 | timeCreated: 1503822498 4 | licenseType: Free 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 4 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 1 11 | sRGBTexture: 1 12 | linearTexture: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 6 25 | cubemapConvolution: 0 26 | seamlessCubemap: 0 27 | textureFormat: 1 28 | maxTextureSize: 2048 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | compressionQuality: 50 37 | spriteMode: 0 38 | spriteExtrude: 1 39 | spriteMeshType: 1 40 | alignment: 0 41 | spritePivot: {x: 0.5, y: 0.5} 42 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 43 | spritePixelsToUnits: 100 44 | alphaUsage: 1 45 | alphaIsTransparency: 0 46 | spriteTessellationDetail: -1 47 | textureType: 0 48 | textureShape: 1 49 | maxTextureSizeSet: 0 50 | compressionQualitySet: 0 51 | textureFormatSet: 0 52 | platformSettings: 53 | - buildTarget: DefaultTexturePlatform 54 | maxTextureSize: 2048 55 | textureFormat: -1 56 | textureCompression: 1 57 | compressionQuality: 50 58 | crunchedCompression: 0 59 | allowsAlphaSplitting: 0 60 | overridden: 0 61 | spriteSheet: 62 | serializedVersion: 2 63 | sprites: [] 64 | outline: [] 65 | spritePackingTag: 66 | userData: 67 | assetBundleName: 68 | assetBundleVariant: 69 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 jiadong chen 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenjd/Unity-Flip-Book-With-Shader/5fd328d06eb9f6b1620fb797a41d201123155852/ProjectSettings/AudioManager.asset -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenjd/Unity-Flip-Book-With-Shader/5fd328d06eb9f6b1620fb797a41d201123155852/ProjectSettings/ClusterInputManager.asset -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenjd/Unity-Flip-Book-With-Shader/5fd328d06eb9f6b1620fb797a41d201123155852/ProjectSettings/DynamicsManager.asset -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenjd/Unity-Flip-Book-With-Shader/5fd328d06eb9f6b1620fb797a41d201123155852/ProjectSettings/EditorBuildSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenjd/Unity-Flip-Book-With-Shader/5fd328d06eb9f6b1620fb797a41d201123155852/ProjectSettings/EditorSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenjd/Unity-Flip-Book-With-Shader/5fd328d06eb9f6b1620fb797a41d201123155852/ProjectSettings/GraphicsSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenjd/Unity-Flip-Book-With-Shader/5fd328d06eb9f6b1620fb797a41d201123155852/ProjectSettings/InputManager.asset -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenjd/Unity-Flip-Book-With-Shader/5fd328d06eb9f6b1620fb797a41d201123155852/ProjectSettings/NavMeshAreas.asset -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenjd/Unity-Flip-Book-With-Shader/5fd328d06eb9f6b1620fb797a41d201123155852/ProjectSettings/NetworkManager.asset -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenjd/Unity-Flip-Book-With-Shader/5fd328d06eb9f6b1620fb797a41d201123155852/ProjectSettings/Physics2DSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenjd/Unity-Flip-Book-With-Shader/5fd328d06eb9f6b1620fb797a41d201123155852/ProjectSettings/ProjectSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 5.6.0f3 2 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenjd/Unity-Flip-Book-With-Shader/5fd328d06eb9f6b1620fb797a41d201123155852/ProjectSettings/QualitySettings.asset -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenjd/Unity-Flip-Book-With-Shader/5fd328d06eb9f6b1620fb797a41d201123155852/ProjectSettings/TagManager.asset -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenjd/Unity-Flip-Book-With-Shader/5fd328d06eb9f6b1620fb797a41d201123155852/ProjectSettings/TimeManager.asset -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenjd/Unity-Flip-Book-With-Shader/5fd328d06eb9f6b1620fb797a41d201123155852/ProjectSettings/UnityConnectSettings.asset -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Unity-Flip-Book-With-Shader 2 | Unity Flip Book With Shader.利用shader实现翻页的效果。 3 | 4 | ![](http://images2017.cnblogs.com/blog/686199/201708/686199-20170829182828968-922025541.gif) 5 | 6 | #### Article(Chinese) 7 | [利用GPU实现翻页效果 ](http://www.cnblogs.com/murongxiaopifu/p/7441058.html) 8 | 9 | you can get my book at [Amazon](https://www.amazon.cn/%E5%9B%BE%E4%B9%A6/dp/B01LWUI34H/ref=sr_1_7?ie=UTF8&qid=1503844156&sr=8-7&keywords=unity) 10 | --------------------------------------------------------------------------------