Added surface shaders for additive blending,emission and cutoff, also upgraded standard curved shader massively
Fixed shadows with shader, optimized few things for mobiles, added CulledCamera script to prevent meshes to dissapear in front of camera WorldCurver now lives in GameSession, from which it will be controlled
This commit is contained in:
parent
fff9c8c5cd
commit
6889a11109
@ -8,7 +8,7 @@ Material:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: m_jammo_eyes
|
||||
m_Shader: {fileID: 4800000, guid: 73ef4de7c429719438a73d771100db7c, type: 3}
|
||||
m_Shader: {fileID: 4800000, guid: 7ff64e56b725c9546ad05c7cb85f3c02, type: 3}
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords:
|
||||
- _ALPHABLEND_ON
|
||||
@ -39,7 +39,7 @@ Material:
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Texture: {fileID: 2800000, guid: 09beef63c41c25b458d2f95fdfd9e0e5, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
@ -69,9 +69,9 @@ Material:
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 10
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0
|
||||
- _Glossiness: 1
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Metallic: 1
|
||||
- _Mode: 2
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
@ -81,6 +81,6 @@ Material:
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 0
|
||||
m_Colors:
|
||||
- _Color: {r: 0.9339623, g: 0.9339623, b: 0.9339623, a: 1}
|
||||
- _Color: {r: 0.8, g: 0.8, b: 0.8, a: 1}
|
||||
- _EmissionColor: {r: 0.11501924, g: 1.6443393, b: 2.2167342, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
|
@ -69,7 +69,7 @@ Material:
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0.5
|
||||
- _Glossiness: 0.75
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 1
|
||||
- _Mode: 0
|
||||
|
@ -63,6 +63,10 @@ Material:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SmoothnessMap:
|
||||
m_Texture: {fileID: 2800000, guid: 6a6149e88ecdb41e4befd20aa542d55b, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SpecGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
@ -100,7 +104,7 @@ Material:
|
||||
- _GlossMapScale: 0.5
|
||||
- _Glossiness: 0.5
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Metallic: 0.75
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
@ -117,7 +121,7 @@ Material:
|
||||
m_Colors:
|
||||
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _Color: {r: 0.8, g: 0.8, b: 0.8, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0.6634807, b: 0.8018868, a: 1}
|
||||
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
--- !u!114 &2245020145482595637
|
||||
|
@ -63,6 +63,10 @@ Material:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SmoothnessMap:
|
||||
m_Texture: {fileID: 2800000, guid: 1dcf5d39375d84aa092be178f578c67e, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SpecGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
@ -95,7 +99,7 @@ Material:
|
||||
- _GlossMapScale: 0.5
|
||||
- _Glossiness: 0.5
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Metallic: 0.75
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
|
@ -59,6 +59,10 @@ Material:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SmoothnessMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _TerrainHolesTexture:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
@ -70,7 +74,7 @@ Material:
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 1
|
||||
- _Glossiness: 0
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
|
@ -8,7 +8,7 @@ Material:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: blue emission
|
||||
m_Shader: {fileID: 4800000, guid: 73ef4de7c429719438a73d771100db7c, type: 3}
|
||||
m_Shader: {fileID: 4800000, guid: 7ff64e56b725c9546ad05c7cb85f3c02, type: 3}
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords:
|
||||
- _EMISSION
|
||||
@ -57,6 +57,10 @@ Material:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SmoothnessMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _TerrainHolesTexture:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
|
@ -8,7 +8,7 @@ Material:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: glass
|
||||
m_Shader: {fileID: 4800000, guid: 73ef4de7c429719438a73d771100db7c, type: 3}
|
||||
m_Shader: {fileID: 4800000, guid: 979d9542a662ed2439a160339d0432e6, type: 3}
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords:
|
||||
- _ALPHAPREMULTIPLY_ON
|
||||
@ -58,6 +58,10 @@ Material:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SmoothnessMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
@ -77,6 +81,6 @@ Material:
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 0
|
||||
m_Colors:
|
||||
- _Color: {r: 0.102941155, g: 0.102941155, b: 0.102941155, a: 0.247}
|
||||
- _Color: {r: 0.11605554, g: 0.1476411, b: 0.1509434, a: 0.36078432}
|
||||
- _EmissionColor: {r: 0.032, g: 0.032, b: 0.032, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
|
@ -8,12 +8,11 @@ Material:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: lattice floor
|
||||
m_Shader: {fileID: 4800000, guid: 73ef4de7c429719438a73d771100db7c, type: 3}
|
||||
m_Shader: {fileID: 4800000, guid: 7ff64e56b725c9546ad05c7cb85f3c02, type: 3}
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords:
|
||||
- _ALPHATEST_ON
|
||||
- _EMISSION
|
||||
m_LightmapFlags: 1
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
@ -39,7 +38,7 @@ Material:
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Texture: {fileID: 2800000, guid: a2439a5526984d64c804eae4d1d65b8a, type: 3}
|
||||
m_Scale: {x: 3, y: 3}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
@ -58,16 +57,21 @@ Material:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SmoothnessMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _AlphaCutoff: 0.501
|
||||
- _BumpScale: 0.1
|
||||
- _Cutoff: 0.5
|
||||
- _Cutoff: 0.495
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0.31
|
||||
- _Glossiness: 1
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0.081
|
||||
- _Metallic: 0.235
|
||||
- _Mode: 1
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
@ -77,6 +81,6 @@ Material:
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 0.25, g: 0.25, b: 0.25, a: 1}
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
|
@ -8,7 +8,7 @@ Material:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: lattice
|
||||
m_Shader: {fileID: 4800000, guid: 73ef4de7c429719438a73d771100db7c, type: 3}
|
||||
m_Shader: {fileID: 4800000, guid: 7ff64e56b725c9546ad05c7cb85f3c02, type: 3}
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords:
|
||||
- _ALPHATEST_ON
|
||||
@ -39,7 +39,7 @@ Material:
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Texture: {fileID: 2800000, guid: a2439a5526984d64c804eae4d1d65b8a, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
@ -58,6 +58,10 @@ Material:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SmoothnessMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SpecGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
@ -69,7 +73,7 @@ Material:
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0.5
|
||||
- _Glossiness: 0.479
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 1
|
||||
@ -82,6 +86,6 @@ Material:
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0.87115884, b: 1, a: 1}
|
||||
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
|
@ -8,7 +8,7 @@ Material:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: orange emission
|
||||
m_Shader: {fileID: 4800000, guid: 73ef4de7c429719438a73d771100db7c, type: 3}
|
||||
m_Shader: {fileID: 4800000, guid: 7ff64e56b725c9546ad05c7cb85f3c02, type: 3}
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords:
|
||||
- _EMISSION
|
||||
@ -57,6 +57,10 @@ Material:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SmoothnessMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
|
@ -2,14 +2,17 @@
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: screen
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ShaderKeywords:
|
||||
m_LightmapFlags: 5
|
||||
m_ValidKeywords:
|
||||
- _EMISSION
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 1
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
@ -54,19 +57,25 @@ Material:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0.5
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
|
@ -8,7 +8,7 @@ Material:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: white emision
|
||||
m_Shader: {fileID: 4800000, guid: 73ef4de7c429719438a73d771100db7c, type: 3}
|
||||
m_Shader: {fileID: 4800000, guid: 7ff64e56b725c9546ad05c7cb85f3c02, type: 3}
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords:
|
||||
- _EMISSION
|
||||
@ -57,6 +57,10 @@ Material:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SmoothnessMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
|
@ -2,14 +2,19 @@
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: window
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ShaderKeywords: _ALPHAPREMULTIPLY_ON _METALLICGLOSSMAP
|
||||
m_LightmapFlags: 5
|
||||
m_ValidKeywords:
|
||||
- _ALPHAPREMULTIPLY_ON
|
||||
- _EMISSION
|
||||
- _METALLICGLOSSMAP
|
||||
m_InvalidKeywords: []
|
||||
m_LightmapFlags: 1
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: 3000
|
||||
@ -55,19 +60,25 @@ Material:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 10
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0.063
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0.396
|
||||
- _Mode: 3
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 0
|
||||
m_Colors:
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
|
@ -59,6 +59,10 @@ Material:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SmoothnessMap:
|
||||
m_Texture: {fileID: 2800000, guid: b3513414a8f73b4419fbc613d3fe7186, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
@ -66,9 +70,9 @@ Material:
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 0.574
|
||||
- _Glossiness: 0.5
|
||||
- _Glossiness: 0.574
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Metallic: 0.611
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
@ -79,5 +83,5 @@ Material:
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 1.882353, b: 2.9960785, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0.9411765, b: 1.4980392, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
|
@ -8,13 +8,14 @@ Material:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: laser
|
||||
m_Shader: {fileID: 4800000, guid: 73ef4de7c429719438a73d771100db7c, type: 3}
|
||||
m_Shader: {fileID: 4800000, guid: 979d9542a662ed2439a160339d0432e6, type: 3}
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords: []
|
||||
m_InvalidKeywords:
|
||||
- _ALPHAPREMULTIPLY_ON
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
m_CustomRenderQueue: 3001
|
||||
stringTagMap: {}
|
||||
disabledShaderPasses: []
|
||||
m_SavedProperties:
|
||||
@ -24,16 +25,63 @@ Material:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailAlbedoMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailMask:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNormalMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: df9101368644d6049afb1b18bd986b6a, type: 3}
|
||||
m_Scale: {x: -0.31, y: 1}
|
||||
m_Offset: {x: -1.86, y: 0}
|
||||
- _MetallicGlossMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _OcclusionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _ParallaxMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SmoothnessMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _Glossiness: 0
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 10
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 1
|
||||
- _GlossyReflections: 1
|
||||
- _InvFade: 1.53
|
||||
- _Metallic: 0
|
||||
- _Metallic: 1
|
||||
- _Mode: 3
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 0
|
||||
m_Colors:
|
||||
- _Color: {r: 0, g: 1, b: 0.85649514, a: 1}
|
||||
- _EmissionColor: {r: 0.018244913, g: 0.01886791, b: 0.018843265, a: 1}
|
||||
- _TintColor: {r: 0, g: 1, b: 0.34212565, a: 0.5019608}
|
||||
m_BuildTextureStacks: []
|
||||
|
@ -2,14 +2,17 @@
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
serializedVersion: 8
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: base color
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ShaderKeywords:
|
||||
m_LightmapFlags: 5
|
||||
m_Shader: {fileID: 4800000, guid: 73ef4de7c429719438a73d771100db7c, type: 3}
|
||||
m_ValidKeywords: []
|
||||
m_InvalidKeywords:
|
||||
- _EMISSION
|
||||
m_LightmapFlags: 1
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
m_CustomRenderQueue: -1
|
||||
@ -54,19 +57,29 @@ Material:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _SmoothnessMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Ints: []
|
||||
m_Floats:
|
||||
- _BumpScale: 1
|
||||
- _Cutoff: 0.5
|
||||
- _DetailNormalMapScale: 1
|
||||
- _DstBlend: 0
|
||||
- _GlossMapScale: 1
|
||||
- _Glossiness: 0.5
|
||||
- _GlossyReflections: 1
|
||||
- _Metallic: 0
|
||||
- _Mode: 0
|
||||
- _OcclusionStrength: 1
|
||||
- _Parallax: 0.02
|
||||
- _SmoothnessTextureChannel: 0
|
||||
- _SpecularHighlights: 1
|
||||
- _SrcBlend: 1
|
||||
- _UVSec: 0
|
||||
- _ZWrite: 1
|
||||
m_Colors:
|
||||
- _Color: {r: 0.8, g: 0.8, b: 0.8, a: 1}
|
||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
|
@ -17,7 +17,7 @@ GameObject:
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 126
|
||||
m_StaticEditorFlags: 2147483647
|
||||
m_IsActive: 1
|
||||
--- !u!4 &96461661196683943
|
||||
Transform:
|
||||
@ -114,7 +114,7 @@ GameObject:
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 126
|
||||
m_StaticEditorFlags: 2147483647
|
||||
m_IsActive: 0
|
||||
--- !u!4 &96461661196762209
|
||||
Transform:
|
||||
@ -457,6 +457,89 @@ BoxCollider:
|
||||
serializedVersion: 2
|
||||
m_Size: {x: 0.7620674, y: 0.18695296, z: 2.2054472}
|
||||
m_Center: {x: 0, y: -0.09347617, z: 0}
|
||||
--- !u!1 &967114763899392334
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 5794146910487992832}
|
||||
- component: {fileID: 5379493833069964568}
|
||||
- component: {fileID: 4105733245124010983}
|
||||
m_Layer: 0
|
||||
m_Name: window_big_plug
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 2147483647
|
||||
m_IsActive: 1
|
||||
--- !u!4 &5794146910487992832
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 967114763899392334}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3461697159033785630}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!33 &5379493833069964568
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 967114763899392334}
|
||||
m_Mesh: {fileID: 4300000, guid: f3bf6b5a90134a44c9aa28b43b484d59, type: 3}
|
||||
--- !u!23 &4105733245124010983
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 967114763899392334}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 2
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 4294967295
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 10de6384af0c3b54e8166f9c3f936e88, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 0
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 1
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_AdditionalVertexStreams: {fileID: 0}
|
||||
--- !u!1 &1000147013398868680
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -483,7 +566,7 @@ Transform:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1000147013398868680}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -8.0137814e-14, y: -2.0533345, z: 0.0000006690611}
|
||||
m_LocalPosition: {x: 0.000000029762807, y: -2.0533345, z: -0.14999934}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
@ -541,6 +624,79 @@ MeshRenderer:
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_AdditionalVertexStreams: {fileID: 0}
|
||||
--- !u!1 &1337314713710354573
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3461697159033785630}
|
||||
- component: {fileID: 5048642992787647946}
|
||||
- component: {fileID: 8498168852685468885}
|
||||
m_Layer: 0
|
||||
m_Name: window_big_complete (5)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 2147483647
|
||||
m_IsActive: 1
|
||||
--- !u!4 &3461697159033785630
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1337314713710354573}
|
||||
m_LocalRotation: {x: 0, y: 0.7071068, z: 0, w: 0.7071068}
|
||||
m_LocalPosition: {x: -5.999999, y: 0, z: 7.8378}
|
||||
m_LocalScale: {x: 4.0053, y: 1.5, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 8653914011699859131}
|
||||
- {fileID: 8787569703303353622}
|
||||
- {fileID: 5794146910487992832}
|
||||
m_Father: {fileID: 5613211205117028343}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 90, z: 0}
|
||||
--- !u!64 &5048642992787647946
|
||||
MeshCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1337314713710354573}
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 4
|
||||
m_Convex: 0
|
||||
m_CookingOptions: 30
|
||||
m_Mesh: {fileID: 4300000, guid: e7280697ebb11a7429fff43396523803, type: 3}
|
||||
--- !u!205 &8498168852685468885
|
||||
LODGroup:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1337314713710354573}
|
||||
serializedVersion: 2
|
||||
m_LocalReferencePoint: {x: -0.06442261, y: 1.9812827, z: -0.7792165}
|
||||
m_Size: 4.128845
|
||||
m_FadeMode: 1
|
||||
m_AnimateCrossFading: 1
|
||||
m_LastLODIsBillboard: 0
|
||||
m_LODs:
|
||||
- screenRelativeHeight: 0.096379414
|
||||
fadeTransitionWidth: 0
|
||||
renderers:
|
||||
- renderer: {fileID: 5632862060286655963}
|
||||
- screenRelativeHeight: 0.037201747
|
||||
fadeTransitionWidth: 0
|
||||
renderers:
|
||||
- renderer: {fileID: 3842216993201303910}
|
||||
m_Enabled: 1
|
||||
--- !u!1 &1553052503747215765
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -567,7 +723,7 @@ Transform:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1553052503747215765}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -8.013781e-14, y: -2.053334, z: 0.0000006690609}
|
||||
m_LocalPosition: {x: 0.000000059525696, y: -2.053334, z: -0.2999993}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
@ -682,8 +838,8 @@ Transform:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1762872440845920169}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -8.0137814e-14, y: -2.0533345, z: 0.0000006690611}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_LocalPosition: {x: -7.81597e-14, y: -2.0533345, z: 0.0000006556511}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1.1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3698448241964440323}
|
||||
@ -857,7 +1013,7 @@ GameObject:
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 2147483647
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!4 &1930304146026046311
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -938,6 +1094,92 @@ MeshCollider:
|
||||
m_Convex: 0
|
||||
m_CookingOptions: 30
|
||||
m_Mesh: {fileID: 4300000, guid: 7684ef4acf4f4964182a38e4bcef0b06, type: 3}
|
||||
--- !u!1 &2080141730233105037
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8653914011699859131}
|
||||
- component: {fileID: 1565455466787216283}
|
||||
- component: {fileID: 5632862060286655963}
|
||||
m_Layer: 0
|
||||
m_Name: window_big_LOD0
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 2147483647
|
||||
m_IsActive: 1
|
||||
--- !u!4 &8653914011699859131
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2080141730233105037}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3461697159033785630}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!33 &1565455466787216283
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2080141730233105037}
|
||||
m_Mesh: {fileID: 4300000, guid: c93a7b6fab490314f9f3471aa2616c70, type: 3}
|
||||
--- !u!23 &5632862060286655963
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2080141730233105037}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 2
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 4294967295
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 10de6384af0c3b54e8166f9c3f936e88, type: 2}
|
||||
- {fileID: 2100000, guid: 6b6dfd77776c54a4781ec8cab4d87860, type: 2}
|
||||
- {fileID: 2100000, guid: 0f4853191d321d748b1f95a97d7b37f4, type: 2}
|
||||
- {fileID: 2100000, guid: 2ce01831e9f3ae441bb48623e5fbe0c0, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_AdditionalVertexStreams: {fileID: 0}
|
||||
--- !u!1 &2225319013170844455
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -1035,8 +1277,8 @@ Transform:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2417146101534746626}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -8.013781e-14, y: -2.053334, z: 0.0000006690609}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_LocalPosition: {x: -7.81597e-14, y: -2.053334, z: 0.0000006556511}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1.1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1481197180270425536}
|
||||
@ -1347,6 +1589,89 @@ MeshRenderer:
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_AdditionalVertexStreams: {fileID: 0}
|
||||
--- !u!1 &4820094379754724255
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4820094379754817471}
|
||||
- component: {fileID: 4820094379753523103}
|
||||
- component: {fileID: 4820094379752523103}
|
||||
m_Layer: 0
|
||||
m_Name: blank_wall_A
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &4820094379754817471
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4820094379754724255}
|
||||
m_LocalRotation: {x: 0.7071068, y: 0, z: 0, w: 0.7071068}
|
||||
m_LocalPosition: {x: -0.02000004, y: 6.05, z: -0.04}
|
||||
m_LocalScale: {x: 3.6, y: 4, z: 0.16}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 5613211205117028343}
|
||||
m_RootOrder: 20
|
||||
m_LocalEulerAnglesHint: {x: 90, y: 0, z: 0}
|
||||
--- !u!33 &4820094379753523103
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4820094379754724255}
|
||||
m_Mesh: {fileID: 4300000, guid: f956c720d66359e44b3d685035075942, type: 3}
|
||||
--- !u!23 &4820094379752523103
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4820094379754724255}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 3
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 2
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 1cf3cfed14637cd42a0ad3f801ebdb71, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 1
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_AdditionalVertexStreams: {fileID: 0}
|
||||
--- !u!1 &4965981231653170154
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -1374,7 +1699,7 @@ Transform:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4965981231653170154}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 4.074, y: 6.015, z: 7.9138002}
|
||||
m_LocalPosition: {x: 3.6239998, y: 6.015, z: 7.9138002}
|
||||
m_LocalScale: {x: 1, y: 1, z: 4.0053}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
@ -1541,6 +1866,92 @@ Light:
|
||||
m_UseViewFrustumForShadowCasterCull: 1
|
||||
m_ShadowRadius: 0
|
||||
m_ShadowAngle: 0
|
||||
--- !u!1 &5017688557114385732
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8787569703303353622}
|
||||
- component: {fileID: 8817012997525699281}
|
||||
- component: {fileID: 3842216993201303910}
|
||||
m_Layer: 0
|
||||
m_Name: window_big_LOD1
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 2147483647
|
||||
m_IsActive: 1
|
||||
--- !u!4 &8787569703303353622
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5017688557114385732}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3461697159033785630}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!33 &8817012997525699281
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5017688557114385732}
|
||||
m_Mesh: {fileID: 4300000, guid: 7ed7804698d136f41af808075536d7d9, type: 3}
|
||||
--- !u!23 &3842216993201303910
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5017688557114385732}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 2
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 4294967295
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 10de6384af0c3b54e8166f9c3f936e88, type: 2}
|
||||
- {fileID: 2100000, guid: 6b6dfd77776c54a4781ec8cab4d87860, type: 2}
|
||||
- {fileID: 2100000, guid: 0f4853191d321d748b1f95a97d7b37f4, type: 2}
|
||||
- {fileID: 2100000, guid: 2ce01831e9f3ae441bb48623e5fbe0c0, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_AdditionalVertexStreams: {fileID: 0}
|
||||
--- !u!1 &5254056203892954628
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -1728,7 +2139,7 @@ Transform:
|
||||
m_Children:
|
||||
- {fileID: 5613211205117109057}
|
||||
- {fileID: 5613211205117063331}
|
||||
- {fileID: 5613211205117103533}
|
||||
- {fileID: 3461697159033785630}
|
||||
- {fileID: 5613211205117126045}
|
||||
- {fileID: 7056382705426911732}
|
||||
- {fileID: 6446285907898863301}
|
||||
@ -1746,6 +2157,7 @@ Transform:
|
||||
- {fileID: 5757616955126159612}
|
||||
- {fileID: 8331850446012945034}
|
||||
- {fileID: 8960787494111689333}
|
||||
- {fileID: 4820094379754817471}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
@ -1802,7 +2214,7 @@ Transform:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5613211205116689287}
|
||||
m_LocalRotation: {x: 0.00000023040471, y: -0.70710707, z: 4.618527e-14, w: 0.70710653}
|
||||
m_LocalPosition: {x: 6.000002, y: 0.0000021855, z: 7.8378}
|
||||
m_LocalPosition: {x: 6.0000005, y: 0.0000021855, z: 7.8378}
|
||||
m_LocalScale: {x: 4.0053, y: 1.5, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
@ -2006,175 +2418,6 @@ LODGroup:
|
||||
renderers:
|
||||
- renderer: {fileID: 5613211205114717593}
|
||||
m_Enabled: 1
|
||||
--- !u!1 &5613211205116843343
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 5613211205117129173}
|
||||
- component: {fileID: 5613211205113692987}
|
||||
- component: {fileID: 5613211205114723349}
|
||||
m_Layer: 0
|
||||
m_Name: window_big_LOD0
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 2147483647
|
||||
m_IsActive: 1
|
||||
--- !u!4 &5613211205117129173
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5613211205116843343}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 5613211205117103533}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!33 &5613211205113692987
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5613211205116843343}
|
||||
m_Mesh: {fileID: 4300000, guid: c93a7b6fab490314f9f3471aa2616c70, type: 3}
|
||||
--- !u!23 &5613211205114723349
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5613211205116843343}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 2
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 4294967295
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 10de6384af0c3b54e8166f9c3f936e88, type: 2}
|
||||
- {fileID: 2100000, guid: 6b6dfd77776c54a4781ec8cab4d87860, type: 2}
|
||||
- {fileID: 2100000, guid: 0f4853191d321d748b1f95a97d7b37f4, type: 2}
|
||||
- {fileID: 2100000, guid: 2ce01831e9f3ae441bb48623e5fbe0c0, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_AdditionalVertexStreams: {fileID: 0}
|
||||
--- !u!1 &5613211205116852207
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 5613211205117064147}
|
||||
- component: {fileID: 5613211205113714895}
|
||||
- component: {fileID: 5613211205114685479}
|
||||
m_Layer: 0
|
||||
m_Name: window_big_plug
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 2147483647
|
||||
m_IsActive: 1
|
||||
--- !u!4 &5613211205117064147
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5613211205116852207}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 5613211205117103533}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!33 &5613211205113714895
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5613211205116852207}
|
||||
m_Mesh: {fileID: 4300000, guid: f3bf6b5a90134a44c9aa28b43b484d59, type: 3}
|
||||
--- !u!23 &5613211205114685479
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5613211205116852207}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 2
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 4294967295
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 10de6384af0c3b54e8166f9c3f936e88, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_AdditionalVertexStreams: {fileID: 0}
|
||||
--- !u!1 &5613211205116856717
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -2201,7 +2444,7 @@ Transform:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5613211205116856717}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -8.0137814e-14, y: -2.0533345, z: 0.0000006690611}
|
||||
m_LocalPosition: {x: -0.000000037203684, y: -2.0533342, z: 0.15000051}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
@ -2327,12 +2570,12 @@ MeshRenderer:
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ScaleInLightmap: 0
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
m_StitchLightmapSeams: 1
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
@ -2513,165 +2756,6 @@ MeshRenderer:
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_AdditionalVertexStreams: {fileID: 0}
|
||||
--- !u!1 &5613211205116871863
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 5613211205117103533}
|
||||
- component: {fileID: 5613211205118777959}
|
||||
- component: {fileID: 5613211205129856689}
|
||||
m_Layer: 0
|
||||
m_Name: window_big_complete (1)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 2147483647
|
||||
m_IsActive: 1
|
||||
--- !u!4 &5613211205117103533
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5613211205116871863}
|
||||
m_LocalRotation: {x: -5.6843412e-14, y: 0.70710653, z: 0.00000023040471, w: 0.70710707}
|
||||
m_LocalPosition: {x: -5.9999986, y: -0.0000019868, z: 7.8377}
|
||||
m_LocalScale: {x: 4.0053, y: 1.5, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 5613211205117129173}
|
||||
- {fileID: 5613211205117116713}
|
||||
- {fileID: 5613211205117064147}
|
||||
m_Father: {fileID: 5613211205117028343}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 90, z: 0}
|
||||
--- !u!64 &5613211205118777959
|
||||
MeshCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5613211205116871863}
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 4
|
||||
m_Convex: 0
|
||||
m_CookingOptions: 30
|
||||
m_Mesh: {fileID: 4300000, guid: e7280697ebb11a7429fff43396523803, type: 3}
|
||||
--- !u!205 &5613211205129856689
|
||||
LODGroup:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5613211205116871863}
|
||||
serializedVersion: 2
|
||||
m_LocalReferencePoint: {x: -0.06442261, y: 1.9812827, z: -0.7792165}
|
||||
m_Size: 4.128845
|
||||
m_FadeMode: 1
|
||||
m_AnimateCrossFading: 1
|
||||
m_LastLODIsBillboard: 0
|
||||
m_LODs:
|
||||
- screenRelativeHeight: 0.10389635
|
||||
fadeTransitionWidth: 0
|
||||
renderers:
|
||||
- renderer: {fileID: 5613211205114723349}
|
||||
- screenRelativeHeight: 0.037201747
|
||||
fadeTransitionWidth: 0
|
||||
renderers:
|
||||
- renderer: {fileID: 5613211205114663183}
|
||||
m_Enabled: 1
|
||||
--- !u!1 &5613211205116872485
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 5613211205117116713}
|
||||
- component: {fileID: 5613211205113643077}
|
||||
- component: {fileID: 5613211205114663183}
|
||||
m_Layer: 0
|
||||
m_Name: window_big_LOD1
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 2147483647
|
||||
m_IsActive: 1
|
||||
--- !u!4 &5613211205117116713
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5613211205116872485}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 5613211205117103533}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!33 &5613211205113643077
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5613211205116872485}
|
||||
m_Mesh: {fileID: 4300000, guid: 7ed7804698d136f41af808075536d7d9, type: 3}
|
||||
--- !u!23 &5613211205114663183
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5613211205116872485}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 2
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 4294967295
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 10de6384af0c3b54e8166f9c3f936e88, type: 2}
|
||||
- {fileID: 2100000, guid: 6b6dfd77776c54a4781ec8cab4d87860, type: 2}
|
||||
- {fileID: 2100000, guid: 0f4853191d321d748b1f95a97d7b37f4, type: 2}
|
||||
- {fileID: 2100000, guid: 2ce01831e9f3ae441bb48623e5fbe0c0, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_AdditionalVertexStreams: {fileID: 0}
|
||||
--- !u!1 &5613211205116874863
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -2698,8 +2782,8 @@ Transform:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5613211205116874863}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -8.0137814e-14, y: -2.0533345, z: 0.0000006690611}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_LocalPosition: {x: 0.000000052084978, y: -2.0533342, z: -0.29999954}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1.1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 5613211205117109057}
|
||||
@ -2774,7 +2858,7 @@ GameObject:
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 2147483647
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!4 &5757616955126159612
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -2943,7 +3027,7 @@ GameObject:
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 126
|
||||
m_StaticEditorFlags: 2147483647
|
||||
m_IsActive: 1
|
||||
--- !u!4 &6796968398226975104
|
||||
Transform:
|
||||
@ -3040,7 +3124,7 @@ GameObject:
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 126
|
||||
m_StaticEditorFlags: 2147483647
|
||||
m_IsActive: 0
|
||||
--- !u!4 &6796968398226906950
|
||||
Transform:
|
||||
@ -3240,7 +3324,7 @@ Transform:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6906897417619726006}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0.07999992, y: 6.015, z: 7.9138002}
|
||||
m_LocalPosition: {x: -0.22000009, y: 6.015, z: 7.9138002}
|
||||
m_LocalScale: {x: 1, y: 1, z: 4.0053}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
|
@ -262,7 +262,7 @@ Transform:
|
||||
m_Children:
|
||||
- {fileID: 3524204268719183815}
|
||||
m_Father: {fileID: 6886930383564810753}
|
||||
m_RootOrder: 1
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 90, z: 0}
|
||||
--- !u!33 &3499852960922356047
|
||||
MeshFilter:
|
||||
@ -339,13 +339,13 @@ Transform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3820142722286266193}
|
||||
m_LocalRotation: {x: -0.020942591, y: -0.000034267603, z: 0.0029469545, w: 0.99977636}
|
||||
m_LocalPosition: {x: 0, y: 1.68, z: 0}
|
||||
m_LocalScale: {x: 2.58, y: 0.15, z: 0.15}
|
||||
m_LocalRotation: {x: -0.020942593, y: -0.00003430247, z: 0.0029469547, w: 0.99977636}
|
||||
m_LocalPosition: {x: 0, y: 1.6800001, z: -0}
|
||||
m_LocalScale: {x: 2.58, y: 0.14999999, z: 0.14999999}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 6886930383564810753}
|
||||
m_RootOrder: 0
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: -2.4, y: -0.011, z: 0.338}
|
||||
--- !u!198 &3820142722286266195
|
||||
ParticleSystem:
|
||||
@ -5301,8 +5301,8 @@ Transform:
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 3820142722286266204}
|
||||
- {fileID: 3528129070486850711}
|
||||
- {fileID: 3820142722286266204}
|
||||
- {fileID: 204311164261045306}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
|
@ -160,6 +160,7 @@ MonoBehaviour:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
<IsOnAllLanes>k__BackingField: 0
|
||||
<IsInevitable>k__BackingField: 1
|
||||
--- !u!1 &5981214763097122984
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -34,10 +34,10 @@ RectTransform:
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 16, y: -13.5}
|
||||
m_SizeDelta: {x: 32, y: 27}
|
||||
m_AnchorMin: {x: 0.5, y: 1}
|
||||
m_AnchorMax: {x: 0.5, y: 1}
|
||||
m_AnchoredPosition: {x: -670, y: -42.5}
|
||||
m_SizeDelta: {x: 100, y: 85}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &7612804925605912136
|
||||
CanvasRenderer:
|
||||
|
@ -14,10 +14,10 @@ OcclusionCullingSettings:
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 9
|
||||
m_Fog: 0
|
||||
m_Fog: 1
|
||||
m_FogColor: {r: 0.09803922, g: 0.9372549, b: 1, a: 1}
|
||||
m_FogMode: 2
|
||||
m_FogDensity: 0.0075
|
||||
m_FogDensity: 0.003
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
||||
@ -37,7 +37,7 @@ RenderSettings:
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
m_Sun: {fileID: 654164605}
|
||||
m_IndirectSpecularColor: {r: 0.4465829, g: 0.49641728, b: 0.57482105, a: 1}
|
||||
m_UseRadianceAmbientProbe: 0
|
||||
--- !u!157 &3
|
||||
@ -299,6 +299,7 @@ GameObject:
|
||||
m_Component:
|
||||
- component: {fileID: 93601729}
|
||||
- component: {fileID: 93601728}
|
||||
- component: {fileID: 93601730}
|
||||
m_Layer: 0
|
||||
m_Name: GameSession
|
||||
m_TagString: Untagged
|
||||
@ -334,6 +335,20 @@ Transform:
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &93601730
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 93601727}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 8c734ff3b010f1640a238a992583af1f, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
curveStrengthY: 0.002
|
||||
curveStrengthX: 0.002
|
||||
--- !u!1 &105900371
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -782,7 +797,7 @@ RectTransform:
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0.070007324}
|
||||
m_AnchoredPosition: {x: 0, y: 0.07006836}
|
||||
m_SizeDelta: {x: 0, y: -0.14014}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &552140506
|
||||
@ -1304,7 +1319,7 @@ GameObject:
|
||||
- component: {fileID: 1053166409}
|
||||
- component: {fileID: 1053166408}
|
||||
- component: {fileID: 1053166411}
|
||||
- component: {fileID: 1053166412}
|
||||
- component: {fileID: 1053166413}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
@ -1370,8 +1385,8 @@ Transform:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1053166407}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: -500.42767, y: -331.09, z: -8.338876}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
@ -1391,9 +1406,9 @@ MonoBehaviour:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
target: {fileID: 2249596435903131709}
|
||||
defaultDistance: {x: 0, y: 7.56, z: -5.59}
|
||||
distanceDamp: 0.3
|
||||
--- !u!114 &1053166412
|
||||
defaultDistance: {x: 0, y: 5.99, z: -7}
|
||||
distanceDamp: 0.15
|
||||
--- !u!114 &1053166413
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
@ -1402,11 +1417,11 @@ MonoBehaviour:
|
||||
m_GameObject: {fileID: 1053166407}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 8c734ff3b010f1640a238a992583af1f, type: 3}
|
||||
m_Script: {fileID: 11500000, guid: bfc7a5ccf40c6284b8e07238adf331fb, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
curveStrengthY: 0
|
||||
curveStrengthX: 0.001
|
||||
extraCullHeight: 0.5
|
||||
extraCullWidth: 0.5
|
||||
--- !u!1 &1125063956
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -2328,7 +2343,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 84bdd12bd3145b144a47594f105eb316, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
spawnDelay: 5
|
||||
spawnDelay: 3
|
||||
chunkGenerator: {fileID: 1125063958}
|
||||
chunkPool: {fileID: 2025791532}
|
||||
--- !u!1 &1899410411
|
||||
@ -2815,11 +2830,11 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4889749525435056362, guid: 14c24fef9917a7445a67e6acdb9a0c0e, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 60
|
||||
value: 100
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4889749525435056362, guid: 14c24fef9917a7445a67e6acdb9a0c0e, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 40
|
||||
value: 85
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4889749525435056362, guid: 14c24fef9917a7445a67e6acdb9a0c0e, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
@ -2851,11 +2866,11 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4889749525435056362, guid: 14c24fef9917a7445a67e6acdb9a0c0e, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 30
|
||||
value: 50
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4889749525435056362, guid: 14c24fef9917a7445a67e6acdb9a0c0e, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: -20
|
||||
value: -42.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4889749525435056362, guid: 14c24fef9917a7445a67e6acdb9a0c0e, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
@ -2975,7 +2990,7 @@ PrefabInstance:
|
||||
objectReference: {fileID: 1872880027}
|
||||
- target: {fileID: 6347578780605603613, guid: f1719db018a1324408d90c8d16384871, type: 3}
|
||||
propertyPath: <Capacity>k__BackingField
|
||||
value: 20
|
||||
value: 37
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: f1719db018a1324408d90c8d16384871, type: 3}
|
||||
|
Binary file not shown.
43
Assets/Scripts/Camera/CullingCamera.cs
Normal file
43
Assets/Scripts/Camera/CullingCamera.cs
Normal file
@ -0,0 +1,43 @@
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
//based on: https://grrava.blogspot.com/2015/05/bending-world-with-unity.html
|
||||
[RequireComponent(typeof(Camera))]
|
||||
public class CullingCamera : MonoBehaviour
|
||||
{
|
||||
[Range(0, 0.5f)]
|
||||
[SerializeField] private float extraCullHeight;
|
||||
[Range(0, 0.5f)]
|
||||
[SerializeField] private float extraCullWidth;
|
||||
private Camera cam;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
cam = GetComponent<Camera>();
|
||||
}
|
||||
public static float HorizontalToVerticalFOV(float horizontalFOV, float aspect)
|
||||
{
|
||||
return Mathf.Rad2Deg * 2 * Mathf.Atan(Mathf.Tan((horizontalFOV * Mathf.Deg2Rad) / 2f) / aspect);
|
||||
}
|
||||
private void OnPreCull()
|
||||
{
|
||||
float aspectRatio = cam.aspect;
|
||||
float fov = cam.fieldOfView;
|
||||
|
||||
float viewPortHeight = Mathf.Tan(Mathf.Deg2Rad * fov * 0.5f);
|
||||
float viewPortWidth = viewPortHeight * aspectRatio;
|
||||
|
||||
float newFow = fov * (1 + extraCullHeight);
|
||||
float newHeight = Mathf.Tan(Mathf.Deg2Rad * newFow * 0.5f);
|
||||
float newWidth = viewPortWidth * (1 + extraCullWidth);
|
||||
float newAspectRatio = newWidth / newHeight;
|
||||
|
||||
cam.projectionMatrix = Matrix4x4.Perspective(newFow, newAspectRatio, cam.nearClipPlane, cam.farClipPlane);
|
||||
}
|
||||
|
||||
private void OnPreRender()
|
||||
{
|
||||
cam.ResetProjectionMatrix();
|
||||
}
|
||||
}
|
11
Assets/Scripts/Camera/CullingCamera.cs.meta
Normal file
11
Assets/Scripts/Camera/CullingCamera.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bfc7a5ccf40c6284b8e07238adf331fb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -2,6 +2,7 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
[RequireComponent(typeof(Camera))]
|
||||
public class FollowingCamera : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private Transform target;
|
||||
@ -10,9 +11,11 @@ public class FollowingCamera : MonoBehaviour
|
||||
|
||||
private Transform camTransform;
|
||||
private Vector3 velocity = Vector3.one;
|
||||
private Camera cam;
|
||||
private void Awake()
|
||||
{
|
||||
camTransform = transform;
|
||||
cam = GetComponent<Camera>();
|
||||
}
|
||||
private void LateUpdate()
|
||||
{
|
||||
|
@ -3,11 +3,13 @@ using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
[RequireComponent(typeof(WorldCurver))]
|
||||
public class GameSession : MonoBehaviour,IResettable
|
||||
{
|
||||
public static GameSession Instance { get; private set; }
|
||||
|
||||
[SerializeField] private Player currentPlayer;
|
||||
private WorldCurver curver;
|
||||
private IInputTranslator inputTranslator;
|
||||
|
||||
private bool isSessionPaused = false;
|
||||
@ -16,15 +18,20 @@ public class GameSession : MonoBehaviour,IResettable
|
||||
{
|
||||
Instance = this;
|
||||
Init();
|
||||
curver = GetComponent<WorldCurver>();
|
||||
}
|
||||
|
||||
private void Start()
|
||||
{
|
||||
Application.targetFrameRate = 60;
|
||||
if (ApplicationUtil.platform == RuntimePlatform.Android || ApplicationUtil.platform == RuntimePlatform.IPhonePlayer)
|
||||
{
|
||||
//Application.targetFrameRate = 60;
|
||||
}
|
||||
}
|
||||
private void Update()
|
||||
{
|
||||
inputTranslator.Tick();
|
||||
curver.Tick();
|
||||
}
|
||||
|
||||
private void Init()
|
||||
|
@ -16,7 +16,7 @@ public class WorldCurver : MonoBehaviour
|
||||
curveStrengthXID = Shader.PropertyToID("_CurveStrength_x");
|
||||
}
|
||||
|
||||
void Update()
|
||||
public void Tick()
|
||||
{
|
||||
Shader.SetGlobalFloat(curveStrengthYID, curveStrengthY);
|
||||
Shader.SetGlobalFloat(curveStrengthXID, curveStrengthX);
|
||||
|
75
Assets/Shaders/CurvedCode.cginc
Normal file
75
Assets/Shaders/CurvedCode.cginc
Normal file
@ -0,0 +1,75 @@
|
||||
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
|
||||
// code from Endless Runner - Sample Game
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
struct appdata
|
||||
{
|
||||
float4 vertex : POSITION;
|
||||
float2 uv : TEXCOORD0;
|
||||
float4 color : COLOR;
|
||||
};
|
||||
|
||||
struct v2f
|
||||
{
|
||||
float2 uv : TEXCOORD0;
|
||||
UNITY_FOG_COORDS(1)
|
||||
float4 color : TEXCOORD2;
|
||||
float4 vertex : SV_POSITION;
|
||||
};
|
||||
|
||||
sampler2D _MainTex;
|
||||
float4 _MainTex_ST;
|
||||
float _CurveStrength_x;
|
||||
float _CurveStrength_y;
|
||||
|
||||
v2f vert(appdata v)
|
||||
{
|
||||
v2f o;
|
||||
|
||||
o.vertex = UnityObjectToClipPos(v.vertex);
|
||||
|
||||
|
||||
float dist = UNITY_Z_0_FAR_FROM_CLIPSPACE(o.vertex.z);
|
||||
|
||||
//float4 worldPosition = mul(unity_ObjectToWorld, o.vertex);
|
||||
//// get world space position of vertex
|
||||
//// distance squared from vertex to the camera, this power gives the curvature
|
||||
////worldPosition.y -= distance * 0.001;
|
||||
//worldPosition.y -= _CurveStrength_y * dist * dist * _ProjectionParams.x;
|
||||
//worldPosition.x -= _CurveStrength_x * dist * dist * _ProjectionParams.x;
|
||||
// offset vertical position by factor and square of distance.
|
||||
// the default 0.01 would lower the position by 1cm at 1m distance, 1m at 10m and 100m at 100m
|
||||
//o.vertex = mul(unity_WorldToObject, worldPosition);
|
||||
|
||||
//o.vertex = UnityObjectToClipPos(v.vertex);
|
||||
|
||||
//WORKING
|
||||
//float dist = UNITY_Z_0_FAR_FROM_CLIPSPACE(o.vertex.z);
|
||||
|
||||
//o.vertex.y -= _CurveStrength_y * dist * dist * _ProjectionParams.x;
|
||||
//o.vertex.x -= _CurveStrength_x * dist * dist * _ProjectionParams.x;
|
||||
|
||||
float4 worldPosition = mul(unity_ObjectToWorld, o.vertex);
|
||||
worldPosition.y -= _CurveStrength_y * dist * dist * _ProjectionParams.x;
|
||||
worldPosition.x -= _CurveStrength_x * dist * dist * _ProjectionParams.x;
|
||||
// offset vertical position by factor and square of distance.
|
||||
// the default 0.01 would lower the position by 1cm at 1m distance, 1m at 10m and 100m at 100m
|
||||
o.vertex = mul(unity_WorldToObject, worldPosition);
|
||||
|
||||
o.uv = TRANSFORM_TEX(v.uv, _MainTex);
|
||||
|
||||
o.color = v.color;
|
||||
|
||||
UNITY_TRANSFER_FOG(o, o.vertex);
|
||||
return o;
|
||||
}
|
||||
|
||||
fixed4 frag(v2f i) : SV_Target
|
||||
{
|
||||
// sample the texture
|
||||
fixed4 col = tex2D(_MainTex, i.uv) * i.color;
|
||||
// apply fog
|
||||
UNITY_APPLY_FOG(i.fogCoord, col);
|
||||
return col;
|
||||
}
|
7
Assets/Shaders/CurvedCode.cginc.meta
Normal file
7
Assets/Shaders/CurvedCode.cginc.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e307c52f064209b42b1ebdb1cf04e4b7
|
||||
ShaderIncludeImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -1,4 +1,4 @@
|
||||
Shader "Custom/CurvedSurfaceShaderStandard"
|
||||
Shader "Custom/CurvedSurfaceAlphaAdditive"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
@ -7,26 +7,29 @@ Shader "Custom/CurvedSurfaceShaderStandard"
|
||||
_BumpMap("Normal Map", 2D) = "bump" {}
|
||||
_OcclusionMap("Occlusion Map", 2D) = "white" {}
|
||||
_SmoothnessMap("Smoothness Map", 2D) = "black" {}
|
||||
//[HDR] _EmissionColor("Emission Color", Color) = (0,0,0)
|
||||
_EmissionMap("Emission Map", 2D) = "white" {}
|
||||
[HDR] _EmissionColor("Emission Color", Color) = (0,0,0)
|
||||
_Glossiness ("Smoothness", Range(0,1)) = 0.5
|
||||
_Metallic ("Metallic", Range(0,1)) = 0.0
|
||||
}
|
||||
|
||||
SubShader
|
||||
{
|
||||
Tags { "RenderType" = "Opaque" "DisableBatching" = "true" }
|
||||
Tags { "RenderType" = "Transparent" "Queue" = "Transparent" }//"DisableBatching" = "true" "
|
||||
LOD 200
|
||||
|
||||
CGPROGRAM
|
||||
// Physically based Standard lighting model, and enable shadows on all light types
|
||||
#pragma surface surf Standard fullforwardshadows vertex:vert
|
||||
#pragma surface surf Standard fullforwardshadows alpha:blend decal:add vertex:vert addshadow
|
||||
|
||||
// Use shader model 3.0 target, to get nicer looking lighting
|
||||
#pragma target 3.0
|
||||
// Use shader model 3.5 target, to get nicer looking lighting and to get emission map to work
|
||||
#pragma target 3.5
|
||||
sampler2D MainTex;
|
||||
sampler2D _BumpMap;
|
||||
sampler2D _OcclusionMap;
|
||||
sampler2D _SmoothnessMap;
|
||||
sampler2D _EmissionMap;
|
||||
fixed4 _EmissionColor;
|
||||
|
||||
float4 MainTex_ST;
|
||||
float _CurveStrength_x;
|
||||
@ -38,6 +41,7 @@ Shader "Custom/CurvedSurfaceShaderStandard"
|
||||
float2 uv_BumpMap;
|
||||
float2 uv_SmoothnessMap;
|
||||
float2 uv_OcclusionMap;
|
||||
float2 uv_EmissionMap;
|
||||
float2 texcoord;
|
||||
};
|
||||
|
||||
@ -50,20 +54,18 @@ Shader "Custom/CurvedSurfaceShaderStandard"
|
||||
uv = v.texcoord;
|
||||
|
||||
//this question helped https://stackoverflow.com/questions/50512600/send-vertice-shader-changes-to-surface-shader
|
||||
float dist = UNITY_Z_0_FAR_FROM_CLIPSPACE(pos.z);
|
||||
float4 worldPosition = mul(unity_ObjectToWorld, v.vertex);
|
||||
// get world space position of vertex
|
||||
half2 wpToCam = _WorldSpaceCameraPos.xz - worldPosition.xz;
|
||||
// get vector to camera and dismiss vertical component
|
||||
half distance = dot(wpToCam, wpToCam);
|
||||
// distance squared from vertex to the camera, this power gives the curvature
|
||||
//worldPosition.y -= distance * 0.001;
|
||||
worldPosition.y -= _CurveStrength_y * dist * dist * _ProjectionParams.x;
|
||||
worldPosition.x -= _CurveStrength_x * dist * dist * _ProjectionParams.y;
|
||||
// offset vertical position by factor and square of distance.
|
||||
// the default 0.01 would lower the position by 1cm at 1m distance, 1m at 10m and 100m at 100m
|
||||
v.vertex = mul(unity_WorldToObject, worldPosition);
|
||||
UNITY_TRANSFER_FOG(o, pos);
|
||||
//float dist = UNITY_Z_0_FAR_FROM_CLIPSPACE(pos.z);
|
||||
//float4 worldPosition = mul(unity_ObjectToWorld, v.vertex);
|
||||
//worldPosition.y -= _CurveStrength_y * dist * dist * _ProjectionParams.x;
|
||||
//worldPosition.x -= _CurveStrength_x * dist * dist * _ProjectionParams.x;
|
||||
//// offset vertical position by factor and square of distance.
|
||||
//// the default 0.01 would lower the position by 1cm at 1m distance, 1m at 10m and 100m at 100m
|
||||
//v.vertex = mul(unity_WorldToObject, worldPosition);
|
||||
float4 worldPosition = mul(unity_WorldToCamera, mul(unity_ObjectToWorld, v.vertex));
|
||||
float dist = length(float2(worldPosition.x, worldPosition.z));
|
||||
worldPosition.y -= _CurveStrength_y * dist * dist;//* _ProjectionParams.x;
|
||||
worldPosition.x -= _CurveStrength_x * dist * dist; //* _ProjectionParams.x;
|
||||
v.vertex = mul(unity_WorldToObject, mul(unity_CameraToWorld, worldPosition));
|
||||
}
|
||||
|
||||
sampler2D _MainTex;
|
||||
@ -85,7 +87,7 @@ Shader "Custom/CurvedSurfaceShaderStandard"
|
||||
o.Albedo = c.rgb;
|
||||
o.Normal = UnpackNormal(tex2D(_BumpMap, IN.uv_BumpMap));
|
||||
o.Occlusion = tex2D(_OcclusionMap, IN.uv_OcclusionMap).rgb;
|
||||
//o.Emission = c.rgb * tex2D(_MainTex, IN.uv_MainTex).a * _EmissionColor;
|
||||
o.Emission = tex2D(_EmissionMap, IN.uv_EmissionMap).rgb * _EmissionColor;
|
||||
// Metallic and smoothness come from slider variables
|
||||
o.Metallic = _Metallic;
|
||||
o.Smoothness = tex2D(_SmoothnessMap, IN.uv_SmoothnessMap).rgb * _Glossiness;
|
10
Assets/Shaders/CurvedSurfaceAlphaAdditive.shader.meta
Normal file
10
Assets/Shaders/CurvedSurfaceAlphaAdditive.shader.meta
Normal file
@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 979d9542a662ed2439a160339d0432e6
|
||||
ShaderImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
preprocessorOverride: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
92
Assets/Shaders/CurvedSurfaceEmission.shader
Normal file
92
Assets/Shaders/CurvedSurfaceEmission.shader
Normal file
@ -0,0 +1,92 @@
|
||||
Shader "Custom/CurvedSurfaceEmissionOnly"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
_Color("Color", Color) = (1,1,1,1)
|
||||
_MainTex("Albedo", 2D) = "white" {}
|
||||
_EmissionMap("Emission Map", 2D) = "white" {}
|
||||
[HDR] _EmissionColor("Emission Color", Color) = (0,0,0)
|
||||
_Glossiness("Smoothness", Range(0,1)) = 0.5
|
||||
_Metallic("Metallic", Range(0,1)) = 0.0
|
||||
}
|
||||
|
||||
SubShader
|
||||
{
|
||||
Tags { "RenderType" = "Fade" "Queue" = "Geometry" }
|
||||
LOD 200
|
||||
|
||||
CGPROGRAM
|
||||
// Physically based Standard lighting model, and enable shadows on all light types
|
||||
#pragma surface surf Standard fullforwardshadows vertex:vert addshadow
|
||||
|
||||
// Use shader model 3.0 target, to get nicer looking lighting
|
||||
#pragma target 3.0
|
||||
sampler2D _EmissionMap;
|
||||
fixed4 _EmissionColor;
|
||||
//float4 MainTex_ST;
|
||||
sampler2D MainTex;
|
||||
float _CurveStrength_x;
|
||||
float _CurveStrength_y;
|
||||
|
||||
struct Input
|
||||
{
|
||||
float2 uv_EmissionMap;
|
||||
float2 uv_MainTex;
|
||||
float2 texcoord;
|
||||
};
|
||||
|
||||
void vert(inout appdata_full v, out Input o)
|
||||
{
|
||||
float4 pos;
|
||||
float2 uv;
|
||||
UNITY_INITIALIZE_OUTPUT(Input, o);
|
||||
pos = UnityObjectToClipPos(v.vertex);
|
||||
uv = v.texcoord;
|
||||
|
||||
//this question helped https://stackoverflow.com/questions/50512600/send-vertice-shader-changes-to-surface-shader
|
||||
//float dist = UNITY_Z_0_FAR_FROM_CLIPSPACE(pos.z);
|
||||
//float4 worldPosition = mul(unity_ObjectToWorld, v.vertex);
|
||||
//// get world space position of vertex
|
||||
//half2 wpToCam = _WorldSpaceCameraPos.xz - worldPosition.xz;
|
||||
//// get vector to camera and dismiss vertical component
|
||||
//half distance = dot(wpToCam, wpToCam);
|
||||
//// distance squared from vertex to the camera, this power gives the curvature
|
||||
////worldPosition.y -= distance * 0.001;
|
||||
//worldPosition.y -= _CurveStrength_y * dist * dist * _ProjectionParams.x;
|
||||
//worldPosition.x -= _CurveStrength_x * dist * dist * _ProjectionParams.x;
|
||||
//// offset vertical position by factor and square of distance.
|
||||
//// the default 0.01 would lower the position by 1cm at 1m distance, 1m at 10m and 100m at 100m
|
||||
//v.vertex = mul(unity_WorldToObject, worldPosition);
|
||||
float4 worldPosition = mul(unity_WorldToCamera, mul(unity_ObjectToWorld, v.vertex));
|
||||
float dist = length(float2(worldPosition.x, worldPosition.z));
|
||||
worldPosition.y -= _CurveStrength_y * dist * dist;//* _ProjectionParams.x;
|
||||
worldPosition.x -= _CurveStrength_x * dist * dist; //* _ProjectionParams.x;
|
||||
v.vertex = mul(unity_WorldToObject, mul(unity_CameraToWorld, worldPosition));
|
||||
}
|
||||
|
||||
sampler2D _MainTex;
|
||||
|
||||
half _Glossiness;
|
||||
half _Metallic;
|
||||
fixed4 _Color;
|
||||
|
||||
// Add instancing support for this shader. You need to check 'Enable Instancing' on materials that use the shader.
|
||||
// See https://docs.unity3d.com/Manual/GPUInstancing.html for more information about instancing.
|
||||
// #pragma instancing_options assumeuniformscaling
|
||||
UNITY_INSTANCING_BUFFER_START(Props)
|
||||
// put more per-instance properties here
|
||||
UNITY_INSTANCING_BUFFER_END(Props)
|
||||
|
||||
void surf(Input IN, inout SurfaceOutputStandard o)
|
||||
{
|
||||
fixed4 c = tex2D(_MainTex, IN.uv_MainTex) * _Color;
|
||||
o.Albedo = c.rgb;
|
||||
o.Emission = tex2D(_MainTex, IN.uv_EmissionMap).a * _EmissionColor;
|
||||
// Metallic and smoothness come from slider variables
|
||||
o.Metallic = _Metallic;
|
||||
o.Alpha = c.a;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
FallBack "Diffuse"
|
||||
}
|
10
Assets/Shaders/CurvedSurfaceEmission.shader.meta
Normal file
10
Assets/Shaders/CurvedSurfaceEmission.shader.meta
Normal file
@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7ff64e56b725c9546ad05c7cb85f3c02
|
||||
ShaderImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
preprocessorOverride: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
95
Assets/Shaders/CurvedSurfaceStandard.shader
Normal file
95
Assets/Shaders/CurvedSurfaceStandard.shader
Normal file
@ -0,0 +1,95 @@
|
||||
// Upgrade NOTE: replaced '_Object2World' with 'unity_ObjectToWorld'
|
||||
|
||||
Shader "Custom/CurvedSurfaceStandard"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
_Color ("Color", Color) = (1,1,1,1)
|
||||
_MainTex ("Albedo", 2D) = "white" {}
|
||||
_BumpMap("Normal Map", 2D) = "bump" {}
|
||||
_OcclusionMap("Occlusion Map", 2D) = "white" {}
|
||||
_SmoothnessMap("Smoothness Map", 2D) = "black" {}
|
||||
_EmissionMap("Emission Map", 2D) = "white" {}
|
||||
[HDR] _EmissionColor("Emission Color", Color) = (0,0,0)
|
||||
_Glossiness ("Smoothness", Range(0,1)) = 0.5
|
||||
_Metallic ("Metallic", Range(0,1)) = 0.0
|
||||
}
|
||||
|
||||
SubShader
|
||||
{
|
||||
Tags { "RenderType" = "Opaque" "DisableBatching" = "False" }//"Queue" = "Geometry" " "LightMode" = "ShadowCaster""DisableBatching" = "true" "DisableBatching" = "True" "LightMode" = "ShadowCaster"
|
||||
LOD 200
|
||||
CGPROGRAM
|
||||
|
||||
// Physically based Standard lighting model, and enable shadows on all light types
|
||||
#pragma surface surf Standard vertex:vert fullforwardshadows addshadow
|
||||
|
||||
// Use shader model 3.5 target, to get nicer looking lighting and to get emission map to work
|
||||
#pragma target 3.5
|
||||
sampler2D MainTex;
|
||||
sampler2D _BumpMap;
|
||||
sampler2D _OcclusionMap;
|
||||
sampler2D _SmoothnessMap;
|
||||
sampler2D _EmissionMap;
|
||||
fixed4 _EmissionColor;
|
||||
|
||||
float4 MainTex_ST;
|
||||
float _CurveStrength_x;
|
||||
float _CurveStrength_y;
|
||||
|
||||
struct Input
|
||||
{
|
||||
float2 uv_MainTex;
|
||||
float2 uv_BumpMap;
|
||||
float2 uv_SmoothnessMap;
|
||||
float2 uv_OcclusionMap;
|
||||
float2 uv_EmissionMap;
|
||||
half3 debugColor;
|
||||
|
||||
};
|
||||
|
||||
void vert(inout appdata_full v, out Input o)
|
||||
{
|
||||
float4 pos;
|
||||
float2 uv;
|
||||
UNITY_INITIALIZE_OUTPUT(Input, o);
|
||||
float4 modifiedPos = v.vertex;
|
||||
float4 positionInCameraSpace = mul(unity_WorldToCamera, mul(unity_ObjectToWorld, v.vertex));
|
||||
float dist = length(float2(positionInCameraSpace.x, positionInCameraSpace.z));
|
||||
|
||||
positionInCameraSpace.y -= _CurveStrength_y * dist * dist;
|
||||
positionInCameraSpace.x -= _CurveStrength_x * dist * dist;
|
||||
|
||||
modifiedPos = mul(unity_WorldToObject, mul(unity_CameraToWorld, positionInCameraSpace));
|
||||
v.vertex = modifiedPos;
|
||||
|
||||
}
|
||||
sampler2D _MainTex;
|
||||
|
||||
half _Glossiness;
|
||||
half _Metallic;
|
||||
fixed4 _Color;
|
||||
|
||||
// Add instancing support for this shader. You need to check 'Enable Instancing' on materials that use the shader.
|
||||
// See https://docs.unity3d.com/Manual/GPUInstancing.html for more information about instancing.
|
||||
// #pragma instancing_options assumeuniformscaling
|
||||
UNITY_INSTANCING_BUFFER_START(Props)
|
||||
// put more per-instance properties here
|
||||
UNITY_INSTANCING_BUFFER_END(Props)
|
||||
|
||||
void surf(Input IN, inout SurfaceOutputStandard o)
|
||||
{
|
||||
fixed4 c = tex2D(_MainTex, IN.uv_MainTex) * _Color;
|
||||
o.Albedo = c.rgb;
|
||||
o.Normal = UnpackNormal(tex2D(_BumpMap, IN.uv_BumpMap));
|
||||
o.Occlusion = tex2D(_OcclusionMap, IN.uv_OcclusionMap).rgb;
|
||||
o.Emission = tex2D(_EmissionMap, IN.uv_EmissionMap).rgb * _EmissionColor;
|
||||
// Metallic and smoothness come from slider variables
|
||||
o.Metallic = _Metallic;
|
||||
o.Smoothness = tex2D(_SmoothnessMap, IN.uv_SmoothnessMap).rgb * _Glossiness;
|
||||
o.Alpha = c.a;
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
FallBack "Diffuse"
|
||||
}
|
95
Assets/Shaders/CurvedSurfaceStandardCutout.shader
Normal file
95
Assets/Shaders/CurvedSurfaceStandardCutout.shader
Normal file
@ -0,0 +1,95 @@
|
||||
Shader "Custom/CurvedSurfaceStandardCutout"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
_Color ("Color", Color) = (1,1,1,1)
|
||||
_MainTex ("Albedo", 2D) = "white" {}
|
||||
_AlphaCutoff("Alpha Cutoff", Range(0,1)) = 0.5
|
||||
_EmissionMap("Emission Map", 2D) = "white" {}
|
||||
[HDR] _EmissionColor("Emission Color", Color) = (0,0,0)
|
||||
_Glossiness ("Smoothness", Range(0,1)) = 0.5
|
||||
_Metallic ("Metallic", Range(0,1)) = 0.0
|
||||
}
|
||||
|
||||
SubShader
|
||||
{
|
||||
Tags { "RenderType" = "Cutout" "Queue" = "Geometry" }//"DisableBatching" = "true"
|
||||
LOD 200
|
||||
|
||||
CGPROGRAM
|
||||
// Physically based Standard lighting model, and enable shadows on all light types
|
||||
#pragma surface surf Standard fullforwardshadows vertex:vert addshadow
|
||||
|
||||
// Use shader model 3.0 target, to get nicer looking lighting
|
||||
#pragma target 3.0
|
||||
sampler2D MainTex;
|
||||
sampler2D _BumpMap;
|
||||
sampler2D _OcclusionMap;
|
||||
sampler2D _SmoothnessMap;
|
||||
sampler2D _EmissionMap;
|
||||
fixed4 _EmissionColor;
|
||||
|
||||
float _CurveStrength_x;
|
||||
float _CurveStrength_y;
|
||||
|
||||
struct Input
|
||||
{
|
||||
float2 uv_MainTex;
|
||||
float2 uv_BumpMap;
|
||||
float2 uv_SmoothnessMap;
|
||||
float2 uv_OcclusionMap;
|
||||
float2 texcoord;
|
||||
};
|
||||
|
||||
void vert(inout appdata_full v, out Input o)
|
||||
{
|
||||
float4 pos ;
|
||||
float2 uv ;
|
||||
UNITY_INITIALIZE_OUTPUT(Input, o);
|
||||
pos = UnityObjectToClipPos(v.vertex);
|
||||
uv = v.texcoord;
|
||||
float4 worldPosition = mul(unity_WorldToCamera, mul(unity_ObjectToWorld, v.vertex));
|
||||
float dist = length(float2(worldPosition.x, worldPosition.z));
|
||||
worldPosition.y -= _CurveStrength_y * dist * dist;//* _ProjectionParams.x;
|
||||
worldPosition.x -= _CurveStrength_x * dist * dist; //* _ProjectionParams.x;
|
||||
v.vertex = mul(unity_WorldToObject, mul(unity_CameraToWorld, worldPosition));
|
||||
//this question helped https://stackoverflow.com/questions/50512600/send-vertice-shader-changes-to-surface-shader
|
||||
//float dist = UNITY_Z_0_FAR_FROM_CLIPSPACE(pos.z);
|
||||
//float4 worldPosition = mul(unity_ObjectToWorld, v.vertex); // get world space position of vertex
|
||||
//worldPosition.y -= _CurveStrength_y * dist * dist * _ProjectionParams.x;
|
||||
//worldPosition.x -= _CurveStrength_x * dist * dist * _ProjectionParams.x;
|
||||
//// offset vertical position by factor and square of distance.
|
||||
//// the default 0.01 would lower the position by 1cm at 1m distance, 1m at 10m and 100m at 100m
|
||||
//v.vertex = mul(unity_WorldToObject, worldPosition);
|
||||
}
|
||||
|
||||
sampler2D _MainTex;
|
||||
|
||||
half _Glossiness;
|
||||
half _Metallic;
|
||||
fixed4 _Color;
|
||||
half _AlphaCutoff;
|
||||
// Add instancing support for this shader. You need to check 'Enable Instancing' on materials that use the shader.
|
||||
// See https://docs.unity3d.com/Manual/GPUInstancing.html for more information about instancing.
|
||||
// #pragma instancing_options assumeuniformscaling
|
||||
UNITY_INSTANCING_BUFFER_START(Props)
|
||||
// put more per-instance properties here
|
||||
UNITY_INSTANCING_BUFFER_END(Props)
|
||||
|
||||
void surf (Input IN, inout SurfaceOutputStandard o)
|
||||
{
|
||||
fixed4 c = tex2D(_MainTex, IN.uv_MainTex) * _Color;
|
||||
o.Albedo = c.rgb;
|
||||
o.Normal = UnpackNormal(tex2D(_BumpMap, IN.uv_BumpMap));
|
||||
o.Occlusion = tex2D(_OcclusionMap, IN.uv_OcclusionMap).rgb;
|
||||
o.Emission = c.rgb * tex2D(_MainTex, IN.uv_MainTex).a * _EmissionColor;
|
||||
// Metallic and smoothness come from slider variables
|
||||
o.Metallic = _Metallic;
|
||||
o.Smoothness = tex2D(_SmoothnessMap, IN.uv_SmoothnessMap).rgb * _Glossiness;
|
||||
o.Alpha = c.a;
|
||||
clip(o.Alpha - _AlphaCutoff);
|
||||
}
|
||||
ENDCG
|
||||
}
|
||||
FallBack "Diffuse"
|
||||
}
|
10
Assets/Shaders/CurvedSurfaceStandardCutout.shader.meta
Normal file
10
Assets/Shaders/CurvedSurfaceStandardCutout.shader.meta
Normal file
@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 90b6b49507b35fb45a881f298c8a393e
|
||||
ShaderImporter:
|
||||
externalObjects: {}
|
||||
defaultTextures: []
|
||||
nonModifiableTextures: []
|
||||
preprocessorOverride: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
||||
QualitySettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 5
|
||||
m_CurrentQuality: 2
|
||||
m_CurrentQuality: 5
|
||||
m_QualitySettings:
|
||||
- serializedVersion: 2
|
||||
name: Very Low
|
||||
@ -223,7 +223,7 @@ QualitySettings:
|
||||
customRenderPipeline: {fileID: 0}
|
||||
excludedTargetPlatforms: []
|
||||
m_PerPlatformDefaultQuality:
|
||||
Android: 2
|
||||
Android: 5
|
||||
Lumin: 5
|
||||
Nintendo 3DS: 5
|
||||
Nintendo Switch: 5
|
||||
@ -232,7 +232,7 @@ QualitySettings:
|
||||
Server: 0
|
||||
Stadia: 5
|
||||
Standalone: 5
|
||||
WebGL: 3
|
||||
WebGL: 2
|
||||
Windows Store Apps: 5
|
||||
XboxOne: 5
|
||||
iPhone: 2
|
||||
|
@ -1,80 +0,0 @@
|
||||
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
|
||||
|
||||
Shader "Unlit/CurvedRotation"
|
||||
{
|
||||
Properties
|
||||
{
|
||||
_MainTex ("Texture", 2D) = "white" {}
|
||||
}
|
||||
SubShader
|
||||
{
|
||||
Tags { "RenderType"="Opaque" "DisableBatching" = "True"}
|
||||
LOD 100
|
||||
|
||||
Pass
|
||||
{
|
||||
CGPROGRAM
|
||||
#pragma vertex vert
|
||||
#pragma fragment frag
|
||||
// make fog work
|
||||
#pragma multi_compile_fog
|
||||
|
||||
#include "UnityCG.cginc"
|
||||
|
||||
struct appdata
|
||||
{
|
||||
float4 vertex : POSITION;
|
||||
float2 uv : TEXCOORD0;
|
||||
float4 color : COLOR;
|
||||
};
|
||||
|
||||
struct v2f
|
||||
{
|
||||
float2 uv : TEXCOORD0;
|
||||
float4 color : TEXCOORD1;
|
||||
UNITY_FOG_COORDS(2)
|
||||
float4 vertex : SV_POSITION;
|
||||
};
|
||||
|
||||
sampler2D _MainTex;
|
||||
float4 _MainTex_ST;
|
||||
float _CurveStrength;
|
||||
|
||||
|
||||
v2f vert(appdata v)
|
||||
{
|
||||
v2f o;
|
||||
|
||||
float _Horizon = 100.0f;
|
||||
float _FadeDist = 50.0f;
|
||||
|
||||
float4 rotVert = v.vertex;
|
||||
rotVert.z = v.vertex.z * cos(_Time.y * 3.14f) - v.vertex.x * sin(_Time.y * 3.14f);
|
||||
rotVert.x = v.vertex.z * sin(_Time.y * 3.14f) + v.vertex.x * cos(_Time.y * 3.14f);
|
||||
|
||||
o.vertex = UnityObjectToClipPos(rotVert);
|
||||
|
||||
float dist = UNITY_Z_0_FAR_FROM_CLIPSPACE(o.vertex.z);
|
||||
|
||||
o.vertex.y -= _CurveStrength * dist * dist * _ProjectionParams.x;
|
||||
|
||||
o.uv = TRANSFORM_TEX(v.uv, _MainTex);
|
||||
o.color = v.color;
|
||||
|
||||
UNITY_TRANSFER_FOG(o, o.vertex);
|
||||
return o;
|
||||
}
|
||||
|
||||
fixed4 frag(v2f i) : SV_Target
|
||||
{
|
||||
// sample the texture
|
||||
fixed4 col = tex2D(_MainTex, i.uv) * i.color;
|
||||
// apply fog
|
||||
UNITY_APPLY_FOG(i.fogCoord, col);
|
||||
return col;
|
||||
}
|
||||
|
||||
ENDCG
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user