├── .gitignore ├── Assets ├── IndentSurface.meta └── IndentSurface │ ├── Editor.meta │ ├── Editor │ ├── DentableSurfaceShaderGUI.cs │ └── DentableSurfaceShaderGUI.cs.meta │ ├── Materials.meta │ ├── Materials │ ├── ShowHeightmap_Mat.mat │ ├── ShowHeightmap_Mat.mat.meta │ ├── SnowMat.mat │ ├── SnowMat.mat.meta │ ├── Stamp_ADD.mat │ ├── Stamp_ADD.mat.meta │ ├── Stamp_CUSTOM.mat │ ├── Stamp_CUSTOM.mat.meta │ ├── Stamp_Default.mat │ ├── Stamp_Default.mat.meta │ ├── Stamp_MIN.mat │ ├── Stamp_MIN.mat.meta │ ├── Stamp_MUL.mat │ └── Stamp_MUL.mat.meta │ ├── Models.meta │ ├── Models │ ├── Materials.meta │ ├── Materials │ │ ├── No Name.mat │ │ ├── No Name.mat.meta │ │ ├── unnamed.mat │ │ └── unnamed.mat.meta │ ├── temp_terrain.fbx │ └── temp_terrain.fbx.meta │ ├── Scripts.meta │ ├── Scripts │ ├── IndentActor.cs │ ├── IndentActor.cs.meta │ ├── IndentDraw.cs │ └── IndentDraw.cs.meta │ ├── Shaders.meta │ ├── Shaders │ ├── DentableSurface.shader │ ├── DentableSurface.shader.meta │ ├── IndentStampInc.cginc │ ├── IndentStampInc.cginc.meta │ ├── IndentStamp_ADD.shader │ ├── IndentStamp_ADD.shader.meta │ ├── IndentStamp_CUSTOM.shader │ ├── IndentStamp_CUSTOM.shader.meta │ ├── IndentStamp_Default.shader │ ├── IndentStamp_Default.shader.meta │ ├── IndentStamp_MIN.shader │ ├── IndentStamp_MIN.shader.meta │ ├── IndentStamp_MUL.shader │ └── IndentStamp_MUL.shader.meta │ ├── Textures.meta │ ├── Textures │ ├── Snow.meta │ ├── Snow │ │ ├── snow_alb.png │ │ ├── snow_alb.png.meta │ │ ├── snow_n.png │ │ ├── snow_n.png.meta │ │ ├── snow_occ.png │ │ ├── snow_occ.png.meta │ │ ├── snow_s.png │ │ ├── snow_s.png.meta │ │ ├── snow_s.tga │ │ └── snow_s.tga.meta │ ├── TestRenderTexture.renderTexture │ ├── TestRenderTexture.renderTexture.meta │ ├── stamps.meta │ ├── stamps │ │ ├── Indendt16x16.png │ │ ├── Indendt16x16.png.meta │ │ ├── Indendt32x32.png │ │ ├── Indendt32x32.png.meta │ │ ├── Indendt32x32_norim.png │ │ └── Indendt32x32_norim.png.meta │ ├── test_texture.jpg │ ├── test_texture.jpg.meta │ ├── test_texture2.jpg │ ├── test_texture2.jpg.meta │ ├── test_texture3.jpg │ └── test_texture3.jpg.meta │ ├── _DEMO.meta │ └── _DEMO │ ├── snow_example.unity │ └── snow_example.unity.meta ├── LICENSE.md ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset ├── UnityAdsSettings.asset └── UnityConnectSettings.asset └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | **/[Ll]ibrary/ 3 | **/[Tt]emp/ 4 | **/[Oo]bj/ 5 | **/[Bb]uild/ 6 | **/[Bb]uilds/ 7 | **/Assets/AssetStoreTools* 8 | 9 | ExportedObj/ 10 | obj/ 11 | *.svd 12 | *.userprefs 13 | *.csproj 14 | *.pidb 15 | *.suo 16 | *.sln 17 | *.user 18 | *.unityproj 19 | *.booproj 20 | UnityVS/ 21 | UnityVS.meta 22 | 23 | 24 | ProjectVersion.txt 25 | 26 | # Unity3D generated meta files 27 | *.pidb.meta 28 | 29 | # Unity3D Generated File On Crash Reports 30 | sysinfo.txt 31 | 32 | .DS_Store 33 | .DS_Store? 34 | ._* 35 | .Spotlight-V100 36 | .Trashes 37 | ehthumbs.db 38 | Thumbs.db 39 | 40 | #merge orig files 41 | *.orig -------------------------------------------------------------------------------- /Assets/IndentSurface.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d9c35f61bb3ca1c4fa9a92832fcf6109 3 | folderAsset: yes 4 | timeCreated: 1482927612 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6bd1c1b9b230e894e9435925ce4e742c 3 | folderAsset: yes 4 | timeCreated: 1471976318 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Editor/DentableSurfaceShaderGUI.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace UnityEditor 5 | { 6 | /// 7 | /// Copied Unity's standard shader editor for our own 8 | /// 9 | internal class DentableSurfaceShaderGUI : ShaderGUI 10 | { 11 | private enum WorkflowMode 12 | { 13 | Specular, 14 | Metallic, 15 | Dielectric 16 | } 17 | 18 | public enum BlendMode 19 | { 20 | Opaque, 21 | Cutout, 22 | Fade, // Old school alpha-blending mode, fresnel does not affect amount of transparency 23 | Transparent // Physically plausible transparency mode, implemented as alpha pre-multiply 24 | } 25 | 26 | public enum SmoothnessMapChannel 27 | { 28 | SpecularMetallicAlpha, 29 | AlbedoAlpha, 30 | } 31 | 32 | private static class Styles 33 | { 34 | public static GUIStyle optionsButton = "PaneOptions"; 35 | public static GUIContent uvSetLabel = new GUIContent("UV Set"); 36 | public static GUIContent[] uvSetOptions = new GUIContent[] { new GUIContent("UV channel 0"), new GUIContent("UV channel 1") }; 37 | 38 | public static string emptyTootip = ""; 39 | public static GUIContent albedoText = new GUIContent("Albedo", "Albedo (RGB) and Transparency (A)"); 40 | public static GUIContent alphaCutoffText = new GUIContent("Alpha Cutoff", "Threshold for alpha cutoff"); 41 | public static GUIContent specularMapText = new GUIContent("Specular", "Specular (RGB) and Smoothness (A)"); 42 | public static GUIContent metallicMapText = new GUIContent("Metallic", "Metallic (R) and Smoothness (A)"); 43 | public static GUIContent smoothnessText = new GUIContent("Smoothness", "Smoothness value"); 44 | public static GUIContent smoothnessScaleText = new GUIContent("Smoothness", "Smoothness scale factor"); 45 | public static GUIContent smoothnessMapChannelText = new GUIContent("Source", "Smoothness texture and channel"); 46 | public static GUIContent highlightsText = new GUIContent("Specular Highlights", "Specular Highlights"); 47 | public static GUIContent reflectionsText = new GUIContent("Reflections", "Glossy Reflections"); 48 | public static GUIContent normalMapText = new GUIContent("Normal Map", "Normal Map"); 49 | public static GUIContent heightMapText = new GUIContent("Height Map", "Height Map (G)"); 50 | public static GUIContent occlusionText = new GUIContent("Occlusion", "Occlusion (G)"); 51 | public static GUIContent emissionText = new GUIContent("Emission", "Emission (RGB)"); 52 | public static GUIContent detailMaskText = new GUIContent("Detail Mask", "Mask for Secondary Maps (A)"); 53 | public static GUIContent detailAlbedoText = new GUIContent("Detail Albedo x2", "Albedo (RGB) multiplied by 2"); 54 | public static GUIContent detailNormalMapText = new GUIContent("Normal Map", "Normal Map"); 55 | 56 | public static string whiteSpaceString = " "; 57 | public static string primaryMapsText = "Main Maps"; 58 | public static string secondaryMapsText = "Secondary Maps"; 59 | public static string forwardText = "Forward Rendering Options"; 60 | public static string renderingMode = "Rendering Mode"; 61 | public static GUIContent emissiveWarning = new GUIContent("Emissive value is animated but the material has not been configured to support emissive. Please make sure the material itself has some amount of emissive."); 62 | public static GUIContent emissiveColorWarning = new GUIContent("Ensure emissive color is non-black for emission to have effect."); 63 | public static readonly string[] blendNames = Enum.GetNames(typeof(BlendMode)); 64 | } 65 | 66 | MaterialProperty blendMode = null; 67 | MaterialProperty albedoMap = null; 68 | MaterialProperty albedoColor = null; 69 | MaterialProperty alphaCutoff = null; 70 | MaterialProperty specularMap = null; 71 | MaterialProperty specularColor = null; 72 | MaterialProperty metallicMap = null; 73 | MaterialProperty metallic = null; 74 | MaterialProperty smoothness = null; 75 | MaterialProperty smoothnessScale = null; 76 | MaterialProperty smoothnessMapChannel = null; 77 | MaterialProperty highlights = null; 78 | MaterialProperty reflections = null; 79 | MaterialProperty bumpScale = null; 80 | MaterialProperty bumpMap = null; 81 | MaterialProperty occlusionStrength = null; 82 | MaterialProperty occlusionMap = null; 83 | MaterialProperty heigtMapScale = null; 84 | MaterialProperty heightMap = null; 85 | MaterialProperty emissionColorForRendering = null; 86 | MaterialProperty emissionMap = null; 87 | MaterialProperty detailMask = null; 88 | MaterialProperty detailAlbedoMap = null; 89 | MaterialProperty detailNormalMapScale = null; 90 | MaterialProperty detailNormalMap = null; 91 | MaterialProperty uvSetSecondary = null; 92 | 93 | MaterialEditor m_MaterialEditor; 94 | WorkflowMode m_WorkflowMode = WorkflowMode.Specular; 95 | ColorPickerHDRConfig m_ColorPickerHDRConfig = new ColorPickerHDRConfig(0f, 99f, 1 / 99f, 3f); 96 | 97 | bool m_FirstTimeApply = true; 98 | 99 | public void FindProperties(MaterialProperty[] props) 100 | { 101 | blendMode = FindProperty("_Mode", props); 102 | albedoMap = FindProperty("_MainTex", props); 103 | albedoColor = FindProperty("_Color", props); 104 | alphaCutoff = FindProperty("_Cutoff", props); 105 | specularMap = FindProperty("_SpecGlossMap", props, false); 106 | specularColor = FindProperty("_SpecColor", props, false); 107 | metallicMap = FindProperty("_MetallicGlossMap", props, false); 108 | metallic = FindProperty("_Metallic", props, false); 109 | if (specularMap != null && specularColor != null) 110 | m_WorkflowMode = WorkflowMode.Specular; 111 | else if (metallicMap != null && metallic != null) 112 | m_WorkflowMode = WorkflowMode.Metallic; 113 | else 114 | m_WorkflowMode = WorkflowMode.Dielectric; 115 | smoothness = FindProperty("_Glossiness", props); 116 | smoothnessScale = FindProperty("_GlossMapScale", props, false); 117 | smoothnessMapChannel = FindProperty("_SmoothnessTextureChannel", props, false); 118 | highlights = FindProperty("_SpecularHighlights", props, false); 119 | reflections = FindProperty("_GlossyReflections", props, false); 120 | bumpScale = FindProperty("_BumpScale", props); 121 | bumpMap = FindProperty("_BumpMap", props); 122 | heigtMapScale = FindProperty("_Parallax", props); 123 | heightMap = FindProperty("_ParallaxMap", props); 124 | occlusionStrength = FindProperty("_OcclusionStrength", props); 125 | occlusionMap = FindProperty("_OcclusionMap", props); 126 | emissionColorForRendering = FindProperty("_EmissionColor", props); 127 | emissionMap = FindProperty("_EmissionMap", props); 128 | detailMask = FindProperty("_DetailMask", props); 129 | detailAlbedoMap = FindProperty("_DetailAlbedoMap", props); 130 | detailNormalMapScale = FindProperty("_DetailNormalMapScale", props); 131 | detailNormalMap = FindProperty("_DetailNormalMap", props); 132 | uvSetSecondary = FindProperty("_UVSec", props); 133 | } 134 | 135 | public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] props) 136 | { 137 | FindProperties(props); // MaterialProperties can be animated so we do not cache them but fetch them every event to ensure animated values are updated correctly 138 | m_MaterialEditor = materialEditor; 139 | Material material = materialEditor.target as Material; 140 | 141 | // Make sure that needed setup (ie keywords/renderqueue) are set up if we're switching some existing 142 | // material to a standard shader. 143 | // Do this before any GUI code has been issued to prevent layout issues in subsequent GUILayout statements (case 780071) 144 | if (m_FirstTimeApply) 145 | { 146 | MaterialChanged(material, m_WorkflowMode); 147 | m_FirstTimeApply = false; 148 | } 149 | 150 | ShaderPropertiesGUI(material); 151 | } 152 | 153 | public void ShaderPropertiesGUI(Material material) 154 | { 155 | // Use default labelWidth 156 | EditorGUIUtility.labelWidth = 0f; 157 | 158 | // Detect any changes to the material 159 | EditorGUI.BeginChangeCheck(); 160 | { 161 | BlendModePopup(); 162 | 163 | // Primary properties 164 | GUILayout.Label(Styles.primaryMapsText, EditorStyles.boldLabel); 165 | DoAlbedoArea(material); 166 | DoSpecularMetallicArea(); 167 | m_MaterialEditor.TexturePropertySingleLine(Styles.normalMapText, bumpMap, bumpMap.textureValue != null ? bumpScale : null); 168 | m_MaterialEditor.TexturePropertySingleLine(Styles.heightMapText, heightMap, heightMap.textureValue != null ? heigtMapScale : null); 169 | m_MaterialEditor.TexturePropertySingleLine(Styles.occlusionText, occlusionMap, occlusionMap.textureValue != null ? occlusionStrength : null); 170 | DoEmissionArea(material); 171 | m_MaterialEditor.TexturePropertySingleLine(Styles.detailMaskText, detailMask); 172 | EditorGUI.BeginChangeCheck(); 173 | m_MaterialEditor.TextureScaleOffsetProperty(albedoMap); 174 | if (EditorGUI.EndChangeCheck()) 175 | emissionMap.textureScaleAndOffset = albedoMap.textureScaleAndOffset; // Apply the main texture scale and offset to the emission texture as well, for Enlighten's sake 176 | 177 | EditorGUILayout.Space(); 178 | 179 | // Secondary properties 180 | GUILayout.Label(Styles.secondaryMapsText, EditorStyles.boldLabel); 181 | m_MaterialEditor.TexturePropertySingleLine(Styles.detailAlbedoText, detailAlbedoMap); 182 | m_MaterialEditor.TexturePropertySingleLine(Styles.detailNormalMapText, detailNormalMap, detailNormalMapScale); 183 | m_MaterialEditor.TextureScaleOffsetProperty(detailAlbedoMap); 184 | m_MaterialEditor.ShaderProperty(uvSetSecondary, Styles.uvSetLabel.text); 185 | 186 | // Third properties 187 | GUILayout.Label(Styles.forwardText, EditorStyles.boldLabel); 188 | if (highlights != null) 189 | m_MaterialEditor.ShaderProperty(highlights, Styles.highlightsText); 190 | if (reflections != null) 191 | m_MaterialEditor.ShaderProperty(reflections, Styles.reflectionsText); 192 | 193 | } 194 | if (EditorGUI.EndChangeCheck()) 195 | { 196 | foreach (var obj in blendMode.targets) 197 | MaterialChanged((Material)obj, m_WorkflowMode); 198 | } 199 | } 200 | 201 | internal void DetermineWorkflow(MaterialProperty[] props) 202 | { 203 | if (FindProperty("_SpecGlossMap", props, false) != null && FindProperty("_SpecColor", props, false) != null) 204 | m_WorkflowMode = WorkflowMode.Specular; 205 | else if (FindProperty("_MetallicGlossMap", props, false) != null && FindProperty("_Metallic", props, false) != null) 206 | m_WorkflowMode = WorkflowMode.Metallic; 207 | else 208 | m_WorkflowMode = WorkflowMode.Dielectric; 209 | } 210 | 211 | public override void AssignNewShaderToMaterial(Material material, Shader oldShader, Shader newShader) 212 | { 213 | // _Emission property is lost after assigning Standard shader to the material 214 | // thus transfer it before assigning the new shader 215 | if (material.HasProperty("_Emission")) 216 | { 217 | material.SetColor("_EmissionColor", material.GetColor("_Emission")); 218 | } 219 | 220 | base.AssignNewShaderToMaterial(material, oldShader, newShader); 221 | 222 | if (oldShader == null || !oldShader.name.Contains("Legacy Shaders/")) 223 | { 224 | SetupMaterialWithBlendMode(material, (BlendMode)material.GetFloat("_Mode")); 225 | return; 226 | } 227 | 228 | BlendMode blendMode = BlendMode.Opaque; 229 | if (oldShader.name.Contains("/Transparent/Cutout/")) 230 | { 231 | blendMode = BlendMode.Cutout; 232 | } 233 | else if (oldShader.name.Contains("/Transparent/")) 234 | { 235 | // NOTE: legacy shaders did not provide physically based transparency 236 | // therefore Fade mode 237 | blendMode = BlendMode.Fade; 238 | } 239 | material.SetFloat("_Mode", (float)blendMode); 240 | 241 | DetermineWorkflow(MaterialEditor.GetMaterialProperties(new Material[] { material })); 242 | MaterialChanged(material, m_WorkflowMode); 243 | } 244 | 245 | void BlendModePopup() 246 | { 247 | EditorGUI.showMixedValue = blendMode.hasMixedValue; 248 | var mode = (BlendMode)blendMode.floatValue; 249 | 250 | EditorGUI.BeginChangeCheck(); 251 | mode = (BlendMode)EditorGUILayout.Popup(Styles.renderingMode, (int)mode, Styles.blendNames); 252 | if (EditorGUI.EndChangeCheck()) 253 | { 254 | m_MaterialEditor.RegisterPropertyChangeUndo("Rendering Mode"); 255 | blendMode.floatValue = (float)mode; 256 | } 257 | 258 | EditorGUI.showMixedValue = false; 259 | } 260 | 261 | void DoAlbedoArea(Material material) 262 | { 263 | m_MaterialEditor.TexturePropertySingleLine(Styles.albedoText, albedoMap, albedoColor); 264 | if (((BlendMode)material.GetFloat("_Mode") == BlendMode.Cutout)) 265 | { 266 | m_MaterialEditor.ShaderProperty(alphaCutoff, Styles.alphaCutoffText.text, MaterialEditor.kMiniTextureFieldLabelIndentLevel + 1); 267 | } 268 | } 269 | 270 | void DoEmissionArea(Material material) 271 | { 272 | bool showHelpBox = !HasValidEmissiveKeyword(material); 273 | 274 | bool hadEmissionTexture = emissionMap.textureValue != null; 275 | 276 | // Texture and HDR color controls 277 | m_MaterialEditor.TexturePropertyWithHDRColor(Styles.emissionText, emissionMap, emissionColorForRendering, m_ColorPickerHDRConfig, false); 278 | 279 | // If texture was assigned and color was black set color to white 280 | float brightness = emissionColorForRendering.colorValue.maxColorComponent; 281 | if (emissionMap.textureValue != null && !hadEmissionTexture && brightness <= 0f) 282 | emissionColorForRendering.colorValue = Color.white; 283 | 284 | // Emission for GI? 285 | m_MaterialEditor.LightmapEmissionProperty(MaterialEditor.kMiniTextureFieldLabelIndentLevel + 1); 286 | 287 | if (showHelpBox) 288 | { 289 | EditorGUILayout.HelpBox(Styles.emissiveWarning.text, MessageType.Warning); 290 | } 291 | } 292 | 293 | void DoSpecularMetallicArea() 294 | { 295 | bool hasGlossMap = false; 296 | if (m_WorkflowMode == WorkflowMode.Specular) 297 | { 298 | hasGlossMap = specularMap.textureValue != null; 299 | m_MaterialEditor.TexturePropertySingleLine(Styles.specularMapText, specularMap, hasGlossMap ? null : specularColor); 300 | } 301 | else if (m_WorkflowMode == WorkflowMode.Metallic) 302 | { 303 | hasGlossMap = metallicMap.textureValue != null; 304 | m_MaterialEditor.TexturePropertySingleLine(Styles.metallicMapText, metallicMap, hasGlossMap ? null : metallic); 305 | } 306 | 307 | bool showSmoothnessScale = hasGlossMap; 308 | if (smoothnessMapChannel != null) 309 | { 310 | int smoothnessChannel = (int)smoothnessMapChannel.floatValue; 311 | if (smoothnessChannel == (int)SmoothnessMapChannel.AlbedoAlpha) 312 | showSmoothnessScale = true; 313 | } 314 | 315 | int indentation = 2; // align with labels of texture properties 316 | m_MaterialEditor.ShaderProperty(showSmoothnessScale ? smoothnessScale : smoothness, showSmoothnessScale ? Styles.smoothnessScaleText : Styles.smoothnessText, indentation); 317 | 318 | ++indentation; 319 | if (smoothnessMapChannel != null) 320 | m_MaterialEditor.ShaderProperty(smoothnessMapChannel, Styles.smoothnessMapChannelText, indentation); 321 | } 322 | 323 | public static void SetupMaterialWithBlendMode(Material material, BlendMode blendMode) 324 | { 325 | switch (blendMode) 326 | { 327 | case BlendMode.Opaque: 328 | material.SetOverrideTag("RenderType", ""); 329 | material.SetInt("_SrcBlend", (int)UnityEngine.Rendering.BlendMode.One); 330 | material.SetInt("_DstBlend", (int)UnityEngine.Rendering.BlendMode.Zero); 331 | material.SetInt("_ZWrite", 1); 332 | material.DisableKeyword("_ALPHATEST_ON"); 333 | material.DisableKeyword("_ALPHABLEND_ON"); 334 | material.DisableKeyword("_ALPHAPREMULTIPLY_ON"); 335 | material.renderQueue = -1; 336 | break; 337 | case BlendMode.Cutout: 338 | material.SetOverrideTag("RenderType", "TransparentCutout"); 339 | material.SetInt("_SrcBlend", (int)UnityEngine.Rendering.BlendMode.One); 340 | material.SetInt("_DstBlend", (int)UnityEngine.Rendering.BlendMode.Zero); 341 | material.SetInt("_ZWrite", 1); 342 | material.EnableKeyword("_ALPHATEST_ON"); 343 | material.DisableKeyword("_ALPHABLEND_ON"); 344 | material.DisableKeyword("_ALPHAPREMULTIPLY_ON"); 345 | material.renderQueue = (int)UnityEngine.Rendering.RenderQueue.AlphaTest; 346 | break; 347 | case BlendMode.Fade: 348 | material.SetOverrideTag("RenderType", "Transparent"); 349 | material.SetInt("_SrcBlend", (int)UnityEngine.Rendering.BlendMode.SrcAlpha); 350 | material.SetInt("_DstBlend", (int)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha); 351 | material.SetInt("_ZWrite", 0); 352 | material.DisableKeyword("_ALPHATEST_ON"); 353 | material.EnableKeyword("_ALPHABLEND_ON"); 354 | material.DisableKeyword("_ALPHAPREMULTIPLY_ON"); 355 | material.renderQueue = (int)UnityEngine.Rendering.RenderQueue.Transparent; 356 | break; 357 | case BlendMode.Transparent: 358 | material.SetOverrideTag("RenderType", "Transparent"); 359 | material.SetInt("_SrcBlend", (int)UnityEngine.Rendering.BlendMode.One); 360 | material.SetInt("_DstBlend", (int)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha); 361 | material.SetInt("_ZWrite", 0); 362 | material.DisableKeyword("_ALPHATEST_ON"); 363 | material.DisableKeyword("_ALPHABLEND_ON"); 364 | material.EnableKeyword("_ALPHAPREMULTIPLY_ON"); 365 | material.renderQueue = (int)UnityEngine.Rendering.RenderQueue.Transparent; 366 | break; 367 | } 368 | } 369 | 370 | static SmoothnessMapChannel GetSmoothnessMapChannel(Material material) 371 | { 372 | int ch = (int)material.GetFloat("_SmoothnessTextureChannel"); 373 | if (ch == (int)SmoothnessMapChannel.AlbedoAlpha) 374 | return SmoothnessMapChannel.AlbedoAlpha; 375 | else 376 | return SmoothnessMapChannel.SpecularMetallicAlpha; 377 | } 378 | 379 | static bool ShouldEmissionBeEnabled(Material mat, Color color) 380 | { 381 | var realtimeEmission = (mat.globalIlluminationFlags & MaterialGlobalIlluminationFlags.RealtimeEmissive) > 0; 382 | return color.maxColorComponent > 0.1f / 255.0f || realtimeEmission; 383 | } 384 | 385 | static void SetMaterialKeywords(Material material, WorkflowMode workflowMode) 386 | { 387 | // Note: keywords must be based on Material value not on MaterialProperty due to multi-edit & material animation 388 | // (MaterialProperty value might come from renderer material property block) 389 | SetKeyword(material, "_NORMALMAP", material.GetTexture("_BumpMap") || material.GetTexture("_DetailNormalMap")); 390 | if (workflowMode == WorkflowMode.Specular) 391 | SetKeyword(material, "_SPECGLOSSMAP", material.GetTexture("_SpecGlossMap")); 392 | else if (workflowMode == WorkflowMode.Metallic) 393 | SetKeyword(material, "_METALLICGLOSSMAP", material.GetTexture("_MetallicGlossMap")); 394 | SetKeyword(material, "_PARALLAXMAP", material.GetTexture("_ParallaxMap")); 395 | SetKeyword(material, "_DETAIL_MULX2", material.GetTexture("_DetailAlbedoMap") || material.GetTexture("_DetailNormalMap")); 396 | 397 | bool shouldEmissionBeEnabled = ShouldEmissionBeEnabled(material, material.GetColor("_EmissionColor")); 398 | SetKeyword(material, "_EMISSION", shouldEmissionBeEnabled); 399 | 400 | if (material.HasProperty("_SmoothnessTextureChannel")) 401 | { 402 | SetKeyword(material, "_SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A", GetSmoothnessMapChannel(material) == SmoothnessMapChannel.AlbedoAlpha); 403 | } 404 | 405 | // Setup lightmap emissive flags 406 | MaterialGlobalIlluminationFlags flags = material.globalIlluminationFlags; 407 | if ((flags & (MaterialGlobalIlluminationFlags.BakedEmissive | MaterialGlobalIlluminationFlags.RealtimeEmissive)) != 0) 408 | { 409 | flags &= ~MaterialGlobalIlluminationFlags.EmissiveIsBlack; 410 | if (!shouldEmissionBeEnabled) 411 | flags |= MaterialGlobalIlluminationFlags.EmissiveIsBlack; 412 | 413 | material.globalIlluminationFlags = flags; 414 | } 415 | } 416 | 417 | bool HasValidEmissiveKeyword(Material material) 418 | { 419 | // Material animation might be out of sync with the material keyword. 420 | // So if the emission support is disabled on the material, but the property blocks have a value that requires it, then we need to show a warning. 421 | // (note: (Renderer MaterialPropertyBlock applies its values to emissionColorForRendering)) 422 | bool hasEmissionKeyword = material.IsKeywordEnabled("_EMISSION"); 423 | if (!hasEmissionKeyword && ShouldEmissionBeEnabled(material, emissionColorForRendering.colorValue)) 424 | return false; 425 | else 426 | return true; 427 | } 428 | 429 | static void MaterialChanged(Material material, WorkflowMode workflowMode) 430 | { 431 | SetupMaterialWithBlendMode(material, (BlendMode)material.GetFloat("_Mode")); 432 | 433 | SetMaterialKeywords(material, workflowMode); 434 | } 435 | 436 | static void SetKeyword(Material m, string keyword, bool state) 437 | { 438 | if (state) 439 | m.EnableKeyword(keyword); 440 | else 441 | m.DisableKeyword(keyword); 442 | } 443 | } 444 | 445 | } // namespace UnityEditor 446 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Editor/DentableSurfaceShaderGUI.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3731b42dafc187a47b9319c830a01dbf 3 | timeCreated: 1471976342 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8b981da747b860a4c81a3f47a198a81e 3 | folderAsset: yes 4 | timeCreated: 1471861954 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Materials/ShowHeightmap_Mat.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: ShowHeightmap_Mat 10 | m_Shader: {fileID: 10752, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: _EMISSION 12 | m_LightmapFlags: 1 13 | m_CustomRenderQueue: -1 14 | stringTagMap: {} 15 | m_SavedProperties: 16 | serializedVersion: 2 17 | m_TexEnvs: 18 | - first: 19 | name: _BumpMap 20 | second: 21 | m_Texture: {fileID: 0} 22 | m_Scale: {x: 1, y: 1} 23 | m_Offset: {x: 0, y: 0} 24 | - first: 25 | name: _DetailAlbedoMap 26 | second: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - first: 31 | name: _DetailMask 32 | second: 33 | m_Texture: {fileID: 0} 34 | m_Scale: {x: 1, y: 1} 35 | m_Offset: {x: 0, y: 0} 36 | - first: 37 | name: _DetailNormalMap 38 | second: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - first: 43 | name: _EmissionMap 44 | second: 45 | m_Texture: {fileID: 0} 46 | m_Scale: {x: 1, y: 1} 47 | m_Offset: {x: 0, y: 0} 48 | - first: 49 | name: _MainTex 50 | second: 51 | m_Texture: {fileID: 8400000, guid: 0c4342ef03b61e64da1efb005c607284, type: 2} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - first: 55 | name: _MetallicGlossMap 56 | second: 57 | m_Texture: {fileID: 0} 58 | m_Scale: {x: 1, y: 1} 59 | m_Offset: {x: 0, y: 0} 60 | - first: 61 | name: _OcclusionMap 62 | second: 63 | m_Texture: {fileID: 0} 64 | m_Scale: {x: 1, y: 1} 65 | m_Offset: {x: 0, y: 0} 66 | - first: 67 | name: _ParallaxMap 68 | second: 69 | m_Texture: {fileID: 0} 70 | m_Scale: {x: 1, y: 1} 71 | m_Offset: {x: 0, y: 0} 72 | m_Floats: 73 | - first: 74 | name: _BumpScale 75 | second: 1 76 | - first: 77 | name: _Cutoff 78 | second: 0.5 79 | - first: 80 | name: _DetailNormalMapScale 81 | second: 1 82 | - first: 83 | name: _DstBlend 84 | second: 0 85 | - first: 86 | name: _GlossMapScale 87 | second: 1 88 | - first: 89 | name: _Glossiness 90 | second: 0 91 | - first: 92 | name: _GlossyReflections 93 | second: 1 94 | - first: 95 | name: _Metallic 96 | second: 0 97 | - first: 98 | name: _Mode 99 | second: 0 100 | - first: 101 | name: _OcclusionStrength 102 | second: 1 103 | - first: 104 | name: _Parallax 105 | second: 0.02 106 | - first: 107 | name: _SmoothnessTextureChannel 108 | second: 0 109 | - first: 110 | name: _SpecularHighlights 111 | second: 1 112 | - first: 113 | name: _SrcBlend 114 | second: 1 115 | - first: 116 | name: _UVSec 117 | second: 0 118 | - first: 119 | name: _ZWrite 120 | second: 1 121 | m_Colors: 122 | - first: 123 | name: _Color 124 | second: {r: 1, g: 1, b: 1, a: 1} 125 | - first: 126 | name: _EmissionColor 127 | second: {r: 0, g: 0, b: 0, a: 1} 128 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Materials/ShowHeightmap_Mat.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f390aa74cc3e4f0499bc187bc3e59172 3 | timeCreated: 1477417889 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Materials/SnowMat.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: SnowMat 10 | m_Shader: {fileID: 4800000, guid: f5f89983a29b84b4589ab6fe49cda36f, type: 3} 11 | m_ShaderKeywords: _EMISSION _METALLICGLOSSMAP _NORMALMAP _PARALLAXMAP _SPECGLOSSMAP 12 | m_LightmapFlags: 1 13 | m_CustomRenderQueue: -1 14 | stringTagMap: {} 15 | m_SavedProperties: 16 | serializedVersion: 2 17 | m_TexEnvs: 18 | - first: 19 | name: _BumpMap 20 | second: 21 | m_Texture: {fileID: 2800000, guid: 1365047035fe2d747b11cc5addf29cbc, type: 3} 22 | m_Scale: {x: 0.5, y: 0.5} 23 | m_Offset: {x: 0, y: 0} 24 | - first: 25 | name: _DetailAlbedoMap 26 | second: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 10, y: 10} 29 | m_Offset: {x: 0, y: 0} 30 | - first: 31 | name: _DetailMask 32 | second: 33 | m_Texture: {fileID: 0} 34 | m_Scale: {x: 1, y: 1} 35 | m_Offset: {x: 0, y: 0} 36 | - first: 37 | name: _DetailNormalMap 38 | second: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - first: 43 | name: _EmissionMap 44 | second: 45 | m_Texture: {fileID: 0} 46 | m_Scale: {x: 2, y: 2} 47 | m_Offset: {x: 0, y: 0} 48 | - first: 49 | name: _Indentmap 50 | second: 51 | m_Texture: {fileID: 2800000, guid: 9aba1b28eada4f84ea7e6b64ce8c472b, type: 3} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - first: 55 | name: _MainTex 56 | second: 57 | m_Texture: {fileID: 2800000, guid: 0d2238dd83c924344803ba7fe6d30e60, type: 3} 58 | m_Scale: {x: 4, y: 4} 59 | m_Offset: {x: 0, y: 0} 60 | - first: 61 | name: _MetallicGlossMap 62 | second: 63 | m_Texture: {fileID: 2800000, guid: 277b576813413484f94acf58a2b0b9d3, type: 3} 64 | m_Scale: {x: 1, y: 1} 65 | m_Offset: {x: 0, y: 0} 66 | - first: 67 | name: _OcclusionMap 68 | second: 69 | m_Texture: {fileID: 2800000, guid: 24516990a5442334691c572cb4209732, type: 3} 70 | m_Scale: {x: 1, y: 1} 71 | m_Offset: {x: 0, y: 0} 72 | - first: 73 | name: _ParallaxMap 74 | second: 75 | m_Texture: {fileID: 2800000, guid: 151a4187ab36776419384dbbce5d80dd, type: 3} 76 | m_Scale: {x: 1, y: 1} 77 | m_Offset: {x: 0, y: 0} 78 | - first: 79 | name: _SpecGlossMap 80 | second: 81 | m_Texture: {fileID: 2800000, guid: 62864d12879b7bf478c54ec724ed99ba, type: 3} 82 | m_Scale: {x: 4, y: 4} 83 | m_Offset: {x: 0, y: 0} 84 | - first: 85 | name: _SpecularMap 86 | second: 87 | m_Texture: {fileID: 0} 88 | m_Scale: {x: 1, y: 1} 89 | m_Offset: {x: 0, y: 0} 90 | m_Floats: 91 | - first: 92 | name: _BumpScale 93 | second: 0.4 94 | - first: 95 | name: _Cutoff 96 | second: 0.5 97 | - first: 98 | name: _DetailNormalMapScale 99 | second: 1 100 | - first: 101 | name: _DstBlend 102 | second: 0 103 | - first: 104 | name: _GlossMapScale 105 | second: 1 106 | - first: 107 | name: _Glossiness 108 | second: 0 109 | - first: 110 | name: _GlossyReflections 111 | second: 1 112 | - first: 113 | name: _IndentDepth 114 | second: 0.04 115 | - first: 116 | name: _Metallic 117 | second: 0 118 | - first: 119 | name: _Mode 120 | second: 0 121 | - first: 122 | name: _OcclusionStrength 123 | second: 0.14 124 | - first: 125 | name: _Parallax 126 | second: 0.014 127 | - first: 128 | name: _SmoothnessTextureChannel 129 | second: 0 130 | - first: 131 | name: _SpecularHighlights 132 | second: 1 133 | - first: 134 | name: _SrcBlend 135 | second: 1 136 | - first: 137 | name: _Tess 138 | second: 3 139 | - first: 140 | name: _UVSec 141 | second: 0 142 | - first: 143 | name: _ZWrite 144 | second: 1 145 | m_Colors: 146 | - first: 147 | name: _Color 148 | second: {r: 1, g: 1, b: 1, a: 1} 149 | - first: 150 | name: _EmissionColor 151 | second: {r: 0, g: 0, b: 0, a: 1} 152 | - first: 153 | name: _SpecColor 154 | second: {r: 0.2, g: 0.2, b: 0.2, a: 1} 155 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Materials/SnowMat.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 604baa92f07474f4794a359c620cf4b6 3 | timeCreated: 1471887360 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Materials/Stamp_ADD.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: Stamp_ADD 10 | m_Shader: {fileID: 4800000, guid: abb6beea6576caa42b0c20d69931e90e, type: 3} 11 | m_ShaderKeywords: _EMISSION 12 | m_LightmapFlags: 1 13 | m_CustomRenderQueue: -1 14 | stringTagMap: {} 15 | m_SavedProperties: 16 | serializedVersion: 2 17 | m_TexEnvs: 18 | - first: 19 | name: _BumpMap 20 | second: 21 | m_Texture: {fileID: 0} 22 | m_Scale: {x: 1, y: 1} 23 | m_Offset: {x: 0, y: 0} 24 | - first: 25 | name: _DecalTex 26 | second: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - first: 31 | name: _DetailAlbedoMap 32 | second: 33 | m_Texture: {fileID: 0} 34 | m_Scale: {x: 1, y: 1} 35 | m_Offset: {x: 0, y: 0} 36 | - first: 37 | name: _DetailMask 38 | second: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - first: 43 | name: _DetailNormalMap 44 | second: 45 | m_Texture: {fileID: 0} 46 | m_Scale: {x: 1, y: 1} 47 | m_Offset: {x: 0, y: 0} 48 | - first: 49 | name: _DetailTex 50 | second: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - first: 55 | name: _EmissionMap 56 | second: 57 | m_Texture: {fileID: 0} 58 | m_Scale: {x: 1, y: 1} 59 | m_Offset: {x: 0, y: 0} 60 | - first: 61 | name: _MainTex 62 | second: 63 | m_Texture: {fileID: 2800000, guid: 346496a7b10ae8d4e9fb5fe51f9e606f, type: 3} 64 | m_Scale: {x: 1, y: 1} 65 | m_Offset: {x: 0, y: 0} 66 | - first: 67 | name: _MetallicGlossMap 68 | second: 69 | m_Texture: {fileID: 0} 70 | m_Scale: {x: 1, y: 1} 71 | m_Offset: {x: 0, y: 0} 72 | - first: 73 | name: _OcclusionMap 74 | second: 75 | m_Texture: {fileID: 0} 76 | m_Scale: {x: 1, y: 1} 77 | m_Offset: {x: 0, y: 0} 78 | - first: 79 | name: _ParallaxMap 80 | second: 81 | m_Texture: {fileID: 0} 82 | m_Scale: {x: 1, y: 1} 83 | m_Offset: {x: 0, y: 0} 84 | m_Floats: 85 | - first: 86 | name: _BumpScale 87 | second: 1 88 | - first: 89 | name: _ColorMask 90 | second: 15 91 | - first: 92 | name: _Cutoff 93 | second: 0.5 94 | - first: 95 | name: _DetailNormalMapScale 96 | second: 1 97 | - first: 98 | name: _DstBlend 99 | second: 0 100 | - first: 101 | name: _GlossMapScale 102 | second: 1 103 | - first: 104 | name: _Glossiness 105 | second: 0.5 106 | - first: 107 | name: _GlossyReflections 108 | second: 1 109 | - first: 110 | name: _InvFade 111 | second: 1 112 | - first: 113 | name: _Metallic 114 | second: 0 115 | - first: 116 | name: _Mode 117 | second: 0 118 | - first: 119 | name: _OcclusionStrength 120 | second: 1 121 | - first: 122 | name: _Offset 123 | second: -1 124 | - first: 125 | name: _Parallax 126 | second: 0.02 127 | - first: 128 | name: _Scale 129 | second: 0.13 130 | - first: 131 | name: _SmoothnessTextureChannel 132 | second: 0 133 | - first: 134 | name: _SpecularHighlights 135 | second: 1 136 | - first: 137 | name: _SrcBlend 138 | second: 1 139 | - first: 140 | name: _Stencil 141 | second: 0 142 | - first: 143 | name: _StencilComp 144 | second: 8 145 | - first: 146 | name: _StencilOp 147 | second: 0 148 | - first: 149 | name: _StencilReadMask 150 | second: 255 151 | - first: 152 | name: _StencilWriteMask 153 | second: 255 154 | - first: 155 | name: _Strength 156 | second: 0.2 157 | - first: 158 | name: _UVSec 159 | second: 0 160 | - first: 161 | name: _UseUIAlphaClip 162 | second: 0 163 | - first: 164 | name: _ZWrite 165 | second: 1 166 | m_Colors: 167 | - first: 168 | name: _Color 169 | second: {r: 1, g: 1, b: 1, a: 1} 170 | - first: 171 | name: _EmissionColor 172 | second: {r: 0, g: 0, b: 0, a: 1} 173 | - first: 174 | name: _TintColor 175 | second: {r: 0.5, g: 0.5, b: 0.5, a: 0.5} 176 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Materials/Stamp_ADD.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d22bf25e913f0ae4a81b37cd3ac9d635 3 | timeCreated: 1482098137 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Materials/Stamp_CUSTOM.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: Stamp_CUSTOM 10 | m_Shader: {fileID: 4800000, guid: fce12673848f63e4d9cbe82e9beee7ca, type: 3} 11 | m_ShaderKeywords: _EMISSION 12 | m_LightmapFlags: 1 13 | m_CustomRenderQueue: -1 14 | stringTagMap: {} 15 | m_SavedProperties: 16 | serializedVersion: 2 17 | m_TexEnvs: 18 | - first: 19 | name: _BumpMap 20 | second: 21 | m_Texture: {fileID: 0} 22 | m_Scale: {x: 1, y: 1} 23 | m_Offset: {x: 0, y: 0} 24 | - first: 25 | name: _DecalTex 26 | second: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - first: 31 | name: _DetailAlbedoMap 32 | second: 33 | m_Texture: {fileID: 0} 34 | m_Scale: {x: 1, y: 1} 35 | m_Offset: {x: 0, y: 0} 36 | - first: 37 | name: _DetailMask 38 | second: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - first: 43 | name: _DetailNormalMap 44 | second: 45 | m_Texture: {fileID: 0} 46 | m_Scale: {x: 1, y: 1} 47 | m_Offset: {x: 0, y: 0} 48 | - first: 49 | name: _DetailTex 50 | second: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - first: 55 | name: _EmissionMap 56 | second: 57 | m_Texture: {fileID: 0} 58 | m_Scale: {x: 1, y: 1} 59 | m_Offset: {x: 0, y: 0} 60 | - first: 61 | name: _MainTex 62 | second: 63 | m_Texture: {fileID: 2800000, guid: 346496a7b10ae8d4e9fb5fe51f9e606f, type: 3} 64 | m_Scale: {x: 1, y: 1} 65 | m_Offset: {x: 0, y: 0} 66 | - first: 67 | name: _MetallicGlossMap 68 | second: 69 | m_Texture: {fileID: 0} 70 | m_Scale: {x: 1, y: 1} 71 | m_Offset: {x: 0, y: 0} 72 | - first: 73 | name: _OcclusionMap 74 | second: 75 | m_Texture: {fileID: 0} 76 | m_Scale: {x: 1, y: 1} 77 | m_Offset: {x: 0, y: 0} 78 | - first: 79 | name: _ParallaxMap 80 | second: 81 | m_Texture: {fileID: 0} 82 | m_Scale: {x: 1, y: 1} 83 | m_Offset: {x: 0, y: 0} 84 | m_Floats: 85 | - first: 86 | name: _BumpScale 87 | second: 1 88 | - first: 89 | name: _ColorMask 90 | second: 15 91 | - first: 92 | name: _Cutoff 93 | second: 0.5 94 | - first: 95 | name: _DetailNormalMapScale 96 | second: 1 97 | - first: 98 | name: _DstBlend 99 | second: 0 100 | - first: 101 | name: _GlossMapScale 102 | second: 1 103 | - first: 104 | name: _Glossiness 105 | second: 0.5 106 | - first: 107 | name: _GlossyReflections 108 | second: 1 109 | - first: 110 | name: _HeightOffset 111 | second: 0.8 112 | - first: 113 | name: _InvFade 114 | second: 1 115 | - first: 116 | name: _Metallic 117 | second: 0 118 | - first: 119 | name: _Mode 120 | second: 0 121 | - first: 122 | name: _OcclusionStrength 123 | second: 1 124 | - first: 125 | name: _Parallax 126 | second: 0.02 127 | - first: 128 | name: _Scale 129 | second: 0.12 130 | - first: 131 | name: _SmoothnessTextureChannel 132 | second: 0 133 | - first: 134 | name: _SpecularHighlights 135 | second: 1 136 | - first: 137 | name: _SrcBlend 138 | second: 1 139 | - first: 140 | name: _Stencil 141 | second: 0 142 | - first: 143 | name: _StencilComp 144 | second: 8 145 | - first: 146 | name: _StencilOp 147 | second: 0 148 | - first: 149 | name: _StencilReadMask 150 | second: 255 151 | - first: 152 | name: _StencilWriteMask 153 | second: 255 154 | - first: 155 | name: _Strength 156 | second: 0.2 157 | - first: 158 | name: _UVSec 159 | second: 0 160 | - first: 161 | name: _UseUIAlphaClip 162 | second: 0 163 | - first: 164 | name: _ZWrite 165 | second: 1 166 | m_Colors: 167 | - first: 168 | name: _Color 169 | second: {r: 1, g: 1, b: 1, a: 1} 170 | - first: 171 | name: _EmissionColor 172 | second: {r: 0, g: 0, b: 0, a: 1} 173 | - first: 174 | name: _TintColor 175 | second: {r: 0.5, g: 0.5, b: 0.5, a: 0.5} 176 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Materials/Stamp_CUSTOM.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 28a97ac2a0b001d4d9a0c876fa978968 3 | timeCreated: 1482098137 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Materials/Stamp_Default.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: Stamp_Default 10 | m_Shader: {fileID: 4800000, guid: ce311df4cc232544c83a8fdf8890c128, type: 3} 11 | m_ShaderKeywords: _EMISSION 12 | m_LightmapFlags: 1 13 | m_CustomRenderQueue: -1 14 | stringTagMap: {} 15 | m_SavedProperties: 16 | serializedVersion: 2 17 | m_TexEnvs: 18 | - first: 19 | name: _BumpMap 20 | second: 21 | m_Texture: {fileID: 0} 22 | m_Scale: {x: 1, y: 1} 23 | m_Offset: {x: 0, y: 0} 24 | - first: 25 | name: _DecalTex 26 | second: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - first: 31 | name: _DetailAlbedoMap 32 | second: 33 | m_Texture: {fileID: 0} 34 | m_Scale: {x: 1, y: 1} 35 | m_Offset: {x: 0, y: 0} 36 | - first: 37 | name: _DetailMask 38 | second: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - first: 43 | name: _DetailNormalMap 44 | second: 45 | m_Texture: {fileID: 0} 46 | m_Scale: {x: 1, y: 1} 47 | m_Offset: {x: 0, y: 0} 48 | - first: 49 | name: _DetailTex 50 | second: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - first: 55 | name: _EmissionMap 56 | second: 57 | m_Texture: {fileID: 0} 58 | m_Scale: {x: 1, y: 1} 59 | m_Offset: {x: 0, y: 0} 60 | - first: 61 | name: _MainTex 62 | second: 63 | m_Texture: {fileID: 2800000, guid: 346496a7b10ae8d4e9fb5fe51f9e606f, type: 3} 64 | m_Scale: {x: 1, y: 1} 65 | m_Offset: {x: 0, y: 0} 66 | - first: 67 | name: _MetallicGlossMap 68 | second: 69 | m_Texture: {fileID: 0} 70 | m_Scale: {x: 1, y: 1} 71 | m_Offset: {x: 0, y: 0} 72 | - first: 73 | name: _OcclusionMap 74 | second: 75 | m_Texture: {fileID: 0} 76 | m_Scale: {x: 1, y: 1} 77 | m_Offset: {x: 0, y: 0} 78 | - first: 79 | name: _ParallaxMap 80 | second: 81 | m_Texture: {fileID: 0} 82 | m_Scale: {x: 1, y: 1} 83 | m_Offset: {x: 0, y: 0} 84 | m_Floats: 85 | - first: 86 | name: _BumpScale 87 | second: 1 88 | - first: 89 | name: _ColorMask 90 | second: 15 91 | - first: 92 | name: _Cutoff 93 | second: 0.5 94 | - first: 95 | name: _DetailNormalMapScale 96 | second: 1 97 | - first: 98 | name: _DstBlend 99 | second: 0 100 | - first: 101 | name: _GlossMapScale 102 | second: 1 103 | - first: 104 | name: _Glossiness 105 | second: 0.5 106 | - first: 107 | name: _GlossyReflections 108 | second: 1 109 | - first: 110 | name: _InvFade 111 | second: 1 112 | - first: 113 | name: _Metallic 114 | second: 0 115 | - first: 116 | name: _Mode 117 | second: 0 118 | - first: 119 | name: _OcclusionStrength 120 | second: 1 121 | - first: 122 | name: _Parallax 123 | second: 0.02 124 | - first: 125 | name: _Scale 126 | second: 0.5 127 | - first: 128 | name: _SmoothnessTextureChannel 129 | second: 0 130 | - first: 131 | name: _SpecularHighlights 132 | second: 1 133 | - first: 134 | name: _SrcBlend 135 | second: 1 136 | - first: 137 | name: _Stencil 138 | second: 0 139 | - first: 140 | name: _StencilComp 141 | second: 8 142 | - first: 143 | name: _StencilOp 144 | second: 0 145 | - first: 146 | name: _StencilReadMask 147 | second: 255 148 | - first: 149 | name: _StencilWriteMask 150 | second: 255 151 | - first: 152 | name: _Strength 153 | second: 0.2 154 | - first: 155 | name: _UVSec 156 | second: 0 157 | - first: 158 | name: _UseUIAlphaClip 159 | second: 0 160 | - first: 161 | name: _ZWrite 162 | second: 1 163 | m_Colors: 164 | - first: 165 | name: _Color 166 | second: {r: 1, g: 1, b: 1, a: 1} 167 | - first: 168 | name: _EmissionColor 169 | second: {r: 0, g: 0, b: 0, a: 1} 170 | - first: 171 | name: _TintColor 172 | second: {r: 0.5, g: 0.5, b: 0.5, a: 0.5} 173 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Materials/Stamp_Default.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fc28e7740eacb434f9dad17ba2c01555 3 | timeCreated: 1482098137 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Materials/Stamp_MIN.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: Stamp_MIN 10 | m_Shader: {fileID: 4800000, guid: bb02da9b93f5ec34087a039418706f4b, type: 3} 11 | m_ShaderKeywords: _EMISSION 12 | m_LightmapFlags: 1 13 | m_CustomRenderQueue: -1 14 | stringTagMap: {} 15 | m_SavedProperties: 16 | serializedVersion: 2 17 | m_TexEnvs: 18 | - first: 19 | name: _BumpMap 20 | second: 21 | m_Texture: {fileID: 0} 22 | m_Scale: {x: 1, y: 1} 23 | m_Offset: {x: 0, y: 0} 24 | - first: 25 | name: _DecalTex 26 | second: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - first: 31 | name: _DetailAlbedoMap 32 | second: 33 | m_Texture: {fileID: 0} 34 | m_Scale: {x: 1, y: 1} 35 | m_Offset: {x: 0, y: 0} 36 | - first: 37 | name: _DetailMask 38 | second: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - first: 43 | name: _DetailNormalMap 44 | second: 45 | m_Texture: {fileID: 0} 46 | m_Scale: {x: 1, y: 1} 47 | m_Offset: {x: 0, y: 0} 48 | - first: 49 | name: _DetailTex 50 | second: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - first: 55 | name: _EmissionMap 56 | second: 57 | m_Texture: {fileID: 0} 58 | m_Scale: {x: 1, y: 1} 59 | m_Offset: {x: 0, y: 0} 60 | - first: 61 | name: _MainTex 62 | second: 63 | m_Texture: {fileID: 2800000, guid: 346496a7b10ae8d4e9fb5fe51f9e606f, type: 3} 64 | m_Scale: {x: 1, y: 1} 65 | m_Offset: {x: 0, y: 0} 66 | - first: 67 | name: _MetallicGlossMap 68 | second: 69 | m_Texture: {fileID: 0} 70 | m_Scale: {x: 1, y: 1} 71 | m_Offset: {x: 0, y: 0} 72 | - first: 73 | name: _OcclusionMap 74 | second: 75 | m_Texture: {fileID: 0} 76 | m_Scale: {x: 1, y: 1} 77 | m_Offset: {x: 0, y: 0} 78 | - first: 79 | name: _ParallaxMap 80 | second: 81 | m_Texture: {fileID: 0} 82 | m_Scale: {x: 1, y: 1} 83 | m_Offset: {x: 0, y: 0} 84 | m_Floats: 85 | - first: 86 | name: _BumpScale 87 | second: 1 88 | - first: 89 | name: _ColorMask 90 | second: 15 91 | - first: 92 | name: _Cutoff 93 | second: 0.5 94 | - first: 95 | name: _DetailNormalMapScale 96 | second: 1 97 | - first: 98 | name: _DstBlend 99 | second: 0 100 | - first: 101 | name: _GlossMapScale 102 | second: 1 103 | - first: 104 | name: _Glossiness 105 | second: 0.5 106 | - first: 107 | name: _GlossyReflections 108 | second: 1 109 | - first: 110 | name: _InvFade 111 | second: 1 112 | - first: 113 | name: _Metallic 114 | second: 0 115 | - first: 116 | name: _Mode 117 | second: 0 118 | - first: 119 | name: _OcclusionStrength 120 | second: 1 121 | - first: 122 | name: _Parallax 123 | second: 0.02 124 | - first: 125 | name: _Scale 126 | second: 0.5 127 | - first: 128 | name: _SmoothnessTextureChannel 129 | second: 0 130 | - first: 131 | name: _SpecularHighlights 132 | second: 1 133 | - first: 134 | name: _SrcBlend 135 | second: 1 136 | - first: 137 | name: _Stencil 138 | second: 0 139 | - first: 140 | name: _StencilComp 141 | second: 8 142 | - first: 143 | name: _StencilOp 144 | second: 0 145 | - first: 146 | name: _StencilReadMask 147 | second: 255 148 | - first: 149 | name: _StencilWriteMask 150 | second: 255 151 | - first: 152 | name: _Strength 153 | second: 0.2 154 | - first: 155 | name: _UVSec 156 | second: 0 157 | - first: 158 | name: _UseUIAlphaClip 159 | second: 0 160 | - first: 161 | name: _ZWrite 162 | second: 1 163 | m_Colors: 164 | - first: 165 | name: _Color 166 | second: {r: 1, g: 1, b: 1, a: 1} 167 | - first: 168 | name: _EmissionColor 169 | second: {r: 0, g: 0, b: 0, a: 1} 170 | - first: 171 | name: _TintColor 172 | second: {r: 0.5, g: 0.5, b: 0.5, a: 0.5} 173 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Materials/Stamp_MIN.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 34243c90abdcf2c49a2de35a4cb5b8db 3 | timeCreated: 1482098137 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Materials/Stamp_MUL.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: Stamp_MUL 10 | m_Shader: {fileID: 4800000, guid: cdca05f84c921714fa384a63855c6346, type: 3} 11 | m_ShaderKeywords: _EMISSION 12 | m_LightmapFlags: 1 13 | m_CustomRenderQueue: -1 14 | stringTagMap: {} 15 | m_SavedProperties: 16 | serializedVersion: 2 17 | m_TexEnvs: 18 | - first: 19 | name: _BumpMap 20 | second: 21 | m_Texture: {fileID: 0} 22 | m_Scale: {x: 1, y: 1} 23 | m_Offset: {x: 0, y: 0} 24 | - first: 25 | name: _DecalTex 26 | second: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - first: 31 | name: _DetailAlbedoMap 32 | second: 33 | m_Texture: {fileID: 0} 34 | m_Scale: {x: 1, y: 1} 35 | m_Offset: {x: 0, y: 0} 36 | - first: 37 | name: _DetailMask 38 | second: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - first: 43 | name: _DetailNormalMap 44 | second: 45 | m_Texture: {fileID: 0} 46 | m_Scale: {x: 1, y: 1} 47 | m_Offset: {x: 0, y: 0} 48 | - first: 49 | name: _DetailTex 50 | second: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - first: 55 | name: _EmissionMap 56 | second: 57 | m_Texture: {fileID: 0} 58 | m_Scale: {x: 1, y: 1} 59 | m_Offset: {x: 0, y: 0} 60 | - first: 61 | name: _MainTex 62 | second: 63 | m_Texture: {fileID: 2800000, guid: 346496a7b10ae8d4e9fb5fe51f9e606f, type: 3} 64 | m_Scale: {x: 1, y: 1} 65 | m_Offset: {x: 0, y: 0} 66 | - first: 67 | name: _MetallicGlossMap 68 | second: 69 | m_Texture: {fileID: 0} 70 | m_Scale: {x: 1, y: 1} 71 | m_Offset: {x: 0, y: 0} 72 | - first: 73 | name: _OcclusionMap 74 | second: 75 | m_Texture: {fileID: 0} 76 | m_Scale: {x: 1, y: 1} 77 | m_Offset: {x: 0, y: 0} 78 | - first: 79 | name: _ParallaxMap 80 | second: 81 | m_Texture: {fileID: 0} 82 | m_Scale: {x: 1, y: 1} 83 | m_Offset: {x: 0, y: 0} 84 | m_Floats: 85 | - first: 86 | name: _BumpScale 87 | second: 1 88 | - first: 89 | name: _ColorMask 90 | second: 15 91 | - first: 92 | name: _Cutoff 93 | second: 0.5 94 | - first: 95 | name: _DetailNormalMapScale 96 | second: 1 97 | - first: 98 | name: _DstBlend 99 | second: 0 100 | - first: 101 | name: _GlossMapScale 102 | second: 1 103 | - first: 104 | name: _Glossiness 105 | second: 0.5 106 | - first: 107 | name: _GlossyReflections 108 | second: 1 109 | - first: 110 | name: _InvFade 111 | second: 1 112 | - first: 113 | name: _Metallic 114 | second: 0 115 | - first: 116 | name: _Mode 117 | second: 0 118 | - first: 119 | name: _OcclusionStrength 120 | second: 1 121 | - first: 122 | name: _Parallax 123 | second: 0.02 124 | - first: 125 | name: _Scale 126 | second: 0.5 127 | - first: 128 | name: _SmoothnessTextureChannel 129 | second: 0 130 | - first: 131 | name: _SpecularHighlights 132 | second: 1 133 | - first: 134 | name: _SrcBlend 135 | second: 1 136 | - first: 137 | name: _Stencil 138 | second: 0 139 | - first: 140 | name: _StencilComp 141 | second: 8 142 | - first: 143 | name: _StencilOp 144 | second: 0 145 | - first: 146 | name: _StencilReadMask 147 | second: 255 148 | - first: 149 | name: _StencilWriteMask 150 | second: 255 151 | - first: 152 | name: _Strength 153 | second: 0.2 154 | - first: 155 | name: _UVSec 156 | second: 0 157 | - first: 158 | name: _UseUIAlphaClip 159 | second: 0 160 | - first: 161 | name: _ZWrite 162 | second: 1 163 | m_Colors: 164 | - first: 165 | name: _Color 166 | second: {r: 1, g: 1, b: 1, a: 1} 167 | - first: 168 | name: _EmissionColor 169 | second: {r: 0, g: 0, b: 0, a: 1} 170 | - first: 171 | name: _TintColor 172 | second: {r: 0.5, g: 0.5, b: 0.5, a: 0.5} 173 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Materials/Stamp_MUL.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3d5330371950f6048890de644b553eb4 3 | timeCreated: 1482098137 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Models.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 67c5465d091473846bd83a76ef9e2215 3 | folderAsset: yes 4 | timeCreated: 1471861760 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Models/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 93d88b9704fce02449b29e9ca0a63084 3 | folderAsset: yes 4 | timeCreated: 1471861788 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Models/Materials/No Name.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: No Name 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 5 13 | m_CustomRenderQueue: -1 14 | stringTagMap: {} 15 | m_SavedProperties: 16 | serializedVersion: 2 17 | m_TexEnvs: 18 | - first: 19 | name: _BumpMap 20 | second: 21 | m_Texture: {fileID: 0} 22 | m_Scale: {x: 1, y: 1} 23 | m_Offset: {x: 0, y: 0} 24 | - first: 25 | name: _DetailAlbedoMap 26 | second: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - first: 31 | name: _DetailMask 32 | second: 33 | m_Texture: {fileID: 0} 34 | m_Scale: {x: 1, y: 1} 35 | m_Offset: {x: 0, y: 0} 36 | - first: 37 | name: _DetailNormalMap 38 | second: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - first: 43 | name: _EmissionMap 44 | second: 45 | m_Texture: {fileID: 0} 46 | m_Scale: {x: 1, y: 1} 47 | m_Offset: {x: 0, y: 0} 48 | - first: 49 | name: _MainTex 50 | second: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - first: 55 | name: _MetallicGlossMap 56 | second: 57 | m_Texture: {fileID: 0} 58 | m_Scale: {x: 1, y: 1} 59 | m_Offset: {x: 0, y: 0} 60 | - first: 61 | name: _OcclusionMap 62 | second: 63 | m_Texture: {fileID: 0} 64 | m_Scale: {x: 1, y: 1} 65 | m_Offset: {x: 0, y: 0} 66 | - first: 67 | name: _ParallaxMap 68 | second: 69 | m_Texture: {fileID: 0} 70 | m_Scale: {x: 1, y: 1} 71 | m_Offset: {x: 0, y: 0} 72 | m_Floats: 73 | - first: 74 | name: _BumpScale 75 | second: 1 76 | - first: 77 | name: _Cutoff 78 | second: 0.5 79 | - first: 80 | name: _DetailNormalMapScale 81 | second: 1 82 | - first: 83 | name: _DstBlend 84 | second: 0 85 | - first: 86 | name: _GlossMapScale 87 | second: 1 88 | - first: 89 | name: _Glossiness 90 | second: 0.5 91 | - first: 92 | name: _GlossyReflections 93 | second: 1 94 | - first: 95 | name: _Metallic 96 | second: 0 97 | - first: 98 | name: _Mode 99 | second: 0 100 | - first: 101 | name: _OcclusionStrength 102 | second: 1 103 | - first: 104 | name: _Parallax 105 | second: 0.02 106 | - first: 107 | name: _SmoothnessTextureChannel 108 | second: 0 109 | - first: 110 | name: _SpecularHighlights 111 | second: 1 112 | - first: 113 | name: _SrcBlend 114 | second: 1 115 | - first: 116 | name: _UVSec 117 | second: 0 118 | - first: 119 | name: _ZWrite 120 | second: 1 121 | m_Colors: 122 | - first: 123 | name: _Color 124 | second: {r: 1, g: 1, b: 1, a: 1} 125 | - first: 126 | name: _EmissionColor 127 | second: {r: 0, g: 0, b: 0, a: 1} 128 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Models/Materials/No Name.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9ec47718272fad548bfceff5a42cecc1 3 | timeCreated: 1483555482 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Models/Materials/unnamed.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 6 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: unnamed 10 | m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 5 13 | m_CustomRenderQueue: -1 14 | stringTagMap: {} 15 | m_SavedProperties: 16 | serializedVersion: 2 17 | m_TexEnvs: 18 | - first: 19 | name: _BumpMap 20 | second: 21 | m_Texture: {fileID: 0} 22 | m_Scale: {x: 1, y: 1} 23 | m_Offset: {x: 0, y: 0} 24 | - first: 25 | name: _DetailAlbedoMap 26 | second: 27 | m_Texture: {fileID: 0} 28 | m_Scale: {x: 1, y: 1} 29 | m_Offset: {x: 0, y: 0} 30 | - first: 31 | name: _DetailMask 32 | second: 33 | m_Texture: {fileID: 0} 34 | m_Scale: {x: 1, y: 1} 35 | m_Offset: {x: 0, y: 0} 36 | - first: 37 | name: _DetailNormalMap 38 | second: 39 | m_Texture: {fileID: 0} 40 | m_Scale: {x: 1, y: 1} 41 | m_Offset: {x: 0, y: 0} 42 | - first: 43 | name: _EmissionMap 44 | second: 45 | m_Texture: {fileID: 0} 46 | m_Scale: {x: 1, y: 1} 47 | m_Offset: {x: 0, y: 0} 48 | - first: 49 | name: _MainTex 50 | second: 51 | m_Texture: {fileID: 0} 52 | m_Scale: {x: 1, y: 1} 53 | m_Offset: {x: 0, y: 0} 54 | - first: 55 | name: _MetallicGlossMap 56 | second: 57 | m_Texture: {fileID: 0} 58 | m_Scale: {x: 1, y: 1} 59 | m_Offset: {x: 0, y: 0} 60 | - first: 61 | name: _OcclusionMap 62 | second: 63 | m_Texture: {fileID: 0} 64 | m_Scale: {x: 1, y: 1} 65 | m_Offset: {x: 0, y: 0} 66 | - first: 67 | name: _ParallaxMap 68 | second: 69 | m_Texture: {fileID: 0} 70 | m_Scale: {x: 1, y: 1} 71 | m_Offset: {x: 0, y: 0} 72 | m_Floats: 73 | - first: 74 | name: _BumpScale 75 | second: 1 76 | - first: 77 | name: _Cutoff 78 | second: 0.5 79 | - first: 80 | name: _DetailNormalMapScale 81 | second: 1 82 | - first: 83 | name: _DstBlend 84 | second: 0 85 | - first: 86 | name: _GlossMapScale 87 | second: 1 88 | - first: 89 | name: _Glossiness 90 | second: 0.5 91 | - first: 92 | name: _GlossyReflections 93 | second: 1 94 | - first: 95 | name: _Metallic 96 | second: 0 97 | - first: 98 | name: _Mode 99 | second: 0 100 | - first: 101 | name: _OcclusionStrength 102 | second: 1 103 | - first: 104 | name: _Parallax 105 | second: 0.02 106 | - first: 107 | name: _SmoothnessTextureChannel 108 | second: 0 109 | - first: 110 | name: _SpecularHighlights 111 | second: 1 112 | - first: 113 | name: _SrcBlend 114 | second: 1 115 | - first: 116 | name: _UVSec 117 | second: 0 118 | - first: 119 | name: _ZWrite 120 | second: 1 121 | m_Colors: 122 | - first: 123 | name: _Color 124 | second: {r: 0.8, g: 0.8, b: 0.8, a: 1} 125 | - first: 126 | name: _EmissionColor 127 | second: {r: 0, g: 0, b: 0, a: 1} 128 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Models/Materials/unnamed.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7dfd36a69f9cb5e46b928dd095f74ca5 3 | timeCreated: 1471861788 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Models/temp_terrain.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wacki/Unity-IndentShader/028087ca91551b81bc47467cced579f8112b4c23/Assets/IndentSurface/Models/temp_terrain.fbx -------------------------------------------------------------------------------- /Assets/IndentSurface/Models/temp_terrain.fbx.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc86af40b0c04ce49932d3e85f066403 3 | timeCreated: 1483555482 4 | licenseType: Free 5 | ModelImporter: 6 | serializedVersion: 19 7 | fileIDToRecycleName: 8 | 100000: //RootNode 9 | 400000: //RootNode 10 | 2300000: //RootNode 11 | 3300000: //RootNode 12 | 4300000: Plane 13 | materials: 14 | importMaterials: 1 15 | materialName: 0 16 | materialSearch: 1 17 | animations: 18 | legacyGenerateAnimations: 4 19 | bakeSimulation: 0 20 | resampleCurves: 1 21 | optimizeGameObjects: 0 22 | motionNodeName: 23 | animationImportErrors: 24 | animationImportWarnings: 25 | animationRetargetingWarnings: 26 | animationDoRetargetingWarnings: 0 27 | animationCompression: 1 28 | animationRotationError: 0.5 29 | animationPositionError: 0.5 30 | animationScaleError: 0.5 31 | animationWrapMode: 0 32 | extraExposedTransformPaths: [] 33 | clipAnimations: [] 34 | isReadable: 1 35 | meshes: 36 | lODScreenPercentages: [] 37 | globalScale: 100 38 | meshCompression: 0 39 | addColliders: 0 40 | importBlendShapes: 1 41 | swapUVChannels: 0 42 | generateSecondaryUV: 0 43 | useFileUnits: 1 44 | optimizeMeshForGPU: 1 45 | keepQuads: 0 46 | weldVertices: 1 47 | secondaryUVAngleDistortion: 8 48 | secondaryUVAreaDistortion: 15.000001 49 | secondaryUVHardAngle: 88 50 | secondaryUVPackMargin: 4 51 | useFileScale: 1 52 | tangentSpace: 53 | normalSmoothAngle: 60 54 | normalImportMode: 0 55 | tangentImportMode: 3 56 | importAnimation: 1 57 | copyAvatar: 0 58 | humanDescription: 59 | human: [] 60 | skeleton: [] 61 | armTwist: 0.5 62 | foreArmTwist: 0.5 63 | upperLegTwist: 0.5 64 | legTwist: 0.5 65 | armStretch: 0.05 66 | legStretch: 0.05 67 | feetSpacing: 0 68 | rootMotionBoneName: 69 | hasTranslationDoF: 0 70 | lastHumanDescriptionAvatarSource: {instanceID: 0} 71 | animationType: 0 72 | humanoidOversampling: 1 73 | additionalBone: 0 74 | userData: 75 | assetBundleName: 76 | assetBundleVariant: 77 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ed458c00cb59fc14da54a9a940c26a78 3 | folderAsset: yes 4 | timeCreated: 1477411996 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Scripts/IndentActor.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | 5 | namespace Wacki.IndentSurface 6 | { 7 | /// 8 | /// Simple control script for our sphere that leaves a track in the snow. 9 | /// 10 | public class IndentActor : MonoBehaviour 11 | { 12 | [Range(0.0f, 0.2f)] 13 | public float drawDelta = 0.01f; 14 | private Vector3 _prevDrawPos; 15 | 16 | void Update() 17 | { 18 | float v = Input.GetAxis("Vertical"); 19 | float h = Input.GetAxis("Horizontal"); 20 | 21 | GetComponent().AddTorque(v, 0, -h); 22 | 23 | if (Vector3.Distance(_prevDrawPos, transform.position) < drawDelta) 24 | return; 25 | 26 | _prevDrawPos = transform.position; 27 | 28 | Debug.DrawLine(transform.position, transform.position + Vector3.down); 29 | 30 | RaycastHit hit; 31 | if (Physics.Raycast(transform.position, Vector3.down, out hit)) 32 | { 33 | var texDraw = hit.collider.gameObject.GetComponent(); 34 | if (texDraw == null) 35 | return; 36 | 37 | texDraw.IndentAt(hit); 38 | } 39 | } 40 | } 41 | 42 | } -------------------------------------------------------------------------------- /Assets/IndentSurface/Scripts/IndentActor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1204f162b8a07ab49b471c34a7e048af 3 | timeCreated: 1477419654 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Scripts/IndentDraw.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | namespace Wacki.IndentSurface 5 | { 6 | 7 | public class IndentDraw : MonoBehaviour 8 | { 9 | public Texture2D texture; 10 | public Texture2D stampTexture; 11 | public RenderTexture tempTestRenderTexture; 12 | public int rtWidth = 512; 13 | public int rtHeight = 512; 14 | 15 | private RenderTexture targetTexture; 16 | private RenderTexture auxTexture; 17 | 18 | public Material mat; 19 | 20 | // mouse debug draw 21 | private Vector3 _prevMousePosition; 22 | private bool _mouseDrag = false; 23 | 24 | void Awake() 25 | { 26 | targetTexture = new RenderTexture(rtWidth, rtHeight, 32); 27 | 28 | // temporarily use a given render texture to be able to see how it looks 29 | targetTexture = tempTestRenderTexture; 30 | auxTexture = new RenderTexture(rtWidth, rtHeight, 32); 31 | 32 | GetComponent().material.SetTexture("_Indentmap", targetTexture); 33 | Graphics.Blit(texture, targetTexture); 34 | } 35 | 36 | // add an indentation at a raycast hit position 37 | public void IndentAt(RaycastHit hit) 38 | { 39 | if (hit.collider.gameObject != this.gameObject) 40 | return; 41 | 42 | float x = hit.textureCoord.x; 43 | float y = hit.textureCoord.y; 44 | 45 | DrawAt(x * targetTexture.width, y * targetTexture.height, 1.0f); 46 | } 47 | 48 | void Update() 49 | { 50 | if (Camera.main == null) 51 | return; 52 | 53 | bool draw = false; 54 | float drawThreshold = 0.01f; 55 | 56 | RaycastHit hit; 57 | if (Physics.Raycast(Camera.main.ScreenPointToRay(Input.mousePosition), out hit)) 58 | { 59 | if (hit.collider.gameObject != gameObject) 60 | return; 61 | } 62 | 63 | // force a draw on mouse down 64 | draw = Input.GetMouseButtonDown(0); 65 | // set draggin state 66 | _mouseDrag = Input.GetMouseButton(0); 67 | 68 | 69 | if (_mouseDrag && (draw || Vector3.Distance(hit.point, _prevMousePosition) > drawThreshold)) 70 | { 71 | _prevMousePosition = hit.point; 72 | IndentAt(hit); 73 | } 74 | } 75 | 76 | /// 77 | /// todo: it would probably be a bit more straight forward if we didn't use Graphics.DrawTexture 78 | /// and instead handle everything ourselves. This way we could directly provide multiple 79 | /// texture coordinates to each vertex. 80 | /// 81 | /// 82 | /// 83 | /// 84 | void DrawAt(float x, float y, float alpha) 85 | { 86 | Graphics.Blit(targetTexture, auxTexture); 87 | 88 | // activate our render texture 89 | RenderTexture.active = targetTexture; 90 | 91 | GL.PushMatrix(); 92 | GL.LoadPixelMatrix(0, targetTexture.width, targetTexture.height, 0); 93 | 94 | x = Mathf.Round(x); 95 | y = Mathf.Round(y); 96 | 97 | // setup rect for our indent texture stamp to draw into 98 | Rect screenRect = new Rect(); 99 | // put the center of the stamp at the actual draw position 100 | screenRect.x = x - stampTexture.width * 0.5f; 101 | screenRect.y = (targetTexture.height - y) - stampTexture.height * 0.5f; 102 | screenRect.width = stampTexture.width; 103 | screenRect.height = stampTexture.height; 104 | 105 | var tempVec = new Vector4(); 106 | 107 | tempVec.x = screenRect.x / ((float)targetTexture.width); 108 | tempVec.y = 1 - (screenRect.y / (float)targetTexture.height); 109 | tempVec.z = screenRect.width / targetTexture.width; 110 | tempVec.w = screenRect.height / targetTexture.height; 111 | tempVec.y -= tempVec.w; 112 | 113 | mat.SetTexture("_MainTex", stampTexture); 114 | mat.SetVector("_SourceTexCoords", tempVec); 115 | mat.SetTexture("_SurfaceTex", auxTexture); 116 | 117 | // Draw the texture 118 | Graphics.DrawTexture(screenRect, stampTexture, mat); 119 | 120 | GL.PopMatrix(); 121 | RenderTexture.active = null; 122 | 123 | 124 | } 125 | } 126 | 127 | } -------------------------------------------------------------------------------- /Assets/IndentSurface/Scripts/IndentDraw.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2614e265d9d59a3469bbffa3baebc884 3 | timeCreated: 1477412016 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Shaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c38e894104a229c4da83df040fdc1846 3 | folderAsset: yes 4 | timeCreated: 1471861948 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Shaders/DentableSurface.shader: -------------------------------------------------------------------------------- 1 | Shader "IndentSurface/DentableSurface" { 2 | Properties { 3 | _Color ("Color", Color) = (1,1,1,1) 4 | _MainTex ("Albedo (RGB)", 2D) = "white" {} 5 | _BumpMap ("Bumpmap", 2D) = "bump" {} 6 | _SpecGlossMap("Specular", 2D) = "white" {} 7 | _Indentmap ("Indentation", 2d) = "white" {} 8 | _Tess("Tessellation", Range(1,32)) = 4 9 | _IndentDepth ("Indentation Depth", Range(0,0.5)) = 0.1 10 | } 11 | SubShader { 12 | Tags { "RenderType"="Opaque" } 13 | LOD 200 14 | 15 | CGPROGRAM 16 | 17 | 18 | // Physically based Standard lighting model, and enable shadows on all light types 19 | #pragma surface surf StandardSpecular fullforwardshadows vertex:vert addshadow tessellate:tessDistance nolightmap 20 | #include "Tessellation.cginc" 21 | 22 | // Use shader model 3.0 target, to get nicer looking lighting 23 | #pragma target 3.0 24 | 25 | sampler2D _MainTex; 26 | sampler2D _Indentmap; 27 | sampler2D _SpecGlossMap; 28 | sampler2D _BumpMap; 29 | struct Input { 30 | float2 uv_MainTex; 31 | float2 uv_BumpMap; 32 | float3 normal; 33 | }; 34 | 35 | struct appdata { 36 | float4 vertex : POSITION; 37 | float4 tangent : TANGENT; 38 | float3 normal : NORMAL; 39 | float2 texcoord : TEXCOORD0; 40 | }; 41 | 42 | half _Glossiness; 43 | half _Metallic; 44 | fixed4 _Color; 45 | float _Tess; 46 | float _IndentDepth; 47 | 48 | 49 | float4 tessFixed() 50 | { 51 | return _Tess; 52 | } 53 | 54 | float4 tessDistance(appdata v0, appdata v1, appdata v2) { 55 | float minDist = 5.0; 56 | float maxDist = 25.0; 57 | return UnityDistanceBasedTess(v0.vertex, v1.vertex, v2.vertex, minDist, maxDist, _Tess); 58 | } 59 | 60 | float3 calcNormal(float2 texcoord) 61 | { 62 | const float3 off = float3(-0.01f, 0, 0.01f); // texture resolution to sample exact texels 63 | const float2 size = float2(0.01, 0.0); // size of a single texel in relation to world units 64 | 65 | float s01 = tex2Dlod(_Indentmap, float4(texcoord.xy - off.xy, 0, 0)).x * _IndentDepth; 66 | float s21 = tex2Dlod(_Indentmap, float4(texcoord.xy - off.zy, 0, 0)).x * _IndentDepth; 67 | float s10 = tex2Dlod(_Indentmap, float4(texcoord.xy - off.yx, 0, 0)).x * _IndentDepth; 68 | float s12 = tex2Dlod(_Indentmap, float4(texcoord.xy - off.yz, 0, 0)).x * _IndentDepth; 69 | 70 | float3 va = normalize(float3(size.xy, s21 - s01)); 71 | float3 vb = normalize(float3(size.yx, s12 - s10)); 72 | 73 | //return float3(s01, s12, 0); 74 | return normalize(cross(va, vb)); 75 | } 76 | 77 | 78 | void vert(inout appdata v) { 79 | //v.vertex.x += sin(_Time.y * 1.0f + v.vertex.y * 1.0f) * 1.0f; 80 | float height = tex2Dlod(_Indentmap, float4(v.texcoord.xy, 0, 0)); 81 | v.vertex.z += height * _IndentDepth; 82 | v.normal = normalize(calcNormal(v.texcoord) + v.normal); 83 | } 84 | 85 | void surf (Input IN, inout SurfaceOutputStandardSpecular o) { 86 | fixed4 c = tex2D (_MainTex, IN.uv_MainTex) * _Color; 87 | o.Albedo = c.rgb; 88 | 89 | // temp normal debug 90 | //o.Albedo = IN.normal; 91 | //o.Albedo = float4(IN.uv_MainTex, 0, 1) * 5; 92 | 93 | float4 specGloss = tex2D(_SpecGlossMap, IN.uv_MainTex); 94 | o.Specular = specGloss.rgb; 95 | o.Smoothness = specGloss.a; 96 | o.Alpha = c.a; 97 | 98 | o.Normal = float3(0, 0, 1) * 0.8f + 0.2f * UnpackNormal(tex2D(_BumpMap, IN.uv_BumpMap)).rgb; 99 | } 100 | ENDCG 101 | } 102 | FallBack "Diffuse" 103 | } 104 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Shaders/DentableSurface.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f5f89983a29b84b4589ab6fe49cda36f 3 | timeCreated: 1471862001 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Shaders/IndentStampInc.cginc: -------------------------------------------------------------------------------- 1 | #ifndef INDENT_STAMP_SHARED 2 | #define INDENT_STAMP_SHARED 3 | 4 | uniform sampler2D _MainTex; 5 | uniform sampler2D _SurfaceTex; 6 | uniform float4 _SourceTexCoords; 7 | 8 | struct appdata_t { 9 | float4 vertex : POSITION; 10 | float2 texcoord : TEXCOORD0; 11 | }; 12 | 13 | struct v2f { 14 | float4 vertex : SV_POSITION; 15 | float2 texcoord : TEXCOORD0; 16 | float2 texcoord1 : TEXCOORD1; 17 | }; 18 | 19 | v2f vert (appdata_t v) 20 | { 21 | v2f o; 22 | UNITY_SETUP_INSTANCE_ID(v); 23 | UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o); 24 | o.vertex = UnityObjectToClipPos(v.vertex); 25 | o.texcoord = v.texcoord,_MainTex; 26 | o.texcoord1 = _SourceTexCoords.xy + v.texcoord * _SourceTexCoords.zw; 27 | return o; 28 | } 29 | 30 | #endif // -------------------------------------------------------------------------------- /Assets/IndentSurface/Shaders/IndentStampInc.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e85ccbd7f2ca30944a3d9378a7f9401c 3 | timeCreated: 1482858430 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Shaders/IndentStamp_ADD.shader: -------------------------------------------------------------------------------- 1 | Shader "IndentSurface/IndentStamp_ADD" { 2 | 3 | Properties{ 4 | _Scale("Scale", Range(-1, 1)) = -0.5 5 | _Offset("Offset", Range(-1, 1)) = -1 6 | } 7 | 8 | SubShader { 9 | 10 | Tags { 11 | "Queue"="Transparent" 12 | "IgnoreProjector"="True" 13 | "RenderType"="Transparent" 14 | "PreviewType"="Plane" 15 | } 16 | Lighting Off Cull Off ZTest Always ZWrite Off 17 | Blend SrcAlpha OneMinusSrcAlpha 18 | 19 | Pass { 20 | CGPROGRAM 21 | #pragma vertex vert 22 | #pragma fragment frag 23 | #pragma multi_compile _ STEREO_INSTANCING_ON 24 | #pragma multi_compile _ UNITY_SINGLE_PASS_STEREO 25 | 26 | #include "UnityCG.cginc" 27 | #include "IndentStampInc.cginc" 28 | 29 | uniform float _Scale; 30 | uniform float _Offset; 31 | 32 | fixed4 frag (v2f i) : SV_Target 33 | { 34 | fixed4 stamp = tex2D(_MainTex, i.texcoord); 35 | fixed4 surface = tex2D(_SurfaceTex, i.texcoord1); 36 | return fixed4(surface.rgb + _Scale * (stamp.rgb + _Offset.rrr), stamp.a); 37 | } 38 | ENDCG 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Shaders/IndentStamp_ADD.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: abb6beea6576caa42b0c20d69931e90e 3 | timeCreated: 1482098923 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Shaders/IndentStamp_CUSTOM.shader: -------------------------------------------------------------------------------- 1 | Shader "IndentSurface/IndentStamp_CUSTOM" { 2 | 3 | Properties { 4 | _Scale("Scale", Range(0, 1)) = 0.2 5 | _HeightOffset("Stamp Height OFfset", Range(0, 1)) = 0.7 6 | } 7 | 8 | SubShader { 9 | Tags { 10 | "Queue"="Transparent" 11 | "IgnoreProjector"="True" 12 | "RenderType"="Transparent" 13 | "PreviewType"="Plane" 14 | } 15 | Lighting Off Cull Off ZTest Always ZWrite Off 16 | Blend SrcAlpha OneMinusSrcAlpha 17 | 18 | Pass { 19 | CGPROGRAM 20 | #pragma vertex vert 21 | #pragma fragment frag 22 | 23 | #include "UnityCG.cginc" 24 | #include "IndentStampInc.cginc" 25 | 26 | uniform float _Scale; 27 | uniform float _HeightOffset; 28 | 29 | fixed4 frag (v2f i) : SV_Target 30 | { 31 | fixed4 stamp = tex2D(_MainTex, i.texcoord); 32 | fixed4 surface = tex2D(_SurfaceTex, i.texcoord1); 33 | float buildUp = clamp(stamp.r - _HeightOffset, 0, 1); 34 | float indent = clamp(stamp.r - _HeightOffset, -1, 0); 35 | return fixed4(surface.rgb + surface.rgb * buildUp + indent.rrr * _Scale, stamp.a); 36 | } 37 | ENDCG 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Shaders/IndentStamp_CUSTOM.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fce12673848f63e4d9cbe82e9beee7ca 3 | timeCreated: 1482098923 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Shaders/IndentStamp_Default.shader: -------------------------------------------------------------------------------- 1 | Shader "IndentSurface/IndentStamp_Default" { 2 | SubShader { 3 | Tags { 4 | "Queue"="Transparent" 5 | "IgnoreProjector"="True" 6 | "RenderType"="Transparent" 7 | "PreviewType"="Plane" 8 | } 9 | Lighting Off Cull Off ZTest Always ZWrite Off 10 | Blend SrcAlpha OneMinusSrcAlpha 11 | 12 | Pass { 13 | CGPROGRAM 14 | #pragma vertex vert 15 | #pragma fragment frag 16 | 17 | #include "UnityCG.cginc" 18 | #include "IndentStampInc.cginc" 19 | 20 | fixed4 frag (v2f i) : SV_Target 21 | { 22 | fixed4 stamp = tex2D(_MainTex, i.texcoord); 23 | return stamp; 24 | } 25 | ENDCG 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Shaders/IndentStamp_Default.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ce311df4cc232544c83a8fdf8890c128 3 | timeCreated: 1482098923 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Shaders/IndentStamp_MIN.shader: -------------------------------------------------------------------------------- 1 | Shader "IndentSurface/IndentStamp_MIN" { 2 | 3 | SubShader { 4 | Tags { 5 | "Queue"="Transparent" 6 | "IgnoreProjector"="True" 7 | "RenderType"="Transparent" 8 | "PreviewType"="Plane" 9 | } 10 | Lighting Off Cull Off ZTest Always ZWrite Off 11 | Blend SrcAlpha OneMinusSrcAlpha 12 | 13 | Pass { 14 | CGPROGRAM 15 | #pragma vertex vert 16 | #pragma fragment frag 17 | 18 | #include "UnityCG.cginc" 19 | #include "IndentStampInc.cginc" 20 | 21 | fixed4 frag (v2f i) : SV_Target 22 | { 23 | fixed4 stamp = tex2D(_MainTex, i.texcoord); 24 | fixed4 surface = tex2D(_SurfaceTex, i.texcoord1); 25 | return min(stamp, surface); 26 | } 27 | ENDCG 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Shaders/IndentStamp_MIN.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bb02da9b93f5ec34087a039418706f4b 3 | timeCreated: 1482098923 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Shaders/IndentStamp_MUL.shader: -------------------------------------------------------------------------------- 1 | Shader "IndentSurface/IndentStamp_MUL" { 2 | 3 | Properties{ 4 | _Scale("Scale", Range(0, 1)) = 0.5 5 | } 6 | 7 | SubShader { 8 | Tags { 9 | "Queue"="Transparent" 10 | "IgnoreProjector"="True" 11 | "RenderType"="Transparent" 12 | "PreviewType"="Plane" 13 | } 14 | Lighting Off Cull Off ZTest Always ZWrite Off 15 | Blend SrcAlpha OneMinusSrcAlpha 16 | 17 | Pass { 18 | CGPROGRAM 19 | #pragma vertex vert 20 | #pragma fragment frag 21 | 22 | #include "UnityCG.cginc" 23 | #include "IndentStampInc.cginc" 24 | 25 | uniform float _Scale; 26 | 27 | fixed4 frag (v2f i) : SV_Target 28 | { 29 | fixed4 stamp = tex2D(_MainTex, i.texcoord); 30 | fixed4 surface = tex2D(_SurfaceTex, i.texcoord1); 31 | return surface * stamp * _Scale; 32 | } 33 | ENDCG 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Shaders/IndentStamp_MUL.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cdca05f84c921714fa384a63855c6346 3 | timeCreated: 1482098923 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1babb28e3ee1f794aa3ceb92ebcbc94d 3 | folderAsset: yes 4 | timeCreated: 1471886644 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/Snow.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 148260b9bc22ae44ca46de411018d07c 3 | folderAsset: yes 4 | timeCreated: 1482094128 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/Snow/snow_alb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wacki/Unity-IndentShader/028087ca91551b81bc47467cced579f8112b4c23/Assets/IndentSurface/Textures/Snow/snow_alb.png -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/Snow/snow_alb.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0d2238dd83c924344803ba7fe6d30e60 3 | timeCreated: 1482095573 4 | licenseType: Free 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: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -1 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 | allowsAlphaSplitting: 0 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaIsTransparency: 0 49 | spriteTessellationDetail: -1 50 | textureType: -1 51 | buildTargetSettings: [] 52 | spriteSheet: 53 | serializedVersion: 2 54 | sprites: [] 55 | outline: [] 56 | spritePackingTag: 57 | userData: 58 | assetBundleName: 59 | assetBundleVariant: 60 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/Snow/snow_n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wacki/Unity-IndentShader/028087ca91551b81bc47467cced579f8112b4c23/Assets/IndentSurface/Textures/Snow/snow_n.png -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/Snow/snow_n.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1365047035fe2d747b11cc5addf29cbc 3 | timeCreated: 1482094171 4 | licenseType: Free 5 | TextureImporter: 6 | fileIDToRecycleName: {} 7 | serializedVersion: 2 8 | mipmaps: 9 | mipMapMode: 0 10 | enableMipMap: 1 11 | linearTexture: 1 12 | correctGamma: 0 13 | fadeOut: 0 14 | borderMipMap: 0 15 | mipMapFadeDistanceStart: 1 16 | mipMapFadeDistanceEnd: 3 17 | bumpmap: 18 | convertToNormalMap: 0 19 | externalNormalMap: 1 20 | heightScale: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -1 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 | allowsAlphaSplitting: 0 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaIsTransparency: 0 49 | spriteTessellationDetail: -1 50 | textureType: 1 51 | buildTargetSettings: [] 52 | spriteSheet: 53 | serializedVersion: 2 54 | sprites: [] 55 | outline: [] 56 | spritePackingTag: 57 | userData: 58 | assetBundleName: 59 | assetBundleVariant: 60 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/Snow/snow_occ.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wacki/Unity-IndentShader/028087ca91551b81bc47467cced579f8112b4c23/Assets/IndentSurface/Textures/Snow/snow_occ.png -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/Snow/snow_occ.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a3696326ef43d2c4e9cee963d507a929 3 | timeCreated: 1482094143 4 | licenseType: Free 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: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -1 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 | allowsAlphaSplitting: 0 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaIsTransparency: 0 49 | spriteTessellationDetail: -1 50 | textureType: -1 51 | buildTargetSettings: [] 52 | spriteSheet: 53 | serializedVersion: 2 54 | sprites: [] 55 | outline: [] 56 | spritePackingTag: 57 | userData: 58 | assetBundleName: 59 | assetBundleVariant: 60 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/Snow/snow_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wacki/Unity-IndentShader/028087ca91551b81bc47467cced579f8112b4c23/Assets/IndentSurface/Textures/Snow/snow_s.png -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/Snow/snow_s.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 63b5a8e43204ac44e88ad22abb9edc40 3 | timeCreated: 1482094136 4 | licenseType: Free 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: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -1 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 | allowsAlphaSplitting: 0 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaIsTransparency: 0 49 | spriteTessellationDetail: -1 50 | textureType: -1 51 | buildTargetSettings: [] 52 | spriteSheet: 53 | serializedVersion: 2 54 | sprites: [] 55 | outline: [] 56 | spritePackingTag: 57 | userData: 58 | assetBundleName: 59 | assetBundleVariant: 60 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/Snow/snow_s.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wacki/Unity-IndentShader/028087ca91551b81bc47467cced579f8112b4c23/Assets/IndentSurface/Textures/Snow/snow_s.tga -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/Snow/snow_s.tga.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 62864d12879b7bf478c54ec724ed99ba 3 | timeCreated: 1482095268 4 | licenseType: Free 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: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -1 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 | allowsAlphaSplitting: 0 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaIsTransparency: 0 49 | spriteTessellationDetail: -1 50 | textureType: -1 51 | buildTargetSettings: [] 52 | spriteSheet: 53 | serializedVersion: 2 54 | sprites: [] 55 | outline: [] 56 | spritePackingTag: 57 | userData: 58 | assetBundleName: 59 | assetBundleVariant: 60 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/TestRenderTexture.renderTexture: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!84 &8400000 4 | RenderTexture: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: TestRenderTexture 9 | m_ImageContentsHash: 10 | serializedVersion: 2 11 | Hash: 00000000000000000000000000000000 12 | m_Width: 256 13 | m_Height: 256 14 | m_AntiAliasing: 1 15 | m_DepthFormat: 2 16 | m_ColorFormat: 0 17 | m_MipMap: 0 18 | m_GenerateMips: 1 19 | m_SRGB: 0 20 | m_TextureSettings: 21 | m_FilterMode: 1 22 | m_Aniso: 0 23 | m_MipBias: 0 24 | m_WrapMode: 1 25 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/TestRenderTexture.renderTexture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0c4342ef03b61e64da1efb005c607284 3 | timeCreated: 1477413029 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/stamps.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3fe18c138582da14495153c6b2dea6ac 3 | folderAsset: yes 4 | timeCreated: 1477413006 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/stamps/Indendt16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wacki/Unity-IndentShader/028087ca91551b81bc47467cced579f8112b4c23/Assets/IndentSurface/Textures/stamps/Indendt16x16.png -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/stamps/Indendt16x16.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7a2fb92e75000dc4e8ae382fa8b75d05 3 | timeCreated: 1477416586 4 | licenseType: Free 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: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -1 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 | allowsAlphaSplitting: 0 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaIsTransparency: 1 49 | spriteTessellationDetail: -1 50 | textureType: -1 51 | buildTargetSettings: [] 52 | spriteSheet: 53 | serializedVersion: 2 54 | sprites: [] 55 | outline: [] 56 | spritePackingTag: 57 | userData: 58 | assetBundleName: 59 | assetBundleVariant: 60 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/stamps/Indendt32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wacki/Unity-IndentShader/028087ca91551b81bc47467cced579f8112b4c23/Assets/IndentSurface/Textures/stamps/Indendt32x32.png -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/stamps/Indendt32x32.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 346496a7b10ae8d4e9fb5fe51f9e606f 3 | timeCreated: 1477413006 4 | licenseType: Free 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: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -1 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 | allowsAlphaSplitting: 0 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaIsTransparency: 1 49 | spriteTessellationDetail: -1 50 | textureType: -1 51 | buildTargetSettings: [] 52 | spriteSheet: 53 | serializedVersion: 2 54 | sprites: [] 55 | outline: [] 56 | spritePackingTag: 57 | userData: 58 | assetBundleName: 59 | assetBundleVariant: 60 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/stamps/Indendt32x32_norim.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wacki/Unity-IndentShader/028087ca91551b81bc47467cced579f8112b4c23/Assets/IndentSurface/Textures/stamps/Indendt32x32_norim.png -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/stamps/Indendt32x32_norim.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1d7b541f76d676047a55de961a2dd2d5 3 | timeCreated: 1477420576 4 | licenseType: Free 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: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -1 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 | allowsAlphaSplitting: 0 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaIsTransparency: 1 49 | spriteTessellationDetail: -1 50 | textureType: -1 51 | buildTargetSettings: [] 52 | spriteSheet: 53 | serializedVersion: 2 54 | sprites: [] 55 | outline: [] 56 | spritePackingTag: 57 | userData: 58 | assetBundleName: 59 | assetBundleVariant: 60 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/test_texture.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wacki/Unity-IndentShader/028087ca91551b81bc47467cced579f8112b4c23/Assets/IndentSurface/Textures/test_texture.jpg -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/test_texture.jpg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aa86b085c54f4b547b44c99adf064675 3 | timeCreated: 1472333595 4 | licenseType: Free 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: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -1 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 | allowsAlphaSplitting: 0 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaIsTransparency: 0 49 | spriteTessellationDetail: -1 50 | textureType: -1 51 | buildTargetSettings: [] 52 | spriteSheet: 53 | serializedVersion: 2 54 | sprites: [] 55 | outline: [] 56 | spritePackingTag: 57 | userData: 58 | assetBundleName: 59 | assetBundleVariant: 60 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/test_texture2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wacki/Unity-IndentShader/028087ca91551b81bc47467cced579f8112b4c23/Assets/IndentSurface/Textures/test_texture2.jpg -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/test_texture2.jpg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9aba1b28eada4f84ea7e6b64ce8c472b 3 | timeCreated: 1472341595 4 | licenseType: Free 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: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -1 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 | allowsAlphaSplitting: 0 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaIsTransparency: 0 49 | spriteTessellationDetail: -1 50 | textureType: -1 51 | buildTargetSettings: [] 52 | spriteSheet: 53 | serializedVersion: 2 54 | sprites: [] 55 | outline: [] 56 | spritePackingTag: 57 | userData: 58 | assetBundleName: 59 | assetBundleVariant: 60 | -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/test_texture3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wacki/Unity-IndentShader/028087ca91551b81bc47467cced579f8112b4c23/Assets/IndentSurface/Textures/test_texture3.jpg -------------------------------------------------------------------------------- /Assets/IndentSurface/Textures/test_texture3.jpg.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ed82fe64eedf21847b00f91e9c6b343e 3 | timeCreated: 1482919406 4 | licenseType: Free 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: 0.25 21 | normalMapFilter: 0 22 | isReadable: 0 23 | grayScaleToAlpha: 0 24 | generateCubemap: 0 25 | cubemapConvolution: 0 26 | cubemapConvolutionSteps: 7 27 | cubemapConvolutionExponent: 1.5 28 | seamlessCubemap: 0 29 | textureFormat: -1 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 | allowsAlphaSplitting: 0 41 | spriteMode: 0 42 | spriteExtrude: 1 43 | spriteMeshType: 1 44 | alignment: 0 45 | spritePivot: {x: 0.5, y: 0.5} 46 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 47 | spritePixelsToUnits: 100 48 | alphaIsTransparency: 0 49 | spriteTessellationDetail: -1 50 | textureType: -1 51 | buildTargetSettings: [] 52 | spriteSheet: 53 | serializedVersion: 2 54 | sprites: [] 55 | outline: [] 56 | spritePackingTag: 57 | userData: 58 | assetBundleName: 59 | assetBundleVariant: 60 | -------------------------------------------------------------------------------- /Assets/IndentSurface/_DEMO.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 527587fb73894964eada805fecf9122c 3 | folderAsset: yes 4 | timeCreated: 1471862070 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/IndentSurface/_DEMO/snow_example.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | SceneSettings: 5 | m_ObjectHideFlags: 0 6 | m_PVSData: 7 | m_PVSObjectsArray: [] 8 | m_PVSPortalsArray: [] 9 | m_OcclusionBakeSettings: 10 | smallestOccluder: 5 11 | smallestHole: 0.25 12 | backfaceThreshold: 100 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 7 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 29 | m_HaloStrength: 0.5 30 | m_FlareStrength: 1 31 | m_FlareFadeSpeed: 3 32 | m_HaloTexture: {fileID: 0} 33 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 34 | m_DefaultReflectionMode: 0 35 | m_DefaultReflectionResolution: 128 36 | m_ReflectionBounces: 1 37 | m_ReflectionIntensity: 1 38 | m_CustomReflection: {fileID: 0} 39 | m_Sun: {fileID: 0} 40 | m_IndirectSpecularColor: {r: 0.45144308, g: 0.49976677, b: 0.5663723, a: 1} 41 | --- !u!157 &3 42 | LightmapSettings: 43 | m_ObjectHideFlags: 0 44 | serializedVersion: 7 45 | m_GIWorkflowMode: 0 46 | m_GISettings: 47 | serializedVersion: 2 48 | m_BounceScale: 1 49 | m_IndirectOutputScale: 1 50 | m_AlbedoBoost: 1 51 | m_TemporalCoherenceThreshold: 1 52 | m_EnvironmentLightingMode: 0 53 | m_EnableBakedLightmaps: 1 54 | m_EnableRealtimeLightmaps: 1 55 | m_LightmapEditorSettings: 56 | serializedVersion: 4 57 | m_Resolution: 2 58 | m_BakeResolution: 40 59 | m_TextureWidth: 1024 60 | m_TextureHeight: 1024 61 | m_AO: 1 62 | m_AOMaxDistance: 1 63 | m_CompAOExponent: 1 64 | m_CompAOExponentDirect: 0 65 | m_Padding: 2 66 | m_LightmapParameters: {fileID: 0} 67 | m_LightmapsBakeMode: 1 68 | m_TextureCompression: 1 69 | m_DirectLightInLightProbes: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_LightingDataAsset: {fileID: 0} 75 | m_RuntimeCPUUsage: 25 76 | --- !u!196 &4 77 | NavMeshSettings: 78 | serializedVersion: 2 79 | m_ObjectHideFlags: 0 80 | m_BuildSettings: 81 | serializedVersion: 2 82 | agentRadius: 0.5 83 | agentHeight: 2 84 | agentSlope: 45 85 | agentClimb: 0.4 86 | ledgeDropHeight: 0 87 | maxJumpAcrossDistance: 0 88 | accuratePlacement: 0 89 | minRegionArea: 2 90 | cellSize: 0.16666667 91 | manualCellSize: 0 92 | m_NavMeshData: {fileID: 0} 93 | --- !u!1 &40304958 94 | GameObject: 95 | m_ObjectHideFlags: 0 96 | m_PrefabParentObject: {fileID: 0} 97 | m_PrefabInternal: {fileID: 0} 98 | serializedVersion: 4 99 | m_Component: 100 | - 4: {fileID: 40304963} 101 | - 33: {fileID: 40304962} 102 | - 135: {fileID: 40304961} 103 | - 23: {fileID: 40304960} 104 | - 54: {fileID: 40304959} 105 | - 114: {fileID: 40304964} 106 | m_Layer: 0 107 | m_Name: Sphere 108 | m_TagString: Untagged 109 | m_Icon: {fileID: 0} 110 | m_NavMeshLayer: 0 111 | m_StaticEditorFlags: 0 112 | m_IsActive: 1 113 | --- !u!54 &40304959 114 | Rigidbody: 115 | m_ObjectHideFlags: 0 116 | m_PrefabParentObject: {fileID: 0} 117 | m_PrefabInternal: {fileID: 0} 118 | m_GameObject: {fileID: 40304958} 119 | serializedVersion: 2 120 | m_Mass: 1 121 | m_Drag: 0 122 | m_AngularDrag: 0.05 123 | m_UseGravity: 1 124 | m_IsKinematic: 0 125 | m_Interpolate: 0 126 | m_Constraints: 0 127 | m_CollisionDetection: 0 128 | --- !u!23 &40304960 129 | MeshRenderer: 130 | m_ObjectHideFlags: 0 131 | m_PrefabParentObject: {fileID: 0} 132 | m_PrefabInternal: {fileID: 0} 133 | m_GameObject: {fileID: 40304958} 134 | m_Enabled: 1 135 | m_CastShadows: 1 136 | m_ReceiveShadows: 1 137 | m_MotionVectors: 1 138 | m_LightProbeUsage: 1 139 | m_ReflectionProbeUsage: 1 140 | m_Materials: 141 | - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} 142 | m_SubsetIndices: 143 | m_StaticBatchRoot: {fileID: 0} 144 | m_ProbeAnchor: {fileID: 0} 145 | m_LightProbeVolumeOverride: {fileID: 0} 146 | m_ScaleInLightmap: 1 147 | m_PreserveUVs: 1 148 | m_IgnoreNormalsForChartDetection: 0 149 | m_ImportantGI: 0 150 | m_SelectedWireframeHidden: 0 151 | m_MinimumChartSize: 4 152 | m_AutoUVMaxDistance: 0.5 153 | m_AutoUVMaxAngle: 89 154 | m_LightmapParameters: {fileID: 0} 155 | m_SortingLayerID: 0 156 | m_SortingOrder: 0 157 | --- !u!135 &40304961 158 | SphereCollider: 159 | m_ObjectHideFlags: 0 160 | m_PrefabParentObject: {fileID: 0} 161 | m_PrefabInternal: {fileID: 0} 162 | m_GameObject: {fileID: 40304958} 163 | m_Material: {fileID: 0} 164 | m_IsTrigger: 0 165 | m_Enabled: 1 166 | serializedVersion: 2 167 | m_Radius: 0.5 168 | m_Center: {x: 0, y: 0, z: 0} 169 | --- !u!33 &40304962 170 | MeshFilter: 171 | m_ObjectHideFlags: 0 172 | m_PrefabParentObject: {fileID: 0} 173 | m_PrefabInternal: {fileID: 0} 174 | m_GameObject: {fileID: 40304958} 175 | m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} 176 | --- !u!4 &40304963 177 | Transform: 178 | m_ObjectHideFlags: 0 179 | m_PrefabParentObject: {fileID: 0} 180 | m_PrefabInternal: {fileID: 0} 181 | m_GameObject: {fileID: 40304958} 182 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 183 | m_LocalPosition: {x: -0.533, y: 0.177, z: -0.578} 184 | m_LocalScale: {x: 0.22587651, y: 0.22587651, z: 0.22587651} 185 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 186 | m_Children: [] 187 | m_Father: {fileID: 0} 188 | m_RootOrder: 4 189 | --- !u!114 &40304964 190 | MonoBehaviour: 191 | m_ObjectHideFlags: 0 192 | m_PrefabParentObject: {fileID: 0} 193 | m_PrefabInternal: {fileID: 0} 194 | m_GameObject: {fileID: 40304958} 195 | m_Enabled: 1 196 | m_EditorHideFlags: 0 197 | m_Script: {fileID: 11500000, guid: 1204f162b8a07ab49b471c34a7e048af, type: 3} 198 | m_Name: 199 | m_EditorClassIdentifier: 200 | drawDelta: 0.005 201 | --- !u!1 &178602647 stripped 202 | GameObject: 203 | m_PrefabParentObject: {fileID: 100000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 204 | m_PrefabInternal: {fileID: 1019511039} 205 | --- !u!114 &178602648 206 | MonoBehaviour: 207 | m_ObjectHideFlags: 0 208 | m_PrefabParentObject: {fileID: 0} 209 | m_PrefabInternal: {fileID: 0} 210 | m_GameObject: {fileID: 178602647} 211 | m_Enabled: 1 212 | m_EditorHideFlags: 0 213 | m_Script: {fileID: 11500000, guid: 2614e265d9d59a3469bbffa3baebc884, type: 3} 214 | m_Name: 215 | m_EditorClassIdentifier: 216 | texture: {fileID: 2800000, guid: ed82fe64eedf21847b00f91e9c6b343e, type: 3} 217 | stampTexture: {fileID: 2800000, guid: 346496a7b10ae8d4e9fb5fe51f9e606f, type: 3} 218 | tempTestRenderTexture: {fileID: 8400000, guid: 0c4342ef03b61e64da1efb005c607284, 219 | type: 2} 220 | rtWidth: 256 221 | rtHeight: 256 222 | mat: {fileID: 2100000, guid: 28a97ac2a0b001d4d9a0c876fa978968, type: 2} 223 | --- !u!64 &178602652 224 | MeshCollider: 225 | m_ObjectHideFlags: 0 226 | m_PrefabParentObject: {fileID: 0} 227 | m_PrefabInternal: {fileID: 0} 228 | m_GameObject: {fileID: 178602647} 229 | m_Material: {fileID: 0} 230 | m_IsTrigger: 0 231 | m_Enabled: 1 232 | serializedVersion: 2 233 | m_Convex: 0 234 | m_Mesh: {fileID: 4300000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 235 | --- !u!1 &206870890 236 | GameObject: 237 | m_ObjectHideFlags: 0 238 | m_PrefabParentObject: {fileID: 0} 239 | m_PrefabInternal: {fileID: 0} 240 | serializedVersion: 4 241 | m_Component: 242 | - 4: {fileID: 206870891} 243 | m_Layer: 0 244 | m_Name: walls 245 | m_TagString: Untagged 246 | m_Icon: {fileID: 0} 247 | m_NavMeshLayer: 0 248 | m_StaticEditorFlags: 0 249 | m_IsActive: 1 250 | --- !u!4 &206870891 251 | Transform: 252 | m_ObjectHideFlags: 0 253 | m_PrefabParentObject: {fileID: 0} 254 | m_PrefabInternal: {fileID: 0} 255 | m_GameObject: {fileID: 206870890} 256 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 257 | m_LocalPosition: {x: -0.966, y: -0.103, z: -0.955} 258 | m_LocalScale: {x: 1, y: 1, z: 1} 259 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 260 | m_Children: 261 | - {fileID: 1202073264} 262 | - {fileID: 1745849505} 263 | - {fileID: 342589763} 264 | - {fileID: 2107468705} 265 | m_Father: {fileID: 0} 266 | m_RootOrder: 5 267 | --- !u!1 &342589759 268 | GameObject: 269 | m_ObjectHideFlags: 0 270 | m_PrefabParentObject: {fileID: 0} 271 | m_PrefabInternal: {fileID: 0} 272 | serializedVersion: 4 273 | m_Component: 274 | - 4: {fileID: 342589763} 275 | - 33: {fileID: 342589762} 276 | - 65: {fileID: 342589761} 277 | - 23: {fileID: 342589760} 278 | m_Layer: 0 279 | m_Name: Cube (2) 280 | m_TagString: Untagged 281 | m_Icon: {fileID: 0} 282 | m_NavMeshLayer: 0 283 | m_StaticEditorFlags: 0 284 | m_IsActive: 1 285 | --- !u!23 &342589760 286 | MeshRenderer: 287 | m_ObjectHideFlags: 0 288 | m_PrefabParentObject: {fileID: 0} 289 | m_PrefabInternal: {fileID: 0} 290 | m_GameObject: {fileID: 342589759} 291 | m_Enabled: 1 292 | m_CastShadows: 1 293 | m_ReceiveShadows: 1 294 | m_MotionVectors: 1 295 | m_LightProbeUsage: 1 296 | m_ReflectionProbeUsage: 1 297 | m_Materials: 298 | - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} 299 | m_SubsetIndices: 300 | m_StaticBatchRoot: {fileID: 0} 301 | m_ProbeAnchor: {fileID: 0} 302 | m_LightProbeVolumeOverride: {fileID: 0} 303 | m_ScaleInLightmap: 1 304 | m_PreserveUVs: 1 305 | m_IgnoreNormalsForChartDetection: 0 306 | m_ImportantGI: 0 307 | m_SelectedWireframeHidden: 0 308 | m_MinimumChartSize: 4 309 | m_AutoUVMaxDistance: 0.5 310 | m_AutoUVMaxAngle: 89 311 | m_LightmapParameters: {fileID: 0} 312 | m_SortingLayerID: 0 313 | m_SortingOrder: 0 314 | --- !u!65 &342589761 315 | BoxCollider: 316 | m_ObjectHideFlags: 0 317 | m_PrefabParentObject: {fileID: 0} 318 | m_PrefabInternal: {fileID: 0} 319 | m_GameObject: {fileID: 342589759} 320 | m_Material: {fileID: 0} 321 | m_IsTrigger: 0 322 | m_Enabled: 1 323 | serializedVersion: 2 324 | m_Size: {x: 1, y: 1, z: 1} 325 | m_Center: {x: 0, y: 0, z: 0} 326 | --- !u!33 &342589762 327 | MeshFilter: 328 | m_ObjectHideFlags: 0 329 | m_PrefabParentObject: {fileID: 0} 330 | m_PrefabInternal: {fileID: 0} 331 | m_GameObject: {fileID: 342589759} 332 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 333 | --- !u!4 &342589763 334 | Transform: 335 | m_ObjectHideFlags: 0 336 | m_PrefabParentObject: {fileID: 0} 337 | m_PrefabInternal: {fileID: 0} 338 | m_GameObject: {fileID: 342589759} 339 | m_LocalRotation: {x: -0.49706626, y: -0.5029167, z: -0.5029167, w: 0.49706626} 340 | m_LocalPosition: {x: -0.022815943, y: 0, z: 1.949867} 341 | m_LocalScale: {x: 0.09030957, y: 2.0537603, z: 0.48262885} 342 | m_LocalEulerAnglesHint: {x: -89.981, y: 0, z: -90.651} 343 | m_Children: [] 344 | m_Father: {fileID: 206870891} 345 | m_RootOrder: 2 346 | --- !u!1 &543058470 347 | GameObject: 348 | m_ObjectHideFlags: 0 349 | m_PrefabParentObject: {fileID: 0} 350 | m_PrefabInternal: {fileID: 0} 351 | serializedVersion: 4 352 | m_Component: 353 | - 4: {fileID: 543058472} 354 | - 108: {fileID: 543058471} 355 | m_Layer: 0 356 | m_Name: Directional Light 357 | m_TagString: Untagged 358 | m_Icon: {fileID: 0} 359 | m_NavMeshLayer: 0 360 | m_StaticEditorFlags: 0 361 | m_IsActive: 1 362 | --- !u!108 &543058471 363 | Light: 364 | m_ObjectHideFlags: 0 365 | m_PrefabParentObject: {fileID: 0} 366 | m_PrefabInternal: {fileID: 0} 367 | m_GameObject: {fileID: 543058470} 368 | m_Enabled: 1 369 | serializedVersion: 7 370 | m_Type: 1 371 | m_Color: {r: 1, g: 1, b: 1, a: 1} 372 | m_Intensity: 0.5 373 | m_Range: 10 374 | m_SpotAngle: 30 375 | m_CookieSize: 10 376 | m_Shadows: 377 | m_Type: 2 378 | m_Resolution: -1 379 | m_CustomResolution: -1 380 | m_Strength: 0.593 381 | m_Bias: 0.001 382 | m_NormalBias: 1.2 383 | m_NearPlane: 0.099999994 384 | m_Cookie: {fileID: 0} 385 | m_DrawHalo: 0 386 | m_Flare: {fileID: 0} 387 | m_RenderMode: 0 388 | m_CullingMask: 389 | serializedVersion: 2 390 | m_Bits: 4294967295 391 | m_Lightmapping: 4 392 | m_AreaSize: {x: 1, y: 1} 393 | m_BounceIntensity: 1 394 | m_ShadowRadius: 0 395 | m_ShadowAngle: 0 396 | --- !u!4 &543058472 397 | Transform: 398 | m_ObjectHideFlags: 0 399 | m_PrefabParentObject: {fileID: 0} 400 | m_PrefabInternal: {fileID: 0} 401 | m_GameObject: {fileID: 543058470} 402 | m_LocalRotation: {x: 0.18028608, y: -0.6099461, z: 0.103832126, w: 0.7646448} 403 | m_LocalPosition: {x: -0, y: 1.68, z: -0.08} 404 | m_LocalScale: {x: 1, y: 1, z: 1} 405 | m_LocalEulerAnglesHint: {x: 23.695002, y: -78.247, z: -3.719} 406 | m_Children: [] 407 | m_Father: {fileID: 0} 408 | m_RootOrder: 1 409 | --- !u!1 &637932226 410 | GameObject: 411 | m_ObjectHideFlags: 0 412 | m_PrefabParentObject: {fileID: 0} 413 | m_PrefabInternal: {fileID: 0} 414 | serializedVersion: 4 415 | m_Component: 416 | - 4: {fileID: 637932231} 417 | - 20: {fileID: 637932230} 418 | - 92: {fileID: 637932229} 419 | - 124: {fileID: 637932228} 420 | - 81: {fileID: 637932227} 421 | m_Layer: 0 422 | m_Name: Main Camera 423 | m_TagString: MainCamera 424 | m_Icon: {fileID: 0} 425 | m_NavMeshLayer: 0 426 | m_StaticEditorFlags: 0 427 | m_IsActive: 1 428 | --- !u!81 &637932227 429 | AudioListener: 430 | m_ObjectHideFlags: 0 431 | m_PrefabParentObject: {fileID: 0} 432 | m_PrefabInternal: {fileID: 0} 433 | m_GameObject: {fileID: 637932226} 434 | m_Enabled: 1 435 | --- !u!124 &637932228 436 | Behaviour: 437 | m_ObjectHideFlags: 0 438 | m_PrefabParentObject: {fileID: 0} 439 | m_PrefabInternal: {fileID: 0} 440 | m_GameObject: {fileID: 637932226} 441 | m_Enabled: 1 442 | --- !u!92 &637932229 443 | Behaviour: 444 | m_ObjectHideFlags: 0 445 | m_PrefabParentObject: {fileID: 0} 446 | m_PrefabInternal: {fileID: 0} 447 | m_GameObject: {fileID: 637932226} 448 | m_Enabled: 1 449 | --- !u!20 &637932230 450 | Camera: 451 | m_ObjectHideFlags: 0 452 | m_PrefabParentObject: {fileID: 0} 453 | m_PrefabInternal: {fileID: 0} 454 | m_GameObject: {fileID: 637932226} 455 | m_Enabled: 1 456 | serializedVersion: 2 457 | m_ClearFlags: 1 458 | m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} 459 | m_NormalizedViewPortRect: 460 | serializedVersion: 2 461 | x: 0 462 | y: 0 463 | width: 1 464 | height: 1 465 | near clip plane: 0.3 466 | far clip plane: 1000 467 | field of view: 60 468 | orthographic: 0 469 | orthographic size: 5 470 | m_Depth: -1 471 | m_CullingMask: 472 | serializedVersion: 2 473 | m_Bits: 4294967295 474 | m_RenderingPath: -1 475 | m_TargetTexture: {fileID: 0} 476 | m_TargetDisplay: 0 477 | m_TargetEye: 3 478 | m_HDR: 0 479 | m_OcclusionCulling: 1 480 | m_StereoConvergence: 10 481 | m_StereoSeparation: 0.022 482 | m_StereoMirrorMode: 0 483 | --- !u!4 &637932231 484 | Transform: 485 | m_ObjectHideFlags: 0 486 | m_PrefabParentObject: {fileID: 0} 487 | m_PrefabInternal: {fileID: 0} 488 | m_GameObject: {fileID: 637932226} 489 | m_LocalRotation: {x: 0.54793435, y: -0, z: -0, w: 0.8365213} 490 | m_LocalPosition: {x: -0.99, y: 1.395, z: -0.759} 491 | m_LocalScale: {x: 1, y: 1, z: 1} 492 | m_LocalEulerAnglesHint: {x: 66.43, y: 0, z: 0} 493 | m_Children: [] 494 | m_Father: {fileID: 0} 495 | m_RootOrder: 0 496 | --- !u!1001 &1019511039 497 | Prefab: 498 | m_ObjectHideFlags: 0 499 | serializedVersion: 2 500 | m_Modification: 501 | m_TransformParent: {fileID: 0} 502 | m_Modifications: 503 | - target: {fileID: 400000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 504 | propertyPath: m_LocalPosition.x 505 | value: -1 506 | objectReference: {fileID: 0} 507 | - target: {fileID: 400000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 508 | propertyPath: m_LocalPosition.y 509 | value: 0 510 | objectReference: {fileID: 0} 511 | - target: {fileID: 400000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 512 | propertyPath: m_LocalPosition.z 513 | value: 0 514 | objectReference: {fileID: 0} 515 | - target: {fileID: 400000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 516 | propertyPath: m_LocalRotation.x 517 | value: -0.7071068 518 | objectReference: {fileID: 0} 519 | - target: {fileID: 400000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 520 | propertyPath: m_LocalRotation.y 521 | value: 0 522 | objectReference: {fileID: 0} 523 | - target: {fileID: 400000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 524 | propertyPath: m_LocalRotation.z 525 | value: 0 526 | objectReference: {fileID: 0} 527 | - target: {fileID: 400000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 528 | propertyPath: m_LocalRotation.w 529 | value: 0.7071068 530 | objectReference: {fileID: 0} 531 | - target: {fileID: 400000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 532 | propertyPath: m_RootOrder 533 | value: 2 534 | objectReference: {fileID: 0} 535 | - target: {fileID: 100000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 536 | propertyPath: m_Name 537 | value: terrain 538 | objectReference: {fileID: 0} 539 | - target: {fileID: 400000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 540 | propertyPath: m_LocalScale.y 541 | value: 1 542 | objectReference: {fileID: 0} 543 | - target: {fileID: 400000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 544 | propertyPath: m_LocalScale.z 545 | value: 1 546 | objectReference: {fileID: 0} 547 | - target: {fileID: 2300000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 548 | propertyPath: m_Materials.Array.data[0] 549 | value: 550 | objectReference: {fileID: 2100000, guid: 604baa92f07474f4794a359c620cf4b6, type: 2} 551 | - target: {fileID: 400000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 552 | propertyPath: m_LocalScale.x 553 | value: 1 554 | objectReference: {fileID: 0} 555 | - target: {fileID: 400000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 556 | propertyPath: m_LocalEulerAnglesHint.x 557 | value: -90 558 | objectReference: {fileID: 0} 559 | m_RemovedComponents: [] 560 | m_ParentPrefab: {fileID: 100100000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 561 | m_IsPrefabParent: 0 562 | --- !u!1 &1202073260 563 | GameObject: 564 | m_ObjectHideFlags: 0 565 | m_PrefabParentObject: {fileID: 0} 566 | m_PrefabInternal: {fileID: 0} 567 | serializedVersion: 4 568 | m_Component: 569 | - 4: {fileID: 1202073264} 570 | - 33: {fileID: 1202073263} 571 | - 65: {fileID: 1202073262} 572 | - 23: {fileID: 1202073261} 573 | m_Layer: 0 574 | m_Name: Cube 575 | m_TagString: Untagged 576 | m_Icon: {fileID: 0} 577 | m_NavMeshLayer: 0 578 | m_StaticEditorFlags: 0 579 | m_IsActive: 1 580 | --- !u!23 &1202073261 581 | MeshRenderer: 582 | m_ObjectHideFlags: 0 583 | m_PrefabParentObject: {fileID: 0} 584 | m_PrefabInternal: {fileID: 0} 585 | m_GameObject: {fileID: 1202073260} 586 | m_Enabled: 1 587 | m_CastShadows: 1 588 | m_ReceiveShadows: 1 589 | m_MotionVectors: 1 590 | m_LightProbeUsage: 1 591 | m_ReflectionProbeUsage: 1 592 | m_Materials: 593 | - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} 594 | m_SubsetIndices: 595 | m_StaticBatchRoot: {fileID: 0} 596 | m_ProbeAnchor: {fileID: 0} 597 | m_LightProbeVolumeOverride: {fileID: 0} 598 | m_ScaleInLightmap: 1 599 | m_PreserveUVs: 1 600 | m_IgnoreNormalsForChartDetection: 0 601 | m_ImportantGI: 0 602 | m_SelectedWireframeHidden: 0 603 | m_MinimumChartSize: 4 604 | m_AutoUVMaxDistance: 0.5 605 | m_AutoUVMaxAngle: 89 606 | m_LightmapParameters: {fileID: 0} 607 | m_SortingLayerID: 0 608 | m_SortingOrder: 0 609 | --- !u!65 &1202073262 610 | BoxCollider: 611 | m_ObjectHideFlags: 0 612 | m_PrefabParentObject: {fileID: 0} 613 | m_PrefabInternal: {fileID: 0} 614 | m_GameObject: {fileID: 1202073260} 615 | m_Material: {fileID: 0} 616 | m_IsTrigger: 0 617 | m_Enabled: 1 618 | serializedVersion: 2 619 | m_Size: {x: 1, y: 1, z: 1} 620 | m_Center: {x: 0, y: 0, z: 0} 621 | --- !u!33 &1202073263 622 | MeshFilter: 623 | m_ObjectHideFlags: 0 624 | m_PrefabParentObject: {fileID: 0} 625 | m_PrefabInternal: {fileID: 0} 626 | m_GameObject: {fileID: 1202073260} 627 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 628 | --- !u!4 &1202073264 629 | Transform: 630 | m_ObjectHideFlags: 0 631 | m_PrefabParentObject: {fileID: 0} 632 | m_PrefabInternal: {fileID: 0} 633 | m_GameObject: {fileID: 1202073260} 634 | m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068} 635 | m_LocalPosition: {x: -0.986408, y: 0, z: 0.97493297} 636 | m_LocalScale: {x: 0.09030952, y: 2.0537598, z: 0.48262885} 637 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 638 | m_Children: [] 639 | m_Father: {fileID: 206870891} 640 | m_RootOrder: 0 641 | --- !u!1001 &1700612093 642 | Prefab: 643 | m_ObjectHideFlags: 0 644 | serializedVersion: 2 645 | m_Modification: 646 | m_TransformParent: {fileID: 0} 647 | m_Modifications: 648 | - target: {fileID: 400000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 649 | propertyPath: m_LocalPosition.x 650 | value: 1 651 | objectReference: {fileID: 0} 652 | - target: {fileID: 400000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 653 | propertyPath: m_LocalPosition.y 654 | value: 0.03 655 | objectReference: {fileID: 0} 656 | - target: {fileID: 400000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 657 | propertyPath: m_LocalPosition.z 658 | value: 0 659 | objectReference: {fileID: 0} 660 | - target: {fileID: 400000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 661 | propertyPath: m_LocalRotation.x 662 | value: -0.7071068 663 | objectReference: {fileID: 0} 664 | - target: {fileID: 400000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 665 | propertyPath: m_LocalRotation.y 666 | value: 0 667 | objectReference: {fileID: 0} 668 | - target: {fileID: 400000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 669 | propertyPath: m_LocalRotation.z 670 | value: 0 671 | objectReference: {fileID: 0} 672 | - target: {fileID: 400000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 673 | propertyPath: m_LocalRotation.w 674 | value: 0.7071068 675 | objectReference: {fileID: 0} 676 | - target: {fileID: 400000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 677 | propertyPath: m_RootOrder 678 | value: 3 679 | objectReference: {fileID: 0} 680 | - target: {fileID: 100000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 681 | propertyPath: m_Name 682 | value: heightmapvis 683 | objectReference: {fileID: 0} 684 | - target: {fileID: 100000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 685 | propertyPath: m_IsActive 686 | value: 1 687 | objectReference: {fileID: 0} 688 | - target: {fileID: 400000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 689 | propertyPath: m_LocalScale.y 690 | value: 1 691 | objectReference: {fileID: 0} 692 | - target: {fileID: 400000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 693 | propertyPath: m_LocalScale.z 694 | value: 1 695 | objectReference: {fileID: 0} 696 | - target: {fileID: 400000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 697 | propertyPath: m_LocalScale.x 698 | value: 1 699 | objectReference: {fileID: 0} 700 | - target: {fileID: 400000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 701 | propertyPath: m_LocalEulerAnglesHint.x 702 | value: -90 703 | objectReference: {fileID: 0} 704 | - target: {fileID: 2300000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 705 | propertyPath: m_Materials.Array.data[0] 706 | value: 707 | objectReference: {fileID: 2100000, guid: f390aa74cc3e4f0499bc187bc3e59172, type: 2} 708 | m_RemovedComponents: [] 709 | m_ParentPrefab: {fileID: 100100000, guid: bc86af40b0c04ce49932d3e85f066403, type: 3} 710 | m_IsPrefabParent: 0 711 | --- !u!1 &1745849501 712 | GameObject: 713 | m_ObjectHideFlags: 0 714 | m_PrefabParentObject: {fileID: 0} 715 | m_PrefabInternal: {fileID: 0} 716 | serializedVersion: 4 717 | m_Component: 718 | - 4: {fileID: 1745849505} 719 | - 33: {fileID: 1745849504} 720 | - 65: {fileID: 1745849503} 721 | - 23: {fileID: 1745849502} 722 | m_Layer: 0 723 | m_Name: Cube (1) 724 | m_TagString: Untagged 725 | m_Icon: {fileID: 0} 726 | m_NavMeshLayer: 0 727 | m_StaticEditorFlags: 0 728 | m_IsActive: 1 729 | --- !u!23 &1745849502 730 | MeshRenderer: 731 | m_ObjectHideFlags: 0 732 | m_PrefabParentObject: {fileID: 0} 733 | m_PrefabInternal: {fileID: 0} 734 | m_GameObject: {fileID: 1745849501} 735 | m_Enabled: 1 736 | m_CastShadows: 1 737 | m_ReceiveShadows: 1 738 | m_MotionVectors: 1 739 | m_LightProbeUsage: 1 740 | m_ReflectionProbeUsage: 1 741 | m_Materials: 742 | - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} 743 | m_SubsetIndices: 744 | m_StaticBatchRoot: {fileID: 0} 745 | m_ProbeAnchor: {fileID: 0} 746 | m_LightProbeVolumeOverride: {fileID: 0} 747 | m_ScaleInLightmap: 1 748 | m_PreserveUVs: 1 749 | m_IgnoreNormalsForChartDetection: 0 750 | m_ImportantGI: 0 751 | m_SelectedWireframeHidden: 0 752 | m_MinimumChartSize: 4 753 | m_AutoUVMaxDistance: 0.5 754 | m_AutoUVMaxAngle: 89 755 | m_LightmapParameters: {fileID: 0} 756 | m_SortingLayerID: 0 757 | m_SortingOrder: 0 758 | --- !u!65 &1745849503 759 | BoxCollider: 760 | m_ObjectHideFlags: 0 761 | m_PrefabParentObject: {fileID: 0} 762 | m_PrefabInternal: {fileID: 0} 763 | m_GameObject: {fileID: 1745849501} 764 | m_Material: {fileID: 0} 765 | m_IsTrigger: 0 766 | m_Enabled: 1 767 | serializedVersion: 2 768 | m_Size: {x: 1, y: 1, z: 1} 769 | m_Center: {x: 0, y: 0, z: 0} 770 | --- !u!33 &1745849504 771 | MeshFilter: 772 | m_ObjectHideFlags: 0 773 | m_PrefabParentObject: {fileID: 0} 774 | m_PrefabInternal: {fileID: 0} 775 | m_GameObject: {fileID: 1745849501} 776 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 777 | --- !u!4 &1745849505 778 | Transform: 779 | m_ObjectHideFlags: 0 780 | m_PrefabParentObject: {fileID: 0} 781 | m_PrefabInternal: {fileID: 0} 782 | m_GameObject: {fileID: 1745849501} 783 | m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068} 784 | m_LocalPosition: {x: 0.96359205, y: 0, z: 0.97493297} 785 | m_LocalScale: {x: 0.09030952, y: 2.0537598, z: 0.48262885} 786 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 787 | m_Children: [] 788 | m_Father: {fileID: 206870891} 789 | m_RootOrder: 1 790 | --- !u!1 &2107468701 791 | GameObject: 792 | m_ObjectHideFlags: 0 793 | m_PrefabParentObject: {fileID: 0} 794 | m_PrefabInternal: {fileID: 0} 795 | serializedVersion: 4 796 | m_Component: 797 | - 4: {fileID: 2107468705} 798 | - 33: {fileID: 2107468704} 799 | - 65: {fileID: 2107468703} 800 | - 23: {fileID: 2107468702} 801 | m_Layer: 0 802 | m_Name: Cube (3) 803 | m_TagString: Untagged 804 | m_Icon: {fileID: 0} 805 | m_NavMeshLayer: 0 806 | m_StaticEditorFlags: 0 807 | m_IsActive: 1 808 | --- !u!23 &2107468702 809 | MeshRenderer: 810 | m_ObjectHideFlags: 0 811 | m_PrefabParentObject: {fileID: 0} 812 | m_PrefabInternal: {fileID: 0} 813 | m_GameObject: {fileID: 2107468701} 814 | m_Enabled: 1 815 | m_CastShadows: 1 816 | m_ReceiveShadows: 1 817 | m_MotionVectors: 1 818 | m_LightProbeUsage: 1 819 | m_ReflectionProbeUsage: 1 820 | m_Materials: 821 | - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} 822 | m_SubsetIndices: 823 | m_StaticBatchRoot: {fileID: 0} 824 | m_ProbeAnchor: {fileID: 0} 825 | m_LightProbeVolumeOverride: {fileID: 0} 826 | m_ScaleInLightmap: 1 827 | m_PreserveUVs: 1 828 | m_IgnoreNormalsForChartDetection: 0 829 | m_ImportantGI: 0 830 | m_SelectedWireframeHidden: 0 831 | m_MinimumChartSize: 4 832 | m_AutoUVMaxDistance: 0.5 833 | m_AutoUVMaxAngle: 89 834 | m_LightmapParameters: {fileID: 0} 835 | m_SortingLayerID: 0 836 | m_SortingOrder: 0 837 | --- !u!65 &2107468703 838 | BoxCollider: 839 | m_ObjectHideFlags: 0 840 | m_PrefabParentObject: {fileID: 0} 841 | m_PrefabInternal: {fileID: 0} 842 | m_GameObject: {fileID: 2107468701} 843 | m_Material: {fileID: 0} 844 | m_IsTrigger: 0 845 | m_Enabled: 1 846 | serializedVersion: 2 847 | m_Size: {x: 1, y: 1, z: 1} 848 | m_Center: {x: 0, y: 0, z: 0} 849 | --- !u!33 &2107468704 850 | MeshFilter: 851 | m_ObjectHideFlags: 0 852 | m_PrefabParentObject: {fileID: 0} 853 | m_PrefabInternal: {fileID: 0} 854 | m_GameObject: {fileID: 2107468701} 855 | m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} 856 | --- !u!4 &2107468705 857 | Transform: 858 | m_ObjectHideFlags: 0 859 | m_PrefabParentObject: {fileID: 0} 860 | m_PrefabInternal: {fileID: 0} 861 | m_GameObject: {fileID: 2107468701} 862 | m_LocalRotation: {x: -0.49706626, y: -0.5029167, z: -0.5029167, w: 0.49706626} 863 | m_LocalPosition: {x: 0, y: 0, z: 0} 864 | m_LocalScale: {x: 0.09030957, y: 2.0537603, z: 0.48262885} 865 | m_LocalEulerAnglesHint: {x: -89.981, y: 0, z: -90.651} 866 | m_Children: [] 867 | m_Father: {fileID: 206870891} 868 | m_RootOrder: 3 869 | -------------------------------------------------------------------------------- /Assets/IndentSurface/_DEMO/snow_example.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a57620e1d43d1a94faeef55f55bab19c 3 | timeCreated: 1482095958 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2017 Marc Wacker 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 0 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_DisableAudio: 0 16 | m_VirtualizeEffects: 1 17 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_SolverIterationCount: 6 13 | m_SolverVelocityIterations: 1 14 | m_QueriesHitTriggers: 1 15 | m_EnableAdaptiveForce: 0 16 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 17 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 1 9 | path: Assets/Scenes/snow_example.unity 10 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 3 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_WebSecurityEmulationEnabled: 0 10 | m_WebSecurityEmulationHostUrl: http://www.mydomain.com/mygame.unity3d 11 | m_DefaultBehaviorMode: 0 12 | m_SpritePackerMode: 2 13 | m_SpritePackerPaddingPower: 1 14 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 15 | m_ProjectGenerationRootNamespace: 16 | -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 7 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | - {fileID: 10782, guid: 0000000000000000f000000000000000, type: 0} 39 | m_PreloadedShaders: [] 40 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 41 | type: 0} 42 | m_ShaderSettings_Tier1: 43 | useCascadedShadowMaps: 1 44 | standardShaderQuality: 2 45 | useReflectionProbeBoxProjection: 1 46 | useReflectionProbeBlending: 1 47 | m_ShaderSettings_Tier2: 48 | useCascadedShadowMaps: 1 49 | standardShaderQuality: 2 50 | useReflectionProbeBoxProjection: 1 51 | useReflectionProbeBlending: 1 52 | m_ShaderSettings_Tier3: 53 | useCascadedShadowMaps: 1 54 | standardShaderQuality: 2 55 | useReflectionProbeBoxProjection: 1 56 | useReflectionProbeBlending: 1 57 | m_BuildTargetShaderSettings: [] 58 | m_LightmapStripping: 0 59 | m_FogStripping: 0 60 | m_LightmapKeepPlain: 1 61 | m_LightmapKeepDirCombined: 1 62 | m_LightmapKeepDirSeparate: 1 63 | m_LightmapKeepDynamicPlain: 1 64 | m_LightmapKeepDynamicDirCombined: 1 65 | m_LightmapKeepDynamicDirSeparate: 1 66 | m_FogKeepLinear: 1 67 | m_FogKeepExp: 1 68 | m_FogKeepExp2: 1 69 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshAreas: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_MinPenetrationForPenalty: 0.01 17 | m_BaumgarteScale: 0.2 18 | m_BaumgarteTimeOfImpactScale: 0.75 19 | m_TimeToSleep: 0.5 20 | m_LinearSleepTolerance: 0.01 21 | m_AngularSleepTolerance: 2 22 | m_QueriesHitTriggers: 1 23 | m_QueriesStartInColliders: 1 24 | m_ChangeStopsCallbacks: 0 25 | m_AlwaysShowColliders: 0 26 | m_ShowColliderSleep: 1 27 | m_ShowColliderContacts: 0 28 | m_ContactArrowScale: 0.2 29 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 30 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 31 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 32 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 33 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 8 7 | productGUID: be9a0f5527e7e444993849c5d47060cc 8 | AndroidProfiler: 0 9 | defaultScreenOrientation: 4 10 | targetDevice: 2 11 | useOnDemandResources: 0 12 | accelerometerFrequency: 60 13 | companyName: DefaultCompany 14 | productName: Wacki.Sandtraces 15 | defaultCursor: {fileID: 0} 16 | cursorHotspot: {x: 0, y: 0} 17 | m_SplashScreenStyle: 0 18 | m_ShowUnitySplashScreen: 1 19 | m_VirtualRealitySplashScreen: {fileID: 0} 20 | defaultScreenWidth: 1024 21 | defaultScreenHeight: 768 22 | defaultScreenWidthWeb: 960 23 | defaultScreenHeightWeb: 600 24 | m_RenderingPath: 1 25 | m_MobileRenderingPath: 1 26 | m_ActiveColorSpace: 0 27 | m_MTRendering: 1 28 | m_MobileMTRendering: 0 29 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 30 | iosShowActivityIndicatorOnLoading: -1 31 | androidShowActivityIndicatorOnLoading: -1 32 | iosAppInBackgroundBehavior: 0 33 | displayResolutionDialog: 1 34 | iosAllowHTTPDownload: 1 35 | allowedAutorotateToPortrait: 1 36 | allowedAutorotateToPortraitUpsideDown: 1 37 | allowedAutorotateToLandscapeRight: 1 38 | allowedAutorotateToLandscapeLeft: 1 39 | useOSAutorotation: 1 40 | use32BitDisplayBuffer: 1 41 | disableDepthAndStencilBuffers: 0 42 | defaultIsFullScreen: 1 43 | defaultIsNativeResolution: 1 44 | runInBackground: 0 45 | captureSingleScreen: 0 46 | Override IPod Music: 0 47 | Prepare IOS For Recording: 0 48 | submitAnalytics: 1 49 | usePlayerLog: 1 50 | bakeCollisionMeshes: 0 51 | forceSingleInstance: 0 52 | resizableWindow: 0 53 | useMacAppStoreValidation: 0 54 | gpuSkinning: 0 55 | graphicsJobs: 0 56 | xboxPIXTextureCapture: 0 57 | xboxEnableAvatar: 0 58 | xboxEnableKinect: 0 59 | xboxEnableKinectAutoTracking: 0 60 | xboxEnableFitness: 0 61 | visibleInBackground: 0 62 | allowFullscreenSwitch: 1 63 | macFullscreenMode: 2 64 | d3d9FullscreenMode: 1 65 | d3d11FullscreenMode: 1 66 | xboxSpeechDB: 0 67 | xboxEnableHeadOrientation: 0 68 | xboxEnableGuest: 0 69 | xboxEnablePIXSampling: 0 70 | n3dsDisableStereoscopicView: 0 71 | n3dsEnableSharedListOpt: 1 72 | n3dsEnableVSync: 0 73 | uiUse16BitDepthBuffer: 0 74 | ignoreAlphaClear: 0 75 | xboxOneResolution: 0 76 | xboxOneMonoLoggingLevel: 0 77 | xboxOneLoggingLevel: 1 78 | ps3SplashScreen: {fileID: 0} 79 | videoMemoryForVertexBuffers: 0 80 | psp2PowerMode: 0 81 | psp2AcquireBGM: 1 82 | wiiUTVResolution: 0 83 | wiiUGamePadMSAA: 1 84 | wiiUSupportsNunchuk: 0 85 | wiiUSupportsClassicController: 0 86 | wiiUSupportsBalanceBoard: 0 87 | wiiUSupportsMotionPlus: 0 88 | wiiUSupportsProController: 0 89 | wiiUAllowScreenCapture: 1 90 | wiiUControllerCount: 0 91 | m_SupportedAspectRatios: 92 | 4:3: 1 93 | 5:4: 1 94 | 16:10: 1 95 | 16:9: 1 96 | Others: 1 97 | bundleIdentifier: com.Company.ProductName 98 | bundleVersion: 1.0 99 | preloadedAssets: [] 100 | metroEnableIndependentInputSource: 0 101 | xboxOneDisableKinectGpuReservation: 0 102 | singlePassStereoRendering: 0 103 | protectGraphicsMemory: 0 104 | AndroidBundleVersionCode: 1 105 | AndroidMinSdkVersion: 9 106 | AndroidPreferredInstallLocation: 1 107 | aotOptions: 108 | apiCompatibilityLevel: 2 109 | stripEngineCode: 1 110 | iPhoneStrippingLevel: 0 111 | iPhoneScriptCallOptimization: 0 112 | iPhoneBuildNumber: 0 113 | ForceInternetPermission: 0 114 | ForceSDCardPermission: 0 115 | CreateWallpaper: 0 116 | APKExpansionFiles: 0 117 | preloadShaders: 0 118 | StripUnusedMeshComponents: 0 119 | VertexChannelCompressionMask: 120 | serializedVersion: 2 121 | m_Bits: 238 122 | iPhoneSdkVersion: 988 123 | iPhoneTargetOSVersion: 24 124 | tvOSSdkVersion: 0 125 | tvOSTargetOSVersion: 900 126 | tvOSRequireExtendedGameController: 0 127 | uIPrerenderedIcon: 0 128 | uIRequiresPersistentWiFi: 0 129 | uIRequiresFullScreen: 1 130 | uIStatusBarHidden: 1 131 | uIExitOnSuspend: 0 132 | uIStatusBarStyle: 0 133 | iPhoneSplashScreen: {fileID: 0} 134 | iPhoneHighResSplashScreen: {fileID: 0} 135 | iPhoneTallHighResSplashScreen: {fileID: 0} 136 | iPhone47inSplashScreen: {fileID: 0} 137 | iPhone55inPortraitSplashScreen: {fileID: 0} 138 | iPhone55inLandscapeSplashScreen: {fileID: 0} 139 | iPadPortraitSplashScreen: {fileID: 0} 140 | iPadHighResPortraitSplashScreen: {fileID: 0} 141 | iPadLandscapeSplashScreen: {fileID: 0} 142 | iPadHighResLandscapeSplashScreen: {fileID: 0} 143 | appleTVSplashScreen: {fileID: 0} 144 | tvOSSmallIconLayers: [] 145 | tvOSLargeIconLayers: [] 146 | tvOSTopShelfImageLayers: [] 147 | iOSLaunchScreenType: 0 148 | iOSLaunchScreenPortrait: {fileID: 0} 149 | iOSLaunchScreenLandscape: {fileID: 0} 150 | iOSLaunchScreenBackgroundColor: 151 | serializedVersion: 2 152 | rgba: 0 153 | iOSLaunchScreenFillPct: 100 154 | iOSLaunchScreenSize: 100 155 | iOSLaunchScreenCustomXibPath: 156 | iOSLaunchScreeniPadType: 0 157 | iOSLaunchScreeniPadImage: {fileID: 0} 158 | iOSLaunchScreeniPadBackgroundColor: 159 | serializedVersion: 2 160 | rgba: 0 161 | iOSLaunchScreeniPadFillPct: 100 162 | iOSLaunchScreeniPadSize: 100 163 | iOSLaunchScreeniPadCustomXibPath: 164 | iOSDeviceRequirements: [] 165 | iOSURLSchemes: [] 166 | appleDeveloperTeamID: 167 | AndroidTargetDevice: 0 168 | AndroidSplashScreenScale: 0 169 | androidSplashScreen: {fileID: 0} 170 | AndroidKeystoreName: 171 | AndroidKeyaliasName: 172 | AndroidTVCompatibility: 1 173 | AndroidIsGame: 1 174 | androidEnableBanner: 1 175 | m_AndroidBanners: 176 | - width: 320 177 | height: 180 178 | banner: {fileID: 0} 179 | androidGamepadSupportLevel: 0 180 | resolutionDialogBanner: {fileID: 0} 181 | m_BuildTargetIcons: 182 | - m_BuildTarget: 183 | m_Icons: 184 | - serializedVersion: 2 185 | m_Icon: {fileID: 0} 186 | m_Width: 128 187 | m_Height: 128 188 | m_BuildTargetBatching: [] 189 | m_BuildTargetGraphicsAPIs: [] 190 | webPlayerTemplate: APPLICATION:Default 191 | m_TemplateCustomTags: {} 192 | wiiUTitleID: 0005000011000000 193 | wiiUGroupID: 00010000 194 | wiiUCommonSaveSize: 4096 195 | wiiUAccountSaveSize: 2048 196 | wiiUOlvAccessKey: 0 197 | wiiUTinCode: 0 198 | wiiUJoinGameId: 0 199 | wiiUJoinGameModeMask: 0000000000000000 200 | wiiUCommonBossSize: 0 201 | wiiUAccountBossSize: 0 202 | wiiUAddOnUniqueIDs: [] 203 | wiiUMainThreadStackSize: 3072 204 | wiiULoaderThreadStackSize: 1024 205 | wiiUSystemHeapSize: 128 206 | wiiUTVStartupScreen: {fileID: 0} 207 | wiiUGamePadStartupScreen: {fileID: 0} 208 | wiiUDrcBufferDisabled: 0 209 | wiiUProfilerLibPath: 210 | actionOnDotNetUnhandledException: 1 211 | enableInternalProfiler: 0 212 | logObjCUncaughtExceptions: 1 213 | enableCrashReportAPI: 0 214 | cameraUsageDescription: 215 | locationUsageDescription: 216 | microphoneUsageDescription: 217 | XboxTitleId: 218 | XboxImageXexPath: 219 | XboxSpaPath: 220 | XboxGenerateSpa: 0 221 | XboxDeployKinectResources: 0 222 | XboxSplashScreen: {fileID: 0} 223 | xboxEnableSpeech: 0 224 | xboxAdditionalTitleMemorySize: 0 225 | xboxDeployKinectHeadOrientation: 0 226 | xboxDeployKinectHeadPosition: 0 227 | ps3TitleConfigPath: 228 | ps3DLCConfigPath: 229 | ps3ThumbnailPath: 230 | ps3BackgroundPath: 231 | ps3SoundPath: 232 | ps3NPAgeRating: 12 233 | ps3TrophyCommId: 234 | ps3NpCommunicationPassphrase: 235 | ps3TrophyPackagePath: 236 | ps3BootCheckMaxSaveGameSizeKB: 128 237 | ps3TrophyCommSig: 238 | ps3SaveGameSlots: 1 239 | ps3TrialMode: 0 240 | ps3VideoMemoryForAudio: 0 241 | ps3EnableVerboseMemoryStats: 0 242 | ps3UseSPUForUmbra: 0 243 | ps3EnableMoveSupport: 1 244 | ps3DisableDolbyEncoding: 0 245 | ps4NPAgeRating: 12 246 | ps4NPTitleSecret: 247 | ps4NPTrophyPackPath: 248 | ps4ParentalLevel: 1 249 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 250 | ps4Category: 0 251 | ps4MasterVersion: 01.00 252 | ps4AppVersion: 01.00 253 | ps4AppType: 0 254 | ps4ParamSfxPath: 255 | ps4VideoOutPixelFormat: 0 256 | ps4VideoOutInitialWidth: 1920 257 | ps4VideoOutReprojectionRate: 120 258 | ps4PronunciationXMLPath: 259 | ps4PronunciationSIGPath: 260 | ps4BackgroundImagePath: 261 | ps4StartupImagePath: 262 | ps4SaveDataImagePath: 263 | ps4SdkOverride: 264 | ps4BGMPath: 265 | ps4ShareFilePath: 266 | ps4ShareOverlayImagePath: 267 | ps4PrivacyGuardImagePath: 268 | ps4NPtitleDatPath: 269 | ps4RemotePlayKeyAssignment: -1 270 | ps4RemotePlayKeyMappingDir: 271 | ps4PlayTogetherPlayerCount: 0 272 | ps4EnterButtonAssignment: 1 273 | ps4ApplicationParam1: 0 274 | ps4ApplicationParam2: 0 275 | ps4ApplicationParam3: 0 276 | ps4ApplicationParam4: 0 277 | ps4DownloadDataSize: 0 278 | ps4GarlicHeapSize: 2048 279 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 280 | ps4UseDebugIl2cppLibs: 0 281 | ps4pnSessions: 1 282 | ps4pnPresence: 1 283 | ps4pnFriends: 1 284 | ps4pnGameCustomData: 1 285 | playerPrefsSupport: 0 286 | ps4UseResolutionFallback: 0 287 | restrictedAudioUsageRights: 0 288 | ps4ReprojectionSupport: 0 289 | ps4UseAudio3dBackend: 0 290 | ps4SocialScreenEnabled: 0 291 | ps4ScriptOptimizationLevel: 3 292 | ps4Audio3dVirtualSpeakerCount: 14 293 | ps4attribCpuUsage: 0 294 | ps4PatchPkgPath: 295 | ps4PatchLatestPkgPath: 296 | ps4PatchChangeinfoPath: 297 | ps4PatchDayOne: 0 298 | ps4attribUserManagement: 0 299 | ps4attribMoveSupport: 0 300 | ps4attrib3DSupport: 0 301 | ps4attribShareSupport: 0 302 | ps4attribExclusiveVR: 0 303 | ps4disableAutoHideSplash: 0 304 | ps4IncludedModules: [] 305 | monoEnv: 306 | psp2Splashimage: {fileID: 0} 307 | psp2NPTrophyPackPath: 308 | psp2NPSupportGBMorGJP: 0 309 | psp2NPAgeRating: 12 310 | psp2NPTitleDatPath: 311 | psp2NPCommsID: 312 | psp2NPCommunicationsID: 313 | psp2NPCommsPassphrase: 314 | psp2NPCommsSig: 315 | psp2ParamSfxPath: 316 | psp2ManualPath: 317 | psp2LiveAreaGatePath: 318 | psp2LiveAreaBackroundPath: 319 | psp2LiveAreaPath: 320 | psp2LiveAreaTrialPath: 321 | psp2PatchChangeInfoPath: 322 | psp2PatchOriginalPackage: 323 | psp2PackagePassword: F69AzBlax3CF3EDNhm3soLBPh71Yexui 324 | psp2KeystoneFile: 325 | psp2MemoryExpansionMode: 0 326 | psp2DRMType: 0 327 | psp2StorageType: 0 328 | psp2MediaCapacity: 0 329 | psp2DLCConfigPath: 330 | psp2ThumbnailPath: 331 | psp2BackgroundPath: 332 | psp2SoundPath: 333 | psp2TrophyCommId: 334 | psp2TrophyPackagePath: 335 | psp2PackagedResourcesPath: 336 | psp2SaveDataQuota: 10240 337 | psp2ParentalLevel: 1 338 | psp2ShortTitle: Not Set 339 | psp2ContentID: IV0000-ABCD12345_00-0123456789ABCDEF 340 | psp2Category: 0 341 | psp2MasterVersion: 01.00 342 | psp2AppVersion: 01.00 343 | psp2TVBootMode: 0 344 | psp2EnterButtonAssignment: 2 345 | psp2TVDisableEmu: 0 346 | psp2AllowTwitterDialog: 1 347 | psp2Upgradable: 0 348 | psp2HealthWarning: 0 349 | psp2UseLibLocation: 0 350 | psp2InfoBarOnStartup: 0 351 | psp2InfoBarColor: 0 352 | psp2UseDebugIl2cppLibs: 0 353 | psmSplashimage: {fileID: 0} 354 | spritePackerPolicy: 355 | scriptingDefineSymbols: {} 356 | metroPackageName: Wacki.Sandtraces 357 | metroPackageVersion: 358 | metroCertificatePath: 359 | metroCertificatePassword: 360 | metroCertificateSubject: 361 | metroCertificateIssuer: 362 | metroCertificateNotAfter: 0000000000000000 363 | metroApplicationDescription: Wacki.Sandtraces 364 | wsaImages: {} 365 | metroTileShortName: 366 | metroCommandLineArgsFile: 367 | metroTileShowName: 0 368 | metroMediumTileShowName: 0 369 | metroLargeTileShowName: 0 370 | metroWideTileShowName: 0 371 | metroDefaultTileSize: 1 372 | metroTileForegroundText: 1 373 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 374 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 375 | a: 1} 376 | metroSplashScreenUseBackgroundColor: 0 377 | platformCapabilities: {} 378 | metroFTAName: 379 | metroFTAFileTypes: [] 380 | metroProtocolName: 381 | metroCompilationOverrides: 1 382 | tizenProductDescription: 383 | tizenProductURL: 384 | tizenSigningProfileName: 385 | tizenGPSPermissions: 0 386 | tizenMicrophonePermissions: 0 387 | tizenMinOSVersion: 0 388 | n3dsUseExtSaveData: 0 389 | n3dsCompressStaticMem: 1 390 | n3dsExtSaveDataNumber: 0x12345 391 | n3dsStackSize: 131072 392 | n3dsTargetPlatform: 2 393 | n3dsRegion: 7 394 | n3dsMediaSize: 0 395 | n3dsLogoStyle: 3 396 | n3dsTitle: GameName 397 | n3dsProductCode: 398 | n3dsApplicationId: 0xFF3FF 399 | stvDeviceAddress: 400 | stvProductDescription: 401 | stvProductAuthor: 402 | stvProductAuthorEmail: 403 | stvProductLink: 404 | stvProductCategory: 0 405 | XboxOneProductId: 406 | XboxOneUpdateKey: 407 | XboxOneSandboxId: 408 | XboxOneContentId: 409 | XboxOneTitleId: 410 | XboxOneSCId: 411 | XboxOneGameOsOverridePath: 412 | XboxOnePackagingOverridePath: 413 | XboxOneAppManifestOverridePath: 414 | XboxOnePackageEncryption: 0 415 | XboxOnePackageUpdateGranularity: 2 416 | XboxOneDescription: 417 | XboxOneIsContentPackage: 0 418 | XboxOneEnableGPUVariability: 0 419 | XboxOneSockets: {} 420 | XboxOneSplashScreen: {fileID: 0} 421 | XboxOneAllowedProductIds: [] 422 | XboxOnePersistentLocalStorageSize: 0 423 | intPropertyNames: 424 | - Android::ScriptingBackend 425 | - Standalone::ScriptingBackend 426 | - WebPlayer::ScriptingBackend 427 | Android::ScriptingBackend: 0 428 | Standalone::ScriptingBackend: 0 429 | WebPlayer::ScriptingBackend: 0 430 | boolPropertyNames: 431 | - Android::VR::enable 432 | - Metro::VR::enable 433 | - N3DS::VR::enable 434 | - PS3::VR::enable 435 | - PS4::VR::enable 436 | - PSM::VR::enable 437 | - PSP2::VR::enable 438 | - SamsungTV::VR::enable 439 | - Standalone::VR::enable 440 | - Tizen::VR::enable 441 | - WebGL::VR::enable 442 | - WebPlayer::VR::enable 443 | - WiiU::VR::enable 444 | - Xbox360::VR::enable 445 | - XboxOne::VR::enable 446 | - XboxOne::enus 447 | - iOS::VR::enable 448 | - tvOS::VR::enable 449 | Android::VR::enable: 0 450 | Metro::VR::enable: 0 451 | N3DS::VR::enable: 0 452 | PS3::VR::enable: 0 453 | PS4::VR::enable: 0 454 | PSM::VR::enable: 0 455 | PSP2::VR::enable: 0 456 | SamsungTV::VR::enable: 0 457 | Standalone::VR::enable: 0 458 | Tizen::VR::enable: 0 459 | WebGL::VR::enable: 0 460 | WebPlayer::VR::enable: 0 461 | WiiU::VR::enable: 0 462 | Xbox360::VR::enable: 0 463 | XboxOne::VR::enable: 0 464 | XboxOne::enus: 1 465 | iOS::VR::enable: 0 466 | tvOS::VR::enable: 0 467 | stringPropertyNames: 468 | - Analytics_ServiceEnabled::Analytics_ServiceEnabled 469 | - Build_ServiceEnabled::Build_ServiceEnabled 470 | - Collab_ServiceEnabled::Collab_ServiceEnabled 471 | - ErrorHub_ServiceEnabled::ErrorHub_ServiceEnabled 472 | - Game_Performance_ServiceEnabled::Game_Performance_ServiceEnabled 473 | - Hub_ServiceEnabled::Hub_ServiceEnabled 474 | - Purchasing_ServiceEnabled::Purchasing_ServiceEnabled 475 | - UNet_ServiceEnabled::UNet_ServiceEnabled 476 | - Unity_Ads_ServiceEnabled::Unity_Ads_ServiceEnabled 477 | Analytics_ServiceEnabled::Analytics_ServiceEnabled: False 478 | Build_ServiceEnabled::Build_ServiceEnabled: False 479 | Collab_ServiceEnabled::Collab_ServiceEnabled: False 480 | ErrorHub_ServiceEnabled::ErrorHub_ServiceEnabled: False 481 | Game_Performance_ServiceEnabled::Game_Performance_ServiceEnabled: False 482 | Hub_ServiceEnabled::Hub_ServiceEnabled: False 483 | Purchasing_ServiceEnabled::Purchasing_ServiceEnabled: False 484 | UNet_ServiceEnabled::UNet_ServiceEnabled: False 485 | Unity_Ads_ServiceEnabled::Unity_Ads_ServiceEnabled: False 486 | vectorPropertyNames: 487 | - Android::VR::enabledDevices 488 | - Metro::VR::enabledDevices 489 | - N3DS::VR::enabledDevices 490 | - PS3::VR::enabledDevices 491 | - PS4::VR::enabledDevices 492 | - PSM::VR::enabledDevices 493 | - PSP2::VR::enabledDevices 494 | - SamsungTV::VR::enabledDevices 495 | - Standalone::VR::enabledDevices 496 | - Tizen::VR::enabledDevices 497 | - WebGL::VR::enabledDevices 498 | - WebPlayer::VR::enabledDevices 499 | - WiiU::VR::enabledDevices 500 | - Xbox360::VR::enabledDevices 501 | - XboxOne::VR::enabledDevices 502 | - iOS::VR::enabledDevices 503 | - tvOS::VR::enabledDevices 504 | Android::VR::enabledDevices: 505 | - Oculus 506 | Metro::VR::enabledDevices: [] 507 | N3DS::VR::enabledDevices: [] 508 | PS3::VR::enabledDevices: [] 509 | PS4::VR::enabledDevices: 510 | - PlayStationVR 511 | PSM::VR::enabledDevices: [] 512 | PSP2::VR::enabledDevices: [] 513 | SamsungTV::VR::enabledDevices: [] 514 | Standalone::VR::enabledDevices: 515 | - Oculus 516 | Tizen::VR::enabledDevices: [] 517 | WebGL::VR::enabledDevices: [] 518 | WebPlayer::VR::enabledDevices: [] 519 | WiiU::VR::enabledDevices: [] 520 | Xbox360::VR::enabledDevices: [] 521 | XboxOne::VR::enabledDevices: [] 522 | iOS::VR::enabledDevices: [] 523 | tvOS::VR::enabledDevices: [] 524 | cloudProjectId: 525 | projectName: 526 | organizationId: 527 | cloudEnabled: 0 528 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 5 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Fastest 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 2 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | blendWeights: 1 21 | textureQuality: 1 22 | anisotropicTextures: 0 23 | antiAliasing: 0 24 | softParticles: 0 25 | softVegetation: 0 26 | realtimeReflectionProbes: 0 27 | billboardsFaceCameraPosition: 0 28 | vSyncCount: 0 29 | lodBias: 0.3 30 | maximumLODLevel: 0 31 | particleRaycastBudget: 4 32 | asyncUploadTimeSlice: 2 33 | asyncUploadBufferSize: 4 34 | excludedTargetPlatforms: [] 35 | - serializedVersion: 2 36 | name: Fast 37 | pixelLightCount: 0 38 | shadows: 0 39 | shadowResolution: 0 40 | shadowProjection: 1 41 | shadowCascades: 1 42 | shadowDistance: 20 43 | shadowNearPlaneOffset: 2 44 | shadowCascade2Split: 0.33333334 45 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 46 | blendWeights: 2 47 | textureQuality: 0 48 | anisotropicTextures: 0 49 | antiAliasing: 0 50 | softParticles: 0 51 | softVegetation: 0 52 | realtimeReflectionProbes: 0 53 | billboardsFaceCameraPosition: 0 54 | vSyncCount: 0 55 | lodBias: 0.4 56 | maximumLODLevel: 0 57 | particleRaycastBudget: 16 58 | asyncUploadTimeSlice: 2 59 | asyncUploadBufferSize: 4 60 | excludedTargetPlatforms: [] 61 | - serializedVersion: 2 62 | name: Simple 63 | pixelLightCount: 1 64 | shadows: 1 65 | shadowResolution: 0 66 | shadowProjection: 1 67 | shadowCascades: 1 68 | shadowDistance: 20 69 | shadowNearPlaneOffset: 2 70 | shadowCascade2Split: 0.33333334 71 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 72 | blendWeights: 2 73 | textureQuality: 0 74 | anisotropicTextures: 1 75 | antiAliasing: 0 76 | softParticles: 0 77 | softVegetation: 0 78 | realtimeReflectionProbes: 0 79 | billboardsFaceCameraPosition: 0 80 | vSyncCount: 1 81 | lodBias: 0.7 82 | maximumLODLevel: 0 83 | particleRaycastBudget: 64 84 | asyncUploadTimeSlice: 2 85 | asyncUploadBufferSize: 4 86 | excludedTargetPlatforms: [] 87 | - serializedVersion: 2 88 | name: Good 89 | pixelLightCount: 2 90 | shadows: 2 91 | shadowResolution: 1 92 | shadowProjection: 1 93 | shadowCascades: 2 94 | shadowDistance: 40 95 | shadowNearPlaneOffset: 2 96 | shadowCascade2Split: 0.33333334 97 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 98 | blendWeights: 2 99 | textureQuality: 0 100 | anisotropicTextures: 1 101 | antiAliasing: 0 102 | softParticles: 0 103 | softVegetation: 1 104 | realtimeReflectionProbes: 1 105 | billboardsFaceCameraPosition: 1 106 | vSyncCount: 1 107 | lodBias: 1 108 | maximumLODLevel: 0 109 | particleRaycastBudget: 256 110 | asyncUploadTimeSlice: 2 111 | asyncUploadBufferSize: 4 112 | excludedTargetPlatforms: [] 113 | - serializedVersion: 2 114 | name: Beautiful 115 | pixelLightCount: 3 116 | shadows: 2 117 | shadowResolution: 2 118 | shadowProjection: 1 119 | shadowCascades: 2 120 | shadowDistance: 70 121 | shadowNearPlaneOffset: 2 122 | shadowCascade2Split: 0.33333334 123 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 124 | blendWeights: 4 125 | textureQuality: 0 126 | anisotropicTextures: 2 127 | antiAliasing: 2 128 | softParticles: 1 129 | softVegetation: 1 130 | realtimeReflectionProbes: 1 131 | billboardsFaceCameraPosition: 1 132 | vSyncCount: 1 133 | lodBias: 1.5 134 | maximumLODLevel: 0 135 | particleRaycastBudget: 1024 136 | asyncUploadTimeSlice: 2 137 | asyncUploadBufferSize: 4 138 | excludedTargetPlatforms: [] 139 | - serializedVersion: 2 140 | name: Fantastic 141 | pixelLightCount: 4 142 | shadows: 2 143 | shadowResolution: 2 144 | shadowProjection: 1 145 | shadowCascades: 4 146 | shadowDistance: 10 147 | shadowNearPlaneOffset: 2 148 | shadowCascade2Split: 0.33333334 149 | shadowCascade4Split: {x: 0.06666667, y: 0.19999999, z: 0.46666664} 150 | blendWeights: 4 151 | textureQuality: 0 152 | anisotropicTextures: 2 153 | antiAliasing: 2 154 | softParticles: 1 155 | softVegetation: 1 156 | realtimeReflectionProbes: 1 157 | billboardsFaceCameraPosition: 1 158 | vSyncCount: 1 159 | lodBias: 2 160 | maximumLODLevel: 0 161 | particleRaycastBudget: 4096 162 | asyncUploadTimeSlice: 2 163 | asyncUploadBufferSize: 4 164 | excludedTargetPlatforms: [] 165 | m_PerPlatformDefaultQuality: 166 | Android: 2 167 | Nintendo 3DS: 5 168 | PS3: 5 169 | PS4: 5 170 | PSM: 5 171 | PSP2: 2 172 | Samsung TV: 2 173 | Standalone: 5 174 | Tizen: 2 175 | Web: 5 176 | WebGL: 3 177 | WiiU: 5 178 | Windows Store Apps: 5 179 | XBOX360: 5 180 | XboxOne: 5 181 | iPhone: 2 182 | tvOS: 5 183 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | -------------------------------------------------------------------------------- /ProjectSettings/UnityAdsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!292 &1 4 | UnityAdsSettings: 5 | m_ObjectHideFlags: 0 6 | m_Enabled: 0 7 | m_InitializeOnStartup: 1 8 | m_TestMode: 0 9 | m_EnabledPlatforms: 4294967295 10 | m_IosGameId: 11 | m_AndroidGameId: 12 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | m_Enabled: 0 7 | m_TestMode: 0 8 | m_TestEventUrl: 9 | m_TestConfigUrl: 10 | CrashReportingSettings: 11 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes 12 | m_Enabled: 0 13 | UnityPurchasingSettings: 14 | m_Enabled: 0 15 | m_TestMode: 0 16 | UnityAnalyticsSettings: 17 | m_Enabled: 0 18 | m_InitializeOnStartup: 1 19 | m_TestMode: 0 20 | m_TestEventUrl: 21 | m_TestConfigUrl: 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Unity-IndentShader 2 | 3 | [http://wacki.me/blog/2017/01/dynamic-snow-sand-shader-for-unity/](http://wacki.me/blog/2017/01/dynamic-snow-sand-shader-for-unity/) 4 | 5 | ![](http://wacki.me/assets/posts/images/2017-01-snow/snow.png) --------------------------------------------------------------------------------