├── .hgignore ├── Assets ├── Light_Frame.png ├── Light_Frame.png.meta ├── OverrideEye.meta ├── OverrideEye │ ├── Resources.meta │ ├── Resources │ │ ├── Shaders.meta │ │ └── Shaders │ │ │ ├── OverrideEyeDeferred.shader │ │ │ ├── OverrideEyeDeferred.shader.meta │ │ │ ├── OverrideEyeForward.shader │ │ │ └── OverrideEyeForward.shader.meta │ ├── SampleScenes.meta │ ├── SampleScenes │ │ ├── Scene01.unity │ │ └── Scene01.unity.meta │ ├── Scripts.meta │ └── Scripts │ │ ├── CamOrbit.cs │ │ ├── CamOrbit.cs.meta │ │ ├── OverrideEye.cs │ │ ├── OverrideEye.cs.meta │ │ ├── RenderOverrideEye.cs │ │ └── RenderOverrideEye.cs.meta ├── UnityChan.meta └── UnityChan │ ├── License.meta │ ├── License │ ├── ENGLISH.meta │ ├── ENGLISH │ │ ├── Character Use Guidelines.pdf │ │ ├── Character Use Guidelines.pdf.meta │ │ ├── LicenseNotice.pdf │ │ ├── LicenseNotice.pdf.meta │ │ ├── Summary Unity-Chan License.pdf │ │ ├── Summary Unity-Chan License.pdf.meta │ │ ├── Unity-Chan License Terms and Condition.pdf │ │ └── Unity-Chan License Terms and Condition.pdf.meta │ ├── Japanese.meta │ ├── Japanese │ │ ├── Character Use Guidelines.pdf │ │ ├── Character Use Guidelines.pdf.meta │ │ ├── License Notice.pdf │ │ ├── License Notice.pdf.meta │ │ ├── Summary Unity-Chan License.pdf │ │ ├── Summary Unity-Chan License.pdf.meta │ │ ├── Unity-Chan License Terms and Conditions.pdf │ │ └── Unity-Chan License Terms and Conditions.pdf.meta │ ├── License Logo.meta │ └── License Logo │ │ ├── LUUL_LOGO_rules02.ai │ │ ├── LUUL_LOGO_rules02.ai.meta │ │ ├── LUUL_LOGO_rules02.psd │ │ ├── LUUL_LOGO_rules02.psd.meta │ │ ├── LUUL_logo-guideline.pdf │ │ ├── LUUL_logo-guideline.pdf.meta │ │ ├── LUUL_logo-guideline_en.pdf │ │ └── LUUL_logo-guideline_en.pdf.meta │ ├── Models.meta │ ├── Models │ ├── UnityChanShader.meta │ └── UnityChanShader │ │ ├── Shader.meta │ │ └── Shader │ │ ├── CharaMain.cg │ │ ├── CharaMain.cg.meta │ │ ├── CharaOutline.cg │ │ ├── CharaOutline.cg.meta │ │ ├── CharaSkin.cg │ │ ├── CharaSkin.cg.meta │ │ ├── Unitychan_chara_akarami_blend.shader │ │ ├── Unitychan_chara_akarami_blend.shader.meta │ │ ├── Unitychan_chara_eye.shader │ │ ├── Unitychan_chara_eye.shader.meta │ │ ├── Unitychan_chara_eye_blend.shader │ │ ├── Unitychan_chara_eye_blend.shader.meta │ │ ├── Unitychan_chara_eyelash_blend.shader │ │ ├── Unitychan_chara_eyelash_blend.shader.meta │ │ ├── Unitychan_chara_fuku.shader │ │ ├── Unitychan_chara_fuku.shader.meta │ │ ├── Unitychan_chara_fuku_ds.shader │ │ ├── Unitychan_chara_fuku_ds.shader.meta │ │ ├── Unitychan_chara_hada.shader │ │ ├── Unitychan_chara_hada.shader.meta │ │ ├── Unitychan_chara_hada_blend.shader │ │ ├── Unitychan_chara_hada_blend.shader.meta │ │ ├── Unitychan_chara_hair.shader │ │ ├── Unitychan_chara_hair.shader.meta │ │ ├── Unitychan_chara_hair_ds.shader │ │ ├── Unitychan_chara_hair_ds.shader.meta │ │ ├── readme.txt │ │ └── readme.txt.meta │ ├── Prefabs.meta │ ├── Prefabs │ ├── Directional light for UnityChan.prefab │ └── Directional light for UnityChan.prefab.meta │ ├── SD_unitychan.meta │ ├── SD_unitychan │ ├── Animations.meta │ ├── Animations │ │ ├── SD_unitychan_motion_Generic.controller │ │ ├── SD_unitychan_motion_Generic.controller.meta │ │ ├── SD_unitychan_motion_Generic.fbx │ │ ├── SD_unitychan_motion_Generic.fbx.meta │ │ ├── SD_unitychan_motion_humanoid.controller │ │ ├── SD_unitychan_motion_humanoid.controller.meta │ │ ├── SD_unitychan_motion_humanoid.fbx │ │ └── SD_unitychan_motion_humanoid.fbx.meta │ ├── FaceAnimations.meta │ ├── FaceAnimations │ │ ├── Generic.meta │ │ ├── Generic │ │ │ ├── angry@sd_generic.anim │ │ │ ├── angry@sd_generic.anim.meta │ │ │ ├── confuse@sd_generic.anim │ │ │ ├── confuse@sd_generic.anim.meta │ │ │ ├── damaged@sd_generic.anim │ │ │ ├── damaged@sd_generic.anim.meta │ │ │ ├── default@sd_generic.anim │ │ │ ├── default@sd_generic.anim.meta │ │ │ ├── eye_close@sd_generic.anim │ │ │ ├── eye_close@sd_generic.anim.meta │ │ │ ├── mth_L@sd_generic.anim │ │ │ ├── mth_L@sd_generic.anim.meta │ │ │ ├── mth_R@sd_generic.anim │ │ │ ├── mth_R@sd_generic.anim.meta │ │ │ ├── mth_a@sd_generic.anim │ │ │ ├── mth_a@sd_generic.anim.meta │ │ │ ├── mth_e@sd_generic.anim │ │ │ ├── mth_e@sd_generic.anim.meta │ │ │ ├── mth_i@sd_generic.anim │ │ │ ├── mth_i@sd_generic.anim.meta │ │ │ ├── mth_o@sd_generic.anim │ │ │ ├── mth_o@sd_generic.anim.meta │ │ │ ├── mth_u@sd_generic.anim │ │ │ ├── mth_u@sd_generic.anim.meta │ │ │ ├── relux@sd_generic.anim │ │ │ ├── relux@sd_generic.anim.meta │ │ │ ├── sad@sd_generic.anim │ │ │ ├── sad@sd_generic.anim.meta │ │ │ ├── scold@sd_generic.anim │ │ │ ├── scold@sd_generic.anim.meta │ │ │ ├── smile2@sd_generic.anim │ │ │ ├── smile2@sd_generic.anim.meta │ │ │ ├── smile@sd_generic.anim │ │ │ ├── smile@sd_generic.anim.meta │ │ │ ├── strain@sd_generic.anim │ │ │ ├── strain@sd_generic.anim.meta │ │ │ ├── surprise@sd_generic.anim │ │ │ └── surprise@sd_generic.anim.meta │ │ ├── Humanoid.meta │ │ ├── Humanoid │ │ │ ├── angry@sd_hmd.anim │ │ │ ├── angry@sd_hmd.anim.meta │ │ │ ├── confuse@sd_hmd.anim │ │ │ ├── confuse@sd_hmd.anim.meta │ │ │ ├── damaged@sd_hmd.anim │ │ │ ├── damaged@sd_hmd.anim.meta │ │ │ ├── default@sd_hmd.anim │ │ │ ├── default@sd_hmd.anim.meta │ │ │ ├── eye_close@sd_hmd.anim │ │ │ ├── eye_close@sd_hmd.anim.meta │ │ │ ├── mth_L@sd_hmd.anim │ │ │ ├── mth_L@sd_hmd.anim.meta │ │ │ ├── mth_R@sd_hmd.anim │ │ │ ├── mth_R@sd_hmd.anim.meta │ │ │ ├── mth_a@sd_hmd.anim │ │ │ ├── mth_a@sd_hmd.anim.meta │ │ │ ├── mth_e@sd_hmd.anim │ │ │ ├── mth_e@sd_hmd.anim.meta │ │ │ ├── mth_i@sd_hmd.anim │ │ │ ├── mth_i@sd_hmd.anim.meta │ │ │ ├── mth_o@sd_hmd.anim │ │ │ ├── mth_o@sd_hmd.anim.meta │ │ │ ├── mth_u@sd_hmd.anim │ │ │ ├── mth_u@sd_hmd.anim.meta │ │ │ ├── relux@sd_hmd.anim │ │ │ ├── relux@sd_hmd.anim.meta │ │ │ ├── sad@sd_hmd.anim │ │ │ ├── sad@sd_hmd.anim.meta │ │ │ ├── scold@sd_hmd.anim │ │ │ ├── scold@sd_hmd.anim.meta │ │ │ ├── smile2@sd_hmd.anim │ │ │ ├── smile2@sd_hmd.anim.meta │ │ │ ├── smile@sd_hmd.anim │ │ │ ├── smile@sd_hmd.anim.meta │ │ │ ├── strain@sd_hmd.anim │ │ │ ├── strain@sd_hmd.anim.meta │ │ │ ├── surprise@sd_hmd.anim │ │ │ └── surprise@sd_hmd.anim.meta │ │ ├── _faceOnly.mask │ │ └── _faceOnly.mask.meta │ ├── Models.meta │ ├── Models │ │ ├── Materials.meta │ │ ├── Materials │ │ │ ├── def_mat.mat │ │ │ ├── def_mat.mat.meta │ │ │ ├── hair_mat.mat │ │ │ ├── hair_mat.mat.meta │ │ │ ├── mouth_mat.mat │ │ │ ├── mouth_mat.mat.meta │ │ │ ├── nol_mat.mat │ │ │ ├── nol_mat.mat.meta │ │ │ ├── skin_mat.mat │ │ │ └── skin_mat.mat.meta │ │ ├── SD_unitychan_generic.fbx │ │ ├── SD_unitychan_generic.fbx.meta │ │ ├── SD_unitychan_humanoid.fbx │ │ ├── SD_unitychan_humanoid.fbx.meta │ │ ├── SD_unitychan_humanoidFaceFix.FBX │ │ ├── SD_unitychan_humanoidFaceFix.FBX.meta │ │ ├── Textures.meta │ │ └── Textures │ │ │ ├── ENV2.tga │ │ │ ├── ENV2.tga.meta │ │ │ ├── FO_CLOTH1.tga │ │ │ ├── FO_CLOTH1.tga.meta │ │ │ ├── FO_RIM1.tga │ │ │ ├── FO_RIM1.tga.meta │ │ │ ├── FO_SKIN1.tga │ │ │ ├── FO_SKIN1.tga.meta │ │ │ ├── utc_all2.tga │ │ │ ├── utc_all2.tga.meta │ │ │ ├── utc_nomal.tga │ │ │ ├── utc_nomal.tga.meta │ │ │ ├── utc_spec.tga │ │ │ └── utc_spec.tga.meta │ ├── Prefabs.meta │ ├── Prefabs │ │ ├── SD_unitychan_generic.prefab │ │ ├── SD_unitychan_generic.prefab.meta │ │ ├── SD_unitychan_humanoid.prefab │ │ └── SD_unitychan_humanoid.prefab.meta │ ├── Scenes.meta │ └── Scenes │ │ ├── SD_unitychan_Generic.unity │ │ ├── SD_unitychan_Generic.unity.meta │ │ ├── SD_unitychan_Humanoid.unity │ │ └── SD_unitychan_Humanoid.unity.meta │ ├── Scripts.meta │ ├── Scripts │ ├── AutoBlink.cs │ ├── AutoBlink.cs.meta │ ├── AutoBlinkforSD.cs │ ├── AutoBlinkforSD.cs.meta │ ├── CameraController.cs │ ├── CameraController.cs.meta │ ├── FaceUpdate.cs │ ├── FaceUpdate.cs.meta │ ├── IKCtrlRightHand.cs │ ├── IKCtrlRightHand.cs.meta │ ├── IdleChanger.cs │ ├── IdleChanger.cs.meta │ ├── RandomWind.cs │ ├── RandomWind.cs.meta │ ├── SpringBone.cs │ ├── SpringBone.cs.meta │ ├── SpringCollider.cs │ ├── SpringCollider.cs.meta │ ├── SpringManager.cs │ ├── SpringManager.cs.meta │ ├── ThirdPersonCamera.cs │ ├── ThirdPersonCamera.cs.meta │ ├── UnityChanControlScriptWithRgidBody.cs │ └── UnityChanControlScriptWithRgidBody.cs.meta │ ├── Stage.meta │ └── Stage │ ├── Materials.meta │ ├── Materials │ ├── unitychan_tile3.mat │ ├── unitychan_tile3.mat.meta │ ├── unitychan_tile4.mat │ ├── unitychan_tile4.mat.meta │ ├── unitychan_tile5.mat │ ├── unitychan_tile5.mat.meta │ ├── unitychan_tile6.mat │ └── unitychan_tile6.mat.meta │ ├── Shader.meta │ ├── Shader │ ├── AlphaMask.shader │ ├── AlphaMask.shader.meta │ ├── Textures.meta │ └── Textures │ │ ├── AlphaMask.png │ │ ├── AlphaMask.png.meta │ │ ├── Unity_Icon.png │ │ └── Unity_Icon.png.meta │ ├── Textures.meta │ └── Textures │ ├── unitychan_tile3.png │ ├── unitychan_tile3.png.meta │ ├── unitychan_tile4.png │ ├── unitychan_tile4.png.meta │ ├── unitychan_tile5.png │ ├── unitychan_tile5.png.meta │ ├── unitychan_tile6.png │ └── unitychan_tile6.png.meta ├── LICENSE └── README.md /.hgignore: -------------------------------------------------------------------------------- 1 | syntax: glob 2 | Temp 3 | obj 4 | vs 5 | Library 6 | ProjectSettings 7 | *.sln 8 | *.csproj 9 | *.userprefs -------------------------------------------------------------------------------- /Assets/Light_Frame.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/Light_Frame.png -------------------------------------------------------------------------------- /Assets/Light_Frame.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c50ba438343f2448aec88ed9fbd6cb4 3 | timeCreated: 1440997899 4 | licenseType: Pro 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 2 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 1 11 | linearTexture: 0 12 | correctGamma: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 0 20 | heightScale: .25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 8 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -3 30 | maxTextureSize: 2048 31 | textureSettings: 32 | filterMode: -1 33 | aniso: -1 34 | mipBias: -1 35 | wrapMode: -1 36 | nPOTScale: 1 37 | lightmap: 0 38 | rGBM: 0 39 | compressionQuality: 50 40 | spriteMode: 0 41 | spriteExtrude: 1 42 | spriteMeshType: 1 43 | alignment: 0 44 | spritePivot: {x: .5, y: .5} 45 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 46 | spritePixelsToUnits: 100 47 | alphaIsTransparency: 1 48 | textureType: -1 49 | buildTargetSettings: [] 50 | spriteSheet: 51 | sprites: [] 52 | spritePackingTag: 53 | userData: 54 | assetBundleName: 55 | assetBundleVariant: 56 | -------------------------------------------------------------------------------- /Assets/OverrideEye.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 312ac94b9855d4347ae00f7abc0de6a9 3 | folderAsset: yes 4 | timeCreated: 1440389117 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/OverrideEye/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5642ebc8cd5952348a641420391d3095 3 | folderAsset: yes 4 | timeCreated: 1440997614 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/OverrideEye/Resources/Shaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8a72af0b0418b3349be83022bd3aa41d 3 | folderAsset: yes 4 | timeCreated: 1440389031 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/OverrideEye/Resources/Shaders/OverrideEyeDeferred.shader: -------------------------------------------------------------------------------- 1 | Shader "OverrideEye/OverrideEyeDeferred" 2 | { 3 | Properties 4 | { 5 | _MainTex ("Base (RGB)", 2D) = "white" {} 6 | _alpha ("Blend Alpha", Range(0.0,1.0)) = 1.0 7 | } 8 | 9 | CGINCLUDE 10 | #include "UnityCG.cginc" 11 | sampler2D _MainTex; 12 | sampler2D _DeferredMaskTex; 13 | sampler2D _DeferredClipTex; 14 | float _alpha; 15 | 16 | struct BuildInGBufferOutput 17 | { 18 | float4 Col0 : COLOR0; 19 | float4 Col1 : COLOR1; 20 | float4 Col2 : COLOR2; 21 | float4 Col3 : COLOR3; 22 | }; 23 | 24 | struct v2f 25 | { 26 | float4 pos : SV_POSITION; 27 | }; 28 | 29 | v2f vert (appdata_full v) 30 | { 31 | v2f o; 32 | o.pos = mul (UNITY_MATRIX_MVP, v.vertex); 33 | return o; 34 | } 35 | 36 | BuildInGBufferOutput fragPass0 (v2f i) 37 | { 38 | BuildInGBufferOutput o; 39 | 40 | o.Col0 = float4(0, 0, 0, 0); 41 | o.Col1 = float4(0, 0, 0, 0); 42 | o.Col2 = float4(0, 0, 0, 0); 43 | o.Col3 = float4(0, 0, 0, 0); 44 | 45 | return o; 46 | } 47 | 48 | float4 fragPass1(v2f_img i) : COLOR 49 | { 50 | float4 _tex = tex2Dlod(_MainTex, float4(i.uv, 0, 0)); 51 | float _mask = tex2Dlod(_DeferredMaskTex, float4(i.uv, 0, 0)).x; 52 | float _clip = tex2Dlod(_DeferredClipTex, float4(i.uv, 0, 0)).x; 53 | return float4(_tex.xyz, _mask * _clip * _alpha); 54 | } 55 | 56 | float4 fragPass2(v2f_img i) : COLOR 57 | { 58 | float4 _tex = tex2Dlod(_MainTex, float4(i.uv, 0, 0)); 59 | float _mask = tex2Dlod(_DeferredMaskTex, float4(i.uv, 0, 0)).x; 60 | float _clip = tex2Dlod(_DeferredClipTex, float4(i.uv, 0, 0)).x; 61 | clip( _mask * _clip - 0.0001f); 62 | return _tex; 63 | } 64 | 65 | float4 fragPass3(v2f_img i) : COLOR 66 | { 67 | float4 _tex = tex2Dlod(_MainTex, float4(i.uv, 0, 0)); 68 | float _mask = tex2Dlod(_DeferredMaskTex, float4(i.uv, 0, 0)).x; 69 | float _clip = tex2Dlod(_DeferredClipTex, float4(i.uv, 0, 0)).x; 70 | clip( _mask * _clip - 0.0001f); 71 | return _tex; 72 | } 73 | 74 | float4 fragPass4(v2f_img i) : COLOR 75 | { 76 | float4 _tex = tex2Dlod(_MainTex, float4(i.uv, 0, 0)); 77 | float _mask = tex2Dlod(_DeferredMaskTex, float4(i.uv, 0, 0)).x; 78 | float _clip = tex2Dlod(_DeferredClipTex, float4(i.uv, 0, 0)).x; 79 | clip( _mask * _clip - 0.0001f); 80 | return _tex; 81 | } 82 | 83 | float fragPass5 (v2f i) : COLOR 84 | { 85 | return 1; 86 | } 87 | 88 | ENDCG 89 | 90 | SubShader 91 | { 92 | //0 Mask 93 | Pass 94 | { 95 | Cull off 96 | 97 | CGPROGRAM 98 | #pragma target 3.0 99 | #pragma fragmentoption ARB_precision_hint_fastest 100 | #pragma vertex vert 101 | #pragma fragment fragPass0 102 | ENDCG 103 | } 104 | 105 | 106 | //1 Composit 0 107 | Pass 108 | { 109 | ZTest Always Cull Off ZWrite Off 110 | Blend SrcAlpha OneMinusSrcAlpha 111 | 112 | CGPROGRAM 113 | #pragma target 3.0 114 | #pragma fragmentoption ARB_precision_hint_fastest 115 | #pragma vertex vert_img 116 | #pragma fragment fragPass1 117 | ENDCG 118 | } 119 | 120 | //2 Composit 1 121 | Pass 122 | { 123 | ZTest Always Cull Off ZWrite Off 124 | 125 | CGPROGRAM 126 | #pragma target 3.0 127 | #pragma fragmentoption ARB_precision_hint_fastest 128 | #pragma vertex vert_img 129 | #pragma fragment fragPass2 130 | ENDCG 131 | } 132 | 133 | //3 Composit 2 134 | Pass 135 | { 136 | ZTest Always Cull Off ZWrite Off 137 | 138 | 139 | CGPROGRAM 140 | #pragma target 3.0 141 | #pragma fragmentoption ARB_precision_hint_fastest 142 | #pragma vertex vert_img 143 | #pragma fragment fragPass3 144 | ENDCG 145 | } 146 | 147 | //4 Composit 3 148 | Pass 149 | { 150 | ZTest Always Cull Off ZWrite Off 151 | Blend SrcAlpha OneMinusSrcAlpha 152 | 153 | CGPROGRAM 154 | #pragma target 3.0 155 | #pragma fragmentoption ARB_precision_hint_fastest 156 | #pragma vertex vert_img 157 | #pragma fragment fragPass4 158 | ENDCG 159 | } 160 | 161 | //5 Render Clip 162 | Pass 163 | { 164 | Cull back 165 | 166 | CGPROGRAM 167 | #pragma target 3.0 168 | #pragma fragmentoption ARB_precision_hint_fastest 169 | #pragma vertex vert_img 170 | #pragma fragment fragPass5 171 | ENDCG 172 | } 173 | } 174 | FallBack Off 175 | } -------------------------------------------------------------------------------- /Assets/OverrideEye/Resources/Shaders/OverrideEyeDeferred.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 59dcb45580b264d409ea2d715d9377c6 3 | timeCreated: 1441065197 4 | licenseType: Pro 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/OverrideEye/Resources/Shaders/OverrideEyeForward.shader: -------------------------------------------------------------------------------- 1 | Shader "OverrideEye/OverrideEyeForward" 2 | { 3 | Properties 4 | { 5 | _MainTex ("Base (RGB)", 2D) = "white" {} 6 | _alpha ("Blend Alpha", Range(0.0,1.0)) = 1.0 7 | } 8 | 9 | CGINCLUDE 10 | #include "UnityCG.cginc" 11 | sampler2D _MainTex; 12 | sampler2D _ForwardMaskTex; 13 | sampler2D _ForwardClipTex; 14 | float _alpha; 15 | 16 | struct BuildInGBufferOutput 17 | { 18 | float4 Col0 : COLOR0; 19 | float4 Col1 : COLOR1; 20 | float4 Col2 : COLOR2; 21 | float4 Col3 : COLOR3; 22 | }; 23 | 24 | struct v2f 25 | { 26 | float4 pos : SV_POSITION; 27 | }; 28 | 29 | v2f vert (appdata_full v) 30 | { 31 | v2f o; 32 | o.pos = mul (UNITY_MATRIX_MVP, v.vertex); 33 | return o; 34 | } 35 | 36 | float4 fragPass0 (v2f i) : COLOR 37 | { 38 | return 0; 39 | } 40 | 41 | float4 fragPass1(v2f_img i) : COLOR 42 | { 43 | float4 _tex = tex2Dlod(_MainTex, float4(i.uv, 0, 0)); 44 | float _mask = tex2Dlod(_ForwardMaskTex, float4(i.uv, 0, 0)).x; 45 | float _clip = tex2Dlod(_ForwardClipTex, float4(i.uv, 0, 0)).x; 46 | //return float4(_clip.xxx, 1); 47 | return float4(_tex.xyz, _mask * _clip * _alpha); 48 | } 49 | 50 | float fragPass2 (v2f i) : COLOR 51 | { 52 | return 1; 53 | } 54 | 55 | ENDCG 56 | 57 | SubShader 58 | { 59 | //0 Mask 60 | Pass 61 | { 62 | Cull off 63 | 64 | CGPROGRAM 65 | #pragma target 3.0 66 | #pragma fragmentoption ARB_precision_hint_fastest 67 | #pragma vertex vert 68 | #pragma fragment fragPass0 69 | ENDCG 70 | } 71 | 72 | 73 | //1 Composit 0 74 | Pass 75 | { 76 | ZTest Always Cull Off ZWrite Off 77 | Blend SrcAlpha OneMinusSrcAlpha 78 | 79 | CGPROGRAM 80 | #pragma target 3.0 81 | #pragma fragmentoption ARB_precision_hint_fastest 82 | #pragma vertex vert_img 83 | #pragma fragment fragPass1 84 | ENDCG 85 | } 86 | 87 | //2 Render Clip 88 | Pass 89 | { 90 | Cull back 91 | 92 | CGPROGRAM 93 | #pragma target 3.0 94 | #pragma fragmentoption ARB_precision_hint_fastest 95 | #pragma vertex vert_img 96 | #pragma fragment fragPass2 97 | ENDCG 98 | } 99 | } 100 | FallBack Off 101 | } -------------------------------------------------------------------------------- /Assets/OverrideEye/Resources/Shaders/OverrideEyeForward.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 89b627adaeb8c0142b9990c8ca108a3a 3 | timeCreated: 1441065194 4 | licenseType: Pro 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/OverrideEye/SampleScenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 84f3479e069eee84ab3f4c196121c7d9 3 | folderAsset: yes 4 | timeCreated: 1440390196 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/OverrideEye/SampleScenes/Scene01.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/OverrideEye/SampleScenes/Scene01.unity -------------------------------------------------------------------------------- /Assets/OverrideEye/SampleScenes/Scene01.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3a5fe483a6ee1d74eab3482710df4142 3 | timeCreated: 1440994312 4 | licenseType: Pro 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/OverrideEye/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aa989d6785a2ec1419edaffad04ea895 3 | folderAsset: yes 4 | timeCreated: 1440389003 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/OverrideEye/Scripts/CamOrbit.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class CamOrbit : MonoBehaviour 5 | { 6 | public Texture LicenseLogo; 7 | public float Radius = 1; 8 | public float UpdateInterval = 0.1f; 9 | 10 | private Camera m_camera; 11 | private int m_angle = 0; 12 | 13 | // Use this for initialization 14 | void Start() 15 | { 16 | this.m_camera = this.GetComponent(); 17 | this.m_angle = 0; 18 | 19 | this.StartCoroutine(this.updateCamPosition()); 20 | } 21 | 22 | IEnumerator updateCamPosition() 23 | { 24 | while(true) 25 | { 26 | float _x = -Mathf.Sin( Mathf.Deg2Rad * this.m_angle) * this.Radius; 27 | float _y = this.m_camera.transform.position.y; 28 | float _z = Mathf.Cos( Mathf.Deg2Rad * this.m_angle) * this.Radius; 29 | 30 | this.m_camera.transform.position = new Vector3(_x, _y, _z); 31 | 32 | _x = 0; 33 | _y = -this.m_angle + 180; 34 | _z = 0; 35 | 36 | this.m_camera.transform.rotation = Quaternion.Euler( new Vector3(_x, _y, _z) ); 37 | 38 | this.m_angle += 1; 39 | 40 | yield return new WaitForSeconds( this.UpdateInterval ); 41 | } 42 | 43 | yield return null; 44 | } 45 | 46 | protected virtual void OnGUI() 47 | { 48 | if (this.LicenseLogo != null) 49 | { 50 | GUI.DrawTexture(new Rect(0, Screen.height - 127, 147, 127), this.LicenseLogo, ScaleMode.StretchToFill, true); 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Assets/OverrideEye/Scripts/CamOrbit.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa8d439c48107384da349287eb98be6a 3 | timeCreated: 1440994736 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/OverrideEye/Scripts/OverrideEye.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class OverrideEye : MonoBehaviour 5 | { 6 | public enum RenderType 7 | { 8 | OVERRIDE = 0, 9 | MASK, 10 | CLIP 11 | } 12 | 13 | public RenderType Type = RenderType.OVERRIDE; 14 | public int Priority = 0; 15 | public Material[] Materials; 16 | public MeshRenderer Mr = null; 17 | public SkinnedMeshRenderer SkinMr = null; 18 | 19 | public void OnEnable () 20 | { 21 | OverrideEyeSystem.instance.Add (this); 22 | } 23 | 24 | public void Start () 25 | { 26 | OverrideEyeSystem.instance.Add (this); 27 | // 28 | MeshRenderer _meshRenderer = this.GetComponent (); 29 | if (_meshRenderer != null) { 30 | this.Mr = _meshRenderer; 31 | this.Materials = this.Mr.sharedMaterials; 32 | } else { 33 | SkinnedMeshRenderer _skinMeshRenderer = this.GetComponent (); 34 | 35 | if (_skinMeshRenderer != null) { 36 | this.SkinMr = _skinMeshRenderer; 37 | this.Materials = this.SkinMr.sharedMaterials; 38 | } 39 | } 40 | } 41 | 42 | public void OnDisable () 43 | { 44 | OverrideEyeSystem.instance.Remove (this); 45 | } 46 | 47 | void Update () 48 | { 49 | 50 | } 51 | } 52 | 53 | -------------------------------------------------------------------------------- /Assets/OverrideEye/Scripts/OverrideEye.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c3ac94c70f01ce64a9607a5e234e6825 3 | timeCreated: 1440389812 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/OverrideEye/Scripts/RenderOverrideEye.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.Rendering; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | 6 | 7 | public class OverrideEyeSystem 8 | { 9 | static OverrideEyeSystem m_Instance; 10 | 11 | static public OverrideEyeSystem instance 12 | { 13 | get 14 | { 15 | if(m_Instance == null) 16 | { 17 | m_Instance = new OverrideEyeSystem(); 18 | } 19 | return m_Instance; 20 | } 21 | } 22 | 23 | internal List m_eyeObjs = new List(); 24 | 25 | public void Add(OverrideEye eyeObj) 26 | { 27 | this.Remove(eyeObj); 28 | this.m_eyeObjs.Add(eyeObj); 29 | this.Sort(); 30 | } 31 | 32 | public void Remove(OverrideEye eyeObj) 33 | { 34 | this.m_eyeObjs.Remove(eyeObj); 35 | this.Sort(); 36 | } 37 | 38 | public void Sort() 39 | { 40 | this.m_eyeObjs.Sort((a, b) => a.Priority - b.Priority); 41 | } 42 | } 43 | 44 | [RequireComponent(typeof (Camera))] 45 | public class RenderOverrideEye : MonoBehaviour 46 | { 47 | public float BlendAlpha = 1.0f; 48 | private Camera m_camera; 49 | private Dictionary m_cameraCommandBuffers = new Dictionary(); 50 | private Material m_overrideEyeMat; 51 | private RenderTexture m_deferredMask; 52 | 53 | void Start() 54 | { 55 | this.m_camera = this.gameObject.GetComponent(); 56 | // 57 | if (this.m_camera.actualRenderingPath == RenderingPath.Forward) 58 | { 59 | this.m_overrideEyeMat = new Material(Shader.Find("OverrideEye/OverrideEyeForward")); 60 | } 61 | else 62 | { 63 | this.m_overrideEyeMat = new Material(Shader.Find("OverrideEye/OverrideEyeDeferred")); 64 | } 65 | } 66 | 67 | public void OnDisable() 68 | { 69 | foreach(KeyValuePair buffer in this.m_cameraCommandBuffers) 70 | { 71 | this.m_camera.RemoveCommandBuffer(buffer.Key, buffer.Value); 72 | } 73 | } 74 | 75 | public void OnPreRender() 76 | { 77 | this.m_overrideEyeMat.SetFloat("_alpha", this.BlendAlpha); 78 | 79 | bool _flag = this.gameObject.activeInHierarchy && this.enabled; 80 | if(!_flag) 81 | { 82 | this.OnDisable(); 83 | return; 84 | } 85 | 86 | 87 | if (this.m_camera.actualRenderingPath == RenderingPath.Forward) 88 | this.renderForward(); 89 | else 90 | this.renderDeferredShading(); 91 | } 92 | 93 | private void renderForward() 94 | { 95 | CommandBuffer _bufA = null; 96 | CameraEvent _evA = CameraEvent.AfterForwardOpaque; 97 | 98 | if(this.m_cameraCommandBuffers.ContainsKey(_evA)) 99 | { 100 | _bufA = this.m_cameraCommandBuffers[_evA]; 101 | _bufA.Clear(); 102 | } 103 | else 104 | { 105 | _bufA = new CommandBuffer(); 106 | _bufA.name = "Override Eye"; 107 | this.m_cameraCommandBuffers.Add(_evA, _bufA); 108 | this.m_camera.AddCommandBuffer(_evA, _bufA); 109 | } 110 | 111 | OverrideEyeSystem system = OverrideEyeSystem.instance; 112 | 113 | int _rt0 = Shader.PropertyToID("_rt0"); 114 | _bufA.GetTemporaryRT(_rt0, -1, -1, 24, FilterMode.Point, RenderTextureFormat.ARGB32, RenderTextureReadWrite.Default); 115 | _bufA.SetRenderTarget(_rt0, _rt0); 116 | _bufA.ClearRenderTarget(true, true, Color.clear); 117 | 118 | foreach(OverrideEye eyeObj in system.m_eyeObjs) 119 | { 120 | if(eyeObj.Type == OverrideEye.RenderType.MASK) 121 | { 122 | this.drawOverrideEyeMat(_bufA, eyeObj, 0); 123 | } 124 | else if (eyeObj.Type == OverrideEye.RenderType.OVERRIDE) 125 | { 126 | this.drawSlefMat(_bufA, eyeObj, 0); 127 | } 128 | } 129 | 130 | 131 | // Clip 132 | int _rt4 = Shader.PropertyToID("_rt4"); 133 | _bufA.GetTemporaryRT(_rt4, -1, -1, 24, FilterMode.Point, RenderTextureFormat.R8, RenderTextureReadWrite.Default); 134 | _bufA.SetRenderTarget(_rt4, _rt4); 135 | _bufA.ClearRenderTarget(true, true, Color.clear); 136 | 137 | foreach(OverrideEye eyeObj in system.m_eyeObjs) 138 | { 139 | if(eyeObj.Type == OverrideEye.RenderType.CLIP) 140 | { 141 | this.drawOverrideEyeMat(_bufA, eyeObj, 2); 142 | } 143 | else 144 | { 145 | this.drawOverrideEyeMat(_bufA, eyeObj, 0); 146 | } 147 | } 148 | 149 | _bufA.SetGlobalTexture("_ForwardClipTex", _rt4); 150 | 151 | // Mask 152 | int _rt5 = Shader.PropertyToID("_rt5"); 153 | _bufA.GetTemporaryRT(_rt5, -1, -1, 24, FilterMode.Point, RenderTextureFormat.R8, RenderTextureReadWrite.Default); 154 | _bufA.SetRenderTarget(_rt5, _rt5); 155 | _bufA.ClearRenderTarget(true, true, Color.clear); 156 | 157 | foreach(OverrideEye eyeObj in system.m_eyeObjs) 158 | { 159 | if(eyeObj.Type == OverrideEye.RenderType.MASK) 160 | { 161 | this.drawOverrideEyeMat(_bufA, eyeObj, 0); 162 | } 163 | else if(eyeObj.Type == OverrideEye.RenderType.OVERRIDE) 164 | { 165 | this.drawOverrideEyeMat(_bufA, eyeObj, 2); 166 | } 167 | } 168 | 169 | _bufA.SetGlobalTexture("_ForwardMaskTex", _rt5); 170 | 171 | _bufA.Blit(_rt0, BuiltinRenderTextureType.CameraTarget, this.m_overrideEyeMat, 1); 172 | 173 | _bufA.ReleaseTemporaryRT(_rt0); 174 | _bufA.ReleaseTemporaryRT(_rt4); 175 | _bufA.ReleaseTemporaryRT(_rt5); 176 | } 177 | 178 | private void renderDeferredShading() 179 | { 180 | CommandBuffer _bufA = null; 181 | CameraEvent _evA = CameraEvent.AfterForwardOpaque; 182 | 183 | if(this.m_cameraCommandBuffers.ContainsKey(_evA)) 184 | { 185 | _bufA = this.m_cameraCommandBuffers[_evA]; 186 | _bufA.Clear(); 187 | } 188 | else 189 | { 190 | _bufA = new CommandBuffer(); 191 | _bufA.name = "Override Eye"; 192 | this.m_cameraCommandBuffers.Add(_evA, _bufA); 193 | this.m_camera.AddCommandBuffer(_evA, _bufA); 194 | } 195 | 196 | OverrideEyeSystem system = OverrideEyeSystem.instance; 197 | 198 | int _rt0 = Shader.PropertyToID("_rt0"); 199 | int _rt1 = Shader.PropertyToID("_rt1"); 200 | int _rt2 = Shader.PropertyToID("_rt2"); 201 | int _rt3 = Shader.PropertyToID("_rt3"); 202 | 203 | _bufA.GetTemporaryRT(_rt0, -1, -1, 24, FilterMode.Point, RenderTextureFormat.ARGB32, RenderTextureReadWrite.Default); 204 | _bufA.GetTemporaryRT(_rt1, -1, -1, 0, FilterMode.Point, RenderTextureFormat.ARGB32, RenderTextureReadWrite.Default); 205 | _bufA.GetTemporaryRT(_rt2, -1, -1, 0, FilterMode.Point, RenderTextureFormat.ARGB32, RenderTextureReadWrite.Default); 206 | _bufA.GetTemporaryRT(_rt3, -1, -1, 0, FilterMode.Point, RenderTextureFormat.ARGB32, RenderTextureReadWrite.Default); 207 | 208 | 209 | RenderTargetIdentifier[] _rts = new RenderTargetIdentifier[4] 210 | { 211 | _rt0, 212 | _rt1, 213 | _rt2, 214 | _rt3 215 | }; 216 | _bufA.SetRenderTarget(_rts, new RenderTargetIdentifier(_rt0)); 217 | _bufA.ClearRenderTarget(true, true, Color.clear); 218 | 219 | foreach(OverrideEye eyeObj in system.m_eyeObjs) 220 | { 221 | if(eyeObj.Type == OverrideEye.RenderType.MASK) 222 | { 223 | this.drawOverrideEyeMat(_bufA, eyeObj, 0); 224 | } 225 | else if(eyeObj.Type == OverrideEye.RenderType.OVERRIDE) 226 | { 227 | this.drawSlefMat(_bufA, eyeObj, 0); 228 | } 229 | } 230 | 231 | // Clip 232 | int _rt4 = Shader.PropertyToID("_rt4"); 233 | _bufA.GetTemporaryRT(_rt4, -1, -1, 24, FilterMode.Point, RenderTextureFormat.R8, RenderTextureReadWrite.Default); 234 | _bufA.SetRenderTarget(_rt4, _rt4); 235 | _bufA.ClearRenderTarget(true, true, Color.clear); 236 | 237 | foreach(OverrideEye eyeObj in system.m_eyeObjs) 238 | { 239 | if(eyeObj.Type == OverrideEye.RenderType.CLIP) 240 | { 241 | this.drawOverrideEyeMat(_bufA, eyeObj, 5); 242 | } 243 | else 244 | { 245 | this.drawOverrideEyeMat(_bufA, eyeObj, 0); 246 | } 247 | } 248 | 249 | _bufA.SetGlobalTexture("_DeferredClipTex", _rt4); 250 | 251 | 252 | // Mask 253 | int _rt5 = Shader.PropertyToID("_rt5"); 254 | _bufA.GetTemporaryRT(_rt5, -1, -1, 24, FilterMode.Point, RenderTextureFormat.R8, RenderTextureReadWrite.Default); 255 | _bufA.SetRenderTarget(_rt5, _rt5); 256 | _bufA.ClearRenderTarget(true, true, Color.clear); 257 | 258 | foreach(OverrideEye eyeObj in system.m_eyeObjs) 259 | { 260 | if(eyeObj.Type == OverrideEye.RenderType.MASK) 261 | { 262 | drawOverrideEyeMat(_bufA, eyeObj, 0); 263 | } 264 | else if(eyeObj.Type == OverrideEye.RenderType.OVERRIDE) 265 | { 266 | drawOverrideEyeMat(_bufA, eyeObj, 5); 267 | } 268 | } 269 | 270 | _bufA.SetGlobalTexture("_DeferredMaskTex", _rt5); 271 | 272 | 273 | // for StandardShader 274 | //_bufA.Blit(_rt0, BuiltinRenderTextureType.GBuffer0, this.m_overrideEyeMat, 1); 275 | //_bufA.Blit(_rt1, BuiltinRenderTextureType.GBuffer1, this.m_overrideEyeMat, 2); 276 | //_bufA.Blit(_rt2, BuiltinRenderTextureType.GBuffer2, this.m_overrideEyeMat, 3); 277 | //_bufA.Blit(_rt3, BuiltinRenderTextureType.CameraTarget, this.m_overrideEyeMat, 4); 278 | 279 | // for unitychanShader 280 | _bufA.Blit(_rt0, BuiltinRenderTextureType.CameraTarget, this.m_overrideEyeMat, 1); 281 | 282 | 283 | _bufA.ReleaseTemporaryRT(_rt0); 284 | _bufA.ReleaseTemporaryRT(_rt1); 285 | _bufA.ReleaseTemporaryRT(_rt2); 286 | _bufA.ReleaseTemporaryRT(_rt3); 287 | _bufA.ReleaseTemporaryRT(_rt4); 288 | _bufA.ReleaseTemporaryRT(_rt5); 289 | } 290 | 291 | private void drawOverrideEyeMat(CommandBuffer buf, OverrideEye eyeObj, int pass) 292 | { 293 | if(eyeObj.Mr != null) 294 | { 295 | MeshFilter _mf = eyeObj.GetComponent(); 296 | 297 | for(int _i = 0; _i < _mf.sharedMesh.subMeshCount; ++_i) 298 | { 299 | buf.DrawMesh(_mf.sharedMesh, eyeObj.gameObject.transform.localToWorldMatrix, this.m_overrideEyeMat, _i, pass); 300 | } 301 | } 302 | else if(eyeObj.SkinMr != null) 303 | { 304 | for(int _i = 0; _i < eyeObj.SkinMr.sharedMesh.subMeshCount; ++_i) 305 | { 306 | buf.DrawRenderer(eyeObj.SkinMr, this.m_overrideEyeMat, _i, pass); 307 | } 308 | } 309 | } 310 | 311 | private void drawSlefMat(CommandBuffer buf, OverrideEye eyeObj, int pass) 312 | { 313 | if(eyeObj.Mr != null) 314 | { 315 | MeshFilter _mf = eyeObj.GetComponent(); 316 | 317 | for(int _i = 0; _i < _mf.sharedMesh.subMeshCount; ++_i) 318 | { 319 | buf.DrawMesh(_mf.sharedMesh, eyeObj.gameObject.transform.localToWorldMatrix, eyeObj.Materials[_i], _i, pass); 320 | } 321 | } 322 | else if(eyeObj.SkinMr != null) 323 | { 324 | for(int _i = 0; _i < eyeObj.SkinMr.sharedMesh.subMeshCount; ++_i) 325 | { 326 | eyeObj.Materials[_i].EnableKeyword("DIRLIGHTMAP_OFF"); 327 | eyeObj.Materials[_i].EnableKeyword("DYNAMICLIGHTMAP_OFF"); 328 | buf.DrawRenderer(eyeObj.SkinMr, eyeObj.Materials[_i], _i, pass); 329 | } 330 | } 331 | } 332 | } 333 | 334 | -------------------------------------------------------------------------------- /Assets/OverrideEye/Scripts/RenderOverrideEye.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5e4387c1aee3a6b449f68e0f42d3e9d0 3 | timeCreated: 1440389267 4 | licenseType: Pro 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/UnityChan.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c26d0a723ffca8a41a5fe55af2ed7bf2 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/License.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3b94eb9dcb19747b1a1f7b23634e58b0 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/License/ENGLISH.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dbd6f5b8ac6cf49c1897f1f32485e448 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/License/ENGLISH/Character Use Guidelines.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/License/ENGLISH/Character Use Guidelines.pdf -------------------------------------------------------------------------------- /Assets/UnityChan/License/ENGLISH/Character Use Guidelines.pdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 062fd5a58ac6d4580b9a2b395e7d86e5 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/License/ENGLISH/LicenseNotice.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/License/ENGLISH/LicenseNotice.pdf -------------------------------------------------------------------------------- /Assets/UnityChan/License/ENGLISH/LicenseNotice.pdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c63a3e913965c4904a6597fef7ecfb69 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/License/ENGLISH/Summary Unity-Chan License.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/License/ENGLISH/Summary Unity-Chan License.pdf -------------------------------------------------------------------------------- /Assets/UnityChan/License/ENGLISH/Summary Unity-Chan License.pdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c156ee310fd424ce29fc16ecb6195b24 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/License/ENGLISH/Unity-Chan License Terms and Condition.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/License/ENGLISH/Unity-Chan License Terms and Condition.pdf -------------------------------------------------------------------------------- /Assets/UnityChan/License/ENGLISH/Unity-Chan License Terms and Condition.pdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0906715dbf223451ab01ce73f7a90e59 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/License/Japanese.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1393d64a7073442a1ae82ebed0c49dbb 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/License/Japanese/Character Use Guidelines.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/License/Japanese/Character Use Guidelines.pdf -------------------------------------------------------------------------------- /Assets/UnityChan/License/Japanese/Character Use Guidelines.pdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 335a2e6f665424bd8b16ad278a1261aa 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/License/Japanese/License Notice.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/License/Japanese/License Notice.pdf -------------------------------------------------------------------------------- /Assets/UnityChan/License/Japanese/License Notice.pdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f853d3e1a819840d382319747966413c 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/License/Japanese/Summary Unity-Chan License.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/License/Japanese/Summary Unity-Chan License.pdf -------------------------------------------------------------------------------- /Assets/UnityChan/License/Japanese/Summary Unity-Chan License.pdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe60d82fdefde4088a0e7854bb64fc98 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/License/Japanese/Unity-Chan License Terms and Conditions.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/License/Japanese/Unity-Chan License Terms and Conditions.pdf -------------------------------------------------------------------------------- /Assets/UnityChan/License/Japanese/Unity-Chan License Terms and Conditions.pdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b437b5eeabe064c08b668e2a70dd9e9b 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/License/License Logo.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7558f44a052d3493391c93cfc4e2cf73 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/License/License Logo/LUUL_LOGO_rules02.ai: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/License/License Logo/LUUL_LOGO_rules02.ai -------------------------------------------------------------------------------- /Assets/UnityChan/License/License Logo/LUUL_LOGO_rules02.ai.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 57d4631de55fe45ee904ace21a87fe92 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/License/License Logo/LUUL_LOGO_rules02.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/License/License Logo/LUUL_LOGO_rules02.psd -------------------------------------------------------------------------------- /Assets/UnityChan/License/License Logo/LUUL_LOGO_rules02.psd.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2aacbb8c0eb594221bc82082e258aa94 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 1024 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: -1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | assetBundleVariant: 54 | -------------------------------------------------------------------------------- /Assets/UnityChan/License/License Logo/LUUL_logo-guideline.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/License/License Logo/LUUL_logo-guideline.pdf -------------------------------------------------------------------------------- /Assets/UnityChan/License/License Logo/LUUL_logo-guideline.pdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e4d5e599bd03649d5af593b949dfc194 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/License/License Logo/LUUL_logo-guideline_en.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/License/License Logo/LUUL_logo-guideline_en.pdf -------------------------------------------------------------------------------- /Assets/UnityChan/License/License Logo/LUUL_logo-guideline_en.pdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e38d156797c714c6f8e296dcf1db67d3 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9dedfdc83748ca841a66a1377e8fa67a 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 021de19177eaac248b29685779a99c74 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5f4979e7944d9d48aa62d1c31e3529c 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/CharaMain.cg: -------------------------------------------------------------------------------- 1 | // Character shader 2 | // Includes falloff shadow and highlight, specular, reflection, and normal mapping 3 | 4 | #define ENABLE_CAST_SHADOWS 5 | 6 | // Material parameters 7 | float4 _Color; 8 | float4 _ShadowColor; 9 | float4 _LightColor0; 10 | float _SpecularPower; 11 | float4 _MainTex_ST; 12 | 13 | // Textures 14 | sampler2D _MainTex; 15 | sampler2D _FalloffSampler; 16 | sampler2D _RimLightSampler; 17 | sampler2D _SpecularReflectionSampler; 18 | sampler2D _EnvMapSampler; 19 | sampler2D _NormalMapSampler; 20 | 21 | // Constants 22 | #define FALLOFF_POWER 0.3 23 | 24 | #ifdef ENABLE_CAST_SHADOWS 25 | 26 | // Structure from vertex shader to fragment shader 27 | struct v2f 28 | { 29 | float4 pos : SV_POSITION; 30 | LIGHTING_COORDS( 0, 1 ) 31 | float2 uv : TEXCOORD2; 32 | float3 eyeDir : TEXCOORD3; 33 | float3 lightDir : TEXCOORD4; 34 | float3 normal : TEXCOORD5; 35 | #ifdef ENABLE_NORMAL_MAP 36 | float3 tangent : TEXCOORD6; 37 | float3 binormal : TEXCOORD7; 38 | #endif 39 | }; 40 | 41 | #else 42 | 43 | // Structure from vertex shader to fragment shader 44 | struct v2f 45 | { 46 | float4 pos : SV_POSITION; 47 | float2 uv : TEXCOORD0; 48 | float3 eyeDir : TEXCOORD1; 49 | float3 lightDir : TEXCOORD2; 50 | float3 normal : TEXCOORD3; 51 | #ifdef ENABLE_NORMAL_MAP 52 | float3 tangent : TEXCOORD4; 53 | float3 binormal : TEXCOORD5; 54 | #endif 55 | }; 56 | 57 | #endif 58 | 59 | // Float types 60 | #define float_t half 61 | #define float2_t half2 62 | #define float3_t half3 63 | #define float4_t half4 64 | #define float3x3_t half3x3 65 | 66 | // Vertex shader 67 | v2f vert( appdata_tan v ) 68 | { 69 | v2f o; 70 | o.pos = mul( UNITY_MATRIX_MVP, v.vertex ); 71 | o.uv.xy = TRANSFORM_TEX( v.texcoord.xy, _MainTex ); 72 | o.normal = normalize( mul( _Object2World, float4_t( v.normal, 0 ) ).xyz ); 73 | 74 | // Eye direction vector 75 | half4 worldPos = mul( _Object2World, v.vertex ); 76 | o.eyeDir.xyz = normalize( _WorldSpaceCameraPos.xyz - worldPos.xyz ).xyz; 77 | o.lightDir = WorldSpaceLightDir( v.vertex ); 78 | 79 | #ifdef ENABLE_NORMAL_MAP 80 | // Binormal and tangent (for normal map) 81 | o.tangent = normalize( mul( _Object2World, float4_t( v.tangent.xyz, 0 ) ).xyz ); 82 | o.binormal = normalize( cross( o.normal, o.tangent ) * v.tangent.w ); 83 | #endif 84 | 85 | #ifdef ENABLE_CAST_SHADOWS 86 | TRANSFER_VERTEX_TO_FRAGMENT( o ); 87 | #endif 88 | 89 | return o; 90 | } 91 | 92 | // Overlay blend 93 | inline float3_t GetOverlayColor( float3_t inUpper, float3_t inLower ) 94 | { 95 | float3_t oneMinusLower = float3_t( 1.0, 1.0, 1.0 ) - inLower; 96 | float3_t valUnit = 2.0 * oneMinusLower; 97 | float3_t minValue = 2.0 * inLower - float3_t( 1.0, 1.0, 1.0 ); 98 | float3_t greaterResult = inUpper * valUnit + minValue; 99 | 100 | float3_t lowerResult = 2.0 * inLower * inUpper; 101 | 102 | half3 lerpVals = round(inLower); 103 | return lerp(lowerResult, greaterResult, lerpVals); 104 | } 105 | 106 | #ifdef ENABLE_NORMAL_MAP 107 | 108 | // Compute normal from normal map 109 | inline float3_t GetNormalFromMap( v2f input ) 110 | { 111 | float3_t normalVec = normalize( tex2D( _NormalMapSampler, input.uv ).xyz * 2.0 - 1.0 ); 112 | float3x3_t localToWorldTranspose = float3x3_t( 113 | input.tangent, 114 | input.binormal, 115 | input.normal 116 | ); 117 | 118 | normalVec = normalize( mul( normalVec, localToWorldTranspose ) ); 119 | return normalVec; 120 | } 121 | 122 | #endif 123 | 124 | // Fragment shader 125 | float4 frag( v2f i ) : COLOR 126 | { 127 | float4_t diffSamplerColor = tex2D( _MainTex, i.uv.xy ); 128 | 129 | #ifdef ENABLE_NORMAL_MAP 130 | float3_t normalVec = GetNormalFromMap( i ); 131 | #else 132 | float3_t normalVec = i.normal; 133 | #endif 134 | 135 | // Falloff. Convert the angle between the normal and the camera direction into a lookup for the gradient 136 | float_t normalDotEye = dot( normalVec, i.eyeDir.xyz ); 137 | float_t falloffU = clamp( 1.0 - abs( normalDotEye ), 0.02, 0.98 ); 138 | float4_t falloffSamplerColor = FALLOFF_POWER * tex2D( _FalloffSampler, float2( falloffU, 0.25f ) ); 139 | float3_t shadowColor = diffSamplerColor.rgb * diffSamplerColor.rgb; 140 | float3_t combinedColor = lerp( diffSamplerColor.rgb, shadowColor, falloffSamplerColor.r ); 141 | combinedColor *= ( 1.0 + falloffSamplerColor.rgb * falloffSamplerColor.a ); 142 | 143 | // Specular 144 | // Use the eye vector as the light vector 145 | float4_t reflectionMaskColor = tex2D( _SpecularReflectionSampler, i.uv.xy ); 146 | float_t specularDot = dot( normalVec, i.eyeDir.xyz ); 147 | float4_t lighting = lit( normalDotEye, specularDot, _SpecularPower ); 148 | float3_t specularColor = saturate( lighting.z ) * reflectionMaskColor.rgb * diffSamplerColor.rgb; 149 | combinedColor += specularColor; 150 | 151 | // Reflection 152 | float3_t reflectVector = reflect( -i.eyeDir.xyz, normalVec ).xzy; 153 | float2_t sphereMapCoords = 0.5 * ( float2_t( 1.0, 1.0 ) + reflectVector.xy ); 154 | float3_t reflectColor = tex2D( _EnvMapSampler, sphereMapCoords ).rgb; 155 | reflectColor = GetOverlayColor( reflectColor, combinedColor ); 156 | 157 | combinedColor = lerp( combinedColor, reflectColor, reflectionMaskColor.a ); 158 | combinedColor *= _Color.rgb * _LightColor0.rgb; 159 | float opacity = diffSamplerColor.a * _Color.a * _LightColor0.a; 160 | 161 | #ifdef ENABLE_CAST_SHADOWS 162 | // Cast shadows 163 | shadowColor = _ShadowColor.rgb * combinedColor; 164 | float_t attenuation = saturate( 2.0 * LIGHT_ATTENUATION( i ) - 1.0 ); 165 | combinedColor = lerp( shadowColor, combinedColor, attenuation ); 166 | #endif 167 | 168 | // Rimlight 169 | float_t rimlightDot = saturate( 0.5 * ( dot( normalVec, i.lightDir ) + 1.0 ) ); 170 | falloffU = saturate( rimlightDot * falloffU ); 171 | falloffU = tex2D( _RimLightSampler, float2( falloffU, 0.25f ) ).r; 172 | float3_t lightColor = diffSamplerColor.rgb; // * 2.0; 173 | combinedColor += falloffU * lightColor; 174 | 175 | return float4( combinedColor, opacity ); 176 | } 177 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/CharaMain.cg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c3d0f1648f39e1a408ca5a56b25e96bf 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/CharaOutline.cg: -------------------------------------------------------------------------------- 1 | // Outline shader 2 | 3 | // Editable parameters 4 | 5 | // Material color 6 | float4 _Color; 7 | 8 | // Light color 9 | float4 _LightColor0; 10 | 11 | // Outline thickness 12 | float _EdgeThickness = 1.0; 13 | 14 | // Depth bias to help prevent z-fighting 15 | float _DepthBias = 0.00012; 16 | 17 | float4 _MainTex_ST; 18 | 19 | // Main texture 20 | sampler2D _MainTex; 21 | 22 | struct v2f 23 | { 24 | float4 pos : SV_POSITION; 25 | float2 UV : TEXCOORD0; 26 | }; 27 | 28 | // Float types 29 | #define float_t half 30 | #define float2_t half2 31 | #define float3_t half3 32 | #define float4_t half4 33 | 34 | // Amount to scale the distance from the camera into a value to scale the outline by. Tweak as desired 35 | #define OUTLINE_DISTANCE_SCALE (0.0016) 36 | // Minimum and maximum outline thicknesses (Before multiplying by _EdgeThickness) 37 | #define OUTLINE_NORMAL_SCALE_MIN (0.003) 38 | #define OUTLINE_NORMAL_SCALE_MAX (0.030) 39 | 40 | // Vertex shader 41 | v2f vert(appdata_base v) 42 | { 43 | float4 projPos = mul(UNITY_MATRIX_MVP, v.vertex); 44 | float4 projNormal = normalize(mul(UNITY_MATRIX_MVP, float4(v.normal, 0))); 45 | 46 | float distanceToCamera = OUTLINE_DISTANCE_SCALE * projPos.z; 47 | float normalScale = _EdgeThickness * 48 | lerp(OUTLINE_NORMAL_SCALE_MIN, OUTLINE_NORMAL_SCALE_MAX, distanceToCamera); 49 | 50 | v2f o; 51 | o.pos = projPos + normalScale * projNormal; 52 | o.pos.z += _DepthBias; 53 | o.UV = v.texcoord.xy; 54 | 55 | return o; 56 | } 57 | 58 | // Get the maximum component of a 3-component color 59 | inline float_t GetMaxComponent(float3_t inColor) 60 | { 61 | return max(max(inColor.r, inColor.g), inColor.b); 62 | } 63 | 64 | // Function to fake setting the saturation of a color. Not a true HSL computation. 65 | inline float3_t SetSaturation(float3_t inColor, float_t inSaturation) 66 | { 67 | // Compute the saturated color to be one where all components smaller than the max are set to 0. 68 | // Note that this is just an approximation. 69 | float_t maxComponent = GetMaxComponent(inColor) - 0.0001; 70 | float3_t saturatedColor = step(maxComponent.rrr, inColor) * inColor; 71 | return lerp(inColor, saturatedColor, inSaturation); 72 | } 73 | 74 | // Outline color parameters. Tweak as desired 75 | #define SATURATION_FACTOR 0.6 76 | #define BRIGHTNESS_FACTOR 0.8 77 | 78 | // Fragment shader 79 | float4_t frag(v2f i) : COLOR 80 | { 81 | float4_t mainMapColor = tex2D(_MainTex, i.UV); 82 | 83 | float3_t outlineColor = BRIGHTNESS_FACTOR 84 | * SetSaturation(mainMapColor.rgb, SATURATION_FACTOR) 85 | * mainMapColor.rgb; 86 | 87 | return float4_t(outlineColor, mainMapColor.a) * _Color * _LightColor0; 88 | } 89 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/CharaOutline.cg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 98e9eccf54dd0e34c9cb77865555483f 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/CharaSkin.cg: -------------------------------------------------------------------------------- 1 | // Character skin shader 2 | // Includes falloff shadow 3 | 4 | #define ENABLE_CAST_SHADOWS 5 | 6 | // Material parameters 7 | float4 _Color; 8 | float4 _ShadowColor; 9 | float4 _LightColor0; 10 | float4 _MainTex_ST; 11 | 12 | // Textures 13 | sampler2D _MainTex; 14 | sampler2D _FalloffSampler; 15 | sampler2D _RimLightSampler; 16 | 17 | // Constants 18 | #define FALLOFF_POWER 1.0 19 | 20 | #ifdef ENABLE_CAST_SHADOWS 21 | 22 | // Structure from vertex shader to fragment shader 23 | struct v2f 24 | { 25 | float4 pos : SV_POSITION; 26 | LIGHTING_COORDS( 0, 1 ) 27 | float3 normal : TEXCOORD2; 28 | float2 uv : TEXCOORD3; 29 | float3 eyeDir : TEXCOORD4; 30 | float3 lightDir : TEXCOORD5; 31 | }; 32 | 33 | #else 34 | 35 | // Structure from vertex shader to fragment shader 36 | struct v2f 37 | { 38 | float4 pos : SV_POSITION; 39 | float3 normal : TEXCOORD0; 40 | float2 uv : TEXCOORD1; 41 | float3 eyeDir : TEXCOORD2; 42 | float3 lightDir : TEXCOORD3; 43 | }; 44 | 45 | #endif 46 | 47 | // Float types 48 | #define float_t half 49 | #define float2_t half2 50 | #define float3_t half3 51 | #define float4_t half4 52 | 53 | // Vertex shader 54 | v2f vert( appdata_base v ) 55 | { 56 | v2f o; 57 | o.pos = mul( UNITY_MATRIX_MVP, v.vertex ); 58 | o.uv = TRANSFORM_TEX( v.texcoord.xy, _MainTex ); 59 | o.normal = normalize( mul( _Object2World, float4_t( v.normal, 0 ) ).xyz ); 60 | 61 | // Eye direction vector 62 | float4_t worldPos = mul( _Object2World, v.vertex ); 63 | o.eyeDir = normalize( _WorldSpaceCameraPos - worldPos ); 64 | 65 | o.lightDir = WorldSpaceLightDir( v.vertex ); 66 | 67 | #ifdef ENABLE_CAST_SHADOWS 68 | TRANSFER_VERTEX_TO_FRAGMENT( o ); 69 | #endif 70 | 71 | return o; 72 | } 73 | 74 | // Fragment shader 75 | float4 frag( v2f i ) : COLOR 76 | { 77 | float4_t diffSamplerColor = tex2D( _MainTex, i.uv ); 78 | 79 | // Falloff. Convert the angle between the normal and the camera direction into a lookup for the gradient 80 | float_t normalDotEye = dot( i.normal, i.eyeDir ); 81 | float_t falloffU = clamp( 1 - abs( normalDotEye ), 0.02, 0.98 ); 82 | float4_t falloffSamplerColor = FALLOFF_POWER * tex2D( _FalloffSampler, float2( falloffU, 0.25f ) ); 83 | float3_t combinedColor = lerp( diffSamplerColor.rgb, falloffSamplerColor.rgb * diffSamplerColor.rgb, falloffSamplerColor.a ); 84 | 85 | // Rimlight 86 | float_t rimlightDot = saturate( 0.5 * ( dot( i.normal, i.lightDir ) + 1.0 ) ); 87 | falloffU = saturate( rimlightDot * falloffU ); 88 | //falloffU = saturate( ( rimlightDot * falloffU - 0.5 ) * 32.0 ); 89 | falloffU = tex2D( _RimLightSampler, float2( falloffU, 0.25f ) ).r; 90 | float3_t lightColor = diffSamplerColor.rgb * 0.5; // * 2.0; 91 | combinedColor += falloffU * lightColor; 92 | 93 | #ifdef ENABLE_CAST_SHADOWS 94 | // Cast shadows 95 | float3_t shadowColor = _ShadowColor.rgb * combinedColor; 96 | float_t attenuation = saturate( 2.0 * LIGHT_ATTENUATION( i ) - 1.0 ); 97 | combinedColor = lerp( shadowColor, combinedColor, attenuation ); 98 | #endif 99 | 100 | return float4_t( combinedColor, diffSamplerColor.a ) * _Color * _LightColor0; 101 | } 102 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/CharaSkin.cg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe01eae1ec1d1c24b99530833c8c8241 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/Unitychan_chara_akarami_blend.shader: -------------------------------------------------------------------------------- 1 | Shader "UnityChan/Blush - Transparent" 2 | { 3 | Properties 4 | { 5 | _Color ("Main Color", Color) = (1, 1, 1, 1) 6 | _ShadowColor ("Shadow Color", Color) = (0.8, 0.8, 1, 1) 7 | 8 | _MainTex ("Diffuse", 2D) = "white" {} 9 | _FalloffSampler ("Falloff Control", 2D) = "white" {} 10 | _RimLightSampler ("RimLight Control", 2D) = "white" {} 11 | } 12 | 13 | SubShader 14 | { 15 | Blend SrcAlpha OneMinusSrcAlpha, One One 16 | ZWrite Off 17 | Tags 18 | { 19 | "Queue"="Geometry+3" 20 | "IgnoreProjector"="True" 21 | "RenderType"="Overlay" 22 | "LightMode"="ForwardBase" 23 | } 24 | 25 | Pass 26 | { 27 | Cull Back 28 | ZTest LEqual 29 | CGPROGRAM 30 | #pragma multi_compile_fwdbase 31 | #pragma target 3.0 32 | #pragma vertex vert 33 | #pragma fragment frag 34 | #include "UnityCG.cginc" 35 | #include "AutoLight.cginc" 36 | #include "CharaSkin.cg" 37 | ENDCG 38 | } 39 | } 40 | 41 | FallBack "Transparent/Cutout/Diffuse" 42 | } 43 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/Unitychan_chara_akarami_blend.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0298b868476735f41857e9ba8f0d4cd1 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/Unitychan_chara_eye.shader: -------------------------------------------------------------------------------- 1 | Shader "UnityChan/Eye" 2 | { 3 | Properties 4 | { 5 | _Color ("Main Color", Color) = (1, 1, 1, 1) 6 | _ShadowColor ("Shadow Color", Color) = (0.8, 0.8, 1, 1) 7 | 8 | _MainTex ("Diffuse", 2D) = "white" {} 9 | _FalloffSampler ("Falloff Control", 2D) = "white" {} 10 | _RimLightSampler ("RimLight Control", 2D) = "white" {} 11 | } 12 | 13 | SubShader 14 | { 15 | Tags 16 | { 17 | "RenderType"="Opaque" 18 | "Queue"="Geometry" 19 | "LightMode"="ForwardBase" 20 | } 21 | 22 | Pass 23 | { 24 | Cull Back 25 | ZTest LEqual 26 | CGPROGRAM 27 | #pragma multi_compile_fwdbase 28 | #pragma target 3.0 29 | #pragma vertex vert 30 | #pragma fragment frag 31 | #include "UnityCG.cginc" 32 | #include "AutoLight.cginc" 33 | #include "CharaSkin.cg" 34 | ENDCG 35 | } 36 | } 37 | 38 | FallBack "Transparent/Cutout/Diffuse" 39 | } 40 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/Unitychan_chara_eye.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: abaf2020b803b6847b5c081ed22c05c5 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/Unitychan_chara_eye_blend.shader: -------------------------------------------------------------------------------- 1 | Shader "UnityChan/Eye - Transparent" 2 | { 3 | Properties 4 | { 5 | _Color ("Main Color", Color) = (1, 1, 1, 1) 6 | _ShadowColor ("Shadow Color", Color) = (0.8, 0.8, 1, 1) 7 | 8 | _MainTex ("Diffuse", 2D) = "white" {} 9 | _FalloffSampler ("Falloff Control", 2D) = "white" {} 10 | _RimLightSampler ("RimLight Control", 2D) = "white" {} 11 | } 12 | 13 | SubShader 14 | { 15 | Blend SrcAlpha OneMinusSrcAlpha, One One 16 | Tags 17 | { 18 | "Queue"="Geometry+1" // Transparent+1" 19 | "IgnoreProjector"="True" 20 | "RenderType"="Overlay" 21 | "LightMode"="ForwardBase" 22 | } 23 | 24 | Pass 25 | { 26 | Cull Back 27 | ZTest LEqual 28 | CGPROGRAM 29 | #pragma multi_compile_fwdbase 30 | #pragma target 3.0 31 | #pragma vertex vert 32 | #pragma fragment frag 33 | #include "UnityCG.cginc" 34 | #include "AutoLight.cginc" 35 | #include "CharaSkin.cg" 36 | ENDCG 37 | } 38 | } 39 | 40 | FallBack "Transparent/Cutout/Diffuse" 41 | } 42 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/Unitychan_chara_eye_blend.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bf944057124b80b4e84496139e3b072c 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/Unitychan_chara_eyelash_blend.shader: -------------------------------------------------------------------------------- 1 | Shader "UnityChan/Eyelash - Transparent" 2 | { 3 | Properties 4 | { 5 | _Color ("Main Color", Color) = (1, 1, 1, 1) 6 | _ShadowColor ("Shadow Color", Color) = (0.8, 0.8, 1, 1) 7 | 8 | _MainTex ("Diffuse", 2D) = "white" {} 9 | _FalloffSampler ("Falloff Control", 2D) = "white" {} 10 | _RimLightSampler ("RimLight Control", 2D) = "white" {} 11 | } 12 | 13 | SubShader 14 | { 15 | Blend SrcAlpha OneMinusSrcAlpha, One One 16 | Tags 17 | { 18 | "Queue"="Geometry+2" 19 | // "IgnoreProjector"="True" 20 | "RenderType"="Overlay" 21 | "LightMode"="ForwardBase" 22 | } 23 | 24 | Pass 25 | { 26 | Cull Back 27 | ZTest LEqual 28 | CGPROGRAM 29 | #pragma multi_compile_fwdbase 30 | #pragma target 3.0 31 | #pragma vertex vert 32 | #pragma fragment frag 33 | #include "UnityCG.cginc" 34 | #include "AutoLight.cginc" 35 | #include "CharaSkin.cg" 36 | ENDCG 37 | } 38 | } 39 | 40 | FallBack "Transparent/Cutout/Diffuse" 41 | } 42 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/Unitychan_chara_eyelash_blend.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9627902a73805264c818754ecb22c8f9 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/Unitychan_chara_fuku.shader: -------------------------------------------------------------------------------- 1 | Shader "UnityChan/Clothing" 2 | { 3 | Properties 4 | { 5 | _Color ("Main Color", Color) = (1, 1, 1, 1) 6 | _ShadowColor ("Shadow Color", Color) = (0.8, 0.8, 1, 1) 7 | _SpecularPower ("Specular Power", Float) = 20 8 | _EdgeThickness ("Outline Thickness", Float) = 1 9 | _DepthBias ("Outline Depth Bias", Float) = 0.00012 10 | 11 | _MainTex ("Diffuse", 2D) = "white" {} 12 | _FalloffSampler ("Falloff Control", 2D) = "white" {} 13 | _RimLightSampler ("RimLight Control", 2D) = "white" {} 14 | _SpecularReflectionSampler ("Specular / Reflection Mask", 2D) = "white" {} 15 | _EnvMapSampler ("Environment Map", 2D) = "" {} 16 | _NormalMapSampler ("Normal Map", 2D) = "" {} 17 | } 18 | 19 | SubShader 20 | { 21 | Tags 22 | { 23 | "RenderType"="Opaque" 24 | "Queue"="Geometry" 25 | "LightMode"="ForwardBase" 26 | } 27 | 28 | Pass 29 | { 30 | Cull Back 31 | ZTest LEqual 32 | CGPROGRAM 33 | #pragma multi_compile_fwdbase 34 | #pragma target 3.0 35 | #pragma vertex vert 36 | #pragma fragment frag 37 | #include "UnityCG.cginc" 38 | #include "AutoLight.cginc" 39 | #define ENABLE_NORMAL_MAP 40 | #include "CharaMain.cg" 41 | ENDCG 42 | } 43 | 44 | Pass 45 | { 46 | Cull Front 47 | ZTest Less 48 | CGPROGRAM 49 | #pragma target 3.0 50 | #pragma vertex vert 51 | #pragma fragment frag 52 | #include "UnityCG.cginc" 53 | #include "CharaOutline.cg" 54 | ENDCG 55 | } 56 | 57 | } 58 | 59 | FallBack "Transparent/Cutout/Diffuse" 60 | } 61 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/Unitychan_chara_fuku.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 00262b50562beb14cbab9b52bced4f9f 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/Unitychan_chara_fuku_ds.shader: -------------------------------------------------------------------------------- 1 | Shader "UnityChan/Clothing - Double-sided" 2 | { 3 | Properties 4 | { 5 | _Color ("Main Color", Color) = (1, 1, 1, 1) 6 | _ShadowColor ("Shadow Color", Color) = (0.8, 0.8, 1, 1) 7 | _SpecularPower ("Specular Power", Float) = 20 8 | _EdgeThickness ("Outline Thickness", Float) = 1 9 | _DepthBias ("Outline Depth Bias", Float) = 0.00012 10 | 11 | _MainTex ("Diffuse", 2D) = "white" {} 12 | _FalloffSampler ("Falloff Control", 2D) = "white" {} 13 | _RimLightSampler ("RimLight Control", 2D) = "white" {} 14 | _SpecularReflectionSampler ("Specular / Reflection Mask", 2D) = "white" {} 15 | _EnvMapSampler ("Environment Map", 2D) = "" {} 16 | _NormalMapSampler ("Normal Map", 2D) = "" {} 17 | } 18 | 19 | SubShader 20 | { 21 | Tags 22 | { 23 | "RenderType"="Opaque" 24 | "Queue"="Geometry" 25 | "LightMode"="ForwardBase" 26 | } 27 | 28 | Pass 29 | { 30 | Cull Off 31 | ZTest LEqual 32 | CGPROGRAM 33 | #pragma multi_compile_fwdbase 34 | #pragma target 3.0 35 | #pragma vertex vert 36 | #pragma fragment frag 37 | #include "UnityCG.cginc" 38 | #include "AutoLight.cginc" 39 | #define ENABLE_NORMAL_MAP 40 | #include "CharaMain.cg" 41 | ENDCG 42 | } 43 | 44 | Pass 45 | { 46 | Cull Front 47 | ZTest Less 48 | CGPROGRAM 49 | #pragma target 3.0 50 | #pragma vertex vert 51 | #pragma fragment frag 52 | #include "UnityCG.cginc" 53 | #include "CharaOutline.cg" 54 | ENDCG 55 | } 56 | 57 | } 58 | 59 | FallBack "Transparent/Cutout/Diffuse" 60 | } 61 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/Unitychan_chara_fuku_ds.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 96d05de60c5f7474491f9f94568cf623 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/Unitychan_chara_hada.shader: -------------------------------------------------------------------------------- 1 | Shader "UnityChan/Skin" 2 | { 3 | Properties 4 | { 5 | _Color ("Main Color", Color) = (1, 1, 1, 1) 6 | _ShadowColor ("Shadow Color", Color) = (0.8, 0.8, 1, 1) 7 | _EdgeThickness ("Outline Thickness", Float) = 1 8 | _DepthBias ("Outline Depth Bias", Float) = 0.00012 9 | 10 | _MainTex ("Diffuse", 2D) = "white" {} 11 | _FalloffSampler ("Falloff Control", 2D) = "white" {} 12 | _RimLightSampler ("RimLight Control", 2D) = "white" {} 13 | } 14 | 15 | SubShader 16 | { 17 | Tags 18 | { 19 | "RenderType"="Opaque" 20 | "Queue"="Geometry" 21 | "LightMode"="ForwardBase" 22 | } 23 | 24 | Pass 25 | { 26 | Cull Back 27 | ZTest LEqual 28 | CGPROGRAM 29 | #pragma multi_compile_fwdbase 30 | #pragma target 3.0 31 | #pragma vertex vert 32 | #pragma fragment frag 33 | #include "UnityCG.cginc" 34 | #include "AutoLight.cginc" 35 | #include "CharaSkin.cg" 36 | ENDCG 37 | } 38 | 39 | Pass 40 | { 41 | Cull Front 42 | ZTest Less 43 | CGPROGRAM 44 | #pragma target 3.0 45 | #pragma vertex vert 46 | #pragma fragment frag 47 | #include "UnityCG.cginc" 48 | #include "CharaOutline.cg" 49 | ENDCG 50 | } 51 | 52 | } 53 | 54 | FallBack "Transparent/Cutout/Diffuse" 55 | } 56 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/Unitychan_chara_hada.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b35a2abbdd5b15d4ca40103088758eac 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/Unitychan_chara_hada_blend.shader: -------------------------------------------------------------------------------- 1 | Shader "UnityChan/Skin - Transparent" 2 | { 3 | Properties 4 | { 5 | _Color ("Main Color", Color) = (1, 1, 1, 1) 6 | _ShadowColor ("Shadow Color", Color) = (0.8, 0.8, 1, 1) 7 | 8 | _MainTex ("Diffuse", 2D) = "white" {} 9 | _FalloffSampler ("Falloff Control", 2D) = "white" {} 10 | _RimLightSampler ("RimLight Control", 2D) = "white" {} 11 | } 12 | 13 | SubShader 14 | { 15 | Blend SrcAlpha OneMinusSrcAlpha, One One 16 | Tags 17 | { 18 | "Queue"="Transparent+1" 19 | "IgnoreProjector"="True" 20 | "RenderType"="Overlay" 21 | "LightMode"="ForwardBase" 22 | } 23 | 24 | Pass 25 | { 26 | Cull Back 27 | ZTest LEqual 28 | CGPROGRAM 29 | #pragma multi_compile_fwdbase 30 | #pragma target 3.0 31 | #pragma vertex vert 32 | #pragma fragment frag 33 | #include "UnityCG.cginc" 34 | #include "AutoLight.cginc" 35 | #include "CharaSkin.cg" 36 | ENDCG 37 | } 38 | } 39 | 40 | FallBack "Transparent/Cutout/Diffuse" 41 | } 42 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/Unitychan_chara_hada_blend.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7a95784c68f03494d8c7911e15fab82a 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/Unitychan_chara_hair.shader: -------------------------------------------------------------------------------- 1 | Shader "UnityChan/Hair" 2 | { 3 | Properties 4 | { 5 | _Color ("Main Color", Color) = (1, 1, 1, 1) 6 | _ShadowColor ("Shadow Color", Color) = (0.8, 0.8, 1, 1) 7 | _SpecularPower ("Specular Power", Float) = 20 8 | _EdgeThickness ("Outline Thickness", Float) = 1 9 | _DepthBias ("Outline Depth Bias", Float) = 0.00012 10 | 11 | _MainTex ("Diffuse", 2D) = "white" {} 12 | _FalloffSampler ("Falloff Control", 2D) = "white" {} 13 | _RimLightSampler ("RimLight Control", 2D) = "white" {} 14 | _SpecularReflectionSampler ("Specular / Reflection Mask", 2D) = "white" {} 15 | _EnvMapSampler ("Environment Map", 2D) = "" {} 16 | _NormalMapSampler ("Normal Map", 2D) = "" {} 17 | } 18 | 19 | SubShader 20 | { 21 | Tags 22 | { 23 | "RenderType"="Opaque" 24 | "Queue"="Geometry" 25 | "LightMode"="ForwardBase" 26 | } 27 | 28 | Pass 29 | { 30 | Cull Back 31 | ZTest LEqual 32 | CGPROGRAM 33 | #pragma multi_compile_fwdbase 34 | #pragma target 3.0 35 | #pragma vertex vert 36 | #pragma fragment frag 37 | #include "UnityCG.cginc" 38 | #include "AutoLight.cginc" 39 | #define ENABLE_NORMAL_MAP 40 | #include "CharaMain.cg" 41 | ENDCG 42 | } 43 | 44 | Pass 45 | { 46 | Cull Front 47 | ZTest Less 48 | CGPROGRAM 49 | #pragma target 3.0 50 | #pragma vertex vert 51 | #pragma fragment frag 52 | #include "UnityCG.cginc" 53 | #include "CharaOutline.cg" 54 | ENDCG 55 | } 56 | 57 | } 58 | 59 | FallBack "Transparent/Cutout/Diffuse" 60 | } 61 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/Unitychan_chara_hair.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe3954a9664afb042a2af588b53680b0 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/Unitychan_chara_hair_ds.shader: -------------------------------------------------------------------------------- 1 | Shader "UnityChan/Hair - Double-sided" 2 | { 3 | Properties 4 | { 5 | _Color ("Main Color", Color) = (1, 1, 1, 1) 6 | _ShadowColor ("Shadow Color", Color) = (0.8, 0.8, 1, 1) 7 | _SpecularPower ("Specular Power", Float) = 20 8 | _EdgeThickness ("Outline Thickness", Float) = 1 9 | _DepthBias ("Outline Depth Bias", Float) = 0.00012 10 | 11 | _MainTex ("Diffuse", 2D) = "white" {} 12 | _FalloffSampler ("Falloff Control", 2D) = "white" {} 13 | _RimLightSampler ("RimLight Control", 2D) = "white" {} 14 | _SpecularReflectionSampler ("Specular / Reflection Mask", 2D) = "white" {} 15 | _EnvMapSampler ("Environment Map", 2D) = "" {} 16 | _NormalMapSampler ("Normal Map", 2D) = "" {} 17 | } 18 | 19 | SubShader 20 | { 21 | Tags 22 | { 23 | "RenderType"="Opaque" 24 | "Queue"="Geometry" 25 | "LightMode"="ForwardBase" 26 | } 27 | 28 | Pass 29 | { 30 | Cull Off 31 | ZTest LEqual 32 | CGPROGRAM 33 | #pragma multi_compile_fwdbase 34 | #pragma target 3.0 35 | #pragma vertex vert 36 | #pragma fragment frag 37 | #include "UnityCG.cginc" 38 | #include "AutoLight.cginc" 39 | #define ENABLE_NORMAL_MAP 40 | #include "CharaMain.cg" 41 | ENDCG 42 | } 43 | 44 | Pass 45 | { 46 | Cull Front 47 | ZTest Less 48 | CGPROGRAM 49 | #pragma target 3.0 50 | #pragma vertex vert 51 | #pragma fragment frag 52 | #include "UnityCG.cginc" 53 | #include "CharaOutline.cg" 54 | ENDCG 55 | } 56 | 57 | } 58 | 59 | FallBack "Transparent/Cutout/Diffuse" 60 | } 61 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/Unitychan_chara_hair_ds.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 235ca6f7bbc0ead4990f386a7ec24292 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/readme.txt: -------------------------------------------------------------------------------- 1 | ユニティちゃんシェーダー Ver. 1.2.1 2 | 3 | 2015/03/11 Unity Technologies Japan 4 | 5 | 6 | 一部モバイル環境で見られるアウトラインのZファイティングを改善したバージョンです。 7 | 従来のユニティちゃんシェーダーに上書きをする形で使用します。 8 | -------------------------------------------------------------------------------- /Assets/UnityChan/Models/UnityChanShader/Shader/readme.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a2e870404fcb4620b9e791fbb837d74 3 | TextScriptImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 89299a54a9daec34b9c42436089b5716 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/Prefabs/Directional light for UnityChan.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &100000 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 100100000} 8 | serializedVersion: 4 9 | m_Component: 10 | - 4: {fileID: 400000} 11 | - 108: {fileID: 10800000} 12 | m_Layer: 0 13 | m_Name: Directional light for UnityChan 14 | m_TagString: Untagged 15 | m_Icon: {fileID: 0} 16 | m_NavMeshLayer: 0 17 | m_StaticEditorFlags: 0 18 | m_IsActive: 1 19 | --- !u!4 &400000 20 | Transform: 21 | m_ObjectHideFlags: 1 22 | m_PrefabParentObject: {fileID: 0} 23 | m_PrefabInternal: {fileID: 100100000} 24 | m_GameObject: {fileID: 100000} 25 | m_LocalRotation: {x: -.856752872, y: .376942098, z: -.243369579, w: -.254284263} 26 | m_LocalPosition: {x: -.996119499, y: 2.05728006, z: -.185848951} 27 | m_LocalScale: {x: 1, y: 1, z: 1} 28 | m_Children: [] 29 | m_Father: {fileID: 0} 30 | --- !u!108 &10800000 31 | Light: 32 | m_ObjectHideFlags: 1 33 | m_PrefabParentObject: {fileID: 0} 34 | m_PrefabInternal: {fileID: 100100000} 35 | m_GameObject: {fileID: 100000} 36 | m_Enabled: 1 37 | serializedVersion: 3 38 | m_Type: 1 39 | m_Color: {r: 1, g: 1, b: 1, a: 1} 40 | m_Intensity: 1 41 | m_Range: 10 42 | m_SpotAngle: 30 43 | m_CookieSize: 10 44 | m_Shadows: 45 | m_Type: 2 46 | m_Resolution: -1 47 | m_Strength: 1 48 | m_Bias: .0500000007 49 | m_Softness: 2.26999998 50 | m_SoftnessFade: 1 51 | m_Cookie: {fileID: 0} 52 | m_DrawHalo: 0 53 | m_ActuallyLightmapped: 0 54 | m_Flare: {fileID: 0} 55 | m_RenderMode: 0 56 | m_CullingMask: 57 | serializedVersion: 2 58 | m_Bits: 4294967295 59 | m_Lightmapping: 1 60 | m_ShadowSamples: 1 61 | m_ShadowRadius: 0 62 | m_ShadowAngle: 0 63 | m_IndirectIntensity: 1 64 | m_AreaSize: {x: 1, y: 1} 65 | --- !u!1001 &100100000 66 | Prefab: 67 | m_ObjectHideFlags: 1 68 | serializedVersion: 2 69 | m_Modification: 70 | m_TransformParent: {fileID: 0} 71 | m_Modifications: [] 72 | m_RemovedComponents: [] 73 | m_ParentPrefab: {fileID: 0} 74 | m_RootGameObject: {fileID: 100000} 75 | m_IsPrefabParent: 1 76 | m_IsExploded: 1 77 | -------------------------------------------------------------------------------- /Assets/UnityChan/Prefabs/Directional light for UnityChan.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b76c71a1e3f6c4fdab657f4fbf5466de 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 700bc05bc3431044193a348b6838b4a7 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Animations.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 04f73a2b09f11ef4ca887c338814f973 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Animations/SD_unitychan_motion_Generic.controller: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/Animations/SD_unitychan_motion_Generic.controller -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Animations/SD_unitychan_motion_Generic.controller.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7b8db3e2f0141a94ca06a5f0dcaa7b9c 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Animations/SD_unitychan_motion_Generic.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/Animations/SD_unitychan_motion_Generic.fbx -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Animations/SD_unitychan_motion_humanoid.controller: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/Animations/SD_unitychan_motion_humanoid.controller -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Animations/SD_unitychan_motion_humanoid.controller.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a0702f03fac0faa4d983e423203b2fb4 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Animations/SD_unitychan_motion_humanoid.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/Animations/SD_unitychan_motion_humanoid.fbx -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5b1c87a3b91d3414ca85dca100de04ed 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cebe7ff9894836c4db0c2965ce04a1fd 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/angry@sd_generic.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/angry@sd_generic.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/angry@sd_generic.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b6af7063efc0bc6468d4cd7f0b9fe0f9 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/confuse@sd_generic.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/confuse@sd_generic.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/confuse@sd_generic.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6bc770c2b792a814b933a20020654d70 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/damaged@sd_generic.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/damaged@sd_generic.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/damaged@sd_generic.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7753af29ddf89c24997a3af890dd69b0 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/default@sd_generic.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/default@sd_generic.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/default@sd_generic.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a69449929078cf14a99a34501fd4e5a0 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/eye_close@sd_generic.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/eye_close@sd_generic.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/eye_close@sd_generic.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 433a706b1b1cac9488ddbd2d1083baf9 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/mth_L@sd_generic.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/mth_L@sd_generic.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/mth_L@sd_generic.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: af80b011e2db14248815aa9b483264ca 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/mth_R@sd_generic.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/mth_R@sd_generic.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/mth_R@sd_generic.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a4678d510ba7ab449c6a94d12ddb49e 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/mth_a@sd_generic.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/mth_a@sd_generic.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/mth_a@sd_generic.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a38817086aca50e449be73167fd9fc0b 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/mth_e@sd_generic.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/mth_e@sd_generic.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/mth_e@sd_generic.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 64e8e919196070343b5b04e5b1a12292 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/mth_i@sd_generic.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/mth_i@sd_generic.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/mth_i@sd_generic.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d0cd7872021e3f48b584e0c14a8069f 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/mth_o@sd_generic.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/mth_o@sd_generic.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/mth_o@sd_generic.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 271ba0f0962ffe240ac223395ab3f8d5 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/mth_u@sd_generic.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/mth_u@sd_generic.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/mth_u@sd_generic.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e1bf3957b66d1f940ae32181274e5d38 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/relux@sd_generic.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/relux@sd_generic.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/relux@sd_generic.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: abca4b366869eeb4b9e8bc9a82031de8 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/sad@sd_generic.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/sad@sd_generic.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/sad@sd_generic.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac018e0743b1c0344ad0643151e416ac 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/scold@sd_generic.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/scold@sd_generic.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/scold@sd_generic.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eb0ff5dd0d2591f4b8790ef033375a40 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/smile2@sd_generic.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/smile2@sd_generic.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/smile2@sd_generic.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cad8a141717a7354c99414a512a598a0 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/smile@sd_generic.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/smile@sd_generic.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/smile@sd_generic.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f63e6c7ca833eac4e92df46a104911cf 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/strain@sd_generic.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/strain@sd_generic.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/strain@sd_generic.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 962012f756587bd45b49dec07bac580c 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/surprise@sd_generic.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/surprise@sd_generic.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Generic/surprise@sd_generic.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9553278f438c5344082f1692d1c162e8 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c57263c8486a4f4c804707428e0cfba 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/angry@sd_hmd.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/angry@sd_hmd.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/angry@sd_hmd.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d022baae72960439ca9bc35168cde644 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/confuse@sd_hmd.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/confuse@sd_hmd.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/confuse@sd_hmd.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7fb84b7bbc6fe402a8a888ea10646789 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/damaged@sd_hmd.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/damaged@sd_hmd.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/damaged@sd_hmd.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 052052524e8fd4e47b75db0131b4b118 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/default@sd_hmd.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/default@sd_hmd.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/default@sd_hmd.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5ba07efc7490d48959dfb3879f8be04a 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/eye_close@sd_hmd.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/eye_close@sd_hmd.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/eye_close@sd_hmd.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c6ef5f43979d4ac396faf724a6a4dd0 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/mth_L@sd_hmd.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/mth_L@sd_hmd.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/mth_L@sd_hmd.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0ccfe86ed1121478bbeacb8e227ec19c 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/mth_R@sd_hmd.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/mth_R@sd_hmd.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/mth_R@sd_hmd.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 508261753cbbd4493b10da3a43602a39 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/mth_a@sd_hmd.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/mth_a@sd_hmd.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/mth_a@sd_hmd.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ac255bd0dd6047e9b2df5ac70b1c45d 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/mth_e@sd_hmd.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/mth_e@sd_hmd.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/mth_e@sd_hmd.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e7c86dc2bf7f54f6caa8076d5b450437 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/mth_i@sd_hmd.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/mth_i@sd_hmd.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/mth_i@sd_hmd.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a13d16a8fe186444f9bd2b411d43351c 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/mth_o@sd_hmd.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/mth_o@sd_hmd.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/mth_o@sd_hmd.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 24f6fd9f7d6e14b429858f4d017e7195 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/mth_u@sd_hmd.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/mth_u@sd_hmd.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/mth_u@sd_hmd.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 73be46601457e417584986e26fcaf567 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/relux@sd_hmd.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/relux@sd_hmd.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/relux@sd_hmd.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0c7ae9e4974854c81a425f98211bc25f 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/sad@sd_hmd.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/sad@sd_hmd.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/sad@sd_hmd.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ccf2553d159754da6b08936ec9999869 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/scold@sd_hmd.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/scold@sd_hmd.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/scold@sd_hmd.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e4b9611887a9f43c0ae3fc39870a7b5f 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/smile2@sd_hmd.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/smile2@sd_hmd.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/smile2@sd_hmd.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a9388e606933645cdbb57d61ab9cc186 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/smile@sd_hmd.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/smile@sd_hmd.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/smile@sd_hmd.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cec97cfaae8c7454f9e3fb92ebf3b337 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/strain@sd_hmd.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/strain@sd_hmd.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/strain@sd_hmd.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e996ba46f070c4ec9b73996777f95a10 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/surprise@sd_hmd.anim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/surprise@sd_hmd.anim -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/Humanoid/surprise@sd_hmd.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4b7c62bb2e05c47c5afd5486e2eceaf6 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/_faceOnly.mask: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/FaceAnimations/_faceOnly.mask -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/FaceAnimations/_faceOnly.mask.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2d4e0e0d2eda147be851af6d686de166 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ce5dbc604fdbae54ca9eff44dfbc9992 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d082e0bb5ac6fdb4a81a858b4f437832 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Materials/def_mat.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/Models/Materials/def_mat.mat -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Materials/def_mat.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 33617e2203e55fa46801e063486b59f3 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Materials/hair_mat.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/Models/Materials/hair_mat.mat -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Materials/hair_mat.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 787cbe8c6e6ebf74e856c2ccb3eb1923 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Materials/mouth_mat.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/Models/Materials/mouth_mat.mat -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Materials/mouth_mat.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 09608bb10cbd4714a94445805ab7a652 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Materials/nol_mat.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/Models/Materials/nol_mat.mat -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Materials/nol_mat.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a172534e4207dec438dea0e660e996a7 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Materials/skin_mat.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/Models/Materials/skin_mat.mat -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Materials/skin_mat.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b87a4da61900d68429a41bed3ea42d16 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/SD_unitychan_generic.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/Models/SD_unitychan_generic.fbx -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/SD_unitychan_generic.fbx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 29032ffe50eebbd41b9e5c4017762813 3 | ModelImporter: 4 | serializedVersion: 18 5 | fileIDToRecycleName: 6 | 100000: _body 7 | 100002: _eye 8 | 100004: _face 9 | 100006: _Fhair 10 | 100008: _Fhair2 11 | 100010: _head 12 | 100012: bone_eye_L 13 | 100014: bone_eye_R 14 | 100016: center 15 | 100018: Character1_Head 16 | 100020: Character1_Hips 17 | 100022: Character1_LeftArm 18 | 100024: Character1_LeftFoot 19 | 100026: Character1_LeftForeArm 20 | 100028: Character1_LeftHand 21 | 100030: Character1_LeftHandIndex1 22 | 100032: Character1_LeftHandIndex2 23 | 100034: Character1_LeftHandIndex3 24 | 100036: Character1_LeftHandMiddle1 25 | 100038: Character1_LeftHandMiddle2 26 | 100040: Character1_LeftHandMiddle3 27 | 100042: Character1_LeftHandPinky1 28 | 100044: Character1_LeftHandPinky2 29 | 100046: Character1_LeftHandPinky3 30 | 100048: Character1_LeftHandRing1 31 | 100050: Character1_LeftHandRing2 32 | 100052: Character1_LeftHandRing3 33 | 100054: Character1_LeftHandThumb1 34 | 100056: Character1_LeftHandThumb2 35 | 100058: Character1_LeftHandThumb3 36 | 100060: Character1_LeftHandThumb4 37 | 100062: Character1_LeftLeg 38 | 100064: Character1_LeftShoulder 39 | 100066: Character1_LeftToeBase 40 | 100068: Character1_LeftUpLeg 41 | 100070: Character1_Neck 42 | 100072: Character1_Reference 43 | 100074: Character1_RightArm 44 | 100076: Character1_RightFoot 45 | 100078: Character1_RightForeArm 46 | 100080: Character1_RightHand 47 | 100082: Character1_RightHandIndex1 48 | 100084: Character1_RightHandIndex2 49 | 100086: Character1_RightHandIndex3 50 | 100088: Character1_RightHandMiddle1 51 | 100090: Character1_RightHandMiddle2 52 | 100092: Character1_RightHandMiddle3 53 | 100094: Character1_RightHandPinky1 54 | 100096: Character1_RightHandPinky2 55 | 100098: Character1_RightHandPinky3 56 | 100100: Character1_RightHandRing1 57 | 100102: Character1_RightHandRing2 58 | 100104: Character1_RightHandRing3 59 | 100106: Character1_RightHandThumb1 60 | 100108: Character1_RightHandThumb2 61 | 100110: Character1_RightHandThumb3 62 | 100112: Character1_RightHandThumb4 63 | 100114: Character1_RightLeg 64 | 100116: Character1_RightShoulder 65 | 100118: Character1_RightToeBase 66 | 100120: Character1_RightUpLeg 67 | 100122: Character1_Spine 68 | 100124: Character1_Spine1 69 | 100126: Character1_Spine2 70 | 100128: J_acce_00 71 | 100130: J_acce_01 72 | 100132: J_L_Arm_00_tw 73 | 100134: J_L_Elbow 74 | 100136: J_L_ForeArm_00_tw 75 | 100138: J_L_HairFront_00 76 | 100140: J_L_HairFront_01 77 | 100142: J_L_HairSide2_00 78 | 100144: J_L_HairSide2_01 79 | 100146: J_L_HairSide_00 80 | 100148: J_L_HairSide_01 81 | 100150: J_L_HairSide_02 82 | 100152: J_L_HairTail_00 83 | 100154: J_L_HairTail_01 84 | 100156: J_L_HairTail_02 85 | 100158: J_L_HairTail_03 86 | 100160: J_L_HeadRibbon_00 87 | 100162: J_L_HeadRibbon_01 88 | 100164: J_L_HeadRibbon_02 89 | 100166: J_L_HeadRibbon_03 90 | 100168: J_L_knee 91 | 100170: J_L_Skirt_00 92 | 100172: J_L_Skirt_01 93 | 100174: J_L_Skirt_02 94 | 100176: J_L_SkirtBack_01 95 | 100178: J_L_SkirtBack_02 96 | 100180: J_L_Sode_A00 97 | 100182: J_L_Sode_A01 98 | 100184: J_L_Sode_B00 99 | 100186: J_L_Sode_B01 100 | 100188: J_L_Sode_C00 101 | 100190: J_L_Sode_C01 102 | 100192: J_L_Sode_D00 103 | 100194: J_L_Sode_D01 104 | 100196: J_L_Sode_E00 105 | 100198: J_R_Arm_00_tw 106 | 100200: J_R_Elbow 107 | 100202: J_R_ForeArm_00_tw 108 | 100204: J_R_HairFront_00 109 | 100206: J_R_HairFront_01 110 | 100208: J_R_HairSide2_00 111 | 100210: J_R_HairSide2_01 112 | 100212: J_R_HairSide_00 113 | 100214: J_R_HairSide_01 114 | 100216: J_R_HairSide_02 115 | 100218: J_R_HairTail_00 116 | 100220: J_R_HairTail_01 117 | 100222: J_R_HairTail_02 118 | 100224: J_R_HairTail_03 119 | 100226: J_R_HeadRibbon_00 120 | 100228: J_R_HeadRibbon_01 121 | 100230: J_R_HeadRibbon_02 122 | 100232: J_R_HeadRibbon_03 123 | 100234: J_R_knee 124 | 100236: J_R_Skirt_00 125 | 100238: J_R_Skirt_01 126 | 100240: J_R_Skirt_02 127 | 100242: J_R_SkirtBack_01 128 | 100244: J_R_SkirtBack_02 129 | 100246: J_R_Sode_A00 130 | 100248: J_R_Sode_A01 131 | 100250: J_R_Sode_B00 132 | 100252: J_R_Sode_B01 133 | 100254: J_R_Sode_C00 134 | 100256: J_R_Sode_C01 135 | 100258: J_R_Sode_D00 136 | 100260: J_R_Sode_D01 137 | 100262: J_R_Sode_E00 138 | 100264: Mesh_SD_unitychan 139 | 100266: //RootNode 140 | 400000: _body 141 | 400002: _eye 142 | 400004: _face 143 | 400006: _Fhair 144 | 400008: _Fhair2 145 | 400010: _head 146 | 400012: bone_eye_L 147 | 400014: bone_eye_R 148 | 400016: center 149 | 400018: Character1_Head 150 | 400020: Character1_Hips 151 | 400022: Character1_LeftArm 152 | 400024: Character1_LeftFoot 153 | 400026: Character1_LeftForeArm 154 | 400028: Character1_LeftHand 155 | 400030: Character1_LeftHandIndex1 156 | 400032: Character1_LeftHandIndex2 157 | 400034: Character1_LeftHandIndex3 158 | 400036: Character1_LeftHandMiddle1 159 | 400038: Character1_LeftHandMiddle2 160 | 400040: Character1_LeftHandMiddle3 161 | 400042: Character1_LeftHandPinky1 162 | 400044: Character1_LeftHandPinky2 163 | 400046: Character1_LeftHandPinky3 164 | 400048: Character1_LeftHandRing1 165 | 400050: Character1_LeftHandRing2 166 | 400052: Character1_LeftHandRing3 167 | 400054: Character1_LeftHandThumb1 168 | 400056: Character1_LeftHandThumb2 169 | 400058: Character1_LeftHandThumb3 170 | 400060: Character1_LeftHandThumb4 171 | 400062: Character1_LeftLeg 172 | 400064: Character1_LeftShoulder 173 | 400066: Character1_LeftToeBase 174 | 400068: Character1_LeftUpLeg 175 | 400070: Character1_Neck 176 | 400072: Character1_Reference 177 | 400074: Character1_RightArm 178 | 400076: Character1_RightFoot 179 | 400078: Character1_RightForeArm 180 | 400080: Character1_RightHand 181 | 400082: Character1_RightHandIndex1 182 | 400084: Character1_RightHandIndex2 183 | 400086: Character1_RightHandIndex3 184 | 400088: Character1_RightHandMiddle1 185 | 400090: Character1_RightHandMiddle2 186 | 400092: Character1_RightHandMiddle3 187 | 400094: Character1_RightHandPinky1 188 | 400096: Character1_RightHandPinky2 189 | 400098: Character1_RightHandPinky3 190 | 400100: Character1_RightHandRing1 191 | 400102: Character1_RightHandRing2 192 | 400104: Character1_RightHandRing3 193 | 400106: Character1_RightHandThumb1 194 | 400108: Character1_RightHandThumb2 195 | 400110: Character1_RightHandThumb3 196 | 400112: Character1_RightHandThumb4 197 | 400114: Character1_RightLeg 198 | 400116: Character1_RightShoulder 199 | 400118: Character1_RightToeBase 200 | 400120: Character1_RightUpLeg 201 | 400122: Character1_Spine 202 | 400124: Character1_Spine1 203 | 400126: Character1_Spine2 204 | 400128: J_acce_00 205 | 400130: J_acce_01 206 | 400132: J_L_Arm_00_tw 207 | 400134: J_L_Elbow 208 | 400136: J_L_ForeArm_00_tw 209 | 400138: J_L_HairFront_00 210 | 400140: J_L_HairFront_01 211 | 400142: J_L_HairSide2_00 212 | 400144: J_L_HairSide2_01 213 | 400146: J_L_HairSide_00 214 | 400148: J_L_HairSide_01 215 | 400150: J_L_HairSide_02 216 | 400152: J_L_HairTail_00 217 | 400154: J_L_HairTail_01 218 | 400156: J_L_HairTail_02 219 | 400158: J_L_HairTail_03 220 | 400160: J_L_HeadRibbon_00 221 | 400162: J_L_HeadRibbon_01 222 | 400164: J_L_HeadRibbon_02 223 | 400166: J_L_HeadRibbon_03 224 | 400168: J_L_knee 225 | 400170: J_L_Skirt_00 226 | 400172: J_L_Skirt_01 227 | 400174: J_L_Skirt_02 228 | 400176: J_L_SkirtBack_01 229 | 400178: J_L_SkirtBack_02 230 | 400180: J_L_Sode_A00 231 | 400182: J_L_Sode_A01 232 | 400184: J_L_Sode_B00 233 | 400186: J_L_Sode_B01 234 | 400188: J_L_Sode_C00 235 | 400190: J_L_Sode_C01 236 | 400192: J_L_Sode_D00 237 | 400194: J_L_Sode_D01 238 | 400196: J_L_Sode_E00 239 | 400198: J_R_Arm_00_tw 240 | 400200: J_R_Elbow 241 | 400202: J_R_ForeArm_00_tw 242 | 400204: J_R_HairFront_00 243 | 400206: J_R_HairFront_01 244 | 400208: J_R_HairSide2_00 245 | 400210: J_R_HairSide2_01 246 | 400212: J_R_HairSide_00 247 | 400214: J_R_HairSide_01 248 | 400216: J_R_HairSide_02 249 | 400218: J_R_HairTail_00 250 | 400220: J_R_HairTail_01 251 | 400222: J_R_HairTail_02 252 | 400224: J_R_HairTail_03 253 | 400226: J_R_HeadRibbon_00 254 | 400228: J_R_HeadRibbon_01 255 | 400230: J_R_HeadRibbon_02 256 | 400232: J_R_HeadRibbon_03 257 | 400234: J_R_knee 258 | 400236: J_R_Skirt_00 259 | 400238: J_R_Skirt_01 260 | 400240: J_R_Skirt_02 261 | 400242: J_R_SkirtBack_01 262 | 400244: J_R_SkirtBack_02 263 | 400246: J_R_Sode_A00 264 | 400248: J_R_Sode_A01 265 | 400250: J_R_Sode_B00 266 | 400252: J_R_Sode_B01 267 | 400254: J_R_Sode_C00 268 | 400256: J_R_Sode_C01 269 | 400258: J_R_Sode_D00 270 | 400260: J_R_Sode_D01 271 | 400262: J_R_Sode_E00 272 | 400264: Mesh_SD_unitychan 273 | 400266: //RootNode 274 | 4300000: _face 275 | 4300002: _head 276 | 4300004: _body 277 | 4300006: _Fhair 278 | 4300008: _eye 279 | 4300010: _Fhair2 280 | 9500000: //RootNode 281 | 13700000: _body 282 | 13700002: _eye 283 | 13700004: _face 284 | 13700006: _Fhair 285 | 13700008: _Fhair2 286 | 13700010: _head 287 | materials: 288 | importMaterials: 1 289 | materialName: 0 290 | materialSearch: 1 291 | animations: 292 | legacyGenerateAnimations: 4 293 | bakeSimulation: 0 294 | optimizeGameObjects: 0 295 | motionNodeName: 296 | animationImportErrors: 297 | animationImportWarnings: 298 | animationRetargetingWarnings: 299 | animationDoRetargetingWarnings: 0 300 | animationCompression: 3 301 | animationRotationError: .5 302 | animationPositionError: .5 303 | animationScaleError: .5 304 | animationWrapMode: 0 305 | extraExposedTransformPaths: [] 306 | clipAnimations: [] 307 | isReadable: 1 308 | meshes: 309 | lODScreenPercentages: [] 310 | globalScale: .00999999978 311 | meshCompression: 0 312 | addColliders: 0 313 | importBlendShapes: 1 314 | swapUVChannels: 0 315 | generateSecondaryUV: 0 316 | useFileUnits: 1 317 | optimizeMeshForGPU: 1 318 | keepQuads: 0 319 | weldVertices: 1 320 | secondaryUVAngleDistortion: 8 321 | secondaryUVAreaDistortion: 15.000001 322 | secondaryUVHardAngle: 88 323 | secondaryUVPackMargin: 4 324 | useFileScale: 0 325 | tangentSpace: 326 | normalSmoothAngle: 60 327 | splitTangentsAcrossUV: 1 328 | normalImportMode: 0 329 | tangentImportMode: 1 330 | importAnimation: 0 331 | copyAvatar: 0 332 | humanDescription: 333 | human: [] 334 | skeleton: [] 335 | armTwist: .5 336 | foreArmTwist: .5 337 | upperLegTwist: .5 338 | legTwist: .5 339 | armStretch: .0500000007 340 | legStretch: .0500000007 341 | feetSpacing: 0 342 | rootMotionBoneName: 343 | lastHumanDescriptionAvatarSource: {instanceID: 0} 344 | animationType: 2 345 | additionalBone: 0 346 | userData: 347 | assetBundleName: 348 | assetBundleVariant: 349 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/SD_unitychan_humanoid.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/Models/SD_unitychan_humanoid.fbx -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/SD_unitychan_humanoidFaceFix.FBX: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/Models/SD_unitychan_humanoidFaceFix.FBX -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/SD_unitychan_humanoidFaceFix.FBX.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 04985b59b29d92943a6b93af88205337 3 | timeCreated: 1440993696 4 | licenseType: Pro 5 | ModelImporter: 6 | serializedVersion: 18 7 | fileIDToRecycleName: 8 | 100000: _body 9 | 100002: _eye 10 | 100004: _eyebrows 11 | 100006: _eyelashes 12 | 100008: _face 13 | 100010: _faceCap 14 | 100012: _Fhair 15 | 100014: _Fhair2 16 | 100016: _head 17 | 100018: _whiteEye 18 | 100020: bone_eye_L 19 | 100022: bone_eye_R 20 | 100024: Character1_Head 21 | 100026: Character1_Hips 22 | 100028: Character1_LeftArm 23 | 100030: Character1_LeftFoot 24 | 100032: Character1_LeftForeArm 25 | 100034: Character1_LeftHand 26 | 100036: Character1_LeftHandIndex1 27 | 100038: Character1_LeftHandIndex2 28 | 100040: Character1_LeftHandIndex3 29 | 100042: Character1_LeftHandMiddle1 30 | 100044: Character1_LeftHandMiddle2 31 | 100046: Character1_LeftHandMiddle3 32 | 100048: Character1_LeftHandPinky1 33 | 100050: Character1_LeftHandPinky2 34 | 100052: Character1_LeftHandPinky3 35 | 100054: Character1_LeftHandRing1 36 | 100056: Character1_LeftHandRing2 37 | 100058: Character1_LeftHandRing3 38 | 100060: Character1_LeftHandThumb1 39 | 100062: Character1_LeftHandThumb2 40 | 100064: Character1_LeftHandThumb3 41 | 100066: Character1_LeftHandThumb4 42 | 100068: Character1_LeftLeg 43 | 100070: Character1_LeftShoulder 44 | 100072: Character1_LeftToeBase 45 | 100074: Character1_LeftUpLeg 46 | 100076: Character1_Neck 47 | 100078: Character1_Reference 48 | 100080: Character1_RightArm 49 | 100082: Character1_RightFoot 50 | 100084: Character1_RightForeArm 51 | 100086: Character1_RightHand 52 | 100088: Character1_RightHandIndex1 53 | 100090: Character1_RightHandIndex2 54 | 100092: Character1_RightHandIndex3 55 | 100094: Character1_RightHandMiddle1 56 | 100096: Character1_RightHandMiddle2 57 | 100098: Character1_RightHandMiddle3 58 | 100100: Character1_RightHandPinky1 59 | 100102: Character1_RightHandPinky2 60 | 100104: Character1_RightHandPinky3 61 | 100106: Character1_RightHandRing1 62 | 100108: Character1_RightHandRing2 63 | 100110: Character1_RightHandRing3 64 | 100112: Character1_RightHandThumb1 65 | 100114: Character1_RightHandThumb2 66 | 100116: Character1_RightHandThumb3 67 | 100118: Character1_RightHandThumb4 68 | 100120: Character1_RightLeg 69 | 100122: Character1_RightShoulder 70 | 100124: Character1_RightToeBase 71 | 100126: Character1_RightUpLeg 72 | 100128: Character1_Spine 73 | 100130: Character1_Spine1 74 | 100132: Character1_Spine2 75 | 100134: J_acce_00 76 | 100136: J_acce_01 77 | 100138: J_L_Arm_00_tw 78 | 100140: J_L_Elbow 79 | 100142: J_L_ForeArm_00_tw 80 | 100144: J_L_HairFront_00 81 | 100146: J_L_HairFront_01 82 | 100148: J_L_HairSide2_00 83 | 100150: J_L_HairSide2_01 84 | 100152: J_L_HairSide_00 85 | 100154: J_L_HairSide_01 86 | 100156: J_L_HairSide_02 87 | 100158: J_L_HairTail_00 88 | 100160: J_L_HairTail_01 89 | 100162: J_L_HairTail_02 90 | 100164: J_L_HairTail_03 91 | 100166: J_L_HeadRibbon_00 92 | 100168: J_L_HeadRibbon_01 93 | 100170: J_L_HeadRibbon_02 94 | 100172: J_L_HeadRibbon_03 95 | 100174: J_L_knee 96 | 100176: J_L_Skirt_00 97 | 100178: J_L_Skirt_01 98 | 100180: J_L_Skirt_02 99 | 100182: J_L_SkirtBack_01 100 | 100184: J_L_SkirtBack_02 101 | 100186: J_L_Sode_A00 102 | 100188: J_L_Sode_A01 103 | 100190: J_L_Sode_B00 104 | 100192: J_L_Sode_B01 105 | 100194: J_L_Sode_C00 106 | 100196: J_L_Sode_C01 107 | 100198: J_L_Sode_D00 108 | 100200: J_L_Sode_D01 109 | 100202: J_L_Sode_E00 110 | 100204: J_R_Arm_00_tw 111 | 100206: J_R_Elbow 112 | 100208: J_R_ForeArm_00_tw 113 | 100210: J_R_HairFront_00 114 | 100212: J_R_HairFront_01 115 | 100214: J_R_HairSide2_00 116 | 100216: J_R_HairSide2_01 117 | 100218: J_R_HairSide_00 118 | 100220: J_R_HairSide_01 119 | 100222: J_R_HairSide_02 120 | 100224: J_R_HairTail_00 121 | 100226: J_R_HairTail_01 122 | 100228: J_R_HairTail_02 123 | 100230: J_R_HairTail_03 124 | 100232: J_R_HeadRibbon_00 125 | 100234: J_R_HeadRibbon_01 126 | 100236: J_R_HeadRibbon_02 127 | 100238: J_R_HeadRibbon_03 128 | 100240: J_R_knee 129 | 100242: J_R_Skirt_00 130 | 100244: J_R_Skirt_01 131 | 100246: J_R_Skirt_02 132 | 100248: J_R_SkirtBack_01 133 | 100250: J_R_SkirtBack_02 134 | 100252: J_R_Sode_A00 135 | 100254: J_R_Sode_A01 136 | 100256: J_R_Sode_B00 137 | 100258: J_R_Sode_B01 138 | 100260: J_R_Sode_C00 139 | 100262: J_R_Sode_C01 140 | 100264: J_R_Sode_D00 141 | 100266: J_R_Sode_D01 142 | 100268: J_R_Sode_E00 143 | 100270: Mesh_SD_unitychan 144 | 100272: //RootNode 145 | 400000: _body 146 | 400002: _eye 147 | 400004: _eyebrows 148 | 400006: _eyelashes 149 | 400008: _face 150 | 400010: _faceCap 151 | 400012: _Fhair 152 | 400014: _Fhair2 153 | 400016: _head 154 | 400018: _whiteEye 155 | 400020: bone_eye_L 156 | 400022: bone_eye_R 157 | 400024: Character1_Head 158 | 400026: Character1_Hips 159 | 400028: Character1_LeftArm 160 | 400030: Character1_LeftFoot 161 | 400032: Character1_LeftForeArm 162 | 400034: Character1_LeftHand 163 | 400036: Character1_LeftHandIndex1 164 | 400038: Character1_LeftHandIndex2 165 | 400040: Character1_LeftHandIndex3 166 | 400042: Character1_LeftHandMiddle1 167 | 400044: Character1_LeftHandMiddle2 168 | 400046: Character1_LeftHandMiddle3 169 | 400048: Character1_LeftHandPinky1 170 | 400050: Character1_LeftHandPinky2 171 | 400052: Character1_LeftHandPinky3 172 | 400054: Character1_LeftHandRing1 173 | 400056: Character1_LeftHandRing2 174 | 400058: Character1_LeftHandRing3 175 | 400060: Character1_LeftHandThumb1 176 | 400062: Character1_LeftHandThumb2 177 | 400064: Character1_LeftHandThumb3 178 | 400066: Character1_LeftHandThumb4 179 | 400068: Character1_LeftLeg 180 | 400070: Character1_LeftShoulder 181 | 400072: Character1_LeftToeBase 182 | 400074: Character1_LeftUpLeg 183 | 400076: Character1_Neck 184 | 400078: Character1_Reference 185 | 400080: Character1_RightArm 186 | 400082: Character1_RightFoot 187 | 400084: Character1_RightForeArm 188 | 400086: Character1_RightHand 189 | 400088: Character1_RightHandIndex1 190 | 400090: Character1_RightHandIndex2 191 | 400092: Character1_RightHandIndex3 192 | 400094: Character1_RightHandMiddle1 193 | 400096: Character1_RightHandMiddle2 194 | 400098: Character1_RightHandMiddle3 195 | 400100: Character1_RightHandPinky1 196 | 400102: Character1_RightHandPinky2 197 | 400104: Character1_RightHandPinky3 198 | 400106: Character1_RightHandRing1 199 | 400108: Character1_RightHandRing2 200 | 400110: Character1_RightHandRing3 201 | 400112: Character1_RightHandThumb1 202 | 400114: Character1_RightHandThumb2 203 | 400116: Character1_RightHandThumb3 204 | 400118: Character1_RightHandThumb4 205 | 400120: Character1_RightLeg 206 | 400122: Character1_RightShoulder 207 | 400124: Character1_RightToeBase 208 | 400126: Character1_RightUpLeg 209 | 400128: Character1_Spine 210 | 400130: Character1_Spine1 211 | 400132: Character1_Spine2 212 | 400134: J_acce_00 213 | 400136: J_acce_01 214 | 400138: J_L_Arm_00_tw 215 | 400140: J_L_Elbow 216 | 400142: J_L_ForeArm_00_tw 217 | 400144: J_L_HairFront_00 218 | 400146: J_L_HairFront_01 219 | 400148: J_L_HairSide2_00 220 | 400150: J_L_HairSide2_01 221 | 400152: J_L_HairSide_00 222 | 400154: J_L_HairSide_01 223 | 400156: J_L_HairSide_02 224 | 400158: J_L_HairTail_00 225 | 400160: J_L_HairTail_01 226 | 400162: J_L_HairTail_02 227 | 400164: J_L_HairTail_03 228 | 400166: J_L_HeadRibbon_00 229 | 400168: J_L_HeadRibbon_01 230 | 400170: J_L_HeadRibbon_02 231 | 400172: J_L_HeadRibbon_03 232 | 400174: J_L_knee 233 | 400176: J_L_Skirt_00 234 | 400178: J_L_Skirt_01 235 | 400180: J_L_Skirt_02 236 | 400182: J_L_SkirtBack_01 237 | 400184: J_L_SkirtBack_02 238 | 400186: J_L_Sode_A00 239 | 400188: J_L_Sode_A01 240 | 400190: J_L_Sode_B00 241 | 400192: J_L_Sode_B01 242 | 400194: J_L_Sode_C00 243 | 400196: J_L_Sode_C01 244 | 400198: J_L_Sode_D00 245 | 400200: J_L_Sode_D01 246 | 400202: J_L_Sode_E00 247 | 400204: J_R_Arm_00_tw 248 | 400206: J_R_Elbow 249 | 400208: J_R_ForeArm_00_tw 250 | 400210: J_R_HairFront_00 251 | 400212: J_R_HairFront_01 252 | 400214: J_R_HairSide2_00 253 | 400216: J_R_HairSide2_01 254 | 400218: J_R_HairSide_00 255 | 400220: J_R_HairSide_01 256 | 400222: J_R_HairSide_02 257 | 400224: J_R_HairTail_00 258 | 400226: J_R_HairTail_01 259 | 400228: J_R_HairTail_02 260 | 400230: J_R_HairTail_03 261 | 400232: J_R_HeadRibbon_00 262 | 400234: J_R_HeadRibbon_01 263 | 400236: J_R_HeadRibbon_02 264 | 400238: J_R_HeadRibbon_03 265 | 400240: J_R_knee 266 | 400242: J_R_Skirt_00 267 | 400244: J_R_Skirt_01 268 | 400246: J_R_Skirt_02 269 | 400248: J_R_SkirtBack_01 270 | 400250: J_R_SkirtBack_02 271 | 400252: J_R_Sode_A00 272 | 400254: J_R_Sode_A01 273 | 400256: J_R_Sode_B00 274 | 400258: J_R_Sode_B01 275 | 400260: J_R_Sode_C00 276 | 400262: J_R_Sode_C01 277 | 400264: J_R_Sode_D00 278 | 400266: J_R_Sode_D01 279 | 400268: J_R_Sode_E00 280 | 400270: Mesh_SD_unitychan 281 | 400272: //RootNode 282 | 2300000: _eyebrows 283 | 2300002: _eyelashes 284 | 2300004: _face 285 | 2300006: _faceCap 286 | 2300008: _whiteEye 287 | 3300000: _eyebrows 288 | 3300002: _eyelashes 289 | 3300004: _face 290 | 3300006: _faceCap 291 | 3300008: _whiteEye 292 | 4300000: _face 293 | 4300002: _faceCap 294 | 4300004: _eyebrows 295 | 4300006: _eyelashes 296 | 4300008: _whiteEye 297 | 4300010: _head 298 | 4300012: _body 299 | 4300014: _Fhair 300 | 4300016: _eye 301 | 4300018: _Fhair2 302 | 7400000: Take 001 303 | 9500000: //RootNode 304 | 13700000: _body 305 | 13700002: _eye 306 | 13700004: _Fhair 307 | 13700006: _Fhair2 308 | 13700008: _head 309 | materials: 310 | importMaterials: 1 311 | materialName: 0 312 | materialSearch: 1 313 | animations: 314 | legacyGenerateAnimations: 4 315 | bakeSimulation: 0 316 | optimizeGameObjects: 0 317 | motionNodeName: 318 | animationImportErrors: 319 | animationImportWarnings: 320 | animationRetargetingWarnings: 321 | animationDoRetargetingWarnings: 0 322 | animationCompression: 1 323 | animationRotationError: .5 324 | animationPositionError: .5 325 | animationScaleError: .5 326 | animationWrapMode: 0 327 | extraExposedTransformPaths: [] 328 | clipAnimations: [] 329 | isReadable: 1 330 | meshes: 331 | lODScreenPercentages: [] 332 | globalScale: 1 333 | meshCompression: 0 334 | addColliders: 0 335 | importBlendShapes: 1 336 | swapUVChannels: 0 337 | generateSecondaryUV: 0 338 | useFileUnits: 1 339 | optimizeMeshForGPU: 1 340 | keepQuads: 0 341 | weldVertices: 1 342 | secondaryUVAngleDistortion: 8 343 | secondaryUVAreaDistortion: 15.000001 344 | secondaryUVHardAngle: 88 345 | secondaryUVPackMargin: 4 346 | useFileScale: 1 347 | tangentSpace: 348 | normalSmoothAngle: 60 349 | splitTangentsAcrossUV: 1 350 | normalImportMode: 0 351 | tangentImportMode: 1 352 | importAnimation: 1 353 | copyAvatar: 0 354 | humanDescription: 355 | human: [] 356 | skeleton: [] 357 | armTwist: .5 358 | foreArmTwist: .5 359 | upperLegTwist: .5 360 | legTwist: .5 361 | armStretch: .0500000007 362 | legStretch: .0500000007 363 | feetSpacing: 0 364 | rootMotionBoneName: 365 | lastHumanDescriptionAvatarSource: {instanceID: 0} 366 | animationType: 2 367 | additionalBone: 0 368 | userData: 369 | assetBundleName: 370 | assetBundleVariant: 371 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Textures.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48697dc906ceeab439135622b7d7e944 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Textures/ENV2.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/Models/Textures/ENV2.tga -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Textures/ENV2.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 44d020db90fd5ae4ea345969090687a3 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 1024 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: -1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | assetBundleVariant: 54 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Textures/FO_CLOTH1.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/Models/Textures/FO_CLOTH1.tga -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Textures/FO_CLOTH1.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 39083b0062b00af459504f23a97162b4 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 1024 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: -1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | assetBundleVariant: 54 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Textures/FO_RIM1.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/Models/Textures/FO_RIM1.tga -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Textures/FO_RIM1.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8073bf8eba43a72439ddf804cec5b97a 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 1024 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: -1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | assetBundleVariant: 54 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Textures/FO_SKIN1.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/Models/Textures/FO_SKIN1.tga -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Textures/FO_SKIN1.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 940d3c904d88ec743a6d6e7ac7e7937e 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 1024 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: -1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | assetBundleVariant: 54 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Textures/utc_all2.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/Models/Textures/utc_all2.tga -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Textures/utc_all2.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0f83c88893812674fb27a67cc3d624d9 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 1024 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: -1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | assetBundleVariant: 54 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Textures/utc_nomal.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/Models/Textures/utc_nomal.tga -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Textures/utc_nomal.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 54a57c962fa43e14e9c13ad64e22b5ee 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 1024 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: -1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | assetBundleVariant: 54 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Textures/utc_spec.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/Models/Textures/utc_spec.tga -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Models/Textures/utc_spec.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cff7600e2c49af944b50d9621671371e 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 1024 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: -1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | assetBundleVariant: 54 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 90775f57ce581c94995f66790f9b428f 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Prefabs/SD_unitychan_generic.prefab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/Prefabs/SD_unitychan_generic.prefab -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Prefabs/SD_unitychan_generic.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e39dd657be7298d408f1a135c76c3d9a 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Prefabs/SD_unitychan_humanoid.prefab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/SD_unitychan/Prefabs/SD_unitychan_humanoid.prefab -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Prefabs/SD_unitychan_humanoid.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13a16f60da4245c45a865b2136ba272c 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 96041a2560abc4fd29204f2f26259f1a 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Scenes/SD_unitychan_Generic.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d8123b2d414cbb642bc6550bb8b2fae4 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/SD_unitychan/Scenes/SD_unitychan_Humanoid.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 72f0702a160537d4fbaa79fd85413187 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 73622dc781ca9284db0e3bb8114ff5f5 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts/AutoBlink.cs: -------------------------------------------------------------------------------- 1 | // 2 | //AutoBlink.cs 3 | //オート目パチスクリプト 4 | //2014/06/23 N.Kobayashi 5 | // 6 | using UnityEngine; 7 | using System.Collections; 8 | 9 | namespace UnityChan 10 | { 11 | public class AutoBlink : MonoBehaviour 12 | { 13 | 14 | public bool isActive = true; //オート目パチ有効 15 | public SkinnedMeshRenderer ref_SMR_EYE_DEF; //EYE_DEFへの参照 16 | public SkinnedMeshRenderer ref_SMR_EL_DEF; //EL_DEFへの参照 17 | public float ratio_Close = 85.0f; //閉じ目ブレンドシェイプ比率 18 | public float ratio_HalfClose = 20.0f; //半閉じ目ブレンドシェイプ比率 19 | [HideInInspector] 20 | public float 21 | ratio_Open = 0.0f; 22 | private bool timerStarted = false; //タイマースタート管理用 23 | private bool isBlink = false; //目パチ管理用 24 | 25 | public float timeBlink = 0.4f; //目パチの時間 26 | private float timeRemining = 0.0f; //タイマー残り時間 27 | 28 | public float threshold = 0.3f; // ランダム判定の閾値 29 | public float interval = 3.0f; // ランダム判定のインターバル 30 | 31 | 32 | 33 | enum Status 34 | { 35 | Close, 36 | HalfClose, 37 | Open //目パチの状態 38 | } 39 | 40 | 41 | private Status eyeStatus; //現在の目パチステータス 42 | 43 | void Awake () 44 | { 45 | //ref_SMR_EYE_DEF = GameObject.Find("EYE_DEF").GetComponent(); 46 | //ref_SMR_EL_DEF = GameObject.Find("EL_DEF").GetComponent(); 47 | } 48 | 49 | 50 | 51 | // Use this for initialization 52 | void Start () 53 | { 54 | ResetTimer (); 55 | // ランダム判定用関数をスタートする 56 | StartCoroutine ("RandomChange"); 57 | } 58 | 59 | //タイマーリセット 60 | void ResetTimer () 61 | { 62 | timeRemining = timeBlink; 63 | timerStarted = false; 64 | } 65 | 66 | // Update is called once per frame 67 | void Update () 68 | { 69 | if (!timerStarted) { 70 | eyeStatus = Status.Close; 71 | timerStarted = true; 72 | } 73 | if (timerStarted) { 74 | timeRemining -= Time.deltaTime; 75 | if (timeRemining <= 0.0f) { 76 | eyeStatus = Status.Open; 77 | ResetTimer (); 78 | } else if (timeRemining <= timeBlink * 0.3f) { 79 | eyeStatus = Status.HalfClose; 80 | } 81 | } 82 | } 83 | 84 | void LateUpdate () 85 | { 86 | if (isActive) { 87 | if (isBlink) { 88 | switch (eyeStatus) { 89 | case Status.Close: 90 | SetCloseEyes (); 91 | break; 92 | case Status.HalfClose: 93 | SetHalfCloseEyes (); 94 | break; 95 | case Status.Open: 96 | SetOpenEyes (); 97 | isBlink = false; 98 | break; 99 | } 100 | //Debug.Log(eyeStatus); 101 | } 102 | } 103 | } 104 | 105 | void SetCloseEyes () 106 | { 107 | ref_SMR_EYE_DEF.SetBlendShapeWeight (6, ratio_Close); 108 | ref_SMR_EL_DEF.SetBlendShapeWeight (6, ratio_Close); 109 | } 110 | 111 | void SetHalfCloseEyes () 112 | { 113 | ref_SMR_EYE_DEF.SetBlendShapeWeight (6, ratio_HalfClose); 114 | ref_SMR_EL_DEF.SetBlendShapeWeight (6, ratio_HalfClose); 115 | } 116 | 117 | void SetOpenEyes () 118 | { 119 | ref_SMR_EYE_DEF.SetBlendShapeWeight (6, ratio_Open); 120 | ref_SMR_EL_DEF.SetBlendShapeWeight (6, ratio_Open); 121 | } 122 | 123 | // ランダム判定用関数 124 | IEnumerator RandomChange () 125 | { 126 | // 無限ループ開始 127 | while (true) { 128 | //ランダム判定用シード発生 129 | float _seed = Random.Range (0.0f, 1.0f); 130 | if (!isBlink) { 131 | if (_seed > threshold) { 132 | isBlink = true; 133 | } 134 | } 135 | // 次の判定までインターバルを置く 136 | yield return new WaitForSeconds (interval); 137 | } 138 | } 139 | } 140 | } -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts/AutoBlink.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0a6149a22cf8a47a192a60b00b3becb3 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts/AutoBlinkforSD.cs: -------------------------------------------------------------------------------- 1 | // 2 | //AutoBlinkforSD.cs 3 | //SDユニティちゃん用オート目パチスクリプト 4 | //2014/12/10 N.Kobayashi 5 | // 6 | using UnityEngine; 7 | using System.Collections; 8 | using System.Security.Policy; 9 | 10 | namespace UnityChan 11 | { 12 | public class AutoBlinkforSD : MonoBehaviour 13 | { 14 | 15 | public bool isActive = true; //オート目パチ有効 16 | public SkinnedMeshRenderer ref_face; //_faceへの参照 17 | public float ratio_Close = 85.0f; //閉じ目ブレンドシェイプ比率 18 | public float ratio_HalfClose = 20.0f; //半閉じ目ブレンドシェイプ比率 19 | public int index_EYE_blk = 0; //目パチ用モーフのindex 20 | public int index_EYE_sml = 1; //目パチさせたくないモーフのindex 21 | public int index_EYE_dmg = 15; //目パチさせたくないモーフのindex 22 | 23 | 24 | [HideInInspector] 25 | public float 26 | ratio_Open = 0.0f; 27 | private bool timerStarted = false; //タイマースタート管理用 28 | private bool isBlink = false; //目パチ管理用 29 | 30 | public float timeBlink = 0.4f; //目パチの時間 31 | private float timeRemining = 0.0f; //タイマー残り時間 32 | 33 | public float threshold = 0.3f; // ランダム判定の閾値 34 | public float interval = 3.0f; // ランダム判定のインターバル 35 | 36 | 37 | 38 | enum Status 39 | { 40 | Close, 41 | HalfClose, 42 | Open //目パチの状態 43 | } 44 | 45 | 46 | private Status eyeStatus; //現在の目パチステータス 47 | 48 | void Awake () 49 | { 50 | //ref_SMR_EYE_DEF = GameObject.Find("EYE_DEF").GetComponent(); 51 | //ref_SMR_EL_DEF = GameObject.Find("EL_DEF").GetComponent(); 52 | } 53 | 54 | 55 | 56 | // Use this for initialization 57 | void Start () 58 | { 59 | ResetTimer (); 60 | // ランダム判定用関数をスタートする 61 | StartCoroutine ("RandomChange"); 62 | } 63 | 64 | //タイマーリセット 65 | void ResetTimer () 66 | { 67 | timeRemining = timeBlink; 68 | timerStarted = false; 69 | } 70 | 71 | // Update is called once per frame 72 | void Update () 73 | { 74 | if (!timerStarted) { 75 | eyeStatus = Status.Close; 76 | timerStarted = true; 77 | } 78 | if (timerStarted) { 79 | timeRemining -= Time.deltaTime; 80 | if (timeRemining <= 0.0f) { 81 | eyeStatus = Status.Open; 82 | ResetTimer (); 83 | } else if (timeRemining <= timeBlink * 0.3f) { 84 | eyeStatus = Status.HalfClose; 85 | } 86 | } 87 | } 88 | 89 | void LateUpdate () 90 | { 91 | if (isActive) { 92 | if (isBlink) { 93 | switch (eyeStatus) { 94 | case Status.Close: 95 | SetCloseEyes (); 96 | break; 97 | case Status.HalfClose: 98 | SetHalfCloseEyes (); 99 | break; 100 | case Status.Open: 101 | SetOpenEyes (); 102 | isBlink = false; 103 | break; 104 | } 105 | //Debug.Log(eyeStatus); 106 | } 107 | } 108 | } 109 | 110 | void SetCloseEyes () 111 | { 112 | ref_face.SetBlendShapeWeight (index_EYE_blk, ratio_Close); 113 | } 114 | 115 | void SetHalfCloseEyes () 116 | { 117 | ref_face.SetBlendShapeWeight (index_EYE_blk, ratio_HalfClose); 118 | } 119 | 120 | void SetOpenEyes () 121 | { 122 | ref_face.SetBlendShapeWeight (index_EYE_blk, ratio_Open); 123 | } 124 | 125 | // ランダム判定用関数 126 | IEnumerator RandomChange () 127 | { 128 | // 無限ループ開始 129 | while (true) { 130 | //ランダム判定用シード発生 131 | float _seed = Random.Range (0.0f, 1.0f); 132 | if (!isBlink) { 133 | if (_seed > threshold) { 134 | //目パチさせたくないモーフの時だけ飛ばす. 135 | if(ref_face.GetBlendShapeWeight(index_EYE_sml)==0.0f && ref_face.GetBlendShapeWeight(index_EYE_dmg)==0.0f){ 136 | isBlink = true; 137 | } 138 | } 139 | } 140 | // 次の判定までインターバルを置く 141 | yield return new WaitForSeconds (interval); 142 | } 143 | } 144 | } 145 | } -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts/AutoBlinkforSD.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b450e0eeaa67f4e4f83448b61a571d3b 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts/CameraController.cs: -------------------------------------------------------------------------------- 1 | //CameraController.cs for UnityChan 2 | //Original Script is here: 3 | //TAK-EMI / CameraController.cs 4 | //https://gist.github.com/TAK-EMI/d67a13b6f73bed32075d 5 | //https://twitter.com/TAK_EMI 6 | // 7 | //Revised by N.Kobayashi 2014/5/15 8 | //Change : To prevent rotation flips on XY plane, use Quaternion in cameraRotate() 9 | //Change : Add the instrustion window 10 | //Change : Add the operation for Mac 11 | // 12 | 13 | 14 | 15 | 16 | using UnityEngine; 17 | using System.Collections; 18 | 19 | namespace UnityChan 20 | { 21 | enum MouseButtonDown 22 | { 23 | MBD_LEFT = 0, 24 | MBD_RIGHT, 25 | MBD_MIDDLE, 26 | }; 27 | 28 | public class CameraController : MonoBehaviour 29 | { 30 | [SerializeField] 31 | private Vector3 focus = Vector3.zero; 32 | [SerializeField] 33 | private GameObject focusObj = null; 34 | 35 | public bool showInstWindow = true; 36 | 37 | private Vector3 oldPos; 38 | 39 | void setupFocusObject(string name) 40 | { 41 | GameObject obj = this.focusObj = new GameObject(name); 42 | obj.transform.position = this.focus; 43 | obj.transform.LookAt(this.transform.position); 44 | 45 | return; 46 | } 47 | 48 | void Start () 49 | { 50 | if (this.focusObj == null) 51 | this.setupFocusObject("CameraFocusObject"); 52 | 53 | Transform trans = this.transform; 54 | transform.parent = this.focusObj.transform; 55 | 56 | trans.LookAt(this.focus); 57 | 58 | return; 59 | } 60 | 61 | void Update () 62 | { 63 | this.mouseEvent(); 64 | 65 | return; 66 | } 67 | 68 | //Show Instrustion Window 69 | void OnGUI() 70 | { 71 | if(showInstWindow){ 72 | GUI.Box(new Rect(Screen.width -210, Screen.height - 100, 200, 90), "Camera Operations"); 73 | GUI.Label(new Rect(Screen.width -200, Screen.height - 80, 200, 30),"RMB / Alt+LMB: Tumble"); 74 | GUI.Label(new Rect(Screen.width -200, Screen.height - 60, 200, 30),"MMB / Alt+Cmd+LMB: Track"); 75 | GUI.Label(new Rect(Screen.width -200, Screen.height - 40, 200, 30),"Wheel / 2 Fingers Swipe: Dolly"); 76 | } 77 | 78 | } 79 | 80 | void mouseEvent() 81 | { 82 | float delta = Input.GetAxis("Mouse ScrollWheel"); 83 | if (delta != 0.0f) 84 | this.mouseWheelEvent(delta); 85 | 86 | if (Input.GetMouseButtonDown((int)MouseButtonDown.MBD_LEFT) || 87 | Input.GetMouseButtonDown((int)MouseButtonDown.MBD_MIDDLE) || 88 | Input.GetMouseButtonDown((int)MouseButtonDown.MBD_RIGHT)) 89 | this.oldPos = Input.mousePosition; 90 | 91 | this.mouseDragEvent(Input.mousePosition); 92 | 93 | return; 94 | } 95 | 96 | void mouseDragEvent(Vector3 mousePos) 97 | { 98 | Vector3 diff = mousePos - oldPos; 99 | 100 | if(Input.GetMouseButton((int)MouseButtonDown.MBD_LEFT)) 101 | { 102 | //Operation for Mac : "Left Alt + Left Command + LMB Drag" is Track 103 | if(Input.GetKey(KeyCode.LeftAlt) && Input.GetKey(KeyCode.LeftCommand)) 104 | { 105 | if (diff.magnitude > Vector3.kEpsilon) 106 | this.cameraTranslate(-diff / 100.0f); 107 | } 108 | //Operation for Mac : "Left Alt + LMB Drag" is Tumble 109 | else if (Input.GetKey(KeyCode.LeftAlt)) 110 | { 111 | if (diff.magnitude > Vector3.kEpsilon) 112 | this.cameraRotate(new Vector3(diff.y, diff.x, 0.0f)); 113 | } 114 | //Only "LMB Drag" is no action. 115 | } 116 | //Track 117 | else if (Input.GetMouseButton((int)MouseButtonDown.MBD_MIDDLE)) 118 | { 119 | if (diff.magnitude > Vector3.kEpsilon) 120 | this.cameraTranslate(-diff / 100.0f); 121 | } 122 | //Tumble 123 | else if (Input.GetMouseButton((int)MouseButtonDown.MBD_RIGHT)) 124 | { 125 | if (diff.magnitude > Vector3.kEpsilon) 126 | this.cameraRotate(new Vector3(diff.y, diff.x, 0.0f)); 127 | } 128 | 129 | this.oldPos = mousePos; 130 | 131 | return; 132 | } 133 | 134 | //Dolly 135 | public void mouseWheelEvent(float delta) 136 | { 137 | Vector3 focusToPosition = this.transform.position - this.focus; 138 | 139 | Vector3 post = focusToPosition * (1.0f + delta); 140 | 141 | if (post.magnitude > 0.01) 142 | this.transform.position = this.focus + post; 143 | 144 | return; 145 | } 146 | 147 | void cameraTranslate(Vector3 vec) 148 | { 149 | Transform focusTrans = this.focusObj.transform; 150 | 151 | vec.x *= -1; 152 | 153 | focusTrans.Translate(Vector3.right * vec.x); 154 | focusTrans.Translate(Vector3.up * vec.y); 155 | 156 | this.focus = focusTrans.position; 157 | 158 | return; 159 | } 160 | 161 | public void cameraRotate(Vector3 eulerAngle) 162 | { 163 | //Use Quaternion to prevent rotation flips on XY plane 164 | Quaternion q = Quaternion.identity; 165 | 166 | Transform focusTrans = this.focusObj.transform; 167 | focusTrans.localEulerAngles = focusTrans.localEulerAngles + eulerAngle; 168 | 169 | //Change this.transform.LookAt(this.focus) to q.SetLookRotation(this.focus) 170 | q.SetLookRotation (this.focus) ; 171 | 172 | return; 173 | } 174 | } 175 | } -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts/CameraController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bd026706e81db0440add962177d87b23 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts/FaceUpdate.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | namespace UnityChan 5 | { 6 | public class FaceUpdate : MonoBehaviour 7 | { 8 | public AnimationClip[] animations; 9 | Animator anim; 10 | public float delayWeight; 11 | public bool isKeepFace = false; 12 | 13 | void Start () 14 | { 15 | anim = GetComponent (); 16 | } 17 | 18 | void OnGUI () 19 | { 20 | GUILayout.Box ("Face Update", GUILayout.Width (170), GUILayout.Height (25 * (animations.Length + 2))); 21 | Rect screenRect = new Rect (10, 25, 150, 25 * (animations.Length + 1)); 22 | GUILayout.BeginArea (screenRect); 23 | foreach (var animation in animations) { 24 | if (GUILayout.RepeatButton (animation.name)) { 25 | anim.CrossFade (animation.name, 0); 26 | } 27 | } 28 | isKeepFace = GUILayout.Toggle (isKeepFace, " Keep Face"); 29 | GUILayout.EndArea (); 30 | } 31 | 32 | float current = 0; 33 | 34 | void Update () 35 | { 36 | 37 | if (Input.GetMouseButton (0)) { 38 | current = 1; 39 | } else if (!isKeepFace) { 40 | current = Mathf.Lerp (current, 0, delayWeight); 41 | } 42 | anim.SetLayerWeight (1, current); 43 | } 44 | 45 | 46 | //アニメーションEvents側につける表情切り替え用イベントコール 47 | public void OnCallChangeFace (string str) 48 | { 49 | int ichecked = 0; 50 | foreach (var animation in animations) { 51 | if (str == animation.name) { 52 | ChangeFace (str); 53 | break; 54 | } else if (ichecked <= animations.Length) { 55 | ichecked++; 56 | } else { 57 | //str指定が間違っている時にはデフォルトで 58 | str = "default@unitychan"; 59 | ChangeFace (str); 60 | } 61 | } 62 | } 63 | 64 | void ChangeFace (string str) 65 | { 66 | isKeepFace = true; 67 | current = 1; 68 | anim.CrossFade (str, 0); 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts/FaceUpdate.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5e658bfc1e524494b9e54a1c92d8c1e0 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts/IKCtrlRightHand.cs: -------------------------------------------------------------------------------- 1 | // 2 | //IKCtrlRightHand.cs 3 | // 4 | //Sample script for IK Control of Unity-Chan's right hand. 5 | // 6 | //2014/06/20 N.Kobayashi 7 | // 8 | using UnityEngine; 9 | using System.Collections; 10 | 11 | namespace UnityChan 12 | { 13 | [RequireComponent(typeof(Animator))] 14 | public class IKCtrlRightHand : MonoBehaviour 15 | { 16 | 17 | private Animator anim; 18 | public Transform targetObj = null; 19 | public bool isIkActive = false; 20 | public float mixWeight = 1.0f; 21 | 22 | void Awake () 23 | { 24 | anim = GetComponent (); 25 | } 26 | 27 | void Update () 28 | { 29 | //Kobayashi 30 | if (mixWeight >= 1.0f) 31 | mixWeight = 1.0f; 32 | else if (mixWeight <= 0.0f) 33 | mixWeight = 0.0f; 34 | } 35 | 36 | void OnAnimatorIK (int layerIndex) 37 | { 38 | if (isIkActive) { 39 | anim.SetIKPositionWeight (AvatarIKGoal.RightHand, mixWeight); 40 | anim.SetIKRotationWeight (AvatarIKGoal.RightHand, mixWeight); 41 | anim.SetIKPosition (AvatarIKGoal.RightHand, targetObj.position); 42 | anim.SetIKRotation (AvatarIKGoal.RightHand, targetObj.rotation); 43 | } 44 | } 45 | 46 | void OnGUI () 47 | { 48 | Rect rect1 = new Rect (10, Screen.height - 20, 400, 30); 49 | isIkActive = GUI.Toggle (rect1, isIkActive, "IK Active"); 50 | } 51 | 52 | } 53 | } -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts/IKCtrlRightHand.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 16931e3bbabb00f478bbbe4759af8343 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts/IdleChanger.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | namespace UnityChan 5 | { 6 | // 7 | // ↑↓キーでループアニメーションを切り替えるスクリプト(ランダム切り替え付き)Ver.3 8 | // 2014/04/03 N.Kobayashi 9 | // 10 | 11 | // Require these components when using this script 12 | [RequireComponent(typeof(Animator))] 13 | 14 | 15 | 16 | public class IdleChanger : MonoBehaviour 17 | { 18 | 19 | private Animator anim; // Animatorへの参照 20 | private AnimatorStateInfo currentState; // 現在のステート状態を保存する参照 21 | private AnimatorStateInfo previousState; // ひとつ前のステート状態を保存する参照 22 | public bool _random = false; // ランダム判定スタートスイッチ 23 | public float _threshold = 0.5f; // ランダム判定の閾値 24 | public float _interval = 10f; // ランダム判定のインターバル 25 | //private float _seed = 0.0f; // ランダム判定用シード 26 | 27 | 28 | 29 | // Use this for initialization 30 | void Start () 31 | { 32 | // 各参照の初期化 33 | anim = GetComponent (); 34 | currentState = anim.GetCurrentAnimatorStateInfo (0); 35 | previousState = currentState; 36 | // ランダム判定用関数をスタートする 37 | StartCoroutine ("RandomChange"); 38 | } 39 | 40 | // Update is called once per frame 41 | void Update () 42 | { 43 | // ↑キー/スペースが押されたら、ステートを次に送る処理 44 | if (Input.GetKeyDown ("up") || Input.GetButton ("Jump")) { 45 | // ブーリアンNextをtrueにする 46 | anim.SetBool ("Next", true); 47 | } 48 | 49 | // ↓キーが押されたら、ステートを前に戻す処理 50 | if (Input.GetKeyDown ("down")) { 51 | // ブーリアンBackをtrueにする 52 | anim.SetBool ("Back", true); 53 | } 54 | 55 | // "Next"フラグがtrueの時の処理 56 | if (anim.GetBool ("Next")) { 57 | // 現在のステートをチェックし、ステート名が違っていたらブーリアンをfalseに戻す 58 | currentState = anim.GetCurrentAnimatorStateInfo (0); 59 | if (previousState.nameHash != currentState.nameHash) { 60 | anim.SetBool ("Next", false); 61 | previousState = currentState; 62 | } 63 | } 64 | 65 | // "Back"フラグがtrueの時の処理 66 | if (anim.GetBool ("Back")) { 67 | // 現在のステートをチェックし、ステート名が違っていたらブーリアンをfalseに戻す 68 | currentState = anim.GetCurrentAnimatorStateInfo (0); 69 | if (previousState.nameHash != currentState.nameHash) { 70 | anim.SetBool ("Back", false); 71 | previousState = currentState; 72 | } 73 | } 74 | } 75 | 76 | void OnGUI () 77 | { 78 | GUI.Box (new Rect (Screen.width - 110, 10, 100, 90), "Change Motion"); 79 | if (GUI.Button (new Rect (Screen.width - 100, 40, 80, 20), "Next")) 80 | anim.SetBool ("Next", true); 81 | if (GUI.Button (new Rect (Screen.width - 100, 70, 80, 20), "Back")) 82 | anim.SetBool ("Back", true); 83 | } 84 | 85 | 86 | // ランダム判定用関数 87 | IEnumerator RandomChange () 88 | { 89 | // 無限ループ開始 90 | while (true) { 91 | //ランダム判定スイッチオンの場合 92 | if (_random) { 93 | // ランダムシードを取り出し、その大きさによってフラグ設定をする 94 | float _seed = Random.Range (0.0f, 1.0f); 95 | if (_seed < _threshold) { 96 | anim.SetBool ("Back", true); 97 | } else if (_seed >= _threshold) { 98 | anim.SetBool ("Next", true); 99 | } 100 | } 101 | // 次の判定までインターバルを置く 102 | yield return new WaitForSeconds (_interval); 103 | } 104 | 105 | } 106 | 107 | } 108 | } 109 | -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts/IdleChanger.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 058a2736f2afd564eae55007a87eed87 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts/RandomWind.cs: -------------------------------------------------------------------------------- 1 | // 2 | //RandomWind.cs for unity-chan! 3 | // 4 | //Original Script is here: 5 | //ricopin / RandomWind.cs 6 | //Rocket Jump : http://rocketjump.skr.jp/unity3d/109/ 7 | //https://twitter.com/ricopin416 8 | // 9 | //修正2014/12/20 10 | //風の方向変化/重力影響を追加. 11 | // 12 | 13 | using UnityEngine; 14 | using System.Collections; 15 | 16 | namespace UnityChan 17 | { 18 | public class RandomWind : MonoBehaviour 19 | { 20 | private SpringBone[] springBones; 21 | public bool isWindActive = false; 22 | 23 | private bool isMinus = false; //風方向反転用. 24 | public float threshold = 0.5f; // ランダム判定の閾値. 25 | public float interval = 5.0f; // ランダム判定のインターバル. 26 | public float windPower = 1.0f; //風の強さ. 27 | public float gravity = 0.98f; //重力の強さ. 28 | 29 | 30 | // Use this for initialization 31 | void Start () 32 | { 33 | springBones = GetComponent ().springBones; 34 | StartCoroutine ("RandomChange"); 35 | } 36 | 37 | 38 | 39 | 40 | 41 | // Update is called once per frame 42 | void Update () 43 | { 44 | 45 | Vector3 force = Vector3.zero; 46 | if (isWindActive) { 47 | if(isMinus){ 48 | force = new Vector3 (Mathf.PerlinNoise (Time.time, 0.0f) * windPower * -0.001f , gravity * -0.001f , 0); 49 | }else{ 50 | force = new Vector3 (Mathf.PerlinNoise (Time.time, 0.0f) * windPower * 0.001f, gravity * -0.001f, 0); 51 | } 52 | 53 | for (int i = 0; i < springBones.Length; i++) { 54 | springBones [i].springForce = force; 55 | } 56 | 57 | } 58 | } 59 | 60 | void OnGUI () 61 | { 62 | Rect rect1 = new Rect (10, Screen.height - 40, 400, 30); 63 | isWindActive = GUI.Toggle (rect1, isWindActive, "Random Wind"); 64 | } 65 | 66 | // ランダム判定用関数. 67 | IEnumerator RandomChange () 68 | { 69 | // 無限ループ開始. 70 | while (true) { 71 | //ランダム判定用シード発生. 72 | float _seed = Random.Range (0.0f, 1.0f); 73 | 74 | if (_seed > threshold) { 75 | //_seedがthreshold以上の時、符号を反転する. 76 | isMinus = true; 77 | }else{ 78 | isMinus = false; 79 | } 80 | 81 | // 次の判定までインターバルを置く. 82 | yield return new WaitForSeconds (interval); 83 | } 84 | } 85 | 86 | 87 | } 88 | } -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts/RandomWind.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a38e39ada51aaba4db6d352ce218849e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts/SpringBone.cs: -------------------------------------------------------------------------------- 1 | // 2 | //SpringBone.cs for unity-chan! 3 | // 4 | //Original Script is here: 5 | //ricopin / SpringBone.cs 6 | //Rocket Jump : http://rocketjump.skr.jp/unity3d/109/ 7 | //https://twitter.com/ricopin416 8 | // 9 | //Revised by N.Kobayashi 2014/06/20 10 | // 11 | using UnityEngine; 12 | using System.Collections; 13 | 14 | namespace UnityChan 15 | { 16 | public class SpringBone : MonoBehaviour 17 | { 18 | //次のボーン 19 | public Transform child; 20 | 21 | //ボーンの向き 22 | public Vector3 boneAxis = new Vector3 (-1.0f, 0.0f, 0.0f); 23 | public float radius = 0.05f; 24 | 25 | //各SpringBoneに設定されているstiffnessForceとdragForceを使用するか? 26 | public bool isUseEachBoneForceSettings = false; 27 | 28 | //バネが戻る力 29 | public float stiffnessForce = 0.01f; 30 | 31 | //力の減衰力 32 | public float dragForce = 0.4f; 33 | public Vector3 springForce = new Vector3 (0.0f, -0.0001f, 0.0f); 34 | public SpringCollider[] colliders; 35 | public bool debug = true; 36 | //Kobayashi:Thredshold Starting to activate activeRatio 37 | public float threshold = 0.01f; 38 | private float springLength; 39 | private Quaternion localRotation; 40 | private Transform trs; 41 | private Vector3 currTipPos; 42 | private Vector3 prevTipPos; 43 | //Kobayashi 44 | private Transform org; 45 | //Kobayashi:Reference for "SpringManager" component with unitychan 46 | private SpringManager managerRef; 47 | 48 | private void Awake () 49 | { 50 | trs = transform; 51 | localRotation = transform.localRotation; 52 | //Kobayashi:Reference for "SpringManager" component with unitychan 53 | // GameObject.Find("unitychan_dynamic").GetComponent(); 54 | managerRef = GetParentSpringManager (transform); 55 | } 56 | 57 | private SpringManager GetParentSpringManager (Transform t) 58 | { 59 | var springManager = t.GetComponent (); 60 | 61 | if (springManager != null) 62 | return springManager; 63 | 64 | if (t.parent != null) { 65 | return GetParentSpringManager (t.parent); 66 | } 67 | 68 | return null; 69 | } 70 | 71 | private void Start () 72 | { 73 | springLength = Vector3.Distance (trs.position, child.position); 74 | currTipPos = child.position; 75 | prevTipPos = child.position; 76 | } 77 | 78 | public void UpdateSpring () 79 | { 80 | //Kobayashi 81 | org = trs; 82 | //回転をリセット 83 | trs.localRotation = Quaternion.identity * localRotation; 84 | 85 | float sqrDt = Time.deltaTime * Time.deltaTime; 86 | 87 | //stiffness 88 | Vector3 force = trs.rotation * (boneAxis * stiffnessForce) / sqrDt; 89 | 90 | //drag 91 | force += (prevTipPos - currTipPos) * dragForce / sqrDt; 92 | 93 | force += springForce / sqrDt; 94 | 95 | //前フレームと値が同じにならないように 96 | Vector3 temp = currTipPos; 97 | 98 | //verlet 99 | currTipPos = (currTipPos - prevTipPos) + currTipPos + (force * sqrDt); 100 | 101 | //長さを元に戻す 102 | currTipPos = ((currTipPos - trs.position).normalized * springLength) + trs.position; 103 | 104 | //衝突判定 105 | for (int i = 0; i < colliders.Length; i++) { 106 | if (Vector3.Distance (currTipPos, colliders [i].transform.position) <= (radius + colliders [i].radius)) { 107 | Vector3 normal = (currTipPos - colliders [i].transform.position).normalized; 108 | currTipPos = colliders [i].transform.position + (normal * (radius + colliders [i].radius)); 109 | currTipPos = ((currTipPos - trs.position).normalized * springLength) + trs.position; 110 | } 111 | 112 | 113 | } 114 | 115 | prevTipPos = temp; 116 | 117 | //回転を適用; 118 | Vector3 aimVector = trs.TransformDirection (boneAxis); 119 | Quaternion aimRotation = Quaternion.FromToRotation (aimVector, currTipPos - trs.position); 120 | //original 121 | //trs.rotation = aimRotation * trs.rotation; 122 | //Kobayahsi:Lerp with mixWeight 123 | Quaternion secondaryRotation = aimRotation * trs.rotation; 124 | trs.rotation = Quaternion.Lerp (org.rotation, secondaryRotation, managerRef.dynamicRatio); 125 | } 126 | 127 | private void OnDrawGizmos () 128 | { 129 | if (debug) { 130 | Gizmos.color = Color.yellow; 131 | Gizmos.DrawWireSphere (currTipPos, radius); 132 | } 133 | } 134 | } 135 | } 136 | -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts/SpringBone.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 37b7c58dc2d739b4c90fe59f6875debf 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts/SpringCollider.cs: -------------------------------------------------------------------------------- 1 | // 2 | //SpringCollider for unity-chan! 3 | // 4 | //Original Script is here: 5 | //ricopin / SpringCollider.cs 6 | //Rocket Jump : http://rocketjump.skr.jp/unity3d/109/ 7 | //https://twitter.com/ricopin416 8 | // 9 | using UnityEngine; 10 | using System.Collections; 11 | 12 | namespace UnityChan 13 | { 14 | public class SpringCollider : MonoBehaviour 15 | { 16 | //半径 17 | public float radius = 0.5f; 18 | 19 | private void OnDrawGizmosSelected () 20 | { 21 | Gizmos.color = Color.green; 22 | Gizmos.DrawWireSphere (transform.position, radius); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts/SpringCollider.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fcb73b690c023734fb267911061a15c6 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts/SpringManager.cs: -------------------------------------------------------------------------------- 1 | // 2 | //SpingManager.cs for unity-chan! 3 | // 4 | //Original Script is here: 5 | //ricopin / SpingManager.cs 6 | //Rocket Jump : http://rocketjump.skr.jp/unity3d/109/ 7 | //https://twitter.com/ricopin416 8 | // 9 | //Revised by N.Kobayashi 2014/06/24 10 | // Y.Ebata 11 | // 12 | using UnityEngine; 13 | using System.Collections; 14 | 15 | namespace UnityChan 16 | { 17 | public class SpringManager : MonoBehaviour 18 | { 19 | //Kobayashi 20 | // DynamicRatio is paramater for activated level of dynamic animation 21 | public float dynamicRatio = 1.0f; 22 | 23 | //Ebata 24 | public float stiffnessForce; 25 | public AnimationCurve stiffnessCurve; 26 | public float dragForce; 27 | public AnimationCurve dragCurve; 28 | public SpringBone[] springBones; 29 | 30 | void Start () 31 | { 32 | UpdateParameters (); 33 | } 34 | 35 | #if UNITY_EDITOR 36 | void Update () 37 | { 38 | 39 | //Kobayashi 40 | if(dynamicRatio >= 1.0f) 41 | dynamicRatio = 1.0f; 42 | else if(dynamicRatio <= 0.0f) 43 | dynamicRatio = 0.0f; 44 | //Ebata 45 | UpdateParameters(); 46 | 47 | } 48 | #endif 49 | private void LateUpdate () 50 | { 51 | //Kobayashi 52 | if (dynamicRatio != 0.0f) { 53 | for (int i = 0; i < springBones.Length; i++) { 54 | if (dynamicRatio > springBones [i].threshold) { 55 | springBones [i].UpdateSpring (); 56 | } 57 | } 58 | } 59 | } 60 | 61 | private void UpdateParameters () 62 | { 63 | UpdateParameter ("stiffnessForce", stiffnessForce, stiffnessCurve); 64 | UpdateParameter ("dragForce", dragForce, dragCurve); 65 | } 66 | 67 | private void UpdateParameter (string fieldName, float baseValue, AnimationCurve curve) 68 | { 69 | #if UNITY_EDITOR 70 | var start = curve.keys [0].time; 71 | var end = curve.keys [curve.length - 1].time; 72 | //var step = (end - start) / (springBones.Length - 1); 73 | 74 | var prop = springBones [0].GetType ().GetField (fieldName, System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public); 75 | 76 | for (int i = 0; i < springBones.Length; i++) { 77 | //Kobayashi 78 | if (!springBones [i].isUseEachBoneForceSettings) { 79 | var scale = curve.Evaluate (start + (end - start) * i / (springBones.Length - 1)); 80 | prop.SetValue (springBones [i], baseValue * scale); 81 | } 82 | } 83 | #endif 84 | } 85 | } 86 | } -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts/SpringManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6514ba86f976d724ab63844a6015b2aa 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts/ThirdPersonCamera.cs: -------------------------------------------------------------------------------- 1 | // 2 | // Unityちゃん用の三人称カメラ 3 | // 4 | // 2013/06/07 N.Kobyasahi 5 | // 6 | using UnityEngine; 7 | using System.Collections; 8 | 9 | namespace UnityChan 10 | { 11 | public class ThirdPersonCamera : MonoBehaviour 12 | { 13 | public float smooth = 3f; // カメラモーションのスムーズ化用変数 14 | Transform standardPos; // the usual position for the camera, specified by a transform in the game 15 | Transform frontPos; // Front Camera locater 16 | Transform jumpPos; // Jump Camera locater 17 | 18 | // スムーズに繋がない時(クイック切り替え)用のブーリアンフラグ 19 | bool bQuickSwitch = false; //Change Camera Position Quickly 20 | 21 | 22 | void Start () 23 | { 24 | // 各参照の初期化 25 | standardPos = GameObject.Find ("CamPos").transform; 26 | 27 | if (GameObject.Find ("FrontPos")) 28 | frontPos = GameObject.Find ("FrontPos").transform; 29 | 30 | if (GameObject.Find ("JumpPos")) 31 | jumpPos = GameObject.Find ("JumpPos").transform; 32 | 33 | //カメラをスタートする 34 | transform.position = standardPos.position; 35 | transform.forward = standardPos.forward; 36 | } 37 | 38 | void FixedUpdate () // このカメラ切り替えはFixedUpdate()内でないと正常に動かない 39 | { 40 | 41 | if (Input.GetButton ("Fire1")) { // left Ctlr 42 | // Change Front Camera 43 | setCameraPositionFrontView (); 44 | } else if (Input.GetButton ("Fire2")) { //Alt 45 | // Change Jump Camera 46 | setCameraPositionJumpView (); 47 | } else { 48 | // return the camera to standard position and direction 49 | setCameraPositionNormalView (); 50 | } 51 | } 52 | 53 | void setCameraPositionNormalView () 54 | { 55 | if (bQuickSwitch == false) { 56 | // the camera to standard position and direction 57 | transform.position = Vector3.Lerp (transform.position, standardPos.position, Time.fixedDeltaTime * smooth); 58 | transform.forward = Vector3.Lerp (transform.forward, standardPos.forward, Time.fixedDeltaTime * smooth); 59 | } else { 60 | // the camera to standard position and direction / Quick Change 61 | transform.position = standardPos.position; 62 | transform.forward = standardPos.forward; 63 | bQuickSwitch = false; 64 | } 65 | } 66 | 67 | void setCameraPositionFrontView () 68 | { 69 | // Change Front Camera 70 | bQuickSwitch = true; 71 | transform.position = frontPos.position; 72 | transform.forward = frontPos.forward; 73 | } 74 | 75 | void setCameraPositionJumpView () 76 | { 77 | // Change Jump Camera 78 | bQuickSwitch = false; 79 | transform.position = Vector3.Lerp (transform.position, jumpPos.position, Time.fixedDeltaTime * smooth); 80 | transform.forward = Vector3.Lerp (transform.forward, jumpPos.forward, Time.fixedDeltaTime * smooth); 81 | } 82 | } 83 | } -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts/ThirdPersonCamera.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bd9604897707c4879978b864a8be4d39 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts/UnityChanControlScriptWithRgidBody.cs: -------------------------------------------------------------------------------- 1 | // 2 | // Mecanimのアニメーションデータが、原点で移動しない場合の Rigidbody付きコントローラ 3 | // サンプル 4 | // 2014/03/13 N.Kobyasahi 5 | // 6 | using UnityEngine; 7 | using System.Collections; 8 | 9 | namespace UnityChan 10 | { 11 | // 必要なコンポーネントの列記 12 | [RequireComponent(typeof(Animator))] 13 | [RequireComponent(typeof(CapsuleCollider))] 14 | [RequireComponent(typeof(Rigidbody))] 15 | 16 | public class UnityChanControlScriptWithRgidBody : MonoBehaviour 17 | { 18 | 19 | public float animSpeed = 1.5f; // アニメーション再生速度設定 20 | public float lookSmoother = 3.0f; // a smoothing setting for camera motion 21 | public bool useCurves = true; // Mecanimでカーブ調整を使うか設定する 22 | // このスイッチが入っていないとカーブは使われない 23 | public float useCurvesHeight = 0.5f; // カーブ補正の有効高さ(地面をすり抜けやすい時には大きくする) 24 | 25 | // 以下キャラクターコントローラ用パラメタ 26 | // 前進速度 27 | public float forwardSpeed = 7.0f; 28 | // 後退速度 29 | public float backwardSpeed = 2.0f; 30 | // 旋回速度 31 | public float rotateSpeed = 2.0f; 32 | // ジャンプ威力 33 | public float jumpPower = 3.0f; 34 | // キャラクターコントローラ(カプセルコライダ)の参照 35 | private CapsuleCollider col; 36 | private Rigidbody rb; 37 | // キャラクターコントローラ(カプセルコライダ)の移動量 38 | private Vector3 velocity; 39 | // CapsuleColliderで設定されているコライダのHeiht、Centerの初期値を収める変数 40 | private float orgColHight; 41 | private Vector3 orgVectColCenter; 42 | private Animator anim; // キャラにアタッチされるアニメーターへの参照 43 | private AnimatorStateInfo currentBaseState; // base layerで使われる、アニメーターの現在の状態の参照 44 | 45 | private GameObject cameraObject; // メインカメラへの参照 46 | 47 | // アニメーター各ステートへの参照 48 | static int idleState = Animator.StringToHash ("Base Layer.Idle"); 49 | static int locoState = Animator.StringToHash ("Base Layer.Locomotion"); 50 | static int jumpState = Animator.StringToHash ("Base Layer.Jump"); 51 | static int restState = Animator.StringToHash ("Base Layer.Rest"); 52 | 53 | // 初期化 54 | void Start () 55 | { 56 | // Animatorコンポーネントを取得する 57 | anim = GetComponent (); 58 | // CapsuleColliderコンポーネントを取得する(カプセル型コリジョン) 59 | col = GetComponent (); 60 | rb = GetComponent (); 61 | //メインカメラを取得する 62 | cameraObject = GameObject.FindWithTag ("MainCamera"); 63 | // CapsuleColliderコンポーネントのHeight、Centerの初期値を保存する 64 | orgColHight = col.height; 65 | orgVectColCenter = col.center; 66 | } 67 | 68 | 69 | // 以下、メイン処理.リジッドボディと絡めるので、FixedUpdate内で処理を行う. 70 | void FixedUpdate () 71 | { 72 | float h = Input.GetAxis ("Horizontal"); // 入力デバイスの水平軸をhで定義 73 | float v = Input.GetAxis ("Vertical"); // 入力デバイスの垂直軸をvで定義 74 | anim.SetFloat ("Speed", v); // Animator側で設定している"Speed"パラメタにvを渡す 75 | anim.SetFloat ("Direction", h); // Animator側で設定している"Direction"パラメタにhを渡す 76 | anim.speed = animSpeed; // Animatorのモーション再生速度に animSpeedを設定する 77 | currentBaseState = anim.GetCurrentAnimatorStateInfo (0); // 参照用のステート変数にBase Layer (0)の現在のステートを設定する 78 | rb.useGravity = true;//ジャンプ中に重力を切るので、それ以外は重力の影響を受けるようにする 79 | 80 | 81 | 82 | // 以下、キャラクターの移動処理 83 | velocity = new Vector3 (0, 0, v); // 上下のキー入力からZ軸方向の移動量を取得 84 | // キャラクターのローカル空間での方向に変換 85 | velocity = transform.TransformDirection (velocity); 86 | //以下のvの閾値は、Mecanim側のトランジションと一緒に調整する 87 | if (v > 0.1) { 88 | velocity *= forwardSpeed; // 移動速度を掛ける 89 | } else if (v < -0.1) { 90 | velocity *= backwardSpeed; // 移動速度を掛ける 91 | } 92 | 93 | if (Input.GetButtonDown ("Jump")) { // スペースキーを入力したら 94 | 95 | //アニメーションのステートがLocomotionの最中のみジャンプできる 96 | if (currentBaseState.nameHash == locoState) { 97 | //ステート遷移中でなかったらジャンプできる 98 | if (!anim.IsInTransition (0)) { 99 | rb.AddForce (Vector3.up * jumpPower, ForceMode.VelocityChange); 100 | anim.SetBool ("Jump", true); // Animatorにジャンプに切り替えるフラグを送る 101 | } 102 | } 103 | } 104 | 105 | 106 | // 上下のキー入力でキャラクターを移動させる 107 | transform.localPosition += velocity * Time.fixedDeltaTime; 108 | 109 | // 左右のキー入力でキャラクタをY軸で旋回させる 110 | transform.Rotate (0, h * rotateSpeed, 0); 111 | 112 | 113 | // 以下、Animatorの各ステート中での処理 114 | // Locomotion中 115 | // 現在のベースレイヤーがlocoStateの時 116 | if (currentBaseState.nameHash == locoState) { 117 | //カーブでコライダ調整をしている時は、念のためにリセットする 118 | if (useCurves) { 119 | resetCollider (); 120 | } 121 | } 122 | // JUMP中の処理 123 | // 現在のベースレイヤーがjumpStateの時 124 | else if (currentBaseState.nameHash == jumpState) { 125 | cameraObject.SendMessage ("setCameraPositionJumpView"); // ジャンプ中のカメラに変更 126 | // ステートがトランジション中でない場合 127 | if (!anim.IsInTransition (0)) { 128 | 129 | // 以下、カーブ調整をする場合の処理 130 | if (useCurves) { 131 | // 以下JUMP00アニメーションについているカーブJumpHeightとGravityControl 132 | // JumpHeight:JUMP00でのジャンプの高さ(0〜1) 133 | // GravityControl:1⇒ジャンプ中(重力無効)、0⇒重力有効 134 | float jumpHeight = anim.GetFloat ("JumpHeight"); 135 | float gravityControl = anim.GetFloat ("GravityControl"); 136 | if (gravityControl > 0) 137 | rb.useGravity = false; //ジャンプ中の重力の影響を切る 138 | 139 | // レイキャストをキャラクターのセンターから落とす 140 | Ray ray = new Ray (transform.position + Vector3.up, -Vector3.up); 141 | RaycastHit hitInfo = new RaycastHit (); 142 | // 高さが useCurvesHeight 以上ある時のみ、コライダーの高さと中心をJUMP00アニメーションについているカーブで調整する 143 | if (Physics.Raycast (ray, out hitInfo)) { 144 | if (hitInfo.distance > useCurvesHeight) { 145 | col.height = orgColHight - jumpHeight; // 調整されたコライダーの高さ 146 | float adjCenterY = orgVectColCenter.y + jumpHeight; 147 | col.center = new Vector3 (0, adjCenterY, 0); // 調整されたコライダーのセンター 148 | } else { 149 | // 閾値よりも低い時には初期値に戻す(念のため) 150 | resetCollider (); 151 | } 152 | } 153 | } 154 | // Jump bool値をリセットする(ループしないようにする) 155 | anim.SetBool ("Jump", false); 156 | } 157 | } 158 | // IDLE中の処理 159 | // 現在のベースレイヤーがidleStateの時 160 | else if (currentBaseState.nameHash == idleState) { 161 | //カーブでコライダ調整をしている時は、念のためにリセットする 162 | if (useCurves) { 163 | resetCollider (); 164 | } 165 | // スペースキーを入力したらRest状態になる 166 | if (Input.GetButtonDown ("Jump")) { 167 | anim.SetBool ("Rest", true); 168 | } 169 | } 170 | // REST中の処理 171 | // 現在のベースレイヤーがrestStateの時 172 | else if (currentBaseState.nameHash == restState) { 173 | //cameraObject.SendMessage("setCameraPositionFrontView"); // カメラを正面に切り替える 174 | // ステートが遷移中でない場合、Rest bool値をリセットする(ループしないようにする) 175 | if (!anim.IsInTransition (0)) { 176 | anim.SetBool ("Rest", false); 177 | } 178 | } 179 | } 180 | 181 | void OnGUI () 182 | { 183 | GUI.Box (new Rect (Screen.width - 260, 10, 250, 150), "Interaction"); 184 | GUI.Label (new Rect (Screen.width - 245, 30, 250, 30), "Up/Down Arrow : Go Forwald/Go Back"); 185 | GUI.Label (new Rect (Screen.width - 245, 50, 250, 30), "Left/Right Arrow : Turn Left/Turn Right"); 186 | GUI.Label (new Rect (Screen.width - 245, 70, 250, 30), "Hit Space key while Running : Jump"); 187 | GUI.Label (new Rect (Screen.width - 245, 90, 250, 30), "Hit Spase key while Stopping : Rest"); 188 | GUI.Label (new Rect (Screen.width - 245, 110, 250, 30), "Left Control : Front Camera"); 189 | GUI.Label (new Rect (Screen.width - 245, 130, 250, 30), "Alt : LookAt Camera"); 190 | } 191 | 192 | 193 | // キャラクターのコライダーサイズのリセット関数 194 | void resetCollider () 195 | { 196 | // コンポーネントのHeight、Centerの初期値を戻す 197 | col.height = orgColHight; 198 | col.center = orgVectColCenter; 199 | } 200 | } 201 | } -------------------------------------------------------------------------------- /Assets/UnityChan/Scripts/UnityChanControlScriptWithRgidBody.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9001bcbd91e76437cb0f52f12764f2f0 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/UnityChan/Stage.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 397d43ff6f9e545dba37e500cc1dc576 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 69d7db87f74844b829ece155ff4189bc 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Materials/unitychan_tile3.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 3 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: unitychan_tile3 10 | m_Shader: {fileID: 4800000, guid: 9da2031a78926d0489f6bdcbf31ffa53, type: 3} 11 | m_ShaderKeywords: [] 12 | m_CustomRenderQueue: -1 13 | m_SavedProperties: 14 | serializedVersion: 2 15 | m_TexEnvs: 16 | data: 17 | first: 18 | name: _MainTex 19 | second: 20 | m_Texture: {fileID: 2800000, guid: 0c13bdfc1ad5def4aa6650ca8a1568e5, type: 3} 21 | m_Scale: {x: 5, y: 5} 22 | m_Offset: {x: 0, y: 0} 23 | data: 24 | first: 25 | name: _AlphaMask 26 | second: 27 | m_Texture: {fileID: 2800000, guid: b6944b8ec29ad124c9ebbe7b111fdfd5, type: 3} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | m_Floats: {} 31 | m_Colors: {} 32 | -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Materials/unitychan_tile3.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 00343d49c7d05416cb4a5bddf12aa90d 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Materials/unitychan_tile4.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 3 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: unitychan_tile4 10 | m_Shader: {fileID: 4800000, guid: 9da2031a78926d0489f6bdcbf31ffa53, type: 3} 11 | m_ShaderKeywords: [] 12 | m_CustomRenderQueue: -1 13 | m_SavedProperties: 14 | serializedVersion: 2 15 | m_TexEnvs: 16 | data: 17 | first: 18 | name: _MainTex 19 | second: 20 | m_Texture: {fileID: 2800000, guid: 42b4ccc65ecc7874e84c7e9a7a3d2a16, type: 3} 21 | m_Scale: {x: 5, y: 5} 22 | m_Offset: {x: 0, y: 0} 23 | data: 24 | first: 25 | name: _AlphaMask 26 | second: 27 | m_Texture: {fileID: 2800000, guid: b6944b8ec29ad124c9ebbe7b111fdfd5, type: 3} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | m_Floats: {} 31 | m_Colors: {} 32 | -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Materials/unitychan_tile4.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0f2978993cddc449c99a4e1893ed3479 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Materials/unitychan_tile5.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 3 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: unitychan_tile5 10 | m_Shader: {fileID: 4800000, guid: 9da2031a78926d0489f6bdcbf31ffa53, type: 3} 11 | m_ShaderKeywords: [] 12 | m_CustomRenderQueue: -1 13 | m_SavedProperties: 14 | serializedVersion: 2 15 | m_TexEnvs: 16 | data: 17 | first: 18 | name: _MainTex 19 | second: 20 | m_Texture: {fileID: 2800000, guid: 08d5989fe2b3e024daf98a61c6a68072, type: 3} 21 | m_Scale: {x: 5, y: 5} 22 | m_Offset: {x: 0, y: 0} 23 | data: 24 | first: 25 | name: _AlphaMask 26 | second: 27 | m_Texture: {fileID: 2800000, guid: b6944b8ec29ad124c9ebbe7b111fdfd5, type: 3} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | m_Floats: {} 31 | m_Colors: 32 | data: 33 | first: 34 | name: _Color 35 | second: {r: 1, g: 1, b: 1, a: 1} 36 | -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Materials/unitychan_tile5.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0fabbaa20a36d468a84e4925db02ecc5 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Materials/unitychan_tile6.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 3 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: unitychan_tile6 10 | m_Shader: {fileID: 4800000, guid: 9da2031a78926d0489f6bdcbf31ffa53, type: 3} 11 | m_ShaderKeywords: [] 12 | m_CustomRenderQueue: -1 13 | m_SavedProperties: 14 | serializedVersion: 2 15 | m_TexEnvs: 16 | data: 17 | first: 18 | name: _MainTex 19 | second: 20 | m_Texture: {fileID: 2800000, guid: 44c03eb9b0d2ef34b9e7a60eec7f1b1d, type: 3} 21 | m_Scale: {x: 40, y: 40} 22 | m_Offset: {x: 0, y: 0} 23 | data: 24 | first: 25 | name: _AlphaMask 26 | second: 27 | m_Texture: {fileID: 2800000, guid: b6944b8ec29ad124c9ebbe7b111fdfd5, type: 3} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | m_Floats: {} 31 | m_Colors: {} 32 | -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Materials/unitychan_tile6.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 330274cf2c5de4464a4b4b243b59e371 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ab33300cfccbb4e059bdbaa3c5418741 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Shader/AlphaMask.shader: -------------------------------------------------------------------------------- 1 | Shader "Custom/AlphaMask" { 2 | Properties { 3 | _MainTex ("Base (RGB)", 2D) = "white" {} 4 | _AlphaMask ("Mask (A)", 2D) = "white" {} 5 | } 6 | SubShader { 7 | Tags { "RenderType"="Transparent" } 8 | LOD 200 9 | AlphaTest Greater 0 10 | Blend SrcAlpha OneMinusSrcAlpha 11 | 12 | CGPROGRAM 13 | #pragma surface surf Lambert noambient 14 | 15 | sampler2D _MainTex; 16 | sampler2D _AlphaMask; 17 | 18 | struct Input { 19 | float2 uv_MainTex; 20 | float2 uv_AlphaMask; 21 | }; 22 | 23 | void surf (Input IN, inout SurfaceOutput o) { 24 | half4 c = tex2D (_MainTex, IN.uv_MainTex); 25 | o.Albedo = c.rgb; 26 | o.Alpha = tex2D (_AlphaMask, IN.uv_AlphaMask).a; 27 | o.Specular = 0; 28 | o.Gloss = 0; 29 | } 30 | ENDCG 31 | } 32 | FallBack "Diffuse" 33 | } 34 | -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Shader/AlphaMask.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9da2031a78926d0489f6bdcbf31ffa53 3 | ShaderImporter: 4 | defaultTextures: 5 | - _MainTex: {instanceID: 0} 6 | - _AlphaMask: {fileID: 2800000, guid: b6944b8ec29ad124c9ebbe7b111fdfd5, type: 3} 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Shader/Textures.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7ac76aa6ef0354ff7b19a057aa4d18c2 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Shader/Textures/AlphaMask.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/Stage/Shader/Textures/AlphaMask.png -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Shader/Textures/AlphaMask.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b6944b8ec29ad124c9ebbe7b111fdfd5 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 1 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: 1 28 | maxTextureSize: 1024 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 1 46 | textureType: 5 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | assetBundleVariant: 54 | -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Shader/Textures/Unity_Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/Stage/Shader/Textures/Unity_Icon.png -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Shader/Textures/Unity_Icon.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b442fd7ae2ec93c4b9b9eda0c032960c 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -3 28 | maxTextureSize: 1024 29 | textureSettings: 30 | filterMode: 2 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 1 46 | textureType: -1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | assetBundleVariant: 54 | -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Textures.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d7b8598600aa543d18c28c568be0ac6b 3 | folderAsset: yes 4 | timeCreated: 1440992941 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Textures/unitychan_tile3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/Stage/Textures/unitychan_tile3.png -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Textures/unitychan_tile3.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0c13bdfc1ad5def4aa6650ca8a1568e5 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 1024 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: -1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | assetBundleVariant: 54 | -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Textures/unitychan_tile4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/Stage/Textures/unitychan_tile4.png -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Textures/unitychan_tile4.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 42b4ccc65ecc7874e84c7e9a7a3d2a16 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 1024 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: -1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | assetBundleVariant: 54 | -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Textures/unitychan_tile5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/Stage/Textures/unitychan_tile5.png -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Textures/unitychan_tile5.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 08d5989fe2b3e024daf98a61c6a68072 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 1024 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: -1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | assetBundleVariant: 54 | -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Textures/unitychan_tile6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apras/Unity-OverrideEye_For_UnityChan/372c8239167ce3de2d89340721b1b89973a4c57c/Assets/UnityChan/Stage/Textures/unitychan_tile6.png -------------------------------------------------------------------------------- /Assets/UnityChan/Stage/Textures/unitychan_tile6.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 44c03eb9b0d2ef34b9e7a60eec7f1b1d 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 1024 29 | textureSettings: 30 | filterMode: -1 31 | aniso: -1 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: -1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | assetBundleVariant: 54 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | -- Unity-OverrideEye_For_UnityChan -- 2 | files : Assets/OverrideEye/*.* 3 | 4 | The MIT License (MIT) 5 | 6 | Copyright (c) 2015 Tomoya Kanehira 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Unity-OverrideEye_For_UnityChan 2 | This is the script and shader to render the eye in front of the hair at Unity5 for UnityChan. 3 | これは、UnityChan用のUnity5にて眼などを髪の毛の手前にレンダリングするスクリプト及びシェーダーです。 4 | 5 | ![Sample](https://pbs.twimg.com/media/CNIfNKgVEAIm-ds.png:large) 6 | 7 | 8 | Demo(WebGL) 9 | 10 | 11 | ## How to use 12 | * 手前に描画したい GameObject に、OverrideEye コンポーネントを追加。 13 | + **Type** から描画タイプを選択 14 | - **OVERRIDE** 手間に描画 15 | - **MASK** 手前に描画する対象をマスク 16 | - **CLIP** 描画する領域 17 | + **Priority** を設定 数値の小さいものから描画されます 18 | 19 | 20 | * シーン内のカメラに RenderOverrideEye コンポーネントを追加。 21 | + **Blend Alpha** で手前に描画される対象の透明度を設定 22 | 23 | ## Description (Assets\OverrideEye\SampleScenes\Scene01.unity) 24 | * SD_unitychan_humanoidFaceFix 25 | + OverrideEye OVERRIDE 26 | - _whiteEye 27 | - _eye 28 | - _eyebrows 29 | - _eyelashes 30 | + OverrideEye MASK 31 | - _face 32 | - _faceCap 33 | + OverrideEye CLIP 34 | - _Fhair 35 | - _Fhair2 36 | --------------------------------------------------------------------------------