diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..ddb6ff8 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "visualstudiotoolsforunity.vstuc" + ] +} diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..da60e25 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,10 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Attach to Unity", + "type": "vstuc", + "request": "attach" + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..77fe866 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,71 @@ +{ + "files.exclude": { + "**/.DS_Store": true, + "**/.git": true, + "**/.vs": true, + "**/.gitmodules": true, + "**/.vsconfig": true, + "**/*.booproj": true, + "**/*.pidb": true, + "**/*.suo": true, + "**/*.user": true, + "**/*.userprefs": true, + "**/*.unityproj": true, + "**/*.dll": true, + "**/*.exe": true, + "**/*.pdf": true, + "**/*.mid": true, + "**/*.midi": true, + "**/*.wav": true, + "**/*.gif": true, + "**/*.ico": true, + "**/*.jpg": true, + "**/*.jpeg": true, + "**/*.png": true, + "**/*.psd": true, + "**/*.tga": true, + "**/*.tif": true, + "**/*.tiff": true, + "**/*.3ds": true, + "**/*.3DS": true, + "**/*.fbx": true, + "**/*.FBX": true, + "**/*.lxo": true, + "**/*.LXO": true, + "**/*.ma": true, + "**/*.MA": true, + "**/*.obj": true, + "**/*.OBJ": true, + "**/*.asset": true, + "**/*.cubemap": true, + "**/*.flare": true, + "**/*.mat": true, + "**/*.meta": true, + "**/*.prefab": true, + "**/*.unity": true, + "build/": true, + "Build/": true, + "Library/": true, + "library/": true, + "obj/": true, + "Obj/": true, + "Logs/": true, + "logs/": true, + "ProjectSettings/": true, + "UserSettings/": true, + "temp/": true, + "Temp/": true + }, + "files.associations": { + "*.asset": "yaml", + "*.meta": "yaml", + "*.prefab": "yaml", + "*.unity": "yaml", + }, + "explorer.fileNesting.enabled": true, + "explorer.fileNesting.patterns": { + "*.sln": "*.csproj", + "*.slnx": "*.csproj" + }, + "dotnet.defaultSolution": "Souljack.slnx" +} \ No newline at end of file diff --git a/Assets/RoomAssets/_LightAssets/Laboratory.asset b/Assets/RoomAssets/_LightAssets/Laboratory.asset index dc7e4cb..9b15086 100644 --- a/Assets/RoomAssets/_LightAssets/Laboratory.asset +++ b/Assets/RoomAssets/_LightAssets/Laboratory.asset @@ -22,7 +22,7 @@ MonoBehaviour: range: 15 shadows: 0 bakeToRuntimeLightmap: 1 - disableRealtimeLightsAfterBake: 1 + disableRealtimeLightsAfterBake: 0 lightmapResolution: 128 ceilingBounceIntensity: 0.3 bakedAmbientIntensity: 0.7 diff --git a/Assets/Scenes/Main.unity b/Assets/Scenes/Main.unity index 905c018..637610d 100644 --- a/Assets/Scenes/Main.unity +++ b/Assets/Scenes/Main.unity @@ -13861,6 +13861,7 @@ GameObject: - component: {fileID: 740097207} - component: {fileID: 740097208} - component: {fileID: 740097209} + - component: {fileID: 740097210} m_Layer: 0 m_Name: WallsGenerator m_TagString: Untagged @@ -13881,15 +13882,15 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: Assembly-CSharp::_Project.Scripts.LevelGenerating.WallsGenerator floorsCount: 3 - lengthWallMin: 10 - lengthWallMax: 70 + lengthWallMin: 20 + lengthWallMax: 40 lengthStartRoom: 10 lengthLiftRoom: 10 widthLiftRoom: 5 lengthFloor: 200 corridorLength: 4 corridorWigth: 3 - minRoomCount: 4 + minRoomCount: 2 _minDepthLiftRoom: 5 _minDistanceStartLift: 50 GameObjectA: {fileID: 8066171868259172852, guid: e46748b8eb8a6074d9bb87701cebe84b, type: 3} @@ -13897,7 +13898,7 @@ MonoBehaviour: Player: {fileID: 1033791869251556189} shellSpawner: {fileID: 740097207} roomGenerators: {fileID: 740097208} - maxRooms: 3 + maxRooms: 10 branchChance: 1 roomMargin: 2 liftDoorAnyPosition: 0 @@ -13991,6 +13992,26 @@ MonoBehaviour: specialPlayerSpawnPoint: {x: 0, y: 2, z: 0} lockDoorsInCombat: 1 playerSpawnHeight: 1.5 +--- !u!114 &740097210 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 740097203} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3d7327d69e0042a9a1c8004fa01d389f, type: 3} + m_Name: + m_EditorClassIdentifier: Assembly-CSharp::_Project.Scripts.LevelGenerating.LaboratoryPropGenerator + labTable: {fileID: 0} + fridge: {fileID: 0} + shelf: {fileID: 0} + workDesk: {fileID: 0} + specimenTank: {fileID: 0} + steelMaterial: {fileID: 0} + bodyMaterial: {fileID: 0} + doorClearance: 1.5 --- !u!1001 &740364276 PrefabInstance: m_ObjectHideFlags: 0 @@ -29645,6 +29666,67 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1521277821} m_CullTransparentMesh: 1 +--- !u!1001 &1522400367 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: -8679921383154817045, guid: ce5db7d1ed509f04cb9b26853f42d0c6, type: 3} + propertyPath: m_LocalPosition.x + value: 135.05948 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: ce5db7d1ed509f04cb9b26853f42d0c6, type: 3} + propertyPath: m_LocalPosition.y + value: 2.2 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: ce5db7d1ed509f04cb9b26853f42d0c6, type: 3} + propertyPath: m_LocalPosition.z + value: 65.1 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: ce5db7d1ed509f04cb9b26853f42d0c6, type: 3} + propertyPath: m_LocalRotation.w + value: 0.7071067 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: ce5db7d1ed509f04cb9b26853f42d0c6, type: 3} + propertyPath: m_LocalRotation.x + value: -0.7071068 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: ce5db7d1ed509f04cb9b26853f42d0c6, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: ce5db7d1ed509f04cb9b26853f42d0c6, type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: ce5db7d1ed509f04cb9b26853f42d0c6, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: ce5db7d1ed509f04cb9b26853f42d0c6, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: ce5db7d1ed509f04cb9b26853f42d0c6, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: -7511558181221131132, guid: ce5db7d1ed509f04cb9b26853f42d0c6, type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: 0ef0de0b3ea7fc844b92537c4b0732ca, type: 2} + - target: {fileID: 919132149155446097, guid: ce5db7d1ed509f04cb9b26853f42d0c6, type: 3} + propertyPath: m_Name + value: Untitled + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: ce5db7d1ed509f04cb9b26853f42d0c6, type: 3} --- !u!1001 &1525151379 PrefabInstance: m_ObjectHideFlags: 0 @@ -42279,6 +42361,22 @@ Transform: m_CorrespondingSourceObject: {fileID: 7060358851928517638, guid: dc48d9e02acd04cb786357a49b2aa38d, type: 3} m_PrefabInstance: {fileID: 1533000161} m_PrefabAsset: {fileID: 0} +--- !u!1 &34767798278874526 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 4265989352252326318} + m_Layer: 0 + m_Name: root + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 --- !u!4 &45577399334987902 stripped Transform: m_CorrespondingSourceObject: {fileID: 7790047697380616352, guid: a08f59b910c8446a681d1932a4ffe269, type: 3} @@ -42411,6 +42509,23 @@ Transform: m_CorrespondingSourceObject: {fileID: 7790047697380616352, guid: a08f59b910c8446a681d1932a4ffe269, type: 3} m_PrefabInstance: {fileID: 1015820273} m_PrefabAsset: {fileID: 0} +--- !u!4 &543450652752356692 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 919132149036253166} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 132.31557, y: 1.646, z: 64.06419} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 7997351832175780025} + - {fileID: 2429395782948419499} + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &545101413550595476 stripped Transform: m_CorrespondingSourceObject: {fileID: 779091436301119123, guid: 166dc75935ef5473eb1dea7565c83806, type: 3} @@ -42527,11 +42642,35 @@ Transform: m_CorrespondingSourceObject: {fileID: 1672666446545052606, guid: 51510de34f82041149d25090ec962e10, type: 3} m_PrefabInstance: {fileID: 871119921} m_PrefabAsset: {fileID: 0} +--- !u!1 &919132149036253166 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 543450652752356692} + m_Layer: 0 + m_Name: shkaf + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 --- !u!4 &944016017491844607 stripped Transform: m_CorrespondingSourceObject: {fileID: 1672666446545052606, guid: 51510de34f82041149d25090ec962e10, type: 3} m_PrefabInstance: {fileID: 803763867} m_PrefabAsset: {fileID: 0} +--- !u!33 &948294353810025156 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6337664210832529729} + m_Mesh: {fileID: -864259460963330315, guid: c7cc7410f78336e4383d92285cdaf85e, type: 3} --- !u!4 &949580660711775402 stripped Transform: m_CorrespondingSourceObject: {fileID: 3176268455257988227, guid: 81044204068d943dd8e46160655d2108, type: 3} @@ -42622,6 +42761,55 @@ Transform: m_CorrespondingSourceObject: {fileID: 3701771895817226183, guid: def5750a5ceb84845a9ee9beda9425e1, type: 3} m_PrefabInstance: {fileID: 1606539277} m_PrefabAsset: {fileID: 0} +--- !u!23 &1168606066114082934 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6337664210832529729} + 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_RayTracingAccelStructBuildFlagsOverride: 0 + m_RayTracingAccelStructBuildFlags: 1 + m_SmallMeshCulling: 1 + m_ForceMeshLod: -1 + m_MeshLodSelectionBias: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 406cb8d51b31396408010c4f8e78d4cd, 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_GlobalIlluminationMeshLod: 0 + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_MaskInteraction: 0 + m_AdditionalVertexStreams: {fileID: 0} --- !u!4 &1188593732688237340 stripped Transform: m_CorrespondingSourceObject: {fileID: 1672666446545052606, guid: 51510de34f82041149d25090ec962e10, type: 3} @@ -42652,6 +42840,22 @@ Transform: m_CorrespondingSourceObject: {fileID: 7790047697380616352, guid: a08f59b910c8446a681d1932a4ffe269, type: 3} m_PrefabInstance: {fileID: 1398922941} m_PrefabAsset: {fileID: 0} +--- !u!4 &1250037989268310753 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4276981787483515037} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0.0029031634, y: 0.0015974855, z: 0.0066436613} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 7702750847317919175} + m_Father: {fileID: 6956096525102225871} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &1257507127690414477 stripped Transform: m_CorrespondingSourceObject: {fileID: 1780572367005174492, guid: 1ad33190abef140138c036ec06a5abb2, type: 3} @@ -42942,6 +43146,21 @@ Transform: m_CorrespondingSourceObject: {fileID: 1672666446545052606, guid: 51510de34f82041149d25090ec962e10, type: 3} m_PrefabInstance: {fileID: 2096711319} m_PrefabAsset: {fileID: 0} +--- !u!4 &2429395782948419499 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5482539188891955168} + serializedVersion: 2 + m_LocalRotation: {x: -0.7071068, y: 0, z: -0, w: 0.7071067} + m_LocalPosition: {x: 0.29031634, y: 0.6643661, z: -0.15974855} + m_LocalScale: {x: 100, y: 100, z: 100} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 543450652752356692} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &2453804539846263371 stripped Transform: m_CorrespondingSourceObject: {fileID: 779091436301119123, guid: 166dc75935ef5473eb1dea7565c83806, type: 3} @@ -43168,6 +43387,55 @@ Transform: m_CorrespondingSourceObject: {fileID: 7790047697380616352, guid: a08f59b910c8446a681d1932a4ffe269, type: 3} m_PrefabInstance: {fileID: 2109216633} m_PrefabAsset: {fileID: 0} +--- !u!23 &3091363456867688170 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5482539188891955168} + 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_RayTracingAccelStructBuildFlagsOverride: 0 + m_RayTracingAccelStructBuildFlags: 1 + m_SmallMeshCulling: 1 + m_ForceMeshLod: -1 + m_MeshLodSelectionBias: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 0ef0de0b3ea7fc844b92537c4b0732ca, 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_GlobalIlluminationMeshLod: 0 + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_MaskInteraction: 0 + m_AdditionalVertexStreams: {fileID: 0} --- !u!4 &3119406532631440874 stripped Transform: m_CorrespondingSourceObject: {fileID: 7790047697380616352, guid: a08f59b910c8446a681d1932a4ffe269, type: 3} @@ -43452,11 +43720,43 @@ Transform: m_CorrespondingSourceObject: {fileID: 1672666446545052606, guid: 51510de34f82041149d25090ec962e10, type: 3} m_PrefabInstance: {fileID: 1939123209} m_PrefabAsset: {fileID: 0} +--- !u!4 &4265989352252326318 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 34767798278874526} + serializedVersion: 2 + 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: + - {fileID: 6956096525102225871} + m_Father: {fileID: 7997351832175780025} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &4270725509549250245 stripped Transform: m_CorrespondingSourceObject: {fileID: 1672666446545052606, guid: 51510de34f82041149d25090ec962e10, type: 3} m_PrefabInstance: {fileID: 660946063} m_PrefabAsset: {fileID: 0} +--- !u!1 &4276981787483515037 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1250037989268310753} + m_Layer: 0 + m_Name: ______________________________________________________.010_0 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 --- !u!136 &4300447627476761733 CapsuleCollider: m_ObjectHideFlags: 0 @@ -43495,6 +43795,22 @@ Transform: m_CorrespondingSourceObject: {fileID: 7790047697380616352, guid: a08f59b910c8446a681d1932a4ffe269, type: 3} m_PrefabInstance: {fileID: 1839113633} m_PrefabAsset: {fileID: 0} +--- !u!1 &4346563983416403393 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7997351832175780025} + m_Layer: 0 + m_Name: Sketchfab_model + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 --- !u!4 &4379792820901945747 stripped Transform: m_CorrespondingSourceObject: {fileID: 1672666446545052606, guid: 51510de34f82041149d25090ec962e10, type: 3} @@ -44070,6 +44386,24 @@ Transform: m_CorrespondingSourceObject: {fileID: 1672666446545052606, guid: 51510de34f82041149d25090ec962e10, type: 3} m_PrefabInstance: {fileID: 2015413128} m_PrefabAsset: {fileID: 0} +--- !u!1 &5482539188891955168 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2429395782948419499} + - component: {fileID: 6130230811377073730} + - component: {fileID: 3091363456867688170} + m_Layer: 0 + m_Name: "\u041F\u043B\u043E\u0441\u043A\u043E\u0441\u0442\u044C.010" + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 0 --- !u!4 &5491413007444721447 stripped Transform: m_CorrespondingSourceObject: {fileID: 1672666446545052606, guid: 51510de34f82041149d25090ec962e10, type: 3} @@ -44230,6 +44564,14 @@ Transform: m_CorrespondingSourceObject: {fileID: 1672666446545052606, guid: 51510de34f82041149d25090ec962e10, type: 3} m_PrefabInstance: {fileID: 1644015819} m_PrefabAsset: {fileID: 0} +--- !u!33 &6130230811377073730 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5482539188891955168} + m_Mesh: {fileID: -1863652830868137401, guid: c7cc7410f78336e4383d92285cdaf85e, type: 3} --- !u!4 &6131216460581161642 stripped Transform: m_CorrespondingSourceObject: {fileID: 7790047697380616352, guid: a08f59b910c8446a681d1932a4ffe269, type: 3} @@ -44312,6 +44654,24 @@ Transform: m_CorrespondingSourceObject: {fileID: 3176268455257988227, guid: 81044204068d943dd8e46160655d2108, type: 3} m_PrefabInstance: {fileID: 1462968001} m_PrefabAsset: {fileID: 0} +--- !u!1 &6337664210832529729 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7702750847317919175} + - component: {fileID: 948294353810025156} + - component: {fileID: 1168606066114082934} + m_Layer: 0 + m_Name: Object_4 + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 --- !u!4 &6379020180628377151 stripped Transform: m_CorrespondingSourceObject: {fileID: 1780572367005174492, guid: 1ad33190abef140138c036ec06a5abb2, type: 3} @@ -44392,6 +44752,22 @@ Transform: m_CorrespondingSourceObject: {fileID: 1672666446545052606, guid: 51510de34f82041149d25090ec962e10, type: 3} m_PrefabInstance: {fileID: 394786724} m_PrefabAsset: {fileID: 0} +--- !u!1 &6584967507200886522 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6956096525102225871} + m_Layer: 0 + m_Name: GLTF_SceneRootNode + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 --- !u!4 &6621499760233180253 stripped Transform: m_CorrespondingSourceObject: {fileID: 1672666446545052606, guid: 51510de34f82041149d25090ec962e10, type: 3} @@ -45132,6 +45508,22 @@ Transform: m_CorrespondingSourceObject: {fileID: 3176268455257988227, guid: 81044204068d943dd8e46160655d2108, type: 3} m_PrefabInstance: {fileID: 980686773} m_PrefabAsset: {fileID: 0} +--- !u!4 &6956096525102225871 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6584967507200886522} + serializedVersion: 2 + m_LocalRotation: {x: 0.7071069, y: 0, z: -0, w: 0.7071067} + m_LocalPosition: {x: -0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1.0000001, z: 1.0000001} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1250037989268310753} + m_Father: {fileID: 4265989352252326318} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &6960542476626552313 stripped Transform: m_CorrespondingSourceObject: {fileID: 1672666446545052606, guid: 51510de34f82041149d25090ec962e10, type: 3} @@ -45420,6 +45812,21 @@ Transform: m_CorrespondingSourceObject: {fileID: 1672666446545052606, guid: 51510de34f82041149d25090ec962e10, type: 3} m_PrefabInstance: {fileID: 257224293} m_PrefabAsset: {fileID: 0} +--- !u!4 &7702750847317919175 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6337664210832529729} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0.2754, y: -0.3514, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1250037989268310753} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &7745371720210613924 stripped Transform: m_CorrespondingSourceObject: {fileID: 1672666446545052606, guid: 51510de34f82041149d25090ec962e10, type: 3} @@ -45490,6 +45897,22 @@ Transform: m_CorrespondingSourceObject: {fileID: 779091436301119123, guid: 166dc75935ef5473eb1dea7565c83806, type: 3} m_PrefabInstance: {fileID: 215726196} m_PrefabAsset: {fileID: 0} +--- !u!4 &7997351832175780025 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4346563983416403393} + serializedVersion: 2 + m_LocalRotation: {x: 1, y: 0, z: -0, w: 0.0000000754979} + m_LocalPosition: {x: -0, y: 0, z: 0} + m_LocalScale: {x: 100, y: 100.000015, z: 100.000015} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 4265989352252326318} + m_Father: {fileID: 543450652752356692} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!4 &8012467848177667871 stripped Transform: m_CorrespondingSourceObject: {fileID: 3088817182453861491, guid: 2a9cd6b33b98548bf8d7d4f94a53e1d8, type: 3} @@ -45862,3 +46285,5 @@ SceneRoots: - {fileID: 740097205} - {fileID: 552049569} - {fileID: 1706114976} + - {fileID: 1522400367} + - {fileID: 543450652752356692} diff --git a/Assets/_Project/Models.meta b/Assets/_Project/Models.meta new file mode 100644 index 0000000..37d724f --- /dev/null +++ b/Assets/_Project/Models.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: e740f2bcfa288404c90fe373ea796015 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/_Project/Models/Lab.meta b/Assets/_Project/Models/Lab.meta new file mode 100644 index 0000000..5860a08 --- /dev/null +++ b/Assets/_Project/Models/Lab.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 9218e51b72ae1be469fbfc91abc8537b +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/_Project/Models/Lab/Shkaf.meta b/Assets/_Project/Models/Lab/Shkaf.meta new file mode 100644 index 0000000..2cae944 --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 97612ed647d2db44487561d5f2387726 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/_Project/Models/Lab/Shkaf/source.meta b/Assets/_Project/Models/Lab/Shkaf/source.meta new file mode 100644 index 0000000..7bc044a --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/source.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f12caaeffe6e7c84d86d484355efadcd +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/_Project/Models/Lab/Shkaf/source/3467.glb b/Assets/_Project/Models/Lab/Shkaf/source/3467.glb new file mode 100644 index 0000000..827b969 Binary files /dev/null and b/Assets/_Project/Models/Lab/Shkaf/source/3467.glb differ diff --git a/Assets/_Project/Models/Lab/Shkaf/source/3467.glb.meta b/Assets/_Project/Models/Lab/Shkaf/source/3467.glb.meta new file mode 100644 index 0000000..1e72313 --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/source/3467.glb.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 275603225ef66a34bb2753f78ef26501 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/_Project/Models/Lab/Shkaf/source/Untitled.fbx b/Assets/_Project/Models/Lab/Shkaf/source/Untitled.fbx new file mode 100644 index 0000000..a236803 --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/source/Untitled.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:202ba8ec1d8dda7fd6822cd2d90da306a4c0acffd316bcf498ef56eea596488e +size 223084 diff --git a/Assets/_Project/Models/Lab/Shkaf/source/Untitled.fbx.meta b/Assets/_Project/Models/Lab/Shkaf/source/Untitled.fbx.meta new file mode 100644 index 0000000..6da3884 --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/source/Untitled.fbx.meta @@ -0,0 +1,116 @@ +fileFormatVersion: 2 +guid: ce5db7d1ed509f04cb9b26853f42d0c6 +ModelImporter: + serializedVersion: 24600 + internalIDToNameTable: [] + externalObjects: {} + materials: + materialImportMode: 2 + materialName: 0 + materialSearch: 1 + materialLocation: 1 + searchTexturesGlobally: 0 + animations: + legacyGenerateAnimations: 4 + bakeSimulation: 0 + resampleCurves: 1 + optimizeGameObjects: 0 + removeConstantScaleCurves: 0 + motionNodeName: + animationImportErrors: + animationImportWarnings: + animationRetargetingWarnings: + animationDoRetargetingWarnings: 0 + importAnimatedCustomProperties: 0 + importConstraints: 0 + animationCompression: 1 + animationRotationError: 0.5 + animationPositionError: 0.5 + animationScaleError: 0.5 + animationWrapMode: 0 + extraExposedTransformPaths: [] + extraUserProperties: [] + clipAnimations: [] + isReadable: 0 + meshes: + lODScreenPercentages: [] + globalScale: 1 + meshCompression: 0 + addColliders: 0 + useSRGBMaterialColor: 1 + sortHierarchyByName: 1 + preBakeConvexCollisionMesh: 0 + preBakeTriangleCollisionMesh: 0 + importPhysicalCameras: 1 + importVisibility: 1 + importBlendShapes: 1 + importCameras: 1 + importLights: 1 + nodeNameCollisionStrategy: 1 + fileIdsGeneration: 2 + swapUVChannels: 0 + generateSecondaryUV: 0 + useFileUnits: 1 + keepQuads: 0 + weldVertices: 1 + bakeAxisConversion: 0 + preserveHierarchy: 0 + skinWeightsMode: 0 + maxBonesPerVertex: 4 + minBoneWeight: 0.001 + optimizeBones: 1 + generateMeshLods: 0 + meshLodGenerationFlags: 0 + maximumMeshLod: -1 + importUVs: -1 + importVertexColors: 1 + meshOptimizationFlags: -1 + indexFormat: 0 + secondaryUVAngleDistortion: 8 + secondaryUVAreaDistortion: 15.000001 + secondaryUVHardAngle: 88 + secondaryUVMarginMethod: 1 + secondaryUVMinLightmapResolution: 40 + secondaryUVMinObjectScale: 1 + secondaryUVPackMargin: 4 + useFileScale: 1 + strictVertexDataChecks: 0 + tangentSpace: + normalSmoothAngle: 60 + normalImportMode: 0 + tangentImportMode: 3 + normalCalculationMode: 4 + legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 + blendShapeNormalImportMode: 1 + normalSmoothingSource: 0 + calculateBlendshapeNormalsDeltaFromImportedNormals: 0 + referencedClips: [] + importAnimation: 1 + humanDescription: + serializedVersion: 3 + human: [] + skeleton: [] + armTwist: 0.5 + foreArmTwist: 0.5 + upperLegTwist: 0.5 + legTwist: 0.5 + armStretch: 0.05 + legStretch: 0.05 + feetSpacing: 0 + globalScale: 1 + rootMotionBoneName: + hasTranslationDoF: 0 + hasExtraRoot: 0 + skeletonHasParents: 1 + lastHumanDescriptionAvatarSource: {instanceID: 0} + autoGenerateAvatarMappingIfUnspecified: 1 + animationType: 2 + humanoidOversampling: 1 + avatarSetup: 0 + addHumanoidExtraRootOnlyWhenUsingAvatar: 1 + importBlendShapeDeformPercent: 1 + remapMaterialsIfMaterialImportModeIsNone: 0 + additionalBone: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/_Project/Models/Lab/Shkaf/source/shkaf.fbx b/Assets/_Project/Models/Lab/Shkaf/source/shkaf.fbx new file mode 100644 index 0000000..3eaaeac --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/source/shkaf.fbx @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4cf63b919e81084ace50e85c466f7390e4b84b0590c8640cd8f0cdf9cd4b867e +size 645340 diff --git a/Assets/_Project/Models/Lab/Shkaf/source/shkaf.fbx.meta b/Assets/_Project/Models/Lab/Shkaf/source/shkaf.fbx.meta new file mode 100644 index 0000000..b1ef70d --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/source/shkaf.fbx.meta @@ -0,0 +1,116 @@ +fileFormatVersion: 2 +guid: c7cc7410f78336e4383d92285cdaf85e +ModelImporter: + serializedVersion: 24600 + internalIDToNameTable: [] + externalObjects: {} + materials: + materialImportMode: 2 + materialName: 0 + materialSearch: 1 + materialLocation: 1 + searchTexturesGlobally: 0 + animations: + legacyGenerateAnimations: 4 + bakeSimulation: 0 + resampleCurves: 1 + optimizeGameObjects: 0 + removeConstantScaleCurves: 0 + motionNodeName: + animationImportErrors: + animationImportWarnings: + animationRetargetingWarnings: + animationDoRetargetingWarnings: 0 + importAnimatedCustomProperties: 0 + importConstraints: 0 + animationCompression: 1 + animationRotationError: 0.5 + animationPositionError: 0.5 + animationScaleError: 0.5 + animationWrapMode: 0 + extraExposedTransformPaths: [] + extraUserProperties: [] + clipAnimations: [] + isReadable: 0 + meshes: + lODScreenPercentages: [] + globalScale: 1 + meshCompression: 0 + addColliders: 0 + useSRGBMaterialColor: 1 + sortHierarchyByName: 1 + preBakeConvexCollisionMesh: 0 + preBakeTriangleCollisionMesh: 0 + importPhysicalCameras: 1 + importVisibility: 1 + importBlendShapes: 1 + importCameras: 1 + importLights: 1 + nodeNameCollisionStrategy: 1 + fileIdsGeneration: 2 + swapUVChannels: 0 + generateSecondaryUV: 0 + useFileUnits: 1 + keepQuads: 0 + weldVertices: 1 + bakeAxisConversion: 0 + preserveHierarchy: 0 + skinWeightsMode: 0 + maxBonesPerVertex: 4 + minBoneWeight: 0.001 + optimizeBones: 1 + generateMeshLods: 0 + meshLodGenerationFlags: 0 + maximumMeshLod: -1 + importUVs: -1 + importVertexColors: 1 + meshOptimizationFlags: -1 + indexFormat: 0 + secondaryUVAngleDistortion: 8 + secondaryUVAreaDistortion: 15.000001 + secondaryUVHardAngle: 88 + secondaryUVMarginMethod: 1 + secondaryUVMinLightmapResolution: 40 + secondaryUVMinObjectScale: 1 + secondaryUVPackMargin: 4 + useFileScale: 1 + strictVertexDataChecks: 0 + tangentSpace: + normalSmoothAngle: 60 + normalImportMode: 0 + tangentImportMode: 3 + normalCalculationMode: 4 + legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 + blendShapeNormalImportMode: 1 + normalSmoothingSource: 0 + calculateBlendshapeNormalsDeltaFromImportedNormals: 0 + referencedClips: [] + importAnimation: 1 + humanDescription: + serializedVersion: 3 + human: [] + skeleton: [] + armTwist: 0.5 + foreArmTwist: 0.5 + upperLegTwist: 0.5 + legTwist: 0.5 + armStretch: 0.05 + legStretch: 0.05 + feetSpacing: 0 + globalScale: 1 + rootMotionBoneName: + hasTranslationDoF: 0 + hasExtraRoot: 0 + skeletonHasParents: 1 + lastHumanDescriptionAvatarSource: {instanceID: 0} + autoGenerateAvatarMappingIfUnspecified: 1 + animationType: 2 + humanoidOversampling: 1 + avatarSetup: 0 + addHumanoidExtraRootOnlyWhenUsingAvatar: 1 + importBlendShapeDeformPercent: 1 + remapMaterialsIfMaterialImportModeIsNone: 0 + additionalBone: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/_Project/Models/Lab/Shkaf/textures.meta b/Assets/_Project/Models/Lab/Shkaf/textures.meta new file mode 100644 index 0000000..d08bf9e --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/textures.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 8d79eaf8e739d20438e8ed220cad4502 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/_Project/Models/Lab/Shkaf/textures/baseColor.png b/Assets/_Project/Models/Lab/Shkaf/textures/baseColor.png new file mode 100644 index 0000000..4ce70e3 --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/textures/baseColor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20299f4d16d2f8e09952772aecfc329e26299f767dc8ea745e672a478485e062 +size 1597473 diff --git a/Assets/_Project/Models/Lab/Shkaf/textures/baseColor.png.meta b/Assets/_Project/Models/Lab/Shkaf/textures/baseColor.png.meta new file mode 100644 index 0000000..2b94590 --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/textures/baseColor.png.meta @@ -0,0 +1,119 @@ +fileFormatVersion: 2 +guid: 034151e8bd3b0e54a83181f3db9603cf +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationMethod: 0 + spriteTessellationDetail: -1 + spriteGeometrySubdivision: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/_Project/Models/Lab/Shkaf/textures/emissive.png b/Assets/_Project/Models/Lab/Shkaf/textures/emissive.png new file mode 100644 index 0000000..c50fd21 --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/textures/emissive.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f95adb9a1f24c1178f964ff45b6108ad00bf012f1f7a788914852890cf8a501f +size 5303 diff --git a/Assets/_Project/Models/Lab/Shkaf/textures/emissive.png.meta b/Assets/_Project/Models/Lab/Shkaf/textures/emissive.png.meta new file mode 100644 index 0000000..5a61f7a --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/textures/emissive.png.meta @@ -0,0 +1,119 @@ +fileFormatVersion: 2 +guid: 38fe282d26c1409499c2e71db257cc3c +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationMethod: 0 + spriteTessellationDetail: -1 + spriteGeometrySubdivision: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/_Project/Models/Lab/Shkaf/textures/metallicRoughness.png b/Assets/_Project/Models/Lab/Shkaf/textures/metallicRoughness.png new file mode 100644 index 0000000..8b558b9 --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/textures/metallicRoughness.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:94757e685357cda1682f00002238f8a237af61a12f5c6e7c4ea63545cd669f17 +size 3957089 diff --git a/Assets/_Project/Models/Lab/Shkaf/textures/metallicRoughness.png.meta b/Assets/_Project/Models/Lab/Shkaf/textures/metallicRoughness.png.meta new file mode 100644 index 0000000..24d0b7f --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/textures/metallicRoughness.png.meta @@ -0,0 +1,119 @@ +fileFormatVersion: 2 +guid: f19a321aed697d64bbea6a5353ff3420 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationMethod: 0 + spriteTessellationDetail: -1 + spriteGeometrySubdivision: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/_Project/Models/Lab/Shkaf/textures/normal.png b/Assets/_Project/Models/Lab/Shkaf/textures/normal.png new file mode 100644 index 0000000..3a155cd --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/textures/normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0aa396689fd5e28e3c43a8c4a4e3fa9f5de38adad9bbf35108c46450023d0d13 +size 7424268 diff --git a/Assets/_Project/Models/Lab/Shkaf/textures/normal.png.meta b/Assets/_Project/Models/Lab/Shkaf/textures/normal.png.meta new file mode 100644 index 0000000..e7edd05 --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/textures/normal.png.meta @@ -0,0 +1,119 @@ +fileFormatVersion: 2 +guid: 30dffbb3d4306d54caaaad0325f2835c +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationMethod: 0 + spriteTessellationDetail: -1 + spriteGeometrySubdivision: -1 + textureType: 1 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/_Project/Models/Lab/Shkaf/textures/shkaflab 1.mat b/Assets/_Project/Models/Lab/Shkaf/textures/shkaflab 1.mat new file mode 100644 index 0000000..defaa4f --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/textures/shkaflab 1.mat @@ -0,0 +1,147 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &-6744249009044673858 +MonoBehaviour: + m_ObjectHideFlags: 11 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} + m_Name: + m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Editor::UnityEditor.Rendering.Universal.AssetVersion + version: 10 +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: shkaflab 1 + m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _EMISSION + - _METALLICSPECGLOSSMAP + - _NORMALMAP + m_InvalidKeywords: [] + m_LightmapFlags: 1 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: + RenderType: Opaque + disabledShaderPasses: + - MOTIONVECTORS + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BaseMap: + m_Texture: {fileID: 2800000, guid: 034151e8bd3b0e54a83181f3db9603cf, type: 3} + m_Scale: {x: 0.5, y: 0.5} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 2800000, guid: 30dffbb3d4306d54caaaad0325f2835c, type: 3} + 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: 2800000, guid: 38fe282d26c1409499c2e71db257cc3c, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 2800000, guid: 034151e8bd3b0e54a83181f3db9603cf, type: 3} + m_Scale: {x: 0.5, y: 0.5} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 2800000, guid: f19a321aed697d64bbea6a5353ff3420, type: 3} + 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} + - _RoughnessMap: + m_Texture: {fileID: 2800000, guid: f19a321aed697d64bbea6a5353ff3420, 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} + m_Offset: {x: 0, y: 0} + - unity_Lightmaps: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_LightmapsInd: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_ShadowMasks: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _AddPrecomputedVelocity: 0 + - _AlphaClip: 0 + - _AlphaToMask: 0 + - _Blend: 0 + - _BlendModePreserveSpecular: 1 + - _BumpScale: 1 + - _ClearCoatMask: 0 + - _ClearCoatSmoothness: 0 + - _Cull: 2 + - _Cutoff: 0.55 + - _DetailAlbedoMapScale: 1 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _DstBlendAlpha: 0 + - _EnvironmentReflections: 1 + - _GlossMapScale: 0 + - _Glossiness: 0 + - _GlossyReflections: 0 + - _Metallic: 0.589 + - _OcclusionStrength: 1 + - _Parallax: 0.005 + - _QueueOffset: 0 + - _ReceiveShadows: 1 + - _ScreenSpaceReflections: 1 + - _ScreenSpaceReflectionsContributeTransparent: 1 + - _Smoothness: 0 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _SrcBlendAlpha: 1 + - _Surface: 0 + - _UseRoughnessMap: 1 + - _WorkflowMode: 1 + - _XRMotionVectorsPass: 1 + - _ZWrite: 1 + m_Colors: + - _BaseColor: {r: 1, g: 1, b: 1, a: 1} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 1024, g: 1024, b: 1024, a: 1} + - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} + m_BuildTextureStacks: [] + m_AllowLocking: 1 diff --git a/Assets/_Project/Models/Lab/Shkaf/textures/shkaflab 1.mat.meta b/Assets/_Project/Models/Lab/Shkaf/textures/shkaflab 1.mat.meta new file mode 100644 index 0000000..71c7c1a --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/textures/shkaflab 1.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 406cb8d51b31396408010c4f8e78d4cd +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/_Project/Models/Lab/Shkaf/textures/shkaflab.mat b/Assets/_Project/Models/Lab/Shkaf/textures/shkaflab.mat new file mode 100644 index 0000000..d92a28f --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/textures/shkaflab.mat @@ -0,0 +1,146 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &-6744249009044673858 +MonoBehaviour: + m_ObjectHideFlags: 11 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} + m_Name: + m_EditorClassIdentifier: Unity.RenderPipelines.Universal.Editor::UnityEditor.Rendering.Universal.AssetVersion + version: 10 +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: shkaflab + m_Shader: {fileID: 4800000, guid: 0a7484571253481a8dbad0d7a985699d, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: + - _EMISSION + - _METALLICSPECGLOSSMAP + - _ROUGHNESSMAP + m_InvalidKeywords: [] + m_LightmapFlags: 6 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: + - MOTIONVECTORS + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BaseMap: + m_Texture: {fileID: 2800000, guid: 034151e8bd3b0e54a83181f3db9603cf, type: 3} + m_Scale: {x: 0.5, y: 0.5} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 2800000, guid: 30dffbb3d4306d54caaaad0325f2835c, type: 3} + 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: 2800000, guid: 38fe282d26c1409499c2e71db257cc3c, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 2800000, guid: 6856b8a9eab1a554aab3b7157172820c, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, 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} + - _RoughnessMap: + m_Texture: {fileID: 2800000, guid: f19a321aed697d64bbea6a5353ff3420, 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} + m_Offset: {x: 0, y: 0} + - unity_Lightmaps: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_LightmapsInd: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_ShadowMasks: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _AddPrecomputedVelocity: 0 + - _AlphaClip: 0 + - _AlphaToMask: 0 + - _Blend: 0 + - _BlendModePreserveSpecular: 1 + - _BumpScale: 1 + - _ClearCoatMask: 0 + - _ClearCoatSmoothness: 0 + - _Cull: 2 + - _Cutoff: 0.55 + - _DetailAlbedoMapScale: 1 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _DstBlendAlpha: 0 + - _EnvironmentReflections: 1 + - _GlossMapScale: 0 + - _Glossiness: 0 + - _GlossyReflections: 0 + - _Metallic: 0.589 + - _OcclusionStrength: 1 + - _Parallax: 0.005 + - _QueueOffset: 0 + - _ReceiveShadows: 1 + - _ScreenSpaceReflections: 1 + - _ScreenSpaceReflectionsContributeTransparent: 1 + - _Smoothness: 0.198 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _SrcBlendAlpha: 1 + - _Surface: 0 + - _UseRoughnessMap: 1 + - _WorkflowMode: 1 + - _XRMotionVectorsPass: 1 + - _ZWrite: 1 + m_Colors: + - _BaseColor: {r: 1, g: 1, b: 1, a: 1} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 1, g: 1, b: 1, a: 1} + - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} + m_BuildTextureStacks: [] + m_AllowLocking: 1 diff --git a/Assets/_Project/Models/Lab/Shkaf/textures/shkaflab.mat.meta b/Assets/_Project/Models/Lab/Shkaf/textures/shkaflab.mat.meta new file mode 100644 index 0000000..b857865 --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/textures/shkaflab.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0ef0de0b3ea7fc844b92537c4b0732ca +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/_Project/Models/Lab/Shkaf/textures/Материал.013_Base_color_2.png b/Assets/_Project/Models/Lab/Shkaf/textures/Материал.013_Base_color_2.png new file mode 100644 index 0000000..897b7ca --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/textures/Материал.013_Base_color_2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f41280ef0b994ee64fe4d0b327307c97099a9ea0bb3a4b52525cf6a02c60e2ea +size 1914410 diff --git a/Assets/_Project/Models/Lab/Shkaf/textures/Материал.013_Base_color_2.png.meta b/Assets/_Project/Models/Lab/Shkaf/textures/Материал.013_Base_color_2.png.meta new file mode 100644 index 0000000..8f3ec34 --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/textures/Материал.013_Base_color_2.png.meta @@ -0,0 +1,119 @@ +fileFormatVersion: 2 +guid: 6856b8a9eab1a554aab3b7157172820c +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationMethod: 0 + spriteTessellationDetail: -1 + spriteGeometrySubdivision: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 1 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/_Project/Models/Lab/Shkaf/textures/Материал.013_Emissive_0.png b/Assets/_Project/Models/Lab/Shkaf/textures/Материал.013_Emissive_0.png new file mode 100644 index 0000000..a2fc292 --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/textures/Материал.013_Emissive_0.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:89c7f54ebb389c2dbf4a1ab9daf2b8a89714d11c9ee87a066d52d238e6ffb8fe +size 5973 diff --git a/Assets/_Project/Models/Lab/Shkaf/textures/Материал.013_Emissive_0.png.meta b/Assets/_Project/Models/Lab/Shkaf/textures/Материал.013_Emissive_0.png.meta new file mode 100644 index 0000000..f6366b7 --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/textures/Материал.013_Emissive_0.png.meta @@ -0,0 +1,119 @@ +fileFormatVersion: 2 +guid: 519c53c530f692f4bb0b1b6ef7a5bc26 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationMethod: 0 + spriteTessellationDetail: -1 + spriteGeometrySubdivision: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 1 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/_Project/Models/Lab/Shkaf/textures/Материал.013_Metallic.png-Материал.013_Roughness.png_3@chann.png b/Assets/_Project/Models/Lab/Shkaf/textures/Материал.013_Metallic.png-Материал.013_Roughness.png_3@chann.png new file mode 100644 index 0000000..ab0e446 --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/textures/Материал.013_Metallic.png-Материал.013_Roughness.png_3@chann.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b2f012c4b36a17ae59a216f3d672a18c27108ed5a09c5251b4999a9724235a88 +size 1660820 diff --git a/Assets/_Project/Models/Lab/Shkaf/textures/Материал.013_Metallic.png-Материал.013_Roughness.png_3@chann.png.meta b/Assets/_Project/Models/Lab/Shkaf/textures/Материал.013_Metallic.png-Материал.013_Roughness.png_3@chann.png.meta new file mode 100644 index 0000000..48dcde9 --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/textures/Материал.013_Metallic.png-Материал.013_Roughness.png_3@chann.png.meta @@ -0,0 +1,119 @@ +fileFormatVersion: 2 +guid: 49bc5d646a6f8cb45b15a4c7ac510917 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationMethod: 0 + spriteTessellationDetail: -1 + spriteGeometrySubdivision: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 1 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/_Project/Models/Lab/Shkaf/textures/Материал.013_Normal_OpenGL_1.png b/Assets/_Project/Models/Lab/Shkaf/textures/Материал.013_Normal_OpenGL_1.png new file mode 100644 index 0000000..fa019bd --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/textures/Материал.013_Normal_OpenGL_1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:228317aa1f696eeed78d9373c57a09c26ee7ff24a470418110e3018ce97ad039 +size 32686792 diff --git a/Assets/_Project/Models/Lab/Shkaf/textures/Материал.013_Normal_OpenGL_1.png.meta b/Assets/_Project/Models/Lab/Shkaf/textures/Материал.013_Normal_OpenGL_1.png.meta new file mode 100644 index 0000000..95c64f2 --- /dev/null +++ b/Assets/_Project/Models/Lab/Shkaf/textures/Материал.013_Normal_OpenGL_1.png.meta @@ -0,0 +1,119 @@ +fileFormatVersion: 2 +guid: 751145275ef7619478a2fcb5d87c624c +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 0 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 0 + aniso: 1 + mipBias: 0 + wrapU: 0 + wrapV: 0 + wrapW: 0 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationMethod: 0 + spriteTessellationDetail: -1 + spriteGeometrySubdivision: -1 + textureType: 1 + textureShape: 1 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 1 + textureFormat: -1 + textureCompression: 0 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/_Project/Scripts/LevelGenerating/LabPropBuilders.cs b/Assets/_Project/Scripts/LevelGenerating/LabPropBuilders.cs new file mode 100644 index 0000000..05b4e0e --- /dev/null +++ b/Assets/_Project/Scripts/LevelGenerating/LabPropBuilders.cs @@ -0,0 +1,189 @@ +using UnityEngine; +using Random = System.Random; + +namespace _Project.Scripts.LevelGenerating +{ + // Сборка лабораторных предметов из примитивов. Пивот: центр основания на полу, перед в +Z. + public static class LabPropBuilders + { + private static float F(Random r, float a, float b) => a + (float)r.NextDouble() * (b - a); + private static Vector3 V(float x, float y, float z) => new Vector3(x, y, z); + + private static Transform Root(Transform parent, string name) + { + var t = new GameObject(name).transform; + t.SetParent(parent, false); + return t; + } + + // ---------- Лабораторный стол 2.0 x 0.8 x 0.9 ---------- + public static GameObject Bench(Transform parent, Random rng) + { + var t = Root(parent, "LabBench"); + var body = LabMaterials.Body; + var dark = LabMaterials.Dark; + var steel = LabMaterials.Steel; + + PrimitiveKit.Box(t, "Plinth", V(0, 0.05f, 0), V(1.8f, 0.1f, 0.64f), dark); + PrimitiveKit.Box(t, "Cabinet", V(0, 0.47f, 0), V(1.9f, 0.74f, 0.72f), body); + PrimitiveKit.Box(t, "Top", V(0, 0.87f, 0), V(2.0f, 0.06f, 0.8f), steel); + + // 3 дверцы: швы и ручки + for (int i = -1; i <= 1; i++) + PrimitiveKit.Box(t, "Handle", V(i * 0.633f, 0.74f, 0.375f), V(0.2f, 0.025f, 0.03f), steel); + PrimitiveKit.Box(t, "Seam", V(-0.317f, 0.47f, 0.362f), V(0.012f, 0.70f, 0.01f), dark); + PrimitiveKit.Box(t, "Seam", V(0.317f, 0.47f, 0.362f), V(0.012f, 0.70f, 0.01f), dark); + + // содержимое столешницы + const float topY = 0.90f; + for (int slot = -1; slot <= 1; slot++) + { + var p = V(slot * 0.7f + F(rng, -0.1f, 0.1f), topY, F(rng, -0.12f, 0.12f)); + switch (rng.Next(4)) + { + case 1: + Flask(t, p + V(-0.1f, 0, 0), rng.Next(3)); + Flask(t, p + V(0.1f, 0, 0.03f), rng.Next(3)); + break; + case 2: + Device(t, p, rng); + break; + case 3: + PrimitiveKit.Box(t, "Crate", p + V(0, 0.1f, 0), V(0.35f, 0.2f, 0.25f), LabMaterials.Crate(rng.Next(5))); + break; + } + } + + PrimitiveKit.AddCollider(t, V(0, 0.45f, 0), V(2.0f, 0.9f, 0.8f)); + return t.gameObject; + } + + private static void Flask(Transform t, Vector3 basePos, int liquid) + { + PrimitiveKit.Cylinder(t, "Flask", basePos + V(0, 0.09f, 0), 0.12f, 0.18f, LabMaterials.Liquid(liquid)); + PrimitiveKit.Cylinder(t, "FlaskNeck", basePos + V(0, 0.21f, 0), 0.04f, 0.06f, LabMaterials.Glass); + } + + private static void Device(Transform t, Vector3 basePos, Random rng) + { + PrimitiveKit.Box(t, "Device", basePos + V(0, 0.06f, 0), V(0.3f, 0.12f, 0.22f), LabMaterials.Plastic); + PrimitiveKit.Box(t, "DeviceLed", basePos + V(0.1f, 0.07f, 0.111f), V(0.03f, 0.02f, 0.005f), + rng.Next(2) == 0 ? LabMaterials.LedGreen : LabMaterials.LedRed); + } + + // ---------- Холодильник 0.8 x 0.75 x 1.9 ---------- + public static GameObject Fridge(Transform parent, Random rng) + { + var t = Root(parent, "Fridge"); + var body = LabMaterials.Body; + var dark = LabMaterials.Dark; + var steel = LabMaterials.Steel; + + PrimitiveKit.Box(t, "Plinth", V(0, 0.03f, 0), V(0.76f, 0.06f, 0.7f), dark); + PrimitiveKit.Box(t, "Body", V(0, 0.98f, 0), V(0.8f, 1.84f, 0.75f), body); + PrimitiveKit.Box(t, "DoorSeam", V(0, 1.25f, 0.376f), V(0.78f, 0.012f, 0.01f), dark); + PrimitiveKit.Box(t, "HandleTop", V(0.3f, 1.55f, 0.39f), V(0.025f, 0.4f, 0.03f), steel); + PrimitiveKit.Box(t, "HandleBottom", V(0.3f, 0.7f, 0.39f), V(0.025f, 0.5f, 0.03f), steel); + PrimitiveKit.Box(t, "Display", V(-0.05f, 1.7f, 0.377f), V(0.25f, 0.08f, 0.01f), LabMaterials.Screen); + PrimitiveKit.Box(t, "Led", V(-0.28f, 1.7f, 0.377f), V(0.03f, 0.03f, 0.01f), + rng.Next(5) == 0 ? LabMaterials.LedRed : LabMaterials.LedGreen); + + PrimitiveKit.AddCollider(t, V(0, 0.95f, 0), V(0.8f, 1.9f, 0.75f)); + return t.gameObject; + } + + // ---------- Стеллаж 1.2 x 0.45 x 1.9 ---------- + public static GameObject Shelf(Transform parent, Random rng) + { + var t = Root(parent, "Shelf"); + var steel = LabMaterials.Steel; + + foreach (float x in new[] { -0.58f, 0.58f }) + foreach (float z in new[] { -0.205f, 0.205f }) + PrimitiveKit.Box(t, "Post", V(x, 0.95f, z), V(0.04f, 1.9f, 0.04f), steel); + + float[] levels = { 0.1f, 0.5f, 0.9f, 1.3f, 1.7f }; + foreach (float y in levels) + { + PrimitiveKit.Box(t, "Board", V(0, y, 0), V(1.2f, 0.03f, 0.45f), steel); + + float cursor = -0.55f; + while (cursor < 0.45f) + { + float w = F(rng, 0.2f, 0.4f); + float h = F(rng, 0.14f, y > 1.6f ? 0.24f : 0.3f); + float d = F(rng, 0.25f, 0.38f); + if (cursor + w > 0.57f) break; + + if (rng.NextDouble() > 0.2) // иногда оставляем просвет + PrimitiveKit.Box(t, "Container", V(cursor + w * 0.5f, y + 0.015f + h * 0.5f, F(rng, -0.02f, 0.02f)), + V(w, h, d), LabMaterials.Crate(rng.Next(5))); + + cursor += w + F(rng, 0.02f, 0.1f); + } + } + + PrimitiveKit.AddCollider(t, V(0, 0.95f, 0), V(1.2f, 1.9f, 0.45f)); + return t.gameObject; + } + + // ---------- Рабочий стол с монитором 1.4 x 0.7 ---------- + public static GameObject WorkDesk(Transform parent, Random rng) + { + var t = Root(parent, "WorkDesk"); + var body = LabMaterials.Body; + var dark = LabMaterials.Dark; + var steel = LabMaterials.Steel; + + PrimitiveKit.Box(t, "Top", V(0, 0.735f, 0), V(1.4f, 0.03f, 0.7f), LabMaterials.Plastic); + PrimitiveKit.Box(t, "LeftPanel", V(-0.67f, 0.36f, 0), V(0.04f, 0.72f, 0.66f), steel); + PrimitiveKit.Box(t, "Modesty", V(-0.1f, 0.5f, -0.3f), V(1.1f, 0.4f, 0.02f), dark); + PrimitiveKit.Box(t, "Pedestal", V(0.48f, 0.36f, 0), V(0.44f, 0.72f, 0.64f), body); + PrimitiveKit.Box(t, "DrawerSeam", V(0.48f, 0.4f, 0.321f), V(0.42f, 0.012f, 0.01f), dark); + PrimitiveKit.Box(t, "DrawerHandle1", V(0.48f, 0.56f, 0.335f), V(0.16f, 0.02f, 0.025f), steel); + PrimitiveKit.Box(t, "DrawerHandle2", V(0.48f, 0.22f, 0.335f), V(0.16f, 0.02f, 0.025f), steel); + + // монитор экраном в +Z + PrimitiveKit.Box(t, "MonitorBase", V(-0.1f, 0.755f, -0.18f), V(0.25f, 0.015f, 0.18f), dark); + PrimitiveKit.Box(t, "MonitorNeck", V(-0.1f, 0.9f, -0.24f), V(0.04f, 0.28f, 0.03f), dark); + PrimitiveKit.Box(t, "MonitorBezel", V(-0.1f, 1.08f, -0.24f), V(0.6f, 0.36f, 0.03f), dark); + PrimitiveKit.Box(t, "MonitorScreen", V(-0.1f, 1.08f, -0.223f), V(0.56f, 0.32f, 0.005f), LabMaterials.Screen); + PrimitiveKit.Box(t, "Keyboard", V(-0.1f, 0.76f, 0.12f), V(0.42f, 0.02f, 0.14f), dark); + + PrimitiveKit.AddCollider(t, V(0, 0.4f, 0), V(1.4f, 0.8f, 0.7f)); + return t.gameObject; + } + + // ---------- Ёмкость с образцом Ø1.0 x 2.0 ---------- + public static GameObject SpecimenTank(Transform parent, Random rng) + { + var t = Root(parent, "SpecimenTank"); + var dark = LabMaterials.Dark; + + PrimitiveKit.Cylinder(t, "Base", V(0, 0.1f, 0), 1.0f, 0.2f, dark); + PrimitiveKit.Capsule(t, "Specimen", V(0, 1.0f, 0), 0.35f, 1.1f, LabMaterials.Specimen); + PrimitiveKit.Cylinder(t, "Glass", V(0, 1.05f, 0), 0.82f, 1.7f, LabMaterials.Glass); + PrimitiveKit.Cylinder(t, "Cap", V(0, 1.9f, 0), 1.0f, 0.2f, dark); + PrimitiveKit.Box(t, "Panel", V(0, 0.1f, 0.5f), V(0.2f, 0.08f, 0.02f), LabMaterials.Screen); + PrimitiveKit.Box(t, "Led", V(0.18f, 0.1f, 0.5f), V(0.03f, 0.03f, 0.02f), LabMaterials.LedGreen); + + PrimitiveKit.AddCollider(t, V(0, 1.0f, 0), V(1.0f, 2.0f, 1.0f)); + return t.gameObject; + } + // ---------- Стопка контейнеров 0.8 x 0.8 ---------- + public static GameObject CrateStack(Transform parent, Random rng) + { + var t = Root(parent, "CrateStack"); + int layers = rng.Next(1, 3); + for (int i = 0; i < layers; i++) + { + float w = F(rng, 0.7f, 0.8f); + PrimitiveKit.Box(t, "Crate", V(F(rng, -0.03f, 0.03f), 0.2f + i * 0.4f, F(rng, -0.03f, 0.03f)), + V(w, 0.4f, w), LabMaterials.Crate(rng.Next(5))); + PrimitiveKit.Box(t, "Strap", V(0, 0.2f + i * 0.4f, 0), V(w + 0.01f, 0.04f, w + 0.01f), LabMaterials.Dark); + } + PrimitiveKit.AddCollider(t, V(0, 0.2f * layers, 0), V(0.8f, 0.4f * layers, 0.8f)); + return t.gameObject; + } + } +} \ No newline at end of file diff --git a/Assets/_Project/Scripts/LevelGenerating/LabPropBuilders.cs.meta b/Assets/_Project/Scripts/LevelGenerating/LabPropBuilders.cs.meta new file mode 100644 index 0000000..ceb753d --- /dev/null +++ b/Assets/_Project/Scripts/LevelGenerating/LabPropBuilders.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 83d5b335bae74798800191574b3e53af +timeCreated: 1795137343 \ No newline at end of file diff --git a/Assets/_Project/Scripts/LevelGenerating/LaboratoryPropGenerator.cs b/Assets/_Project/Scripts/LevelGenerating/LaboratoryPropGenerator.cs new file mode 100644 index 0000000..435cc1d --- /dev/null +++ b/Assets/_Project/Scripts/LevelGenerating/LaboratoryPropGenerator.cs @@ -0,0 +1,72 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using Random = System.Random; + +namespace _Project.Scripts.LevelGenerating +{ + public class LaboratoryPropGenerator : RoomPropGenerator + { + [Header("Префабы (необязательно). Пусто = предмет соберётся из примитивов")] + [SerializeField] private GameObject labTable; + [SerializeField] private GameObject fridge; + [SerializeField] private GameObject shelf; + [SerializeField] private GameObject workDesk; + [SerializeField] private GameObject specimenTank; + + [Header("Материалы для примитивов (необязательно)")] + [SerializeField] private Material steelMaterial; + [SerializeField] private Material bodyMaterial; + + [Header("Общее")] + [SerializeField] private float doorClearance = 1.5f; + + private class Slot + { + public PropEntry Entry; + public Func Factory; + } + + public override bool Supports(Room room) => room.rt == RoomType.Laboratory; + + public override void Generate(RoomView view, FloorData floor) + { + LabMaterials.SteelOverride = steelMaterial; + LabMaterials.BodyOverride = bodyMaterial; + + var root = new GameObject("Props").transform; + root.SetParent(view.transform, false); + + var placer = new PropPlacer(view, floor, root, doorClearance); + foreach (var slot in BuildSlots()) + placer.Place(slot.Entry, slot.Entry.prefab != null ? null : slot.Factory); + } + + private List BuildSlots() + { + const float H = 1.5f; + return new List + { + new Slot { Factory = LabPropBuilders.Bench, + Entry = new PropEntry { name = "LabTable", prefab = labTable, placement = PropPlacement.Center, + minCount = 1, maxCount = 2, areaPerExtra = 30f, minRoomArea = 25f, padding = 10, + randomYaw = true, heightScale = H } }, + new Slot { Factory = LabPropBuilders.Fridge, + Entry = new PropEntry { name = "Fridge", prefab = fridge, placement = PropPlacement.AlongWall, + minCount = 1, maxCount = 2, areaPerExtra = 50f, padding = 1, heightScale = H } }, + new Slot { Factory = LabPropBuilders.Shelf, + Entry = new PropEntry { name = "Shelf", prefab = shelf, placement = PropPlacement.AlongWall, + minCount = 2, maxCount = 4, areaPerExtra = 20f, padding = 0, heightScale = H } }, + new Slot { Factory = LabPropBuilders.WorkDesk, + Entry = new PropEntry { name = "WorkDesk", prefab = workDesk, placement = PropPlacement.AlongWall, + minCount = 1, maxCount = 2, areaPerExtra = 40f, minRoomArea = 16f, padding = 10, heightScale = H } }, + new Slot { Factory = LabPropBuilders.SpecimenTank, + Entry = new PropEntry { name = "SpecimenTank", prefab = specimenTank, placement = PropPlacement.Corner, + minCount = 1, maxCount = 2, areaPerExtra = 60f, minRoomArea = 25f, padding = 5, heightScale = H } }, + new Slot { Factory = LabPropBuilders.CrateStack, + Entry = new PropEntry { name = "CrateStack", placement = PropPlacement.Anywhere, + minCount = 2, maxCount = 4, areaPerExtra = 15f, padding = 5, randomYaw = true, heightScale = 1f } }, + }; + } + } +} \ No newline at end of file diff --git a/Assets/_Project/Scripts/LevelGenerating/LaboratoryPropGenerator.cs.meta b/Assets/_Project/Scripts/LevelGenerating/LaboratoryPropGenerator.cs.meta new file mode 100644 index 0000000..1c396d5 --- /dev/null +++ b/Assets/_Project/Scripts/LevelGenerating/LaboratoryPropGenerator.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 3d7327d69e0042a9a1c8004fa01d389f +timeCreated: 1795134612 \ No newline at end of file diff --git a/Assets/_Project/Scripts/LevelGenerating/PrimitiveKit.cs b/Assets/_Project/Scripts/LevelGenerating/PrimitiveKit.cs new file mode 100644 index 0000000..3357e59 --- /dev/null +++ b/Assets/_Project/Scripts/LevelGenerating/PrimitiveKit.cs @@ -0,0 +1,129 @@ +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.Rendering; + +namespace _Project.Scripts.LevelGenerating +{ + public static class PrimitiveKit + { + public static GameObject Box(Transform parent, string name, Vector3 center, Vector3 size, Material mat) + { + var go = GameObject.CreatePrimitive(PrimitiveType.Cube); + Setup(go, parent, name, center, size, mat); + return go; + } + + // diameter по X/Z, height по Y (центр цилиндра в center) + public static GameObject Cylinder(Transform parent, string name, Vector3 center, float diameter, float height, Material mat) + { + var go = GameObject.CreatePrimitive(PrimitiveType.Cylinder); + Setup(go, parent, name, center, new Vector3(diameter, height * 0.5f, diameter), mat); + return go; + } + + public static GameObject Capsule(Transform parent, string name, Vector3 center, float diameter, float height, Material mat) + { + var go = GameObject.CreatePrimitive(PrimitiveType.Capsule); + Setup(go, parent, name, center, new Vector3(diameter, height * 0.5f, diameter), mat); + return go; + } + + public static void AddCollider(Transform root, Vector3 center, Vector3 size) + { + var c = root.gameObject.AddComponent(); + c.center = center; + c.size = size; + } + + private static void Setup(GameObject go, Transform parent, string name, Vector3 pos, Vector3 scale, Material mat) + { + go.name = name; + go.transform.SetParent(parent, false); + go.transform.localPosition = pos; + go.transform.localScale = scale; + + var col = go.GetComponent(); + if (col != null) Object.Destroy(col); // коллайдер ставится один на корень предмета + + var r = go.GetComponent(); + r.sharedMaterial = mat; + r.shadowCastingMode = ShadowCastingMode.Off; // реальные тени в комнатах всё равно выключены + } + } + + // Материалы лаборатории. Если назначены Override, подставляются они (например, твои PBR-текстуры). + public static class LabMaterials + { + public static Material SteelOverride; + public static Material BodyOverride; + + private static readonly Dictionary Cache = new Dictionary(); + + public static Material Steel => SteelOverride != null ? SteelOverride : Make("steel", new Color(0.72f, 0.74f, 0.77f), 0.9f, 0.65f); + public static Material Body => BodyOverride != null ? BodyOverride : Make("body", new Color(0.82f, 0.84f, 0.86f), 0.1f, 0.4f); + public static Material Dark => Make("dark", new Color(0.1f, 0.11f, 0.13f), 0.3f, 0.35f); + public static Material Plastic => Make("plastic", new Color(0.35f, 0.37f, 0.4f), 0f, 0.45f); + public static Material Screen => Make("screen", new Color(0.02f, 0.05f, 0.08f), 0f, 0.8f, new Color(0.15f, 0.55f, 1.1f)); + public static Material LedGreen => Make("ledG", Color.black, 0f, 0.5f, new Color(0.1f, 2.0f, 0.4f)); + public static Material LedRed => Make("ledR", Color.black, 0f, 0.5f, new Color(2.0f, 0.2f, 0.1f)); + public static Material Glass => Make("glass", new Color(0.55f, 0.85f, 0.8f, 0.18f), 0f, 0.95f, default, true); + public static Material Specimen => Make("specimen", new Color(0.25f, 0.12f, 0.12f), 0f, 0.3f); + + public static Material Liquid(int i) + { + switch (((i % 3) + 3) % 3) + { + case 0: return Make("liqG", new Color(0.2f, 0.9f, 0.5f), 0f, 0.9f, new Color(0.15f, 0.9f, 0.4f) * 0.6f); + case 1: return Make("liqB", new Color(0.2f, 0.5f, 1f), 0f, 0.9f, new Color(0.1f, 0.4f, 1f) * 0.6f); + default: return Make("liqA", new Color(1f, 0.65f, 0.15f), 0f, 0.9f, new Color(1f, 0.5f, 0.1f) * 0.5f); + } + } + + private static readonly Color[] Crates = + { + new Color(0.78f, 0.78f, 0.72f), new Color(0.25f, 0.45f, 0.65f), + new Color(0.75f, 0.55f, 0.2f), new Color(0.35f, 0.5f, 0.35f), new Color(0.6f, 0.6f, 0.62f) + }; + + public static Material Crate(int i) => + Make("crate" + (((i % Crates.Length) + Crates.Length) % Crates.Length), + Crates[((i % Crates.Length) + Crates.Length) % Crates.Length], 0f, 0.35f); + + private static Material Make(string key, Color color, float metallic, float smooth, + Color emission = default, bool transparent = false) + { + if (Cache.TryGetValue(key, out var cached) && cached != null) return cached; + + var shader = Shader.Find("Universal Render Pipeline/Lit"); + if (shader == null) shader = Shader.Find("Standard"); + var m = new Material(shader) { name = "Lab_" + key }; + + if (m.HasProperty("_BaseColor")) m.SetColor("_BaseColor", color); + if (m.HasProperty("_Color")) m.SetColor("_Color", color); + if (m.HasProperty("_Metallic")) m.SetFloat("_Metallic", metallic); + if (m.HasProperty("_Smoothness")) m.SetFloat("_Smoothness", smooth); + if (m.HasProperty("_Glossiness")) m.SetFloat("_Glossiness", smooth); + + if (emission.maxColorComponent > 0f && m.HasProperty("_EmissionColor")) + { + m.EnableKeyword("_EMISSION"); + m.SetColor("_EmissionColor", emission); + } + + if (transparent && m.HasProperty("_Surface")) // URP Lit -> Transparent + { + m.SetFloat("_Surface", 1f); + m.SetFloat("_Blend", 0f); + m.SetFloat("_SrcBlend", (float)BlendMode.SrcAlpha); + m.SetFloat("_DstBlend", (float)BlendMode.OneMinusSrcAlpha); + m.SetFloat("_ZWrite", 0f); + m.SetOverrideTag("RenderType", "Transparent"); + m.EnableKeyword("_SURFACE_TYPE_TRANSPARENT"); + m.renderQueue = (int)RenderQueue.Transparent; + } + + Cache[key] = m; + return m; + } + } +} \ No newline at end of file diff --git a/Assets/_Project/Scripts/LevelGenerating/PrimitiveKit.cs.meta b/Assets/_Project/Scripts/LevelGenerating/PrimitiveKit.cs.meta new file mode 100644 index 0000000..dded45b --- /dev/null +++ b/Assets/_Project/Scripts/LevelGenerating/PrimitiveKit.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 7688206cc07a444995becbb97df089b1 +timeCreated: 1795137331 \ No newline at end of file diff --git a/Assets/_Project/Scripts/LevelGenerating/PropPlacer.cs b/Assets/_Project/Scripts/LevelGenerating/PropPlacer.cs new file mode 100644 index 0000000..df6dfaf --- /dev/null +++ b/Assets/_Project/Scripts/LevelGenerating/PropPlacer.cs @@ -0,0 +1,231 @@ +using System; +using UnityEngine; +using Object = UnityEngine.Object; +using Random = System.Random; + +namespace _Project.Scripts.LevelGenerating +{ + // ===================================================================== + // Расставляет PropEntry в одной комнате по сетке модулей (0.5 м). + // - не ставит предметы в зоне перед дверями; + // - не накладывает предметы друг на друга (padding); + // - габариты берёт из Renderer.bounds префаба, пивот не важен; + // - пишет занятые прямоугольники в view.PropFootprints (чтобы враги не спавнились внутри). + // Предполагается: перед модели смотрит в +Z (иначе frontYawOffset), пол на Y = 0. + // ===================================================================== + public class PropPlacer + { + private const float M = LevelGrid.Module; + private const int Attempts = 40; + + private readonly RoomView _view; + private readonly Transform _parent; + private readonly Random _rng; + private readonly bool[,] _blocked; // [x, z] в клетках от левого нижнего угла комнаты + private readonly int _len, _wid; // клеток по X и по Z + + public PropPlacer(RoomView view, FloorData floor, Transform parent, float doorClearance) + { + _view = view; + _parent = parent; + _len = view.Data.Length; + _wid = view.Data.Width; + _blocked = new bool[_len, _wid]; + _rng = new Random(unchecked(floor.Seed * 397 + view.Index * 7919 + 17)); + + BlockDoorways(floor, doorClearance); + } + + public int Place(PropEntry e, Func factory = null) + { + if (e == null || (e.prefab == null && factory == null)) return 0; + + Vector3 s = _view.SizeMeters; + if (s.x * s.z < e.minRoomArea) return 0; + + int count = _rng.Next(e.minCount, Mathf.Max(e.minCount, e.maxCount) + 1); + if (e.areaPerExtra > 0f) + count += Mathf.FloorToInt(s.x * s.z / e.areaPerExtra); + int placed = 0; + for (int i = 0; i < count; i++) + { + if (!TryPlaceOne(e, factory)) break; // места не нашлось — дальше нет смысла + placed++; + } + return placed; + } + + // ---------- Двери ---------- + + private void BlockDoorways(FloorData floor, float clearance) + { + int c = Mathf.CeilToInt(clearance / M); + Vector2Int pos = _view.Data.Position; + + foreach (var dw in floor.Doorways) + { + if (dw.RoomIndex != _view.Index) continue; + + int sx = dw.Start.x - pos.x; + int sz = dw.Start.y - pos.y; + + switch (dw.Facing) + { + case WallFacing.ZP: Block(sx - 1, sz, sx + dw.Length + 1, sz + c); break; + case WallFacing.ZN: Block(sx - 1, sz - c, sx + dw.Length + 1, sz); break; + case WallFacing.XP: Block(sx, sz - 1, sx + c, sz + dw.Length + 1); break; + default: Block(sx - c, sz - 1, sx, sz + dw.Length + 1); break; + } + } + } + + private void Block(int x0, int z0, int x1, int z1) // x1, z1 не включительно + { + for (int x = Mathf.Max(0, x0); x < Mathf.Min(_len, x1); x++) + for (int z = Mathf.Max(0, z0); z < Mathf.Min(_wid, z1); z++) + _blocked[x, z] = true; + } + + // ---------- Размещение одного предмета ---------- + + private bool TryPlaceOne(PropEntry e, Func factory) + { + var go = factory != null ? factory(_parent, _rng) : Object.Instantiate(e.prefab, _parent); + go.name = string.IsNullOrEmpty(e.name) ? (e.prefab != null ? e.prefab.name : go.name) : e.name; + go.transform.localScale = new Vector3(1f, Mathf.Max(0.1f, e.heightScale), 1f); + + if (!TryGetBounds(go, out Bounds b)) + { + Debug.LogWarning($"PropPlacer: у префаба {e.prefab.name} нет Renderer, пропускаю"); + go.SetActive(false); + Object.Destroy(go); + return false; + } + + Vector3 centerOffset = b.center; // объект стоит в нуле + float baseMinY = b.min.y; + var size = new Vector2(b.size.x, b.size.z); + + for (int attempt = 0; attempt < Attempts; attempt++) + { + if (!TryPick(e, size, out int yaw, out int x0, out int z0, out int cx, out int cz)) continue; + if (!IsFree(x0, z0, cx, cz, e.padding)) continue; + + // Занимаем клетки + for (int x = x0; x < x0 + cx; x++) + for (int z = z0; z < z0 + cz; z++) + _blocked[x, z] = true; + + Vector3 origin = _view.OriginMeters; + float wx = origin.x + (x0 + cx * 0.5f) * M; + float wz = origin.z + (z0 + cz * 0.5f) * M; + + Quaternion extra = Quaternion.Euler(0f, yaw, 0f); + Vector3 off = extra * centerOffset; + + go.transform.SetPositionAndRotation( + new Vector3(wx - off.x, -baseMinY, wz - off.z), + extra * Quaternion.Euler(0f, e.frontYawOffset, 0f)); + + _view.PropFootprints.Add(new Rect(origin.x + x0 * M, origin.z + z0 * M, cx * M, cz * M)); + return true; + } + + go.SetActive(false); + Object.Destroy(go); + return false; + } + + // Стены: 0 = южная (перед в +Z), 1 = западная (+X), 2 = северная (-Z), 3 = восточная (-X). yaw = индекс * 90 + private bool TryPick(PropEntry e, Vector2 size, out int yaw, out int x0, out int z0, out int cx, out int cz) + { + x0 = z0 = cx = cz = 0; + int gap = Mathf.Max(0, e.wallGap); + + switch (e.placement) + { + case PropPlacement.AlongWall: + { + int w = _rng.Next(4); + yaw = w * 90; + Footprint(size, yaw, out cx, out cz); + switch (w) + { + case 0: z0 = gap; x0 = R(0, _len - cx); break; + case 1: x0 = gap; z0 = R(0, _wid - cz); break; + case 2: z0 = _wid - cz - gap; x0 = R(0, _len - cx); break; + default: x0 = _len - cx - gap; z0 = R(0, _wid - cz); break; + } + break; + } + case PropPlacement.Corner: + { + int sx = _rng.Next(2), sz = _rng.Next(2); + int w = _rng.Next(2) == 0 ? (sz == 0 ? 0 : 2) : (sx == 0 ? 1 : 3); + yaw = w * 90; + Footprint(size, yaw, out cx, out cz); + x0 = sx == 0 ? gap : _len - cx - gap; + z0 = sz == 0 ? gap : _wid - cz - gap; + break; + } + case PropPlacement.Center: + { + yaw = e.randomYaw ? _rng.Next(4) * 90 : 0; + Footprint(size, yaw, out cx, out cz); + int margin = Mathf.Max(3, gap); + x0 = R(margin, _len - cx - margin); + z0 = R(margin, _wid - cz - margin); + break; + } + default: // Anywhere + { + yaw = e.randomYaw ? _rng.Next(4) * 90 : 0; + Footprint(size, yaw, out cx, out cz); + x0 = R(0, _len - cx); + z0 = R(0, _wid - cz); + break; + } + } + + return x0 >= 0 && z0 >= 0 && x0 + cx <= _len && z0 + cz <= _wid; + } + + private static void Footprint(Vector2 size, int yaw, out int cx, out int cz) + { + bool swap = (yaw / 90) % 2 == 1; + float fx = swap ? size.y : size.x; + float fz = swap ? size.x : size.y; + cx = Mathf.Max(1, Mathf.CeilToInt(fx / M - 0.05f)); + cz = Mathf.Max(1, Mathf.CeilToInt(fz / M - 0.05f)); + } + + private int R(int lo, int hi) => hi < lo ? -1 : _rng.Next(lo, hi + 1); + + private bool IsFree(int x0, int z0, int cx, int cz, int padding) + { + int p = Mathf.Max(0, padding); + for (int x = x0 - p; x < x0 + cx + p; x++) + { + for (int z = z0 - p; z < z0 + cz + p; z++) + { + if (x < 0 || z < 0 || x >= _len || z >= _wid) continue; // за пределами комнаты — стена + if (_blocked[x, z]) return false; + } + } + return true; + } + + private static bool TryGetBounds(GameObject go, out Bounds bounds) + { + bounds = default; + bool has = false; + foreach (var r in go.GetComponentsInChildren()) + { + if (r is ParticleSystemRenderer || r is TrailRenderer || r is LineRenderer) continue; + if (!has) { bounds = r.bounds; has = true; } + else bounds.Encapsulate(r.bounds); + } + return has; + } + } +} \ No newline at end of file diff --git a/Assets/_Project/Scripts/LevelGenerating/PropPlacer.cs.meta b/Assets/_Project/Scripts/LevelGenerating/PropPlacer.cs.meta new file mode 100644 index 0000000..d8c2f38 --- /dev/null +++ b/Assets/_Project/Scripts/LevelGenerating/PropPlacer.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: a4db0515fa5145c2a15331b74b884667 +timeCreated: 1795134591 \ No newline at end of file diff --git a/Assets/_Project/Scripts/LevelGenerating/RoomGenerationRegistry.cs b/Assets/_Project/Scripts/LevelGenerating/RoomGenerationRegistry.cs index 09a6855..5d84476 100644 --- a/Assets/_Project/Scripts/LevelGenerating/RoomGenerationRegistry.cs +++ b/Assets/_Project/Scripts/LevelGenerating/RoomGenerationRegistry.cs @@ -21,17 +21,21 @@ namespace _Project.Scripts.LevelGenerating [SerializeField] private List themes = new List(); private readonly List _generators = new List(); + private readonly List _propGenerators = new List(); void Awake() { // сюда добавлять специальные генераторы, универсальный всегда последний _generators.Add(new ThemedRoomGenerator()); + GetComponentsInChildren(true, _propGenerators); } public void Run(ShellResult shell, FloorData floor) { foreach (var view in shell.Views) { + foreach (var pg in _propGenerators) + if (pg.Supports(view.Data)) pg.Generate(view, floor); var theme = ResolveTheme(view.Data.rt); var generator = _generators.FirstOrDefault(g => g.Supports(view.Data)); diff --git a/Assets/_Project/Scripts/LevelGenerating/RoomGenerators.cs b/Assets/_Project/Scripts/LevelGenerating/RoomGenerators.cs index 3d93344..cc459b3 100644 --- a/Assets/_Project/Scripts/LevelGenerating/RoomGenerators.cs +++ b/Assets/_Project/Scripts/LevelGenerating/RoomGenerators.cs @@ -21,7 +21,7 @@ namespace _Project.Scripts.LevelGenerating Debug.LogWarning($"{view.name}: для комнаты не назначена тема"); return; } - + ApplyMaterial(view.FloorRenderers, theme.floorMaterial); ApplyMaterial(view.WallRenderers, theme.wallMaterial); ApplyMaterial(view.CeilingRenderers, theme.ceilingMaterial); @@ -153,7 +153,7 @@ namespace _Project.Scripts.LevelGenerating ? BodyClass.Trooper // На старте всегда даём сбалансированного Штурмовика (или Скаута) : PickClass(rt, config); - Vector3 spawnPos = FindSpawnPosition(minX, maxX, minZ, maxZ, view.CenterMeters, rt == RoomType.Start, spawnedPositions); + Vector3 spawnPos = FindSpawnPosition(view, minX, maxX, minZ, maxZ, view.CenterMeters, rt == RoomType.Start, spawnedPositions); spawnedPositions.Add(spawnPos); GameObject prefab = ResolveEnemyPrefab(chosenClass, config); @@ -165,7 +165,7 @@ namespace _Project.Scripts.LevelGenerating // Подбирает точку спавна в комнате так, чтобы враги не слипались друг с другом // и не спавнились прямо на голове игрока в Start-комнате - private static Vector3 FindSpawnPosition(float minX, float maxX, float minZ, float maxZ, + private static Vector3 FindSpawnPosition(RoomView view, float minX, float maxX, float minZ, float maxZ, Vector3 roomCenter, bool isStartRoom, List occupied) { for (int attempt = 0; attempt < 15; attempt++) @@ -178,6 +178,13 @@ namespace _Project.Scripts.LevelGenerating // В стартовой комнате игрок падает в центр, поэтому врага ставим чуть поодаль от центра if (isStartRoom && Vector2.Distance(new Vector2(candidate.x, candidate.z), new Vector2(roomCenter.x, roomCenter.z)) < 2.5f) continue; + bool onProp = false; + foreach (var r in view.PropFootprints) + { + var expanded = new Rect(r.x - 0.6f, r.y - 0.6f, r.width + 1.2f, r.height + 1.2f); + if (expanded.Contains(new Vector2(candidate.x, candidate.z))) { onProp = true; break; } + } + if (onProp) continue; bool tooClose = false; foreach (var pos in occupied) diff --git a/Assets/_Project/Scripts/LevelGenerating/RoomPropGenerator.cs b/Assets/_Project/Scripts/LevelGenerating/RoomPropGenerator.cs new file mode 100644 index 0000000..23e52d3 --- /dev/null +++ b/Assets/_Project/Scripts/LevelGenerating/RoomPropGenerator.cs @@ -0,0 +1,12 @@ +using UnityEngine; + +namespace _Project.Scripts.LevelGenerating +{ + // База для генераторов предметов конкретного типа комнаты. + // Вешается компонентом на тот же объект, что и RoomGeneratorRegistry. + public abstract class RoomPropGenerator : MonoBehaviour + { + public abstract bool Supports(Room room); + public abstract void Generate(RoomView view, FloorData floor); + } +} \ No newline at end of file diff --git a/Assets/_Project/Scripts/LevelGenerating/RoomPropGenerator.cs.meta b/Assets/_Project/Scripts/LevelGenerating/RoomPropGenerator.cs.meta new file mode 100644 index 0000000..1bd258b --- /dev/null +++ b/Assets/_Project/Scripts/LevelGenerating/RoomPropGenerator.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: bca0b9d719c74f87a5b9bdc0517d26ef +timeCreated: 1795134580 \ No newline at end of file diff --git a/Assets/_Project/Scripts/LevelGenerating/RoomPropSet.cs b/Assets/_Project/Scripts/LevelGenerating/RoomPropSet.cs index f2beebf..49ab256 100644 --- a/Assets/_Project/Scripts/LevelGenerating/RoomPropSet.cs +++ b/Assets/_Project/Scripts/LevelGenerating/RoomPropSet.cs @@ -22,7 +22,11 @@ namespace _Project.Scripts.LevelGenerating [Tooltip("Сколько штук на комнату (случайно от min до max)")] public int minCount = 1; public int maxCount = 1; + [Tooltip("Множитель высоты предмета (1 = как есть, 1.5 = в полтора раза выше)")] + public float heightScale = 1f; + [Tooltip("+1 предмет за каждые N м² площади комнаты (0 = не зависит от площади)")] + public float areaPerExtra = 0f; [Tooltip("Не ставить в комнатах меньше этой площади, м2")] public float minRoomArea = 0f; @@ -33,7 +37,7 @@ namespace _Project.Scripts.LevelGenerating public int wallGap = 0; [Tooltip("Свободное место вокруг в клетках, чтобы предметы не слипались")] - public int padding = 1; + public int padding = 2; [Tooltip("Для Center и Anywhere: случайный поворот на 90 градусов")] public bool randomYaw = true; diff --git a/Assets/_Project/Scripts/LevelGenerating/RoomView.cs b/Assets/_Project/Scripts/LevelGenerating/RoomView.cs index 77b18d2..2397327 100644 --- a/Assets/_Project/Scripts/LevelGenerating/RoomView.cs +++ b/Assets/_Project/Scripts/LevelGenerating/RoomView.cs @@ -15,6 +15,7 @@ namespace _Project.Scripts.LevelGenerating public readonly List WallRenderers = new List(); public readonly List Doors = new List(); public readonly List Enemies = new List(); + public readonly List PropFootprints = new List(); // занятые предметами прямоугольники (XZ, метры) public List BakedLightmaps = new List(); public Vector3 OriginMeters => diff --git a/Assets/_Project/Settings/UniversalRenderPipelineGlobalSettings.asset b/Assets/_Project/Settings/UniversalRenderPipelineGlobalSettings.asset index 0befeaa..3cc7fb3 100644 --- a/Assets/_Project/Settings/UniversalRenderPipelineGlobalSettings.asset +++ b/Assets/_Project/Settings/UniversalRenderPipelineGlobalSettings.asset @@ -72,24 +72,7 @@ MonoBehaviour: - rid: 6588237625532874761 - rid: 6588237625532874762 m_RuntimeSettings: - m_List: - - rid: 6852985685364965378 - - rid: 6852985685364965380 - - rid: 6852985685364965381 - - rid: 6852985685364965384 - - rid: 6852985685364965386 - - rid: 6852985685364965392 - - rid: 6852985685364965394 - - rid: 8712630790384254976 - - rid: 4284062438471237637 - - rid: 5747374308340793346 - - rid: 5747374308340793347 - - rid: 5747374308340793348 - - rid: 6588237625532874753 - - rid: 6588237625532874756 - - rid: 6588237625532874757 - - rid: 6588237625532874759 - - rid: 6588237625532874761 + m_List: [] m_AssetVersion: 11 m_ObsoleteDefaultVolumeProfile: {fileID: 0} m_RenderingLayerNames: