diff --git a/.changeset/ore-batch-rescale.md b/.changeset/ore-batch-rescale.md
deleted file mode 100644
index adab3b927..000000000
--- a/.changeset/ore-batch-rescale.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-default: patch
----
-
-Belts hold named ores by body class and province, mining stations name them, and gear, hull and consumable prices and the starting purse are a hundredth of what they were.
diff --git a/.changeset/release-pipeline.md b/.changeset/release-pipeline.md
deleted file mode 100644
index f73efa641..000000000
--- a/.changeset/release-pipeline.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-default: patch
----
-
-Releases are built and published by a pipeline.
diff --git a/.changeset/shields.md b/.changeset/shields.md
deleted file mode 100644
index 1bc06d016..000000000
--- a/.changeset/shields.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-default: patch
----
-
-Shields are on sale: a light 1x1 and a heavy 2x2 projector fit the Djinni's and the Nakovalnya's shield mounts and every starter ship's, and the Zenith's fourth radiator mount takes radiators again.
diff --git a/.changeset/tactical-view.md b/.changeset/tactical-view.md
deleted file mode 100644
index 260337812..000000000
--- a/.changeset/tactical-view.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-default: patch
----
-
-The tactical view is a camera of its own: scroll out past a bump to a three-quarters top-down view over the grid, drag to move it, scroll back in through the bump to return to your ship.
diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml
deleted file mode 100644
index d3025c59a..000000000
--- a/.forgejo/workflows/release.yml
+++ /dev/null
@@ -1,117 +0,0 @@
-# The one actor that turns .changeset/ files and VERSION into a tag and a forge release (docs/release-checklist.md).
-# Dispatch by hand on the branch to release. Runs on the Starfire runner in host mode, as the operator's Windows user,
-# because the Unity Personal licence lives there. Every host prerequisite is checked by the first step, before any build or
-# push (list: docs/release-checklist.md, One-time setup). Nothing is pushed until both players have built: a failed
-# preflight or build leaves the forge untouched. After the push, a failed forge release has a recovery in the checklist.
-name: release
-
-on:
- workflow_dispatch:
-
-concurrency:
- group: release
- cancel-in-progress: false
-
-jobs:
- release:
- runs-on: starfire
- env:
- UNITY_EDITOR: ${{ vars.UNITY_EDITOR }}
- CULTLIB_ROOT: ${{ vars.CULTLIB_ROOT }}
- CULTMATH_ROOT: ${{ vars.CULTMATH_ROOT }}
- BUILD_NAME: release-${{ github.run_id }}
- defaults:
- run:
- shell: '"C:/Program Files/Git/bin/bash.exe" -e {0}'
- steps:
- # The composite forgejo-release action runs its steps with `shell: bash`, resolved through PATH, where System32's WSL
- # bash.exe can win. Git's bin goes first for every later step of this job.
- - name: Put Git Bash first on PATH
- run: printf '%s\n' 'C:\Program Files\Git\bin' >> "$GITHUB_PATH"
-
- - name: Preflight host prerequisites
- env:
- RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
- run: |
- set -u
- missing=""
- first_bash="$(cmd.exe //c where bash 2>/dev/null | head -n 1 | tr -d '\r')"
- case "${first_bash//$'\x5c'//}" in
- "C:/Program Files/Git/"*) ;;
- *) missing="$missing"$'\n'" PATH resolves bash to '$first_bash', not Git Bash (the forgejo-release action would run WSL bash)" ;;
- esac
- note() { missing="$missing"$'\n'" $1"; }
- for tool in jq curl knope git tar dotnet; do
- command -v "$tool" >/dev/null || note "$tool is not on PATH"
- done
- test -x /c/Windows/System32/tar.exe || note "C:/Windows/System32/tar.exe is missing"
- test -n "$RELEASE_TOKEN" || note "secret RELEASE_TOKEN is not set"
- test -f "$UNITY_EDITOR" || note "repo variable UNITY_EDITOR is unset or not a file: '$UNITY_EDITOR'"
- test -d "$CULTLIB_ROOT" || note "repo variable CULTLIB_ROOT is unset or not a directory: '$CULTLIB_ROOT'"
- test -d "$CULTMATH_ROOT" || note "repo variable CULTMATH_ROOT is unset or not a directory: '$CULTMATH_ROOT'"
- if test -n "$missing"; then echo "release preflight failed, nothing was built or pushed:$missing"; exit 1; fi
-
- - uses: actions/checkout@v4
- with:
- lfs: true
- fetch-depth: 0
- token: ${{ secrets.RELEASE_TOKEN }}
-
- - name: Prepare release
- id: prepare
- run: |
- set -euo pipefail
- knope prepare-release
- version="$(tr -d '\r\n' < VERSION)"
- if git rev-parse -q --verify "refs/tags/v$version" >/dev/null; then
- echo "v$version already exists: no change file asked for a new version"; exit 1
- fi
- awk -v heading="## $version " 'index($0, heading) == 1 { found = 1; next } /^## / { if (found) exit } found' CHANGELOG.md > "$RUNNER_TEMP/notes.md"
- test -s "$RUNNER_TEMP/notes.md" || { echo "CHANGELOG.md has no section for $version"; exit 1; }
- git add VERSION CHANGELOG.md .changeset
- git -c user.name="Aetheria release" -c user.email="release@gamecult.invalid" commit -m "Release $version"
- git -c user.name="Aetheria release" -c user.email="release@gamecult.invalid" tag -a "v$version" -m "Aetheria $version"
- echo "version=$version" >> "$GITHUB_OUTPUT"
- echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
- echo "notes=$RUNNER_TEMP/notes.md" >> "$GITHUB_OUTPUT"
-
- - name: Build and zip players
- run: |
- set -euo pipefail
- version="${{ steps.prepare.outputs.version }}"
- build="$(cd .. && pwd)/$BUILD_NAME"
- mkdir -p "$build/dist"
- project="$(pwd -W)"
- for target in win64 linux64; do
- name="Aetheria-$version-$target"
- "$UNITY_EDITOR" -batchmode -quit -projectPath "$project" -executeMethod AetheriaBuild.Build \
- -aetheriaVersion "$version" -aetheriaOut "$(cd "$build" && pwd -W)/$name" -aetheriaTarget "$target" \
- -logFile "$(cd "$build" && pwd -W)/$target.log"
- /c/Windows/System32/tar.exe -a -c -f "$build/dist/$name.zip" -C "$build" "$name"
- size="$(stat -c %s "$build/dist/$name.zip")"
- test "$size" -le 2147483648 || { echo "$name.zip is $size bytes: over the forge's 2048 MB attachment limit"; exit 1; }
- done
-
- - name: Publish tag and release commit
- run: |
- set -euo pipefail
- git push --atomic origin "HEAD:refs/heads/${{ github.ref_name }}" "refs/tags/v${{ steps.prepare.outputs.version }}"
-
- - name: Forge release
- uses: actions/forgejo-release@v2.13.4
- with:
- direction: upload
- tag: v${{ steps.prepare.outputs.version }}
- sha: ${{ steps.prepare.outputs.sha }}
- title: Aetheria ${{ steps.prepare.outputs.version }}
- token: ${{ secrets.RELEASE_TOKEN }}
- release-dir: ../${{ env.BUILD_NAME }}/dist
- release-notes-file: ${{ steps.prepare.outputs.notes }}
-
- - name: Show build logs on failure
- if: failure()
- run: tail -n 40 ../"$BUILD_NAME"/*.log || true
-
- - name: Remove build directory
- if: success()
- run: rm -rf ../"$BUILD_NAME"
diff --git a/.gitattributes b/.gitattributes
index 87c9db929..d530ed421 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -51,12 +51,11 @@
*.dylib filter=lfs diff=lfs merge=lfs -text
*.bundle filter=lfs diff=lfs merge=lfs -text
*.engine filter=lfs diff=lfs merge=lfs -text
+*.sbsar filter=lfs diff=lfs merge=lfs -text
*.msgpack filter=lfs diff=lfs merge=lfs -text
GameData/*.cc filter=lfs diff=lfs merge=lfs -text
GameData/Mods/**/*.cc filter=lfs diff=lfs merge=lfs -text
GameData/Mods/**/*.glb filter=lfs diff=lfs merge=lfs -text
-tests/fixtures/mods/**/*.cc filter=lfs diff=lfs merge=lfs -text
-tests/fixtures/mods/**/*.glb filter=lfs diff=lfs merge=lfs -text
tools/blender/tests/fixtures/*.glb filter=lfs diff=lfs merge=lfs -text
*.a filter=lfs diff=lfs merge=lfs -text
*AkSoundEngine filter=lfs diff=lfs merge=lfs -text
diff --git a/.gitignore b/.gitignore
index 8f15133d1..ac9c49142 100644
--- a/.gitignore
+++ b/.gitignore
@@ -113,4 +113,3 @@ tests/_scratch_*
# Stryker.NET mutation reports (regenerated per run)
StrykerOutput/
-native/aetherlight/target/
diff --git a/Aetheria.Shared/Aetheria.Shared.csproj b/Aetheria.Shared/Aetheria.Shared.csproj
index 591e1f42c..a8a4c97bc 100644
--- a/Aetheria.Shared/Aetheria.Shared.csproj
+++ b/Aetheria.Shared/Aetheria.Shared.csproj
@@ -26,8 +26,6 @@
-
-
diff --git a/Assets/Content/Prefabs/Turrets/Turret.prefab b/Assets/Content/Prefabs/Turrets/Turret.prefab
index 2df968941..748ca8a29 100644
--- a/Assets/Content/Prefabs/Turrets/Turret.prefab
+++ b/Assets/Content/Prefabs/Turrets/Turret.prefab
@@ -998,8 +998,8 @@ MeshRenderer:
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- - {fileID: 2100000, guid: 38f8ba6b169127249b6532be2b3926ee, type: 2}
- - {fileID: 2100000, guid: 5e43f48908cce2949a41677ec48affe5, type: 2}
+ - {fileID: 3720744386649352057, guid: 504c7bfe0d50ff64a88b8eac2ceb46f8, type: 3}
+ - {fileID: 3720744386649352057, guid: b2bec4b400153d745b2915f1c43e5c96, type: 3}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
diff --git a/Assets/Fonts/Ubuntu/Montserrat-OFL-1.1.txt b/Assets/Fonts/Ubuntu/Montserrat-OFL-1.1.txt
deleted file mode 100644
index d2fcdf3eb..000000000
--- a/Assets/Fonts/Ubuntu/Montserrat-OFL-1.1.txt
+++ /dev/null
@@ -1,93 +0,0 @@
-Copyright(c) 2014 by Julieta Ulanovsky
-
-This Font Software is licensed under the SIL Open Font License, Version 1.1.
-This license is copied below, and is also available with a FAQ at:
-https://openfontlicense.org
-
-
------------------------------------------------------------
-SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
------------------------------------------------------------
-
-PREAMBLE
-The goals of the Open Font License (OFL) are to stimulate worldwide
-development of collaborative font projects, to support the font creation
-efforts of academic and linguistic communities, and to provide a free and
-open framework in which fonts may be shared and improved in partnership
-with others.
-
-The OFL allows the licensed fonts to be used, studied, modified and
-redistributed freely as long as they are not sold by themselves. The
-fonts, including any derivative works, can be bundled, embedded,
-redistributed and/or sold with any software provided that any reserved
-names are not used by derivative works. The fonts and derivatives,
-however, cannot be released under any other type of license. The
-requirement for fonts to remain under this license does not apply
-to any document created using the fonts or their derivatives.
-
-DEFINITIONS
-"Font Software" refers to the set of files released by the Copyright
-Holder(s) under this license and clearly marked as such. This may
-include source files, build scripts and documentation.
-
-"Reserved Font Name" refers to any names specified as such after the
-copyright statement(s).
-
-"Original Version" refers to the collection of Font Software components as
-distributed by the Copyright Holder(s).
-
-"Modified Version" refers to any derivative made by adding to, deleting,
-or substituting -- in part or in whole -- any of the components of the
-Original Version, by changing formats or by porting the Font Software to a
-new environment.
-
-"Author" refers to any designer, engineer, programmer, technical
-writer or other person who contributed to the Font Software.
-
-PERMISSION & CONDITIONS
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of the Font Software, to use, study, copy, merge, embed, modify,
-redistribute, and sell modified and unmodified copies of the Font
-Software, subject to the following conditions:
-
-1) Neither the Font Software nor any of its individual components,
-in Original or Modified Versions, may be sold by itself.
-
-2) Original or Modified Versions of the Font Software may be bundled,
-redistributed and/or sold with any software, provided that each copy
-contains the above copyright notice and this license. These can be
-included either as stand-alone text files, human-readable headers or
-in the appropriate machine-readable metadata fields within text or
-binary files as long as those fields can be easily viewed by the user.
-
-3) No Modified Version of the Font Software may use the Reserved Font
-Name(s) unless explicit written permission is granted by the corresponding
-Copyright Holder. This restriction only applies to the primary font name as
-presented to the users.
-
-4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
-Software shall not be used to promote, endorse or advertise any
-Modified Version, except to acknowledge the contribution(s) of the
-Copyright Holder(s) and the Author(s) or with their explicit written
-permission.
-
-5) The Font Software, modified or unmodified, in part or in whole,
-must be distributed entirely under this license, and must not be
-distributed under any other license. The requirement for fonts to
-remain under this license does not apply to any document created
-using the Font Software.
-
-TERMINATION
-This license becomes null and void if any of the above conditions are
-not met.
-
-DISCLAIMER
-THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
-OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
-COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
-DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
-OTHER DEALINGS IN THE FONT SOFTWARE.
\ No newline at end of file
diff --git a/Assets/Fonts/Ubuntu/UFL-1.0.txt b/Assets/Fonts/Ubuntu/UFL-1.0.txt
deleted file mode 100644
index ae78a8f94..000000000
--- a/Assets/Fonts/Ubuntu/UFL-1.0.txt
+++ /dev/null
@@ -1,96 +0,0 @@
--------------------------------
-UBUNTU FONT LICENCE Version 1.0
--------------------------------
-
-PREAMBLE
-This licence allows the licensed fonts to be used, studied, modified and
-redistributed freely. The fonts, including any derivative works, can be
-bundled, embedded, and redistributed provided the terms of this licence
-are met. The fonts and derivatives, however, cannot be released under
-any other licence. The requirement for fonts to remain under this
-licence does not require any document created using the fonts or their
-derivatives to be published under this licence, as long as the primary
-purpose of the document is not to be a vehicle for the distribution of
-the fonts.
-
-DEFINITIONS
-"Font Software" refers to the set of files released by the Copyright
-Holder(s) under this licence and clearly marked as such. This may
-include source files, build scripts and documentation.
-
-"Original Version" refers to the collection of Font Software components
-as received under this licence.
-
-"Modified Version" refers to any derivative made by adding to, deleting,
-or substituting -- in part or in whole -- any of the components of the
-Original Version, by changing formats or by porting the Font Software to
-a new environment.
-
-"Copyright Holder(s)" refers to all individuals and companies who have a
-copyright ownership of the Font Software.
-
-"Substantially Changed" refers to Modified Versions which can be easily
-identified as dissimilar to the Font Software by users of the Font
-Software comparing the Original Version with the Modified Version.
-
-To "Propagate" a work means to do anything with it that, without
-permission, would make you directly or secondarily liable for
-infringement under applicable copyright law, except executing it on a
-computer or modifying a private copy. Propagation includes copying,
-distribution (with or without modification and with or without charging
-a redistribution fee), making available to the public, and in some
-countries other activities as well.
-
-PERMISSION & CONDITIONS
-This licence does not grant any rights under trademark law and all such
-rights are reserved.
-
-Permission is hereby granted, free of charge, to any person obtaining a
-copy of the Font Software, to propagate the Font Software, subject to
-the below conditions:
-
-1) Each copy of the Font Software must contain the above copyright
-notice and this licence. These can be included either as stand-alone
-text files, human-readable headers or in the appropriate machine-
-readable metadata fields within text or binary files as long as those
-fields can be easily viewed by the user.
-
-2) The font name complies with the following:
-(a) The Original Version must retain its name, unmodified.
-(b) Modified Versions which are Substantially Changed must be renamed to
-avoid use of the name of the Original Version or similar names entirely.
-(c) Modified Versions which are not Substantially Changed must be
-renamed to both (i) retain the name of the Original Version and (ii) add
-additional naming elements to distinguish the Modified Version from the
-Original Version. The name of such Modified Versions must be the name of
-the Original Version, with "derivative X" where X represents the name of
-the new work, appended to that name.
-
-3) The name(s) of the Copyright Holder(s) and any contributor to the
-Font Software shall not be used to promote, endorse or advertise any
-Modified Version, except (i) as required by this licence, (ii) to
-acknowledge the contribution(s) of the Copyright Holder(s) or (iii) with
-their explicit written permission.
-
-4) The Font Software, modified or unmodified, in part or in whole, must
-be distributed entirely under this licence, and must not be distributed
-under any other licence. The requirement for fonts to remain under this
-licence does not affect any document created using the Font Software,
-except any version of the Font Software extracted from a document
-created using the Font Software may only be distributed under this
-licence.
-
-TERMINATION
-This licence becomes null and void if any of the above conditions are
-not met.
-
-DISCLAIMER
-THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
-COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
-COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
-DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER
-DEALINGS IN THE FONT SOFTWARE.
diff --git a/Assets/Materials/Aluminium brushed.mat b/Assets/Materials/Aluminium brushed.mat
index a624f95e1..b8ade999f 100644
--- a/Assets/Materials/Aluminium brushed.mat
+++ b/Assets/Materials/Aluminium brushed.mat
@@ -20,7 +20,8 @@ Material:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
- m_Texture: {fileID: 2800000, guid: c3ef09438e3e46d18a4c267810aeb285, type: 3}
+ m_Texture: {fileID: 4730978449518085612, guid: 06d6a565d43fba5409712ce9a10bfbef,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
@@ -44,19 +45,23 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
- m_Texture: {fileID: 2800000, guid: f70b6df0395b4752b4ec80cb7bfd8f42, type: 3}
+ m_Texture: {fileID: 7556082237344091230, guid: 06d6a565d43fba5409712ce9a10bfbef,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
- m_Texture: {fileID: 2800000, guid: 40f5e915d2734d43bc01f984772e9d29, type: 3}
+ m_Texture: {fileID: 6373266012617290493, guid: 06d6a565d43fba5409712ce9a10bfbef,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
- m_Texture: {fileID: 0}
+ m_Texture: {fileID: 342959783478273704, guid: 06d6a565d43fba5409712ce9a10bfbef,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
- m_Texture: {fileID: 0}
+ m_Texture: {fileID: -9132138291289375396, guid: 06d6a565d43fba5409712ce9a10bfbef,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
@@ -80,7 +85,7 @@ Material:
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- - _Color: {r: 0.951, g: 0.951, b: 0.951, a: 1}
+ - _Color: {r: 1, g: 1, b: 1, a: 1}
- _EdgeColor: {r: 3.0117648, g: 3.0117648, b: 11.984314, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
m_BuildTextureStacks: []
diff --git a/Assets/Materials/Car Paint Magenta.mat b/Assets/Materials/Car Paint Magenta.mat
index bff25331a..dbe95bd62 100644
--- a/Assets/Materials/Car Paint Magenta.mat
+++ b/Assets/Materials/Car Paint Magenta.mat
@@ -26,7 +26,8 @@ Material:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
- m_Texture: {fileID: 2800000, guid: 4ce3c2cc69304068b4a2ddc833b748b9, type: 3}
+ m_Texture: {fileID: 3068890721646206586, guid: a1d39ea984432bf44b4a0686afe2bf1a,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _FadeTex:
@@ -34,15 +35,18 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
- m_Texture: {fileID: 2800000, guid: 73568a0c02bd4184bcb398c9e3dd7ab6, type: 3}
+ m_Texture: {fileID: 5917659159057834157, guid: a1d39ea984432bf44b4a0686afe2bf1a,
+ type: 3}
m_Scale: {x: 2, y: 2}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
- m_Texture: {fileID: 2800000, guid: d9cd336372c244e398532512e3f8f3be, type: 3}
+ m_Texture: {fileID: -3552914696322007609, guid: a1d39ea984432bf44b4a0686afe2bf1a,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
- m_Texture: {fileID: 2800000, guid: 73e117729c3447e5aa0eb1a30fad7c75, type: 3}
+ m_Texture: {fileID: -1242281561028671816, guid: a1d39ea984432bf44b4a0686afe2bf1a,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
@@ -55,6 +59,6 @@ Material:
- _Metallic: 1
- _OcclusionStrength: 1
m_Colors:
- - _Color: {r: 0.5, g: 0, b: 0.228113, a: 1}
+ - _Color: {r: 1, g: 1, b: 1, a: 1}
- _EdgeColor: {r: 3.0117648, g: 3.0117648, b: 11.984314, a: 1}
m_BuildTextureStacks: []
diff --git a/Assets/Materials/Car Paint Red.mat b/Assets/Materials/Car Paint Red.mat
index 063e9367c..8a7ffa46f 100644
--- a/Assets/Materials/Car Paint Red.mat
+++ b/Assets/Materials/Car Paint Red.mat
@@ -20,7 +20,8 @@ Material:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
- m_Texture: {fileID: 2800000, guid: 4ce3c2cc69304068b4a2ddc833b748b9, type: 3}
+ m_Texture: {fileID: 3068890721646206586, guid: 504c7bfe0d50ff64a88b8eac2ceb46f8,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
@@ -44,19 +45,23 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
- m_Texture: {fileID: 2800000, guid: 73568a0c02bd4184bcb398c9e3dd7ab6, type: 3}
+ m_Texture: {fileID: 5917659159057834157, guid: 504c7bfe0d50ff64a88b8eac2ceb46f8,
+ type: 3}
m_Scale: {x: 2, y: 2}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
- m_Texture: {fileID: 2800000, guid: d9cd336372c244e398532512e3f8f3be, type: 3}
+ m_Texture: {fileID: -3552914696322007609, guid: 504c7bfe0d50ff64a88b8eac2ceb46f8,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
- m_Texture: {fileID: 2800000, guid: 73e117729c3447e5aa0eb1a30fad7c75, type: 3}
+ m_Texture: {fileID: -1242281561028671816, guid: 504c7bfe0d50ff64a88b8eac2ceb46f8,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
- m_Texture: {fileID: 0}
+ m_Texture: {fileID: -1652887728991447519, guid: 504c7bfe0d50ff64a88b8eac2ceb46f8,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
@@ -80,7 +85,7 @@ Material:
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- - _Color: {r: 1, g: 0.15685, b: 0, a: 1}
+ - _Color: {r: 1, g: 1, b: 1, a: 1}
- _EdgeColor: {r: 6.0235295, g: 6.0235295, b: 24.094118, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
m_BuildTextureStacks: []
diff --git a/Assets/Materials/Car Paint White Small.mat b/Assets/Materials/Car Paint White Small.mat
index cca6010f3..aab8a3663 100644
--- a/Assets/Materials/Car Paint White Small.mat
+++ b/Assets/Materials/Car Paint White Small.mat
@@ -29,7 +29,8 @@ Material:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
- m_Texture: {fileID: 2800000, guid: 4ce3c2cc69304068b4a2ddc833b748b9, type: 3}
+ m_Texture: {fileID: 3068890721646206586, guid: 1c858fec5b74c7c46b1712494192b6b5,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
@@ -53,19 +54,23 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
- m_Texture: {fileID: 2800000, guid: 73568a0c02bd4184bcb398c9e3dd7ab6, type: 3}
+ m_Texture: {fileID: 5917659159057834157, guid: 1c858fec5b74c7c46b1712494192b6b5,
+ type: 3}
m_Scale: {x: 16, y: 16}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
- m_Texture: {fileID: 2800000, guid: d9cd336372c244e398532512e3f8f3be, type: 3}
+ m_Texture: {fileID: -3552914696322007609, guid: 1c858fec5b74c7c46b1712494192b6b5,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
- m_Texture: {fileID: 2800000, guid: 73e117729c3447e5aa0eb1a30fad7c75, type: 3}
+ m_Texture: {fileID: -1242281561028671816, guid: 1c858fec5b74c7c46b1712494192b6b5,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
- m_Texture: {fileID: 0}
+ m_Texture: {fileID: -1652887728991447519, guid: 1c858fec5b74c7c46b1712494192b6b5,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
@@ -90,7 +95,7 @@ Material:
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- - _Color: {r: 1, g: 0.891509, b: 0.946396, a: 1}
+ - _Color: {r: 1, g: 1, b: 1, a: 1}
- _EdgeColor: {r: 6.0235295, g: 6.0235295, b: 24.094118, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
m_BuildTextureStacks: []
diff --git a/Assets/Materials/Car Paint White.mat b/Assets/Materials/Car Paint White.mat
index ad0af17d2..ba32280af 100644
--- a/Assets/Materials/Car Paint White.mat
+++ b/Assets/Materials/Car Paint White.mat
@@ -26,7 +26,8 @@ Material:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
- m_Texture: {fileID: 2800000, guid: 4ce3c2cc69304068b4a2ddc833b748b9, type: 3}
+ m_Texture: {fileID: 3068890721646206586, guid: b2bec4b400153d745b2915f1c43e5c96,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _FadeTex:
@@ -34,15 +35,18 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
- m_Texture: {fileID: 2800000, guid: 73568a0c02bd4184bcb398c9e3dd7ab6, type: 3}
+ m_Texture: {fileID: 5917659159057834157, guid: b2bec4b400153d745b2915f1c43e5c96,
+ type: 3}
m_Scale: {x: 2, y: 2}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
- m_Texture: {fileID: 2800000, guid: d9cd336372c244e398532512e3f8f3be, type: 3}
+ m_Texture: {fileID: -3552914696322007609, guid: b2bec4b400153d745b2915f1c43e5c96,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
- m_Texture: {fileID: 2800000, guid: 73e117729c3447e5aa0eb1a30fad7c75, type: 3}
+ m_Texture: {fileID: -1242281561028671816, guid: b2bec4b400153d745b2915f1c43e5c96,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
@@ -55,6 +59,6 @@ Material:
- _Metallic: 1
- _OcclusionStrength: 1
m_Colors:
- - _Color: {r: 1, g: 0.891509, b: 0.946396, a: 1}
+ - _Color: {r: 1, g: 1, b: 1, a: 1}
- _EdgeColor: {r: 3.0117648, g: 3.0117648, b: 11.984314, a: 1}
m_BuildTextureStacks: []
diff --git a/Assets/Materials/Cockpit.mat b/Assets/Materials/Cockpit.mat
index fb19e541a..543d0d608 100644
--- a/Assets/Materials/Cockpit.mat
+++ b/Assets/Materials/Cockpit.mat
@@ -26,7 +26,8 @@ Material:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
- m_Texture: {fileID: 2800000, guid: 3a10044baac4438f9fc0930783eccdf7, type: 3}
+ m_Texture: {fileID: -3419035557588562233, guid: 9fc901afb8a434e46b9405eaec2df5a4,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
@@ -50,19 +51,23 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
- m_Texture: {fileID: 2800000, guid: 5a9cee903a2d48718aaf6b224126f279, type: 3}
+ m_Texture: {fileID: -1863473678134789185, guid: 9fc901afb8a434e46b9405eaec2df5a4,
+ type: 3}
m_Scale: {x: 2, y: 2}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
- m_Texture: {fileID: 2800000, guid: 8b24d7ea11c341408a146fa39f59b7b0, type: 3}
+ m_Texture: {fileID: 6214616473909614744, guid: 9fc901afb8a434e46b9405eaec2df5a4,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
- m_Texture: {fileID: 0}
+ m_Texture: {fileID: -3436886866959827803, guid: 9fc901afb8a434e46b9405eaec2df5a4,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
- m_Texture: {fileID: 0}
+ m_Texture: {fileID: 7009887839391554354, guid: 9fc901afb8a434e46b9405eaec2df5a4,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
@@ -87,7 +92,7 @@ Material:
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- - _Color: {r: 0.85, g: 0.65, b: 0.30, a: 1}
+ - _Color: {r: 1, g: 1, b: 1, a: 1}
- _EdgeColor: {r: 3.0117648, g: 3.0117648, b: 11.984314, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
m_BuildTextureStacks: []
diff --git a/Assets/Materials/Metal 003.mat b/Assets/Materials/Metal 003.mat
index 09330e338..4d07d4c1a 100644
--- a/Assets/Materials/Metal 003.mat
+++ b/Assets/Materials/Metal 003.mat
@@ -20,7 +20,8 @@ Material:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
- m_Texture: {fileID: 2800000, guid: 3a10044baac4438f9fc0930783eccdf7, type: 3}
+ m_Texture: {fileID: -2508943184622041221, guid: 885e680924fc12c439a842a2142d4b78,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
@@ -40,19 +41,23 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
- m_Texture: {fileID: 2800000, guid: 5a9cee903a2d48718aaf6b224126f279, type: 3}
+ m_Texture: {fileID: -1236254257114565538, guid: 885e680924fc12c439a842a2142d4b78,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
- m_Texture: {fileID: 2800000, guid: 8b24d7ea11c341408a146fa39f59b7b0, type: 3}
+ m_Texture: {fileID: 4019402794555593307, guid: 885e680924fc12c439a842a2142d4b78,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
- m_Texture: {fileID: 0}
+ m_Texture: {fileID: -1475328947160444094, guid: 885e680924fc12c439a842a2142d4b78,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
- m_Texture: {fileID: 0}
+ m_Texture: {fileID: 7523010977671448217, guid: 885e680924fc12c439a842a2142d4b78,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
diff --git a/Assets/Materials/Mine Glow.mat b/Assets/Materials/Mine Glow.mat
index 7d6d630e7..e1627f2d9 100644
--- a/Assets/Materials/Mine Glow.mat
+++ b/Assets/Materials/Mine Glow.mat
@@ -20,7 +20,8 @@ Material:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
- m_Texture: {fileID: 2800000, guid: 8bc10cfce8a64defaf9f67d156003f09, type: 3}
+ m_Texture: {fileID: -812895718602229137, guid: b7e648471e9dfc44490bd41973711541,
+ type: 3}
m_Scale: {x: 2, y: 2}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
@@ -40,11 +41,13 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
- m_Texture: {fileID: 2800000, guid: 2195885db9e846999fd10aa7f5c629b1, type: 3}
+ m_Texture: {fileID: -6057190860509678031, guid: 2b42584452fe0cc4fa4e8a115230b156,
+ type: 3}
m_Scale: {x: 2, y: 2}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
- m_Texture: {fileID: 2800000, guid: d91bff887b764847a484d0a9bedce9e9, type: 3}
+ m_Texture: {fileID: -894214952450941493, guid: 2b42584452fe0cc4fa4e8a115230b156,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
diff --git a/Assets/Materials/Radiators 1.mat b/Assets/Materials/Radiators 1.mat
new file mode 100644
index 000000000..a6219fe9d
--- /dev/null
+++ b/Assets/Materials/Radiators 1.mat
@@ -0,0 +1,87 @@
+%YAML 1.1
+%TAG !u! tag:unity3d.com,2011:
+--- !u!21 &2100000
+Material:
+ serializedVersion: 6
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_Name: Radiators 1
+ m_Shader: {fileID: 4800000, guid: d69ef48273708ef4680762f5cdcfc860, type: 3}
+ m_ShaderKeywords:
+ m_LightmapFlags: 4
+ m_EnableInstancingVariants: 0
+ m_DoubleSidedGI: 0
+ m_CustomRenderQueue: -1
+ stringTagMap: {}
+ disabledShaderPasses: []
+ m_SavedProperties:
+ serializedVersion: 3
+ m_TexEnvs:
+ - _BumpMap:
+ m_Texture: {fileID: -812895718602229137, guid: b7e648471e9dfc44490bd41973711541,
+ type: 3}
+ m_Scale: {x: 8, y: 8}
+ m_Offset: {x: 0, y: 0}
+ - _DetailAlbedoMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _DetailMask:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _DetailNormalMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _EmissionMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _MainTex:
+ m_Texture: {fileID: -6057190860509678031, guid: 2b42584452fe0cc4fa4e8a115230b156,
+ type: 3}
+ m_Scale: {x: 8, y: 8}
+ m_Offset: {x: 0, y: 0}
+ - _MetallicGlossMap:
+ m_Texture: {fileID: -894214952450941493, guid: 2b42584452fe0cc4fa4e8a115230b156,
+ 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}
+ m_Floats:
+ - _BumpPower: 2
+ - _BumpScale: 1
+ - _Cutoff: 0.5
+ - _DetailNormalMapScale: 1
+ - _DstBlend: 0
+ - _Emission: 15
+ - _EmissionFresnel: 4
+ - _EmissionRoughnessFresnelPower: 0.5
+ - _GlossMapScale: 1
+ - _Glossiness: 1
+ - _GlossyReflections: 1
+ - _Metallic: 0
+ - _Mode: 0
+ - _OcclusionStrength: 1
+ - _Parallax: 0.02
+ - _ReverseRim: 0
+ - _Rotation: 0
+ - _SmoothnessTextureChannel: 0
+ - _SpecularHighlights: 1
+ - _SrcBlend: 1
+ - _UVSec: 0
+ - _ZWrite: 1
+ m_Colors:
+ - _Color: {r: 1, g: 1, b: 1, a: 1}
+ - _EmissionColor: {r: 1, g: 0.40135294, b: 0, a: 1}
+ m_BuildTextureStacks: []
diff --git a/Assets/Fonts/Ubuntu/UFL-1.0.txt.meta b/Assets/Materials/Radiators 1.mat.meta
similarity index 54%
rename from Assets/Fonts/Ubuntu/UFL-1.0.txt.meta
rename to Assets/Materials/Radiators 1.mat.meta
index 33790c1ab..c562a84de 100644
--- a/Assets/Fonts/Ubuntu/UFL-1.0.txt.meta
+++ b/Assets/Materials/Radiators 1.mat.meta
@@ -1,7 +1,8 @@
fileFormatVersion: 2
-guid: 331370618a0a473fb6a6837985b38a35
-TextScriptImporter:
+guid: f396635dc77c59c44ac85ae278a2e909
+NativeFormatImporter:
externalObjects: {}
+ mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:
diff --git a/Assets/Materials/Radiators.mat b/Assets/Materials/Radiators.mat
index 1e5c52a54..aa7eaf0fb 100644
--- a/Assets/Materials/Radiators.mat
+++ b/Assets/Materials/Radiators.mat
@@ -21,7 +21,8 @@ Material:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
- m_Texture: {fileID: 2800000, guid: 8bc10cfce8a64defaf9f67d156003f09, type: 3}
+ m_Texture: {fileID: -812895718602229137, guid: b7e648471e9dfc44490bd41973711541,
+ type: 3}
m_Scale: {x: 2, y: 2}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
@@ -45,11 +46,13 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
- m_Texture: {fileID: 2800000, guid: 2195885db9e846999fd10aa7f5c629b1, type: 3}
+ m_Texture: {fileID: -6057190860509678031, guid: 2b42584452fe0cc4fa4e8a115230b156,
+ type: 3}
m_Scale: {x: 2, y: 2}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
- m_Texture: {fileID: 2800000, guid: d91bff887b764847a484d0a9bedce9e9, type: 3}
+ m_Texture: {fileID: -894214952450941493, guid: 2b42584452fe0cc4fa4e8a115230b156,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
diff --git a/Assets/Materials/Silver.mat b/Assets/Materials/Silver.mat
index 0bb79d6a1..e02d24f97 100644
--- a/Assets/Materials/Silver.mat
+++ b/Assets/Materials/Silver.mat
@@ -26,7 +26,8 @@ Material:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
- m_Texture: {fileID: 2800000, guid: c3ef09438e3e46d18a4c267810aeb285, type: 3}
+ m_Texture: {fileID: 8947980237086559854, guid: 0be5fb1df83ac8e499a3f6a060041e49,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
@@ -50,19 +51,23 @@ Material:
m_Scale: {x: 2, y: 2}
m_Offset: {x: 0, y: 0}
- _MainTex:
- m_Texture: {fileID: 2800000, guid: f70b6df0395b4752b4ec80cb7bfd8f42, type: 3}
+ m_Texture: {fileID: -1383037052668628532, guid: 0be5fb1df83ac8e499a3f6a060041e49,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
- m_Texture: {fileID: 2800000, guid: 40f5e915d2734d43bc01f984772e9d29, type: 3}
+ m_Texture: {fileID: 6429125567479694453, guid: 0be5fb1df83ac8e499a3f6a060041e49,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
- m_Texture: {fileID: 0}
+ m_Texture: {fileID: -9097439929179392311, guid: 0be5fb1df83ac8e499a3f6a060041e49,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
- m_Texture: {fileID: 0}
+ m_Texture: {fileID: 425190381137097012, guid: 0be5fb1df83ac8e499a3f6a060041e49,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
diff --git a/Assets/Materials/Station Lights.mat b/Assets/Materials/Station Lights.mat
index 2aac54ac7..f863306a1 100644
--- a/Assets/Materials/Station Lights.mat
+++ b/Assets/Materials/Station Lights.mat
@@ -24,7 +24,8 @@ Material:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
- m_Texture: {fileID: 2800000, guid: 8bc10cfce8a64defaf9f67d156003f09, type: 3}
+ m_Texture: {fileID: -812895718602229137, guid: b7e648471e9dfc44490bd41973711541,
+ type: 3}
m_Scale: {x: 8, y: 8}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
@@ -48,11 +49,13 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
- m_Texture: {fileID: 2800000, guid: 2195885db9e846999fd10aa7f5c629b1, type: 3}
+ m_Texture: {fileID: -6057190860509678031, guid: 2b42584452fe0cc4fa4e8a115230b156,
+ type: 3}
m_Scale: {x: 16, y: 16}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
- m_Texture: {fileID: 2800000, guid: d91bff887b764847a484d0a9bedce9e9, type: 3}
+ m_Texture: {fileID: -894214952450941493, guid: 2b42584452fe0cc4fa4e8a115230b156,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
diff --git a/Assets/Materials/Steel brushed.mat b/Assets/Materials/Steel brushed.mat
new file mode 100644
index 000000000..dba1bd074
--- /dev/null
+++ b/Assets/Materials/Steel brushed.mat
@@ -0,0 +1,83 @@
+%YAML 1.1
+%TAG !u! tag:unity3d.com,2011:
+--- !u!21 &2100000
+Material:
+ serializedVersion: 6
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_Name: Steel brushed
+ m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ m_ShaderKeywords: _MAINTEX _METALLICGLOSSMAP _NORMALMAP _OCCLUSIONMAP _PARALLAXMAP
+ m_LightmapFlags: 4
+ m_EnableInstancingVariants: 0
+ m_DoubleSidedGI: 0
+ m_CustomRenderQueue: -1
+ stringTagMap: {}
+ disabledShaderPasses: []
+ m_SavedProperties:
+ serializedVersion: 3
+ m_TexEnvs:
+ - _BumpMap:
+ m_Texture: {fileID: -4471413742775304797, guid: ea7457b9a4f0bcb43becaa33de541cbd,
+ 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: 0}
+ m_Scale: {x: 8, y: 8}
+ m_Offset: {x: 0, y: 0}
+ - _MainTex:
+ m_Texture: {fileID: -4638397344074346932, guid: ea7457b9a4f0bcb43becaa33de541cbd,
+ type: 3}
+ m_Scale: {x: 8, y: 8}
+ m_Offset: {x: 0, y: 0}
+ - _MetallicGlossMap:
+ m_Texture: {fileID: 5049811794194361025, guid: ea7457b9a4f0bcb43becaa33de541cbd,
+ type: 3}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _OcclusionMap:
+ m_Texture: {fileID: 1753668427856518731, guid: ea7457b9a4f0bcb43becaa33de541cbd,
+ type: 3}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _ParallaxMap:
+ m_Texture: {fileID: -3498708498072814504, guid: ea7457b9a4f0bcb43becaa33de541cbd,
+ type: 3}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ m_Floats:
+ - _BumpScale: 1
+ - _Cutoff: 0.5
+ - _DetailNormalMapScale: 1
+ - _DstBlend: 0
+ - _GlossMapScale: 1
+ - _Glossiness: 0.5
+ - _GlossyReflections: 1
+ - _Metallic: 0
+ - _Mode: 0
+ - _OcclusionStrength: 1
+ - _Parallax: 0.02
+ - _SmoothnessTextureChannel: 0
+ - _SpecularHighlights: 1
+ - _SrcBlend: 1
+ - _UVSec: 0
+ - _ZWrite: 1
+ m_Colors:
+ - _Color: {r: 1, g: 1, b: 1, a: 1}
+ - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
+ m_BuildTextureStacks: []
diff --git a/Assets/Materials/Steel brushed.mat.meta b/Assets/Materials/Steel brushed.mat.meta
new file mode 100644
index 000000000..73afa8139
--- /dev/null
+++ b/Assets/Materials/Steel brushed.mat.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: df3e704fc59794a45b8e14a78d96cca3
+NativeFormatImporter:
+ externalObjects: {}
+ mainObjectFileID: 0
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Materials/Steel parkerized.mat b/Assets/Materials/Steel parkerized.mat
index ba47afb87..b4194ab66 100644
--- a/Assets/Materials/Steel parkerized.mat
+++ b/Assets/Materials/Steel parkerized.mat
@@ -29,7 +29,8 @@ Material:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
- m_Texture: {fileID: 2800000, guid: dc71e34b4a1f4de7aa826d18b67b5852, type: 3}
+ m_Texture: {fileID: 885599758852769373, guid: e7758cad28ae98f478940e55222419a6,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
@@ -53,19 +54,23 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
- m_Texture: {fileID: 2800000, guid: 1ed06708491744fe944217d19e450157, type: 3}
+ m_Texture: {fileID: -4474525002722929857, guid: e7758cad28ae98f478940e55222419a6,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
- m_Texture: {fileID: 2800000, guid: 31e7d642ff8a49a28390c82626c4b6b9, type: 3}
+ m_Texture: {fileID: -2334804936223627746, guid: e7758cad28ae98f478940e55222419a6,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
- m_Texture: {fileID: 0}
+ m_Texture: {fileID: -8380876848358870972, guid: e7758cad28ae98f478940e55222419a6,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
- m_Texture: {fileID: 0}
+ m_Texture: {fileID: 172713863077875830, guid: e7758cad28ae98f478940e55222419a6,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
diff --git a/Assets/Materials/Steel.mat b/Assets/Materials/Steel.mat
index 6eeb29385..37420bfd4 100644
--- a/Assets/Materials/Steel.mat
+++ b/Assets/Materials/Steel.mat
@@ -26,7 +26,8 @@ Material:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
- m_Texture: {fileID: 2800000, guid: c3ef09438e3e46d18a4c267810aeb285, type: 3}
+ m_Texture: {fileID: -3888315358723833787, guid: cbc61995a46604441ab9de4f1c68e290,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
@@ -50,19 +51,23 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
- m_Texture: {fileID: 2800000, guid: f70b6df0395b4752b4ec80cb7bfd8f42, type: 3}
+ m_Texture: {fileID: 108215966750249586, guid: cbc61995a46604441ab9de4f1c68e290,
+ type: 3}
m_Scale: {x: 4, y: 4}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
- m_Texture: {fileID: 2800000, guid: 40f5e915d2734d43bc01f984772e9d29, type: 3}
+ m_Texture: {fileID: 4793252353645218242, guid: cbc61995a46604441ab9de4f1c68e290,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
- m_Texture: {fileID: 0}
+ m_Texture: {fileID: -4384182597330533215, guid: cbc61995a46604441ab9de4f1c68e290,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
- m_Texture: {fileID: 0}
+ m_Texture: {fileID: 4600200897981803784, guid: cbc61995a46604441ab9de4f1c68e290,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
diff --git a/Assets/Shaders/Resources.meta b/Assets/Materials/Substance.meta
similarity index 77%
rename from Assets/Shaders/Resources.meta
rename to Assets/Materials/Substance.meta
index 05251681e..c6926c786 100644
--- a/Assets/Shaders/Resources.meta
+++ b/Assets/Materials/Substance.meta
@@ -1,5 +1,5 @@
fileFormatVersion: 2
-guid: ef7b30a9009e498fb4d5933bd723992b
+guid: 7de1c11cf7591ec48bdb53e9818172f5
folderAsset: yes
DefaultImporter:
externalObjects: {}
diff --git a/Assets/Fonts/Ubuntu/Montserrat-OFL-1.1.txt.meta b/Assets/Materials/Substance/Metal.meta
similarity index 57%
rename from Assets/Fonts/Ubuntu/Montserrat-OFL-1.1.txt.meta
rename to Assets/Materials/Substance/Metal.meta
index c2ea6a451..e8c0226e7 100644
--- a/Assets/Fonts/Ubuntu/Montserrat-OFL-1.1.txt.meta
+++ b/Assets/Materials/Substance/Metal.meta
@@ -1,6 +1,7 @@
fileFormatVersion: 2
-guid: dc84a6b2454445f9be69af26e86eb90c
-TextScriptImporter:
+guid: 09aee558716a08d4c9806b9b4273a209
+folderAsset: yes
+DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
diff --git a/Assets/Materials/Substance/Metal/Pickup Base.sbsar b/Assets/Materials/Substance/Metal/Pickup Base.sbsar
new file mode 100644
index 000000000..963310406
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/Pickup Base.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dbee14b278a03ed59e1df8ecd6ba2b07ab7c2b2089e5e2bc3fad5673694a9f03
+size 14971
diff --git a/Assets/Materials/Substance/Metal/Pickup Base.sbsar.meta b/Assets/Materials/Substance/Metal/Pickup Base.sbsar.meta
new file mode 100644
index 000000000..2966159bc
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/Pickup Base.sbsar.meta
@@ -0,0 +1,382 @@
+fileFormatVersion: 2
+guid: 26a894e543f3ed44893b1620707ca62c
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_car_paint/metal_car_paint
+ - first:
+ 4: 400000
+ second: metal_car_paint/metal_car_paint/Transform
+ - first:
+ 21: 2100000
+ second: mat.Car paint
+ - first:
+ 23: 2300000
+ second: metal_car_paint/metal_car_paint/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Car paint_baseColor
+ - first:
+ 28: 2800002
+ second: Car paint_normal
+ - first:
+ 28: 2800004
+ second: Car paint_metallic
+ - first:
+ 28: 2800006
+ second: Car paint_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Car paint_height
+ - first:
+ 33: 3300000
+ second: metal_car_paint/metal_car_paint/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_car_paint/metal_car_paint/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_car_paint
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Car paint
+ prototypeName: Car paint
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n
+ \n \n \n \n \n \n \n \n \n
+ \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: 3068890721646206586, guid: 26a894e543f3ed44893b1620707ca62c,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 0.5, y: 0.5}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: 5917659159057834157, guid: 26a894e543f3ed44893b1620707ca62c,
+ type: 3}
+ scale: {x: 0.5, y: 0.5}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -3552914696322007609, guid: 26a894e543f3ed44893b1620707ca62c,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: -1242281561028671816, guid: 26a894e543f3ed44893b1620707ca62c,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: -1652887728991447519, guid: 26a894e543f3ed44893b1620707ca62c,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 1
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 1
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Car paint_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 2048
+ textureHeight: 2048
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: 3720744386649352057, guid: 26a894e543f3ed44893b1620707ca62c,
+ type: 3}
+ generatedTextures:
+ - {fileID: 5917659159057834157, guid: 26a894e543f3ed44893b1620707ca62c, type: 3}
+ - {fileID: 3068890721646206586, guid: 26a894e543f3ed44893b1620707ca62c, type: 3}
+ - {fileID: -3552914696322007609, guid: 26a894e543f3ed44893b1620707ca62c, type: 3}
+ - {fileID: -1242281561028671816, guid: 26a894e543f3ed44893b1620707ca62c, type: 3}
+ - {fileID: -1652887728991447519, guid: 26a894e543f3ed44893b1620707ca62c, type: 3}
diff --git a/Assets/Materials/Substance/Metal/Pickup Trim.sbsar b/Assets/Materials/Substance/Metal/Pickup Trim.sbsar
new file mode 100644
index 000000000..963310406
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/Pickup Trim.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dbee14b278a03ed59e1df8ecd6ba2b07ab7c2b2089e5e2bc3fad5673694a9f03
+size 14971
diff --git a/Assets/Materials/Substance/Metal/Pickup Trim.sbsar.meta b/Assets/Materials/Substance/Metal/Pickup Trim.sbsar.meta
new file mode 100644
index 000000000..302e453b5
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/Pickup Trim.sbsar.meta
@@ -0,0 +1,381 @@
+fileFormatVersion: 2
+guid: c00b5a4f1e4743a4ca59b8030251f900
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_car_paint/metal_car_paint
+ - first:
+ 4: 400000
+ second: metal_car_paint/metal_car_paint/Transform
+ - first:
+ 21: 2100000
+ second: mat.Car paint
+ - first:
+ 23: 2300000
+ second: metal_car_paint/metal_car_paint/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Car paint_baseColor
+ - first:
+ 28: 2800002
+ second: Car paint_normal
+ - first:
+ 28: 2800004
+ second: Car paint_metallic
+ - first:
+ 28: 2800006
+ second: Car paint_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Car paint_height
+ - first:
+ 33: 3300000
+ second: metal_car_paint/metal_car_paint/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_car_paint/metal_car_paint/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_car_paint
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Car paint
+ prototypeName: Car paint
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n
+ \n \n \n \n \n \n \n \n \n \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: 3068890721646206586, guid: c00b5a4f1e4743a4ca59b8030251f900,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 0.5, y: 0.5}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: 5917659159057834157, guid: c00b5a4f1e4743a4ca59b8030251f900,
+ type: 3}
+ scale: {x: 0.5, y: 0.5}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -3552914696322007609, guid: c00b5a4f1e4743a4ca59b8030251f900,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: -1242281561028671816, guid: c00b5a4f1e4743a4ca59b8030251f900,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: -1652887728991447519, guid: c00b5a4f1e4743a4ca59b8030251f900,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.005
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Car paint_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 2048
+ textureHeight: 2048
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: 3720744386649352057, guid: c00b5a4f1e4743a4ca59b8030251f900,
+ type: 3}
+ generatedTextures:
+ - {fileID: 5917659159057834157, guid: c00b5a4f1e4743a4ca59b8030251f900, type: 3}
+ - {fileID: 3068890721646206586, guid: c00b5a4f1e4743a4ca59b8030251f900, type: 3}
+ - {fileID: -3552914696322007609, guid: c00b5a4f1e4743a4ca59b8030251f900, type: 3}
+ - {fileID: -1242281561028671816, guid: c00b5a4f1e4743a4ca59b8030251f900, type: 3}
+ - {fileID: -1652887728991447519, guid: c00b5a4f1e4743a4ca59b8030251f900, type: 3}
diff --git a/Assets/Materials/Substance/Metal/galvanized_001.sbsar b/Assets/Materials/Substance/Metal/galvanized_001.sbsar
new file mode 100644
index 000000000..5d6237210
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/galvanized_001.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:274db26d631b6cd53024c1366c01322d99b6194b5e211d04c5430bb8174ae8f6
+size 8207
diff --git a/Assets/Materials/Substance/Metal/galvanized_001.sbsar.meta b/Assets/Materials/Substance/Metal/galvanized_001.sbsar.meta
new file mode 100644
index 000000000..9815351c0
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/galvanized_001.sbsar.meta
@@ -0,0 +1,369 @@
+fileFormatVersion: 2
+guid: 2be0f689f5b01be4aa1032bc86f15eab
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: galvanized_001/galvanized_001
+ - first:
+ 4: 400000
+ second: galvanized_001/galvanized_001/Transform
+ - first:
+ 21: 2100000
+ second: mat.Galvanized_001
+ - first:
+ 23: 2300000
+ second: galvanized_001/galvanized_001/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Galvanized_001_baseColor
+ - first:
+ 28: 2800002
+ second: Galvanized_001_normal
+ - first:
+ 28: 2800004
+ second: Galvanized_001_metallic
+ - first:
+ 28: 2800006
+ second: Galvanized_001_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Galvanized_001_height
+ - first:
+ 33: 3300000
+ second: galvanized_001/galvanized_001/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: galvanized_001/galvanized_001/SphereCollider
+ - first:
+ 1001: 100100000
+ second: galvanized_001
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Galvanized_001
+ prototypeName: Galvanized_001
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: -2787997366030867252, guid: 2be0f689f5b01be4aa1032bc86f15eab,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: 7907137595978400316, guid: 2be0f689f5b01be4aa1032bc86f15eab,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: 1034366337303036879, guid: 2be0f689f5b01be4aa1032bc86f15eab,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: 4470803051826786927, guid: 2be0f689f5b01be4aa1032bc86f15eab,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: -3422293810953865746, guid: 2be0f689f5b01be4aa1032bc86f15eab,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Galvanized_001_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Galvanized_001_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Galvanized_001_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Galvanized_001_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Galvanized_001_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Galvanized_001_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Galvanized_001_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Galvanized_001_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Galvanized_001_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Galvanized_001 - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Galvanized_001 - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Galvanized_001 - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Galvanized_001 - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Galvanized_001 - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Galvanized_001 - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Galvanized_001 - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Galvanized_001 - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Galvanized_001 - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 256
+ textureHeight: 256
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: -231086597109407277, guid: 2be0f689f5b01be4aa1032bc86f15eab,
+ type: 3}
+ generatedTextures:
+ - {fileID: 7907137595978400316, guid: 2be0f689f5b01be4aa1032bc86f15eab, type: 3}
+ - {fileID: -2787997366030867252, guid: 2be0f689f5b01be4aa1032bc86f15eab, type: 3}
+ - {fileID: 1034366337303036879, guid: 2be0f689f5b01be4aa1032bc86f15eab, type: 3}
+ - {fileID: 4470803051826786927, guid: 2be0f689f5b01be4aa1032bc86f15eab, type: 3}
+ - {fileID: -3422293810953865746, guid: 2be0f689f5b01be4aa1032bc86f15eab, type: 3}
diff --git a/Assets/Materials/Substance/Metal/iron_damaged.sbsar b/Assets/Materials/Substance/Metal/iron_damaged.sbsar
new file mode 100644
index 000000000..cb09572e5
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/iron_damaged.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4a12de208077d6dfd8e70dfa8a8976bb9e5b2ca2d258bb34aa50c81a58a6451c
+size 30808
diff --git a/Assets/Materials/Substance/Metal/iron_damaged.sbsar.meta b/Assets/Materials/Substance/Metal/iron_damaged.sbsar.meta
new file mode 100644
index 000000000..d7a4d07d7
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/iron_damaged.sbsar.meta
@@ -0,0 +1,293 @@
+fileFormatVersion: 2
+guid: d15fc45ed0000934d946b5f271f637ef
+ScriptedImporter:
+ internalIDToNameTable: []
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Iron Damaged
+ prototypeName: Iron Damaged
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n
+ \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: -1855041196637152199, guid: d15fc45ed0000934d946b5f271f637ef,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: -2789335455068261637, guid: d15fc45ed0000934d946b5f271f637ef,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: 7922211451800446260, guid: d15fc45ed0000934d946b5f271f637ef,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: -4424499752615739725, guid: d15fc45ed0000934d946b5f271f637ef,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: 7474978398744299577, guid: d15fc45ed0000934d946b5f271f637ef,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambientocclusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Iron Damaged - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Iron Damaged - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Iron Damaged - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Iron Damaged - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Iron Damaged - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Iron Damaged - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Iron Damaged - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Iron Damaged - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Iron Damaged - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 512
+ textureHeight: 512
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: 1736733470071950104, guid: d15fc45ed0000934d946b5f271f637ef,
+ type: 3}
+ generatedTextures:
+ - {fileID: -2789335455068261637, guid: d15fc45ed0000934d946b5f271f637ef, type: 3}
+ - {fileID: -1855041196637152199, guid: d15fc45ed0000934d946b5f271f637ef, type: 3}
+ - {fileID: 7922211451800446260, guid: d15fc45ed0000934d946b5f271f637ef, type: 3}
+ - {fileID: 7474978398744299577, guid: d15fc45ed0000934d946b5f271f637ef, type: 3}
+ - {fileID: -4424499752615739725, guid: d15fc45ed0000934d946b5f271f637ef, type: 3}
diff --git a/Assets/Materials/Substance/Metal/iron_rugged.sbsar b/Assets/Materials/Substance/Metal/iron_rugged.sbsar
new file mode 100644
index 000000000..d211f88ad
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/iron_rugged.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5f2bc787cbb3f6511050a4faddaa07077bf54814131752687ed3717914d77de5
+size 28930
diff --git a/Assets/Materials/Substance/Metal/iron_rugged.sbsar.meta b/Assets/Materials/Substance/Metal/iron_rugged.sbsar.meta
new file mode 100644
index 000000000..4d3540662
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/iron_rugged.sbsar.meta
@@ -0,0 +1,293 @@
+fileFormatVersion: 2
+guid: afbd691d0ea2a5a47b5a43b244593a56
+ScriptedImporter:
+ internalIDToNameTable: []
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Iron Rugged
+ prototypeName: Iron Rugged
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n
+ \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: -2323688274092838296, guid: afbd691d0ea2a5a47b5a43b244593a56,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: -3909611376798458227, guid: afbd691d0ea2a5a47b5a43b244593a56,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -1417795912608492100, guid: afbd691d0ea2a5a47b5a43b244593a56,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: -7795300588429949130, guid: afbd691d0ea2a5a47b5a43b244593a56,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: 3868076301887189615, guid: afbd691d0ea2a5a47b5a43b244593a56,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambientocclusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Iron Rugged - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Iron Rugged - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Iron Rugged - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Iron Rugged - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Iron Rugged - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Iron Rugged - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Iron Rugged - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Iron Rugged - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Iron Rugged - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 512
+ textureHeight: 512
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: -7894845242109240131, guid: afbd691d0ea2a5a47b5a43b244593a56,
+ type: 3}
+ generatedTextures:
+ - {fileID: -3909611376798458227, guid: afbd691d0ea2a5a47b5a43b244593a56, type: 3}
+ - {fileID: -2323688274092838296, guid: afbd691d0ea2a5a47b5a43b244593a56, type: 3}
+ - {fileID: -1417795912608492100, guid: afbd691d0ea2a5a47b5a43b244593a56, type: 3}
+ - {fileID: 3868076301887189615, guid: afbd691d0ea2a5a47b5a43b244593a56, type: 3}
+ - {fileID: -7795300588429949130, guid: afbd691d0ea2a5a47b5a43b244593a56, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_002.sbsar b/Assets/Materials/Substance/Metal/metal_002.sbsar
new file mode 100644
index 000000000..97dcc5ffe
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_002.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9282e9326add2015fd2748e98c38062e438b085036eae00825551986e30d002f
+size 11670
diff --git a/Assets/Materials/Substance/Metal/metal_002.sbsar.meta b/Assets/Materials/Substance/Metal/metal_002.sbsar.meta
new file mode 100644
index 000000000..725363c0a
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_002.sbsar.meta
@@ -0,0 +1,372 @@
+fileFormatVersion: 2
+guid: 2b42584452fe0cc4fa4e8a115230b156
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_002/metal_002
+ - first:
+ 4: 400000
+ second: metal_002/metal_002/Transform
+ - first:
+ 21: 2100000
+ second: mat.Metal 002
+ - first:
+ 23: 2300000
+ second: metal_002/metal_002/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Metal 002_baseColor
+ - first:
+ 28: 2800002
+ second: Metal 002_normal
+ - first:
+ 28: 2800004
+ second: Metal 002_metallic
+ - first:
+ 28: 2800006
+ second: Metal 002_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Metal 002_height
+ - first:
+ 33: 3300000
+ second: metal_002/metal_002/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_002/metal_002/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_002
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Metal 002
+ prototypeName: Metal 002
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n
+ \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: 1550000119726971649, guid: 2b42584452fe0cc4fa4e8a115230b156,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: -6057190860509678031, guid: 2b42584452fe0cc4fa4e8a115230b156,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -894214952450941493, guid: 2b42584452fe0cc4fa4e8a115230b156,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: -6882973941229436791, guid: 2b42584452fe0cc4fa4e8a115230b156,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: 6347190432477724635, guid: 2b42584452fe0cc4fa4e8a115230b156,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Metal 002_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 002_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 002_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 002_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 002_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 002_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 002_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 002_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 002_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 002 - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 002 - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 002 - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 002 - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 002 - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 002 - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 002 - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 002 - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 002 - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 256
+ textureHeight: 256
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: 3766318789785789000, guid: 2b42584452fe0cc4fa4e8a115230b156,
+ type: 3}
+ generatedTextures:
+ - {fileID: -6057190860509678031, guid: 2b42584452fe0cc4fa4e8a115230b156, type: 3}
+ - {fileID: 1550000119726971649, guid: 2b42584452fe0cc4fa4e8a115230b156, type: 3}
+ - {fileID: -894214952450941493, guid: 2b42584452fe0cc4fa4e8a115230b156, type: 3}
+ - {fileID: -6882973941229436791, guid: 2b42584452fe0cc4fa4e8a115230b156, type: 3}
+ - {fileID: 6347190432477724635, guid: 2b42584452fe0cc4fa4e8a115230b156, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_003.sbsar b/Assets/Materials/Substance/Metal/metal_003.sbsar
new file mode 100644
index 000000000..bbc118a2d
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_003.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4ef8ee0ce61d17b7c84433ea0f780f32609c81f580f2c7d3a9c78303b9051a47
+size 7739
diff --git a/Assets/Materials/Substance/Metal/metal_003.sbsar.meta b/Assets/Materials/Substance/Metal/metal_003.sbsar.meta
new file mode 100644
index 000000000..f3ab67932
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_003.sbsar.meta
@@ -0,0 +1,372 @@
+fileFormatVersion: 2
+guid: 885e680924fc12c439a842a2142d4b78
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_003/metal_003
+ - first:
+ 4: 400000
+ second: metal_003/metal_003/Transform
+ - first:
+ 21: 2100000
+ second: mat.Metal 003
+ - first:
+ 23: 2300000
+ second: metal_003/metal_003/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Metal 003_baseColor
+ - first:
+ 28: 2800002
+ second: Metal 003_normal
+ - first:
+ 28: 2800004
+ second: Metal 003_metallic
+ - first:
+ 28: 2800006
+ second: Metal 003_height
+ - first:
+ 28: 2800008
+ second: Metal 003_ambientOcclusion
+ - first:
+ 33: 3300000
+ second: metal_003/metal_003/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_003/metal_003/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_003
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Metal 003
+ prototypeName: Metal 003
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n
+ \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: -2508943184622041221, guid: 885e680924fc12c439a842a2142d4b78,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 8, y: 8}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: -1236254257114565538, guid: 885e680924fc12c439a842a2142d4b78,
+ type: 3}
+ scale: {x: 8, y: 8}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: 4019402794555593307, guid: 885e680924fc12c439a842a2142d4b78,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: -1475328947160444094, guid: 885e680924fc12c439a842a2142d4b78,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: 7523010977671448217, guid: 885e680924fc12c439a842a2142d4b78,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Metal 003_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 003_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 003_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 003_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 003_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 003_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 003_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 003_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 003_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 003 - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 003 - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 003 - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 003 - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 003 - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 003 - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 003 - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 003 - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 003 - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 1024
+ textureHeight: 1024
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: -741235592913766832, guid: 885e680924fc12c439a842a2142d4b78,
+ type: 3}
+ generatedTextures:
+ - {fileID: -1236254257114565538, guid: 885e680924fc12c439a842a2142d4b78, type: 3}
+ - {fileID: -2508943184622041221, guid: 885e680924fc12c439a842a2142d4b78, type: 3}
+ - {fileID: 4019402794555593307, guid: 885e680924fc12c439a842a2142d4b78, type: 3}
+ - {fileID: 7523010977671448217, guid: 885e680924fc12c439a842a2142d4b78, type: 3}
+ - {fileID: -1475328947160444094, guid: 885e680924fc12c439a842a2142d4b78, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_006.sbsar b/Assets/Materials/Substance/Metal/metal_006.sbsar
new file mode 100644
index 000000000..ac614998f
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_006.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c7cdd662d4c7ee3124366ac316fe6aa5dd247c279bba053a9084916e0510d8df
+size 12109
diff --git a/Assets/Materials/Substance/Metal/metal_006.sbsar.meta b/Assets/Materials/Substance/Metal/metal_006.sbsar.meta
new file mode 100644
index 000000000..f304dd2c0
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_006.sbsar.meta
@@ -0,0 +1,369 @@
+fileFormatVersion: 2
+guid: 53adf8e53222e6f4791d7bf2110fb70c
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_006/metal_006
+ - first:
+ 4: 400000
+ second: metal_006/metal_006/Transform
+ - first:
+ 21: 2100000
+ second: mat.Metal 006
+ - first:
+ 23: 2300000
+ second: metal_006/metal_006/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Metal 006_baseColor
+ - first:
+ 28: 2800002
+ second: Metal 006_normal
+ - first:
+ 28: 2800004
+ second: Metal 006_metallic
+ - first:
+ 28: 2800006
+ second: Metal 006_height
+ - first:
+ 28: 2800008
+ second: Metal 006_ambientOcclusion
+ - first:
+ 33: 3300000
+ second: metal_006/metal_006/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_006/metal_006/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_006
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Metal 006
+ prototypeName: Metal 006
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: -9145106948908842110, guid: 53adf8e53222e6f4791d7bf2110fb70c,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: 8714526317094329886, guid: 53adf8e53222e6f4791d7bf2110fb70c,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: 8283496261199770474, guid: 53adf8e53222e6f4791d7bf2110fb70c,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: -247870979206812949, guid: 53adf8e53222e6f4791d7bf2110fb70c,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: 4895182546727821380, guid: 53adf8e53222e6f4791d7bf2110fb70c,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Metal 006_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 006_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 006_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 006_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 006_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 006_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 006_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 006_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 006_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 006 - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 006 - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 006 - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 006 - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 006 - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 006 - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 006 - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 006 - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal 006 - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 256
+ textureHeight: 256
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: 3954565982357225544, guid: 53adf8e53222e6f4791d7bf2110fb70c,
+ type: 3}
+ generatedTextures:
+ - {fileID: 8714526317094329886, guid: 53adf8e53222e6f4791d7bf2110fb70c, type: 3}
+ - {fileID: -9145106948908842110, guid: 53adf8e53222e6f4791d7bf2110fb70c, type: 3}
+ - {fileID: 8283496261199770474, guid: 53adf8e53222e6f4791d7bf2110fb70c, type: 3}
+ - {fileID: 4895182546727821380, guid: 53adf8e53222e6f4791d7bf2110fb70c, type: 3}
+ - {fileID: -247870979206812949, guid: 53adf8e53222e6f4791d7bf2110fb70c, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_aluminium.sbsar b/Assets/Materials/Substance/Metal/metal_aluminium.sbsar
new file mode 100644
index 000000000..088b73bee
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_aluminium.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b19246651deb85c3c0a8d424507e0711ccce8c9eae241da396a36cd210f38f20
+size 10491
diff --git a/Assets/Materials/Substance/Metal/metal_aluminium.sbsar.meta b/Assets/Materials/Substance/Metal/metal_aluminium.sbsar.meta
new file mode 100644
index 000000000..95addd8d7
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_aluminium.sbsar.meta
@@ -0,0 +1,373 @@
+fileFormatVersion: 2
+guid: 6b2eb94965ca27542b8627d3521f5b5b
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_aluminium/metal_aluminium
+ - first:
+ 4: 400000
+ second: metal_aluminium/metal_aluminium/Transform
+ - first:
+ 21: 2100000
+ second: mat.Aluminium
+ - first:
+ 23: 2300000
+ second: metal_aluminium/metal_aluminium/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Aluminium_baseColor
+ - first:
+ 28: 2800002
+ second: Aluminium_normal
+ - first:
+ 28: 2800004
+ second: Aluminium_metallic
+ - first:
+ 28: 2800006
+ second: Aluminium_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Aluminium_height
+ - first:
+ 33: 3300000
+ second: metal_aluminium/metal_aluminium/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_aluminium/metal_aluminium/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_aluminium
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Aluminium
+ prototypeName: Aluminium
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n
+ \n \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: -7227111979962756822, guid: 6b2eb94965ca27542b8627d3521f5b5b,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: 5122202571912407749, guid: 6b2eb94965ca27542b8627d3521f5b5b,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -5067940305606501900, guid: 6b2eb94965ca27542b8627d3521f5b5b,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: 9049458111962441826, guid: 6b2eb94965ca27542b8627d3521f5b5b,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: -7751791800289965735, guid: 6b2eb94965ca27542b8627d3521f5b5b,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Aluminium_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 512
+ textureHeight: 512
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: 2717629391965333470, guid: 6b2eb94965ca27542b8627d3521f5b5b,
+ type: 3}
+ generatedTextures:
+ - {fileID: 5122202571912407749, guid: 6b2eb94965ca27542b8627d3521f5b5b, type: 3}
+ - {fileID: -7227111979962756822, guid: 6b2eb94965ca27542b8627d3521f5b5b, type: 3}
+ - {fileID: -5067940305606501900, guid: 6b2eb94965ca27542b8627d3521f5b5b, type: 3}
+ - {fileID: 9049458111962441826, guid: 6b2eb94965ca27542b8627d3521f5b5b, type: 3}
+ - {fileID: -7751791800289965735, guid: 6b2eb94965ca27542b8627d3521f5b5b, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_aluminium_brushed.sbsar b/Assets/Materials/Substance/Metal/metal_aluminium_brushed.sbsar
new file mode 100644
index 000000000..7f2ec6e98
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_aluminium_brushed.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:41bfd12f87e8255f00383022aa8a1d0c83273a8a23e21233db9f8f08eb89738f
+size 12223
diff --git a/Assets/Materials/Substance/Metal/metal_aluminium_brushed.sbsar.meta b/Assets/Materials/Substance/Metal/metal_aluminium_brushed.sbsar.meta
new file mode 100644
index 000000000..cafdf3d25
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_aluminium_brushed.sbsar.meta
@@ -0,0 +1,373 @@
+fileFormatVersion: 2
+guid: 06d6a565d43fba5409712ce9a10bfbef
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_aluminium_brushed/metal_aluminium_brushed
+ - first:
+ 4: 400000
+ second: metal_aluminium_brushed/metal_aluminium_brushed/Transform
+ - first:
+ 21: 2100000
+ second: mat.Aluminium brushed
+ - first:
+ 23: 2300000
+ second: metal_aluminium_brushed/metal_aluminium_brushed/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Aluminium brushed_baseColor
+ - first:
+ 28: 2800002
+ second: Aluminium brushed_normal
+ - first:
+ 28: 2800004
+ second: Aluminium brushed_metallic
+ - first:
+ 28: 2800006
+ second: Aluminium brushed_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Aluminium brushed_height
+ - first:
+ 33: 3300000
+ second: metal_aluminium_brushed/metal_aluminium_brushed/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_aluminium_brushed/metal_aluminium_brushed/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_aluminium_brushed
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Aluminium brushed
+ prototypeName: Aluminium brushed
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n
+ \n \n \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: 4730978449518085612, guid: 06d6a565d43fba5409712ce9a10bfbef,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: 7556082237344091230, guid: 06d6a565d43fba5409712ce9a10bfbef,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: 6373266012617290493, guid: 06d6a565d43fba5409712ce9a10bfbef,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: 342959783478273704, guid: 06d6a565d43fba5409712ce9a10bfbef,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: -9132138291289375396, guid: 06d6a565d43fba5409712ce9a10bfbef,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Aluminium brushed_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium brushed_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium brushed_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium brushed_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium brushed_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium brushed_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium brushed_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium brushed_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium brushed_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium brushed - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium brushed - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium brushed - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium brushed - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium brushed - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium brushed - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium brushed - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium brushed - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Aluminium brushed - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 512
+ textureHeight: 512
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: -5899741495057040748, guid: 06d6a565d43fba5409712ce9a10bfbef,
+ type: 3}
+ generatedTextures:
+ - {fileID: 7556082237344091230, guid: 06d6a565d43fba5409712ce9a10bfbef, type: 3}
+ - {fileID: 4730978449518085612, guid: 06d6a565d43fba5409712ce9a10bfbef, type: 3}
+ - {fileID: 6373266012617290493, guid: 06d6a565d43fba5409712ce9a10bfbef, type: 3}
+ - {fileID: 342959783478273704, guid: 06d6a565d43fba5409712ce9a10bfbef, type: 3}
+ - {fileID: -9132138291289375396, guid: 06d6a565d43fba5409712ce9a10bfbef, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_brass.sbsar b/Assets/Materials/Substance/Metal/metal_brass.sbsar
new file mode 100644
index 000000000..8db7e53b4
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_brass.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:26e440c8cc91202789c408e82dfa3caca98938014aaf63baade897fade94f212
+size 12658
diff --git a/Assets/Materials/Substance/Metal/metal_brass.sbsar.meta b/Assets/Materials/Substance/Metal/metal_brass.sbsar.meta
new file mode 100644
index 000000000..dad220291
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_brass.sbsar.meta
@@ -0,0 +1,375 @@
+fileFormatVersion: 2
+guid: 9fc901afb8a434e46b9405eaec2df5a4
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_brass/metal_brass
+ - first:
+ 4: 400000
+ second: metal_brass/metal_brass/Transform
+ - first:
+ 21: 2100000
+ second: mat.Brass
+ - first:
+ 23: 2300000
+ second: metal_brass/metal_brass/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Brass_baseColor
+ - first:
+ 28: 2800002
+ second: Brass_normal
+ - first:
+ 28: 2800004
+ second: Brass_metallic
+ - first:
+ 28: 2800006
+ second: Brass_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Brass_height
+ - first:
+ 33: 3300000
+ second: metal_brass/metal_brass/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_brass/metal_brass/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_brass
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Brass
+ prototypeName: Brass
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n
+ \n \n \n \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: -3419035557588562233, guid: 9fc901afb8a434e46b9405eaec2df5a4,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: -1863473678134789185, guid: 9fc901afb8a434e46b9405eaec2df5a4,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: 6214616473909614744, guid: 9fc901afb8a434e46b9405eaec2df5a4,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: -3436886866959827803, guid: 9fc901afb8a434e46b9405eaec2df5a4,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: 7009887839391554354, guid: 9fc901afb8a434e46b9405eaec2df5a4,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Brass_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Brass_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Brass_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Brass_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Brass_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Brass_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Brass_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Brass_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Brass_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Brass - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Brass - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Brass - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Brass - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Brass - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Brass - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Brass - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Brass - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Brass - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 1024
+ textureHeight: 1024
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: -4907982557009795279, guid: 9fc901afb8a434e46b9405eaec2df5a4,
+ type: 3}
+ generatedTextures:
+ - {fileID: -1863473678134789185, guid: 9fc901afb8a434e46b9405eaec2df5a4, type: 3}
+ - {fileID: -3419035557588562233, guid: 9fc901afb8a434e46b9405eaec2df5a4, type: 3}
+ - {fileID: 6214616473909614744, guid: 9fc901afb8a434e46b9405eaec2df5a4, type: 3}
+ - {fileID: -3436886866959827803, guid: 9fc901afb8a434e46b9405eaec2df5a4, type: 3}
+ - {fileID: 7009887839391554354, guid: 9fc901afb8a434e46b9405eaec2df5a4, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_car_paint 1.sbsar b/Assets/Materials/Substance/Metal/metal_car_paint 1.sbsar
new file mode 100644
index 000000000..963310406
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_car_paint 1.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dbee14b278a03ed59e1df8ecd6ba2b07ab7c2b2089e5e2bc3fad5673694a9f03
+size 14971
diff --git a/Assets/Materials/Substance/Metal/metal_car_paint 1.sbsar.meta b/Assets/Materials/Substance/Metal/metal_car_paint 1.sbsar.meta
new file mode 100644
index 000000000..d6786ba5e
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_car_paint 1.sbsar.meta
@@ -0,0 +1,379 @@
+fileFormatVersion: 2
+guid: 1c858fec5b74c7c46b1712494192b6b5
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_car_paint/metal_car_paint
+ - first:
+ 4: 400000
+ second: metal_car_paint/metal_car_paint/Transform
+ - first:
+ 21: 2100000
+ second: mat.Car paint
+ - first:
+ 23: 2300000
+ second: metal_car_paint/metal_car_paint/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Car paint_baseColor
+ - first:
+ 28: 2800002
+ second: Car paint_normal
+ - first:
+ 28: 2800004
+ second: Car paint_metallic
+ - first:
+ 28: 2800006
+ second: Car paint_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Car paint_height
+ - first:
+ 33: 3300000
+ second: metal_car_paint/metal_car_paint/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_car_paint/metal_car_paint/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_car_paint
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Car paint
+ prototypeName: Car paint
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n
+ \n \n \n \n \n \n \n \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: 3068890721646206586, guid: 1c858fec5b74c7c46b1712494192b6b5,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 16, y: 16}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: 5917659159057834157, guid: 1c858fec5b74c7c46b1712494192b6b5,
+ type: 3}
+ scale: {x: 16, y: 16}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -3552914696322007609, guid: 1c858fec5b74c7c46b1712494192b6b5,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: -1242281561028671816, guid: 1c858fec5b74c7c46b1712494192b6b5,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: -1652887728991447519, guid: 1c858fec5b74c7c46b1712494192b6b5,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.005
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Car paint_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 1024
+ textureHeight: 1024
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: 3720744386649352057, guid: 1c858fec5b74c7c46b1712494192b6b5,
+ type: 3}
+ generatedTextures:
+ - {fileID: 5917659159057834157, guid: 1c858fec5b74c7c46b1712494192b6b5, type: 3}
+ - {fileID: 3068890721646206586, guid: 1c858fec5b74c7c46b1712494192b6b5, type: 3}
+ - {fileID: -3552914696322007609, guid: 1c858fec5b74c7c46b1712494192b6b5, type: 3}
+ - {fileID: -1242281561028671816, guid: 1c858fec5b74c7c46b1712494192b6b5, type: 3}
+ - {fileID: -1652887728991447519, guid: 1c858fec5b74c7c46b1712494192b6b5, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_car_paint Magenta.sbsar b/Assets/Materials/Substance/Metal/metal_car_paint Magenta.sbsar
new file mode 100644
index 000000000..963310406
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_car_paint Magenta.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dbee14b278a03ed59e1df8ecd6ba2b07ab7c2b2089e5e2bc3fad5673694a9f03
+size 14971
diff --git a/Assets/Materials/Substance/Metal/metal_car_paint Magenta.sbsar.meta b/Assets/Materials/Substance/Metal/metal_car_paint Magenta.sbsar.meta
new file mode 100644
index 000000000..c839a27b8
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_car_paint Magenta.sbsar.meta
@@ -0,0 +1,381 @@
+fileFormatVersion: 2
+guid: a1d39ea984432bf44b4a0686afe2bf1a
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_car_paint/metal_car_paint
+ - first:
+ 4: 400000
+ second: metal_car_paint/metal_car_paint/Transform
+ - first:
+ 21: 2100000
+ second: mat.Car paint
+ - first:
+ 23: 2300000
+ second: metal_car_paint/metal_car_paint/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Car paint_baseColor
+ - first:
+ 28: 2800002
+ second: Car paint_normal
+ - first:
+ 28: 2800004
+ second: Car paint_metallic
+ - first:
+ 28: 2800006
+ second: Car paint_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Car paint_height
+ - first:
+ 33: 3300000
+ second: metal_car_paint/metal_car_paint/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_car_paint/metal_car_paint/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_car_paint
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Car paint
+ prototypeName: Car paint
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n
+ \n \n \n \n \n \n \n \n \n \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: 3068890721646206586, guid: a1d39ea984432bf44b4a0686afe2bf1a,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: 5917659159057834157, guid: a1d39ea984432bf44b4a0686afe2bf1a,
+ type: 3}
+ scale: {x: 2, y: 2}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -3552914696322007609, guid: a1d39ea984432bf44b4a0686afe2bf1a,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: -1242281561028671816, guid: a1d39ea984432bf44b4a0686afe2bf1a,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: -1652887728991447519, guid: a1d39ea984432bf44b4a0686afe2bf1a,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 1
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 1
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Car paint_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 2048
+ textureHeight: 2048
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: 3720744386649352057, guid: a1d39ea984432bf44b4a0686afe2bf1a,
+ type: 3}
+ generatedTextures:
+ - {fileID: 5917659159057834157, guid: a1d39ea984432bf44b4a0686afe2bf1a, type: 3}
+ - {fileID: 3068890721646206586, guid: a1d39ea984432bf44b4a0686afe2bf1a, type: 3}
+ - {fileID: -3552914696322007609, guid: a1d39ea984432bf44b4a0686afe2bf1a, type: 3}
+ - {fileID: -1242281561028671816, guid: a1d39ea984432bf44b4a0686afe2bf1a, type: 3}
+ - {fileID: -1652887728991447519, guid: a1d39ea984432bf44b4a0686afe2bf1a, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_car_paint red.sbsar b/Assets/Materials/Substance/Metal/metal_car_paint red.sbsar
new file mode 100644
index 000000000..963310406
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_car_paint red.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dbee14b278a03ed59e1df8ecd6ba2b07ab7c2b2089e5e2bc3fad5673694a9f03
+size 14971
diff --git a/Assets/Materials/Substance/Metal/metal_car_paint red.sbsar.meta b/Assets/Materials/Substance/Metal/metal_car_paint red.sbsar.meta
new file mode 100644
index 000000000..ded098ca6
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_car_paint red.sbsar.meta
@@ -0,0 +1,381 @@
+fileFormatVersion: 2
+guid: 504c7bfe0d50ff64a88b8eac2ceb46f8
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_car_paint/metal_car_paint
+ - first:
+ 4: 400000
+ second: metal_car_paint/metal_car_paint/Transform
+ - first:
+ 21: 2100000
+ second: mat.Car paint
+ - first:
+ 23: 2300000
+ second: metal_car_paint/metal_car_paint/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Car paint_baseColor
+ - first:
+ 28: 2800002
+ second: Car paint_normal
+ - first:
+ 28: 2800004
+ second: Car paint_metallic
+ - first:
+ 28: 2800006
+ second: Car paint_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Car paint_height
+ - first:
+ 33: 3300000
+ second: metal_car_paint/metal_car_paint/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_car_paint/metal_car_paint/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_car_paint
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Car paint
+ prototypeName: Car paint
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n
+ \n \n \n \n \n \n \n \n \n \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: 3068890721646206586, guid: 504c7bfe0d50ff64a88b8eac2ceb46f8,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: 5917659159057834157, guid: 504c7bfe0d50ff64a88b8eac2ceb46f8,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -3552914696322007609, guid: 504c7bfe0d50ff64a88b8eac2ceb46f8,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: -1242281561028671816, guid: 504c7bfe0d50ff64a88b8eac2ceb46f8,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: -1652887728991447519, guid: 504c7bfe0d50ff64a88b8eac2ceb46f8,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.005
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Car paint_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 2048
+ textureHeight: 2048
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: 3720744386649352057, guid: 504c7bfe0d50ff64a88b8eac2ceb46f8,
+ type: 3}
+ generatedTextures:
+ - {fileID: 5917659159057834157, guid: 504c7bfe0d50ff64a88b8eac2ceb46f8, type: 3}
+ - {fileID: 3068890721646206586, guid: 504c7bfe0d50ff64a88b8eac2ceb46f8, type: 3}
+ - {fileID: -3552914696322007609, guid: 504c7bfe0d50ff64a88b8eac2ceb46f8, type: 3}
+ - {fileID: -1242281561028671816, guid: 504c7bfe0d50ff64a88b8eac2ceb46f8, type: 3}
+ - {fileID: -1652887728991447519, guid: 504c7bfe0d50ff64a88b8eac2ceb46f8, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_car_paint white.sbsar b/Assets/Materials/Substance/Metal/metal_car_paint white.sbsar
new file mode 100644
index 000000000..963310406
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_car_paint white.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dbee14b278a03ed59e1df8ecd6ba2b07ab7c2b2089e5e2bc3fad5673694a9f03
+size 14971
diff --git a/Assets/Materials/Substance/Metal/metal_car_paint white.sbsar.meta b/Assets/Materials/Substance/Metal/metal_car_paint white.sbsar.meta
new file mode 100644
index 000000000..98f20f5ea
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_car_paint white.sbsar.meta
@@ -0,0 +1,382 @@
+fileFormatVersion: 2
+guid: b2bec4b400153d745b2915f1c43e5c96
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_car_paint/metal_car_paint
+ - first:
+ 4: 400000
+ second: metal_car_paint/metal_car_paint/Transform
+ - first:
+ 21: 2100000
+ second: mat.Car paint
+ - first:
+ 23: 2300000
+ second: metal_car_paint/metal_car_paint/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Car paint_baseColor
+ - first:
+ 28: 2800002
+ second: Car paint_normal
+ - first:
+ 28: 2800004
+ second: Car paint_metallic
+ - first:
+ 28: 2800006
+ second: Car paint_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Car paint_height
+ - first:
+ 33: 3300000
+ second: metal_car_paint/metal_car_paint/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_car_paint/metal_car_paint/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_car_paint
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Car paint
+ prototypeName: Car paint
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n
+ \n \n \n \n \n \n \n \n \n
+ \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: 3068890721646206586, guid: b2bec4b400153d745b2915f1c43e5c96,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 0.5, y: 0.5}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: 5917659159057834157, guid: b2bec4b400153d745b2915f1c43e5c96,
+ type: 3}
+ scale: {x: 0.5, y: 0.5}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -3552914696322007609, guid: b2bec4b400153d745b2915f1c43e5c96,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: -1242281561028671816, guid: b2bec4b400153d745b2915f1c43e5c96,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: -1652887728991447519, guid: b2bec4b400153d745b2915f1c43e5c96,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 1
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 1
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Car paint_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Car paint - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 2048
+ textureHeight: 2048
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: 3720744386649352057, guid: b2bec4b400153d745b2915f1c43e5c96,
+ type: 3}
+ generatedTextures:
+ - {fileID: 5917659159057834157, guid: b2bec4b400153d745b2915f1c43e5c96, type: 3}
+ - {fileID: 3068890721646206586, guid: b2bec4b400153d745b2915f1c43e5c96, type: 3}
+ - {fileID: -3552914696322007609, guid: b2bec4b400153d745b2915f1c43e5c96, type: 3}
+ - {fileID: -1242281561028671816, guid: b2bec4b400153d745b2915f1c43e5c96, type: 3}
+ - {fileID: -1652887728991447519, guid: b2bec4b400153d745b2915f1c43e5c96, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_copper.sbsar b/Assets/Materials/Substance/Metal/metal_copper.sbsar
new file mode 100644
index 000000000..b9eaa9f10
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_copper.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7e0b38479a336f09f0f273488c666a1eb025ddd9a65366da00c80179ca0a64ee
+size 7413
diff --git a/Assets/Materials/Substance/Metal/metal_copper.sbsar.meta b/Assets/Materials/Substance/Metal/metal_copper.sbsar.meta
new file mode 100644
index 000000000..d1afb9abd
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_copper.sbsar.meta
@@ -0,0 +1,369 @@
+fileFormatVersion: 2
+guid: 8249e9ffcbd97c84d8ce73343e156c82
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_copper/metal_copper
+ - first:
+ 4: 400000
+ second: metal_copper/metal_copper/Transform
+ - first:
+ 21: 2100000
+ second: mat.Copper
+ - first:
+ 23: 2300000
+ second: metal_copper/metal_copper/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Copper_baseColor
+ - first:
+ 28: 2800002
+ second: Copper_normal
+ - first:
+ 28: 2800004
+ second: Copper_metallic
+ - first:
+ 28: 2800006
+ second: Copper_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Copper_height
+ - first:
+ 33: 3300000
+ second: metal_copper/metal_copper/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_copper/metal_copper/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_copper
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Copper
+ prototypeName: Copper
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: -3792452219542522299, guid: 8249e9ffcbd97c84d8ce73343e156c82,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: -595311359069952391, guid: 8249e9ffcbd97c84d8ce73343e156c82,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -1397886531756242709, guid: 8249e9ffcbd97c84d8ce73343e156c82,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: 2236529815293478155, guid: 8249e9ffcbd97c84d8ce73343e156c82,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: -1739956823984805281, guid: 8249e9ffcbd97c84d8ce73343e156c82,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Copper_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Copper_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Copper_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Copper_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Copper_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Copper_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Copper_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Copper_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Copper_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Copper - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Copper - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Copper - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Copper - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Copper - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Copper - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Copper - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Copper - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Copper - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 256
+ textureHeight: 256
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: 9219180724257492359, guid: 8249e9ffcbd97c84d8ce73343e156c82,
+ type: 3}
+ generatedTextures:
+ - {fileID: -595311359069952391, guid: 8249e9ffcbd97c84d8ce73343e156c82, type: 3}
+ - {fileID: -3792452219542522299, guid: 8249e9ffcbd97c84d8ce73343e156c82, type: 3}
+ - {fileID: -1397886531756242709, guid: 8249e9ffcbd97c84d8ce73343e156c82, type: 3}
+ - {fileID: 2236529815293478155, guid: 8249e9ffcbd97c84d8ce73343e156c82, type: 3}
+ - {fileID: -1739956823984805281, guid: 8249e9ffcbd97c84d8ce73343e156c82, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_corrugated_002.sbsar b/Assets/Materials/Substance/Metal/metal_corrugated_002.sbsar
new file mode 100644
index 000000000..24237719c
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_corrugated_002.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5b798bdf0e774a7d826b7080b18c91ac8000cf6ac617dc395d8cf105aba8d7da
+size 12826
diff --git a/Assets/Materials/Substance/Metal/metal_corrugated_002.sbsar.meta b/Assets/Materials/Substance/Metal/metal_corrugated_002.sbsar.meta
new file mode 100644
index 000000000..3de9c9e1e
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_corrugated_002.sbsar.meta
@@ -0,0 +1,369 @@
+fileFormatVersion: 2
+guid: 9d0963470d3545a4e932ed4ea95b9d62
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_corrugated_002/metal_corrugated_002
+ - first:
+ 4: 400000
+ second: metal_corrugated_002/metal_corrugated_002/Transform
+ - first:
+ 21: 2100000
+ second: mat.Metal Corrugated 002
+ - first:
+ 23: 2300000
+ second: metal_corrugated_002/metal_corrugated_002/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Metal Corrugated 002_baseColor
+ - first:
+ 28: 2800002
+ second: Metal Corrugated 002_normal
+ - first:
+ 28: 2800004
+ second: Metal Corrugated 002_metallic
+ - first:
+ 28: 2800006
+ second: Metal Corrugated 002_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Metal Corrugated 002_height
+ - first:
+ 33: 3300000
+ second: metal_corrugated_002/metal_corrugated_002/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_corrugated_002/metal_corrugated_002/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_corrugated_002
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Metal Corrugated 002
+ prototypeName: Metal Corrugated 002
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: -3654691528969531916, guid: 9d0963470d3545a4e932ed4ea95b9d62,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: 4818317370781631303, guid: 9d0963470d3545a4e932ed4ea95b9d62,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: 5859956115695178477, guid: 9d0963470d3545a4e932ed4ea95b9d62,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: -8111981235355854162, guid: 9d0963470d3545a4e932ed4ea95b9d62,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: -5667621616349238808, guid: 9d0963470d3545a4e932ed4ea95b9d62,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Metal Corrugated 002_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Corrugated 002_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Corrugated 002_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Corrugated 002_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Corrugated 002_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Corrugated 002_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Corrugated 002_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Corrugated 002_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Corrugated 002_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Corrugated 002 - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Corrugated 002 - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Corrugated 002 - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Corrugated 002 - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Corrugated 002 - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Corrugated 002 - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Corrugated 002 - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Corrugated 002 - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Corrugated 002 - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 256
+ textureHeight: 256
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: -1355354389579744761, guid: 9d0963470d3545a4e932ed4ea95b9d62,
+ type: 3}
+ generatedTextures:
+ - {fileID: 4818317370781631303, guid: 9d0963470d3545a4e932ed4ea95b9d62, type: 3}
+ - {fileID: -3654691528969531916, guid: 9d0963470d3545a4e932ed4ea95b9d62, type: 3}
+ - {fileID: 5859956115695178477, guid: 9d0963470d3545a4e932ed4ea95b9d62, type: 3}
+ - {fileID: -8111981235355854162, guid: 9d0963470d3545a4e932ed4ea95b9d62, type: 3}
+ - {fileID: -5667621616349238808, guid: 9d0963470d3545a4e932ed4ea95b9d62, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_floor_002.sbsar b/Assets/Materials/Substance/Metal/metal_floor_002.sbsar
new file mode 100644
index 000000000..af4adc50c
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_floor_002.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5815e5257550f8315dd80831c4cab398a3ae7b234b25e716ecca18c9facbd9be
+size 11140
diff --git a/Assets/Materials/Substance/Metal/metal_floor_002.sbsar.meta b/Assets/Materials/Substance/Metal/metal_floor_002.sbsar.meta
new file mode 100644
index 000000000..c100570af
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_floor_002.sbsar.meta
@@ -0,0 +1,369 @@
+fileFormatVersion: 2
+guid: ddc6970cc883b9845bdadc91983130c2
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_floor_002/metal_floor_002
+ - first:
+ 4: 400000
+ second: metal_floor_002/metal_floor_002/Transform
+ - first:
+ 21: 2100000
+ second: mat.Metal Floor 002
+ - first:
+ 23: 2300000
+ second: metal_floor_002/metal_floor_002/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Metal Floor 002_baseColor
+ - first:
+ 28: 2800002
+ second: Metal Floor 002_normal
+ - first:
+ 28: 2800004
+ second: Metal Floor 002_metallic
+ - first:
+ 28: 2800006
+ second: Metal Floor 002_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Metal Floor 002_height
+ - first:
+ 33: 3300000
+ second: metal_floor_002/metal_floor_002/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_floor_002/metal_floor_002/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_floor_002
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Metal Floor 002
+ prototypeName: Metal Floor 002
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: 351554284034007472, guid: ddc6970cc883b9845bdadc91983130c2,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: -7508666898770042810, guid: ddc6970cc883b9845bdadc91983130c2,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -4403901252400104909, guid: ddc6970cc883b9845bdadc91983130c2,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: -4356325417559842052, guid: ddc6970cc883b9845bdadc91983130c2,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: -3247329771169464856, guid: ddc6970cc883b9845bdadc91983130c2,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Metal Floor 002_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 002_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 002_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 002_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 002_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 002_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 002_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 002_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 002_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 002 - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 002 - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 002 - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 002 - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 002 - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 002 - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 002 - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 002 - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 002 - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 256
+ textureHeight: 256
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: 3616699503892477274, guid: ddc6970cc883b9845bdadc91983130c2,
+ type: 3}
+ generatedTextures:
+ - {fileID: -7508666898770042810, guid: ddc6970cc883b9845bdadc91983130c2, type: 3}
+ - {fileID: 351554284034007472, guid: ddc6970cc883b9845bdadc91983130c2, type: 3}
+ - {fileID: -4403901252400104909, guid: ddc6970cc883b9845bdadc91983130c2, type: 3}
+ - {fileID: -4356325417559842052, guid: ddc6970cc883b9845bdadc91983130c2, type: 3}
+ - {fileID: -3247329771169464856, guid: ddc6970cc883b9845bdadc91983130c2, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_floor_004.sbsar b/Assets/Materials/Substance/Metal/metal_floor_004.sbsar
new file mode 100644
index 000000000..f7136c15b
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_floor_004.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3d30688944fced2d854f8375ebecd8ad7a6a8021cee07e89710b44ad8272addd
+size 8634
diff --git a/Assets/Materials/Substance/Metal/metal_floor_004.sbsar.meta b/Assets/Materials/Substance/Metal/metal_floor_004.sbsar.meta
new file mode 100644
index 000000000..031cbe6c4
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_floor_004.sbsar.meta
@@ -0,0 +1,369 @@
+fileFormatVersion: 2
+guid: 50192727b92e0af4cbe5c773bec3537f
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_floor_004/metal_floor_004
+ - first:
+ 4: 400000
+ second: metal_floor_004/metal_floor_004/Transform
+ - first:
+ 21: 2100000
+ second: mat.Metal Floor 004
+ - first:
+ 23: 2300000
+ second: metal_floor_004/metal_floor_004/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Metal Floor 004_baseColor
+ - first:
+ 28: 2800002
+ second: Metal Floor 004_normal
+ - first:
+ 28: 2800004
+ second: Metal Floor 004_metallic
+ - first:
+ 28: 2800006
+ second: Metal Floor 004_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Metal Floor 004_height
+ - first:
+ 33: 3300000
+ second: metal_floor_004/metal_floor_004/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_floor_004/metal_floor_004/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_floor_004
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Metal Floor 004
+ prototypeName: Metal Floor 004
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: 5886398526092406922, guid: 50192727b92e0af4cbe5c773bec3537f,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: 1550179426837470591, guid: 50192727b92e0af4cbe5c773bec3537f,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: 4385304290797446058, guid: 50192727b92e0af4cbe5c773bec3537f,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: -3130265262045919237, guid: 50192727b92e0af4cbe5c773bec3537f,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: 4866469902769357514, guid: 50192727b92e0af4cbe5c773bec3537f,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Metal Floor 004_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 004_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 004_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 004_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 004_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 004_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 004_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 004_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 004_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 004 - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 004 - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 004 - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 004 - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 004 - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 004 - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 004 - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 004 - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 004 - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 256
+ textureHeight: 256
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: -1891697860355797410, guid: 50192727b92e0af4cbe5c773bec3537f,
+ type: 3}
+ generatedTextures:
+ - {fileID: 1550179426837470591, guid: 50192727b92e0af4cbe5c773bec3537f, type: 3}
+ - {fileID: 5886398526092406922, guid: 50192727b92e0af4cbe5c773bec3537f, type: 3}
+ - {fileID: 4385304290797446058, guid: 50192727b92e0af4cbe5c773bec3537f, type: 3}
+ - {fileID: -3130265262045919237, guid: 50192727b92e0af4cbe5c773bec3537f, type: 3}
+ - {fileID: 4866469902769357514, guid: 50192727b92e0af4cbe5c773bec3537f, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_floor_006.sbsar b/Assets/Materials/Substance/Metal/metal_floor_006.sbsar
new file mode 100644
index 000000000..81ce60800
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_floor_006.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9604a8c7814d09f90d8bc64061cdc39c733d9f96de43143717f9a951b1f08a0e
+size 10884
diff --git a/Assets/Materials/Substance/Metal/metal_floor_006.sbsar.meta b/Assets/Materials/Substance/Metal/metal_floor_006.sbsar.meta
new file mode 100644
index 000000000..91f291c9d
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_floor_006.sbsar.meta
@@ -0,0 +1,369 @@
+fileFormatVersion: 2
+guid: 06833951ebae4cc45ad88d58cb5571de
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_floor_006/metal_floor_006
+ - first:
+ 4: 400000
+ second: metal_floor_006/metal_floor_006/Transform
+ - first:
+ 21: 2100000
+ second: mat.Metal Floor 006
+ - first:
+ 23: 2300000
+ second: metal_floor_006/metal_floor_006/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Metal Floor 006_baseColor
+ - first:
+ 28: 2800002
+ second: Metal Floor 006_normal
+ - first:
+ 28: 2800004
+ second: Metal Floor 006_metallic
+ - first:
+ 28: 2800006
+ second: Metal Floor 006_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Metal Floor 006_height
+ - first:
+ 33: 3300000
+ second: metal_floor_006/metal_floor_006/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_floor_006/metal_floor_006/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_floor_006
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Metal Floor 006
+ prototypeName: Metal Floor 006
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: -2252411089510067877, guid: 06833951ebae4cc45ad88d58cb5571de,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: -446378320346000722, guid: 06833951ebae4cc45ad88d58cb5571de,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: 877764506763962143, guid: 06833951ebae4cc45ad88d58cb5571de,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: -4232129871321120126, guid: 06833951ebae4cc45ad88d58cb5571de,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: 3318615130639472310, guid: 06833951ebae4cc45ad88d58cb5571de,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Metal Floor 006_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 006_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 006_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 006_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 006_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 006_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 006_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 006_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 006_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 006 - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 006 - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 006 - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 006 - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 006 - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 006 - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 006 - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 006 - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Floor 006 - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 256
+ textureHeight: 256
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: -6975397259061671394, guid: 06833951ebae4cc45ad88d58cb5571de,
+ type: 3}
+ generatedTextures:
+ - {fileID: -446378320346000722, guid: 06833951ebae4cc45ad88d58cb5571de, type: 3}
+ - {fileID: -2252411089510067877, guid: 06833951ebae4cc45ad88d58cb5571de, type: 3}
+ - {fileID: 877764506763962143, guid: 06833951ebae4cc45ad88d58cb5571de, type: 3}
+ - {fileID: -4232129871321120126, guid: 06833951ebae4cc45ad88d58cb5571de, type: 3}
+ - {fileID: 3318615130639472310, guid: 06833951ebae4cc45ad88d58cb5571de, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_gold.sbsar b/Assets/Materials/Substance/Metal/metal_gold.sbsar
new file mode 100644
index 000000000..5aa377680
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_gold.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:29ef1a459ab7d090b32ee563d729038527c4d031595abef2a49398543d11343c
+size 7428
diff --git a/Assets/Materials/Substance/Metal/metal_gold.sbsar.meta b/Assets/Materials/Substance/Metal/metal_gold.sbsar.meta
new file mode 100644
index 000000000..c4e7f4644
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_gold.sbsar.meta
@@ -0,0 +1,373 @@
+fileFormatVersion: 2
+guid: a74970be876d3554ea0f279f39314c9c
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_gold/metal_gold
+ - first:
+ 4: 400000
+ second: metal_gold/metal_gold/Transform
+ - first:
+ 21: 2100000
+ second: mat.Gold
+ - first:
+ 23: 2300000
+ second: metal_gold/metal_gold/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Gold_baseColor
+ - first:
+ 28: 2800002
+ second: Gold_normal
+ - first:
+ 28: 2800004
+ second: Gold_metallic
+ - first:
+ 28: 2800006
+ second: Gold_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Gold_height
+ - first:
+ 33: 3300000
+ second: metal_gold/metal_gold/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_gold/metal_gold/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_gold
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Gold
+ prototypeName: Gold
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n
+ \n \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: -6248678595456566848, guid: a74970be876d3554ea0f279f39314c9c,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 4, y: 4}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: 2039085267362074300, guid: a74970be876d3554ea0f279f39314c9c,
+ type: 3}
+ scale: {x: 4, y: 4}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -8783136193678078058, guid: a74970be876d3554ea0f279f39314c9c,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: 7384525862955468029, guid: a74970be876d3554ea0f279f39314c9c,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: -8934633548313413119, guid: a74970be876d3554ea0f279f39314c9c,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Gold_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Gold_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Gold_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Gold_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Gold_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Gold_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Gold_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Gold_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Gold_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Gold - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Gold - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Gold - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Gold - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Gold - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Gold - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Gold - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Gold - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Gold - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 512
+ textureHeight: 512
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: -905690159841262435, guid: a74970be876d3554ea0f279f39314c9c,
+ type: 3}
+ generatedTextures:
+ - {fileID: 2039085267362074300, guid: a74970be876d3554ea0f279f39314c9c, type: 3}
+ - {fileID: -6248678595456566848, guid: a74970be876d3554ea0f279f39314c9c, type: 3}
+ - {fileID: -8783136193678078058, guid: a74970be876d3554ea0f279f39314c9c, type: 3}
+ - {fileID: 7384525862955468029, guid: a74970be876d3554ea0f279f39314c9c, type: 3}
+ - {fileID: -8934633548313413119, guid: a74970be876d3554ea0f279f39314c9c, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_nickel.sbsar b/Assets/Materials/Substance/Metal/metal_nickel.sbsar
new file mode 100644
index 000000000..e7cf69c6b
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_nickel.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a0395691305bc49406088b12b65ea186d65d5101bc230a2e91b4ddbf2c7b65ea
+size 8935
diff --git a/Assets/Materials/Substance/Metal/metal_nickel.sbsar.meta b/Assets/Materials/Substance/Metal/metal_nickel.sbsar.meta
new file mode 100644
index 000000000..65531754c
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_nickel.sbsar.meta
@@ -0,0 +1,369 @@
+fileFormatVersion: 2
+guid: c5f2177e1f35daa499f4d7e0b7f3370a
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_nickel/metal_nickel
+ - first:
+ 4: 400000
+ second: metal_nickel/metal_nickel/Transform
+ - first:
+ 21: 2100000
+ second: mat.Nickel
+ - first:
+ 23: 2300000
+ second: metal_nickel/metal_nickel/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Nickel_baseColor
+ - first:
+ 28: 2800002
+ second: Nickel_normal
+ - first:
+ 28: 2800004
+ second: Nickel_metallic
+ - first:
+ 28: 2800006
+ second: Nickel_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Nickel_height
+ - first:
+ 33: 3300000
+ second: metal_nickel/metal_nickel/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_nickel/metal_nickel/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_nickel
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Nickel
+ prototypeName: Nickel
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: 1040180909335529060, guid: c5f2177e1f35daa499f4d7e0b7f3370a,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: -3896990606402278735, guid: c5f2177e1f35daa499f4d7e0b7f3370a,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -8156577797594723071, guid: c5f2177e1f35daa499f4d7e0b7f3370a,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: -7935365347593253955, guid: c5f2177e1f35daa499f4d7e0b7f3370a,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: -4922792887777872198, guid: c5f2177e1f35daa499f4d7e0b7f3370a,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Nickel_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Nickel_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Nickel_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Nickel_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Nickel_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Nickel_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Nickel_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Nickel_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Nickel_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Nickel - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Nickel - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Nickel - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Nickel - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Nickel - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Nickel - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Nickel - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Nickel - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Nickel - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 256
+ textureHeight: 256
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: -443055228576417237, guid: c5f2177e1f35daa499f4d7e0b7f3370a,
+ type: 3}
+ generatedTextures:
+ - {fileID: -3896990606402278735, guid: c5f2177e1f35daa499f4d7e0b7f3370a, type: 3}
+ - {fileID: 1040180909335529060, guid: c5f2177e1f35daa499f4d7e0b7f3370a, type: 3}
+ - {fileID: -8156577797594723071, guid: c5f2177e1f35daa499f4d7e0b7f3370a, type: 3}
+ - {fileID: -7935365347593253955, guid: c5f2177e1f35daa499f4d7e0b7f3370a, type: 3}
+ - {fileID: -4922792887777872198, guid: c5f2177e1f35daa499f4d7e0b7f3370a, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_painted_steel.sbsar b/Assets/Materials/Substance/Metal/metal_painted_steel.sbsar
new file mode 100644
index 000000000..d764cd35f
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_painted_steel.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bc8dcd55f0619c028037c7225720acb4eea87b28cc7c120125fa2b38d02f775a
+size 13628
diff --git a/Assets/Materials/Substance/Metal/metal_painted_steel.sbsar.meta b/Assets/Materials/Substance/Metal/metal_painted_steel.sbsar.meta
new file mode 100644
index 000000000..467fa07bd
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_painted_steel.sbsar.meta
@@ -0,0 +1,376 @@
+fileFormatVersion: 2
+guid: b7e648471e9dfc44490bd41973711541
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_painted_steel/metal_painted_steel
+ - first:
+ 4: 400000
+ second: metal_painted_steel/metal_painted_steel/Transform
+ - first:
+ 21: 2100000
+ second: mat.Painted steel
+ - first:
+ 23: 2300000
+ second: metal_painted_steel/metal_painted_steel/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Painted steel_baseColor
+ - first:
+ 28: 2800002
+ second: Painted steel_normal
+ - first:
+ 28: 2800004
+ second: Painted steel_metallic
+ - first:
+ 28: 2800006
+ second: Painted steel_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Painted steel_height
+ - first:
+ 33: 3300000
+ second: metal_painted_steel/metal_painted_steel/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_painted_steel/metal_painted_steel/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_painted_steel
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Painted steel
+ prototypeName: Painted steel
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n
+ \n \n \n \n \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: -812895718602229137, guid: b7e648471e9dfc44490bd41973711541,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: 4387638379454744182, guid: b7e648471e9dfc44490bd41973711541,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: 5280895355680202213, guid: b7e648471e9dfc44490bd41973711541,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: 1053975553097811288, guid: b7e648471e9dfc44490bd41973711541,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: -5932748352949090903, guid: b7e648471e9dfc44490bd41973711541,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Painted steel_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Painted steel_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Painted steel_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Painted steel_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Painted steel_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Painted steel_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Painted steel_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Painted steel_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Painted steel_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Painted steel - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Painted steel - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Painted steel - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Painted steel - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Painted steel - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Painted steel - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Painted steel - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Painted steel - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Painted steel - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 1024
+ textureHeight: 1024
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: -4658142721435264040, guid: b7e648471e9dfc44490bd41973711541,
+ type: 3}
+ generatedTextures:
+ - {fileID: 4387638379454744182, guid: b7e648471e9dfc44490bd41973711541, type: 3}
+ - {fileID: -812895718602229137, guid: b7e648471e9dfc44490bd41973711541, type: 3}
+ - {fileID: 5280895355680202213, guid: b7e648471e9dfc44490bd41973711541, type: 3}
+ - {fileID: 1053975553097811288, guid: b7e648471e9dfc44490bd41973711541, type: 3}
+ - {fileID: -5932748352949090903, guid: b7e648471e9dfc44490bd41973711541, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_panels_001.sbsar b/Assets/Materials/Substance/Metal/metal_panels_001.sbsar
new file mode 100644
index 000000000..2ee3b87ea
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_panels_001.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e868f72fde8e3c55a2d8c097ebb39c05157670897d14eeb86932021feec16158
+size 11295
diff --git a/Assets/Materials/Substance/Metal/metal_panels_001.sbsar.meta b/Assets/Materials/Substance/Metal/metal_panels_001.sbsar.meta
new file mode 100644
index 000000000..a423b3b51
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_panels_001.sbsar.meta
@@ -0,0 +1,369 @@
+fileFormatVersion: 2
+guid: 7363fcc4a3c41a349b29de7ec34555be
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_panels_001/metal_panels_001
+ - first:
+ 4: 400000
+ second: metal_panels_001/metal_panels_001/Transform
+ - first:
+ 21: 2100000
+ second: mat.Metal Panels 001
+ - first:
+ 23: 2300000
+ second: metal_panels_001/metal_panels_001/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Metal Panels 001_baseColor
+ - first:
+ 28: 2800002
+ second: Metal Panels 001_normal
+ - first:
+ 28: 2800004
+ second: Metal Panels 001_metallic
+ - first:
+ 28: 2800006
+ second: Metal Panels 001_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Metal Panels 001_height
+ - first:
+ 33: 3300000
+ second: metal_panels_001/metal_panels_001/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_panels_001/metal_panels_001/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_panels_001
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Metal Panels 001
+ prototypeName: Metal Panels 001
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: 2945532018097518028, guid: 7363fcc4a3c41a349b29de7ec34555be,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: 6344665451385196243, guid: 7363fcc4a3c41a349b29de7ec34555be,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -103584793617860315, guid: 7363fcc4a3c41a349b29de7ec34555be,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: -2941359408041138506, guid: 7363fcc4a3c41a349b29de7ec34555be,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: 1361220934952870948, guid: 7363fcc4a3c41a349b29de7ec34555be,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Metal Panels 001_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 001_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 001_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 001_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 001_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 001_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 001_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 001_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 001_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 001 - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 001 - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 001 - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 001 - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 001 - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 001 - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 001 - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 001 - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 001 - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 256
+ textureHeight: 256
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: 1523472303362493764, guid: 7363fcc4a3c41a349b29de7ec34555be,
+ type: 3}
+ generatedTextures:
+ - {fileID: 6344665451385196243, guid: 7363fcc4a3c41a349b29de7ec34555be, type: 3}
+ - {fileID: 2945532018097518028, guid: 7363fcc4a3c41a349b29de7ec34555be, type: 3}
+ - {fileID: -103584793617860315, guid: 7363fcc4a3c41a349b29de7ec34555be, type: 3}
+ - {fileID: -2941359408041138506, guid: 7363fcc4a3c41a349b29de7ec34555be, type: 3}
+ - {fileID: 1361220934952870948, guid: 7363fcc4a3c41a349b29de7ec34555be, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_panels_002.sbsar b/Assets/Materials/Substance/Metal/metal_panels_002.sbsar
new file mode 100644
index 000000000..2cf3cd0b5
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_panels_002.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b16e09a1b06ae6b857d9f9478af0838a31ba554a2455b9e65e9db43a125ce633
+size 7592
diff --git a/Assets/Materials/Substance/Metal/metal_panels_002.sbsar.meta b/Assets/Materials/Substance/Metal/metal_panels_002.sbsar.meta
new file mode 100644
index 000000000..fe8ecd2b6
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_panels_002.sbsar.meta
@@ -0,0 +1,369 @@
+fileFormatVersion: 2
+guid: 2e9a9dbacde66a446852af882f33e9e2
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_panels_002/metal_panels_002
+ - first:
+ 4: 400000
+ second: metal_panels_002/metal_panels_002/Transform
+ - first:
+ 21: 2100000
+ second: mat.Metal Panels 002
+ - first:
+ 23: 2300000
+ second: metal_panels_002/metal_panels_002/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Metal Panels 002_baseColor
+ - first:
+ 28: 2800002
+ second: Metal Panels 002_normal
+ - first:
+ 28: 2800004
+ second: Metal Panels 002_metallic
+ - first:
+ 28: 2800006
+ second: Metal Panels 002_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Metal Panels 002_height
+ - first:
+ 33: 3300000
+ second: metal_panels_002/metal_panels_002/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_panels_002/metal_panels_002/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_panels_002
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Metal Panels 002
+ prototypeName: Metal Panels 002
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: -7157783387845257801, guid: 2e9a9dbacde66a446852af882f33e9e2,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: 6030008930922367719, guid: 2e9a9dbacde66a446852af882f33e9e2,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -5177487458041023939, guid: 2e9a9dbacde66a446852af882f33e9e2,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: -6221273311826804186, guid: 2e9a9dbacde66a446852af882f33e9e2,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: -2755774738339798629, guid: 2e9a9dbacde66a446852af882f33e9e2,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Metal Panels 002_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 002_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 002_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 002_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 002_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 002_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 002_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 002_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 002_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 002 - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 002 - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 002 - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 002 - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 002 - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 002 - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 002 - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 002 - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Panels 002 - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 256
+ textureHeight: 256
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: 3282252981698000714, guid: 2e9a9dbacde66a446852af882f33e9e2,
+ type: 3}
+ generatedTextures:
+ - {fileID: 6030008930922367719, guid: 2e9a9dbacde66a446852af882f33e9e2, type: 3}
+ - {fileID: -7157783387845257801, guid: 2e9a9dbacde66a446852af882f33e9e2, type: 3}
+ - {fileID: -5177487458041023939, guid: 2e9a9dbacde66a446852af882f33e9e2, type: 3}
+ - {fileID: -6221273311826804186, guid: 2e9a9dbacde66a446852af882f33e9e2, type: 3}
+ - {fileID: -2755774738339798629, guid: 2e9a9dbacde66a446852af882f33e9e2, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_plate_001.sbsar b/Assets/Materials/Substance/Metal/metal_plate_001.sbsar
new file mode 100644
index 000000000..3d06effb9
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_plate_001.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7c9aea022bbc0138be51bb7b89314a569ad359390a0b8d1b6b2c717d317acd8b
+size 10171
diff --git a/Assets/Materials/Substance/Metal/metal_plate_001.sbsar.meta b/Assets/Materials/Substance/Metal/metal_plate_001.sbsar.meta
new file mode 100644
index 000000000..9a0327632
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_plate_001.sbsar.meta
@@ -0,0 +1,369 @@
+fileFormatVersion: 2
+guid: 180b85899b4b1f848b348230339ce984
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_plate_001/metal_plate_001
+ - first:
+ 4: 400000
+ second: metal_plate_001/metal_plate_001/Transform
+ - first:
+ 21: 2100000
+ second: mat.Metal plate 001
+ - first:
+ 23: 2300000
+ second: metal_plate_001/metal_plate_001/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Metal plate 001_baseColor
+ - first:
+ 28: 2800002
+ second: Metal plate 001_normal
+ - first:
+ 28: 2800004
+ second: Metal plate 001_metallic
+ - first:
+ 28: 2800006
+ second: Metal plate 001_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Metal plate 001_height
+ - first:
+ 33: 3300000
+ second: metal_plate_001/metal_plate_001/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_plate_001/metal_plate_001/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_plate_001
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Metal plate 001
+ prototypeName: Metal plate 001
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: 6805374924820727666, guid: 180b85899b4b1f848b348230339ce984,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: 443512894100413061, guid: 180b85899b4b1f848b348230339ce984,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -3656363544911682969, guid: 180b85899b4b1f848b348230339ce984,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: 6012193567810889268, guid: 180b85899b4b1f848b348230339ce984,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: 1247009903862830065, guid: 180b85899b4b1f848b348230339ce984,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Metal plate 001_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 001_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 001_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 001_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 001_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 001_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 001_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 001_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 001_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 001 - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 001 - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 001 - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 001 - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 001 - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 001 - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 001 - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 001 - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 001 - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 256
+ textureHeight: 256
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: -1468868417959000437, guid: 180b85899b4b1f848b348230339ce984,
+ type: 3}
+ generatedTextures:
+ - {fileID: 443512894100413061, guid: 180b85899b4b1f848b348230339ce984, type: 3}
+ - {fileID: 6805374924820727666, guid: 180b85899b4b1f848b348230339ce984, type: 3}
+ - {fileID: -3656363544911682969, guid: 180b85899b4b1f848b348230339ce984, type: 3}
+ - {fileID: 6012193567810889268, guid: 180b85899b4b1f848b348230339ce984, type: 3}
+ - {fileID: 1247009903862830065, guid: 180b85899b4b1f848b348230339ce984, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_plate_004.sbsar b/Assets/Materials/Substance/Metal/metal_plate_004.sbsar
new file mode 100644
index 000000000..dc0474e13
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_plate_004.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:65295627150c30fc70fe138aee16c2266bffdd0a5b1fbcbe7fe040a3d0309d39
+size 14216
diff --git a/Assets/Materials/Substance/Metal/metal_plate_004.sbsar.meta b/Assets/Materials/Substance/Metal/metal_plate_004.sbsar.meta
new file mode 100644
index 000000000..fd4373932
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_plate_004.sbsar.meta
@@ -0,0 +1,369 @@
+fileFormatVersion: 2
+guid: 0b5dfc86c0681a3459a57d197804191b
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_plate_004/metal_plate_004
+ - first:
+ 4: 400000
+ second: metal_plate_004/metal_plate_004/Transform
+ - first:
+ 21: 2100000
+ second: mat.Metal plate 004
+ - first:
+ 23: 2300000
+ second: metal_plate_004/metal_plate_004/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Metal plate 004_baseColor
+ - first:
+ 28: 2800002
+ second: Metal plate 004_normal
+ - first:
+ 28: 2800004
+ second: Metal plate 004_metallic
+ - first:
+ 28: 2800006
+ second: Metal plate 004_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Metal plate 004_height
+ - first:
+ 33: 3300000
+ second: metal_plate_004/metal_plate_004/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_plate_004/metal_plate_004/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_plate_004
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Metal plate 004
+ prototypeName: Metal plate 004
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: -7484568915117973449, guid: 0b5dfc86c0681a3459a57d197804191b,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: 1309396409266656355, guid: 0b5dfc86c0681a3459a57d197804191b,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -5781884682247363129, guid: 0b5dfc86c0681a3459a57d197804191b,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: 5620992320681838871, guid: 0b5dfc86c0681a3459a57d197804191b,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: 6570316561944570698, guid: 0b5dfc86c0681a3459a57d197804191b,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Metal plate 004_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 004_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 004_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 004_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 004_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 004_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 004_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 004_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 004_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 004 - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 004 - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 004 - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 004 - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 004 - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 004 - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 004 - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 004 - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 004 - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 256
+ textureHeight: 256
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: -5894754650268316995, guid: 0b5dfc86c0681a3459a57d197804191b,
+ type: 3}
+ generatedTextures:
+ - {fileID: 1309396409266656355, guid: 0b5dfc86c0681a3459a57d197804191b, type: 3}
+ - {fileID: -7484568915117973449, guid: 0b5dfc86c0681a3459a57d197804191b, type: 3}
+ - {fileID: -5781884682247363129, guid: 0b5dfc86c0681a3459a57d197804191b, type: 3}
+ - {fileID: 5620992320681838871, guid: 0b5dfc86c0681a3459a57d197804191b, type: 3}
+ - {fileID: 6570316561944570698, guid: 0b5dfc86c0681a3459a57d197804191b, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_plate_011.sbsar b/Assets/Materials/Substance/Metal/metal_plate_011.sbsar
new file mode 100644
index 000000000..c1e0a3922
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_plate_011.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:829bc422cbe5b984103972cd7cf36d207fe0a6b561a2619301dec3e684009784
+size 9674
diff --git a/Assets/Materials/Substance/Metal/metal_plate_011.sbsar.meta b/Assets/Materials/Substance/Metal/metal_plate_011.sbsar.meta
new file mode 100644
index 000000000..55c1cd50c
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_plate_011.sbsar.meta
@@ -0,0 +1,369 @@
+fileFormatVersion: 2
+guid: ca8f080ab60226e4097841eee2bfa8db
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_plate_011/metal_plate_011
+ - first:
+ 4: 400000
+ second: metal_plate_011/metal_plate_011/Transform
+ - first:
+ 21: 2100000
+ second: mat.Metal plate 011
+ - first:
+ 23: 2300000
+ second: metal_plate_011/metal_plate_011/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Metal plate 011_baseColor
+ - first:
+ 28: 2800002
+ second: Metal plate 011_normal
+ - first:
+ 28: 2800004
+ second: Metal plate 011_metallic
+ - first:
+ 28: 2800006
+ second: Metal plate 011_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Metal plate 011_height
+ - first:
+ 33: 3300000
+ second: metal_plate_011/metal_plate_011/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_plate_011/metal_plate_011/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_plate_011
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Metal plate 011
+ prototypeName: Metal plate 011
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: 1206901763152500494, guid: ca8f080ab60226e4097841eee2bfa8db,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: -562402163750398719, guid: ca8f080ab60226e4097841eee2bfa8db,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -8211546087015286653, guid: ca8f080ab60226e4097841eee2bfa8db,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: 7355910353852850503, guid: ca8f080ab60226e4097841eee2bfa8db,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: -2794334530799708578, guid: ca8f080ab60226e4097841eee2bfa8db,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Metal plate 011_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 011_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 011_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 011_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 011_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 011_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 011_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 011_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 011_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 011 - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 011 - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 011 - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 011 - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 011 - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 011 - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 011 - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 011 - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal plate 011 - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 256
+ textureHeight: 256
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: 5028268363422298589, guid: ca8f080ab60226e4097841eee2bfa8db,
+ type: 3}
+ generatedTextures:
+ - {fileID: -562402163750398719, guid: ca8f080ab60226e4097841eee2bfa8db, type: 3}
+ - {fileID: 1206901763152500494, guid: ca8f080ab60226e4097841eee2bfa8db, type: 3}
+ - {fileID: -8211546087015286653, guid: ca8f080ab60226e4097841eee2bfa8db, type: 3}
+ - {fileID: 7355910353852850503, guid: ca8f080ab60226e4097841eee2bfa8db, type: 3}
+ - {fileID: -2794334530799708578, guid: ca8f080ab60226e4097841eee2bfa8db, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_platinum.sbsar b/Assets/Materials/Substance/Metal/metal_platinum.sbsar
new file mode 100644
index 000000000..ffaec19de
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_platinum.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b880030baaf5ccc272c780265fc4b1570a55a63a8b804223ccbdc54a576b9be7
+size 5196
diff --git a/Assets/Materials/Substance/Metal/metal_platinum.sbsar.meta b/Assets/Materials/Substance/Metal/metal_platinum.sbsar.meta
new file mode 100644
index 000000000..f39efaf0d
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_platinum.sbsar.meta
@@ -0,0 +1,372 @@
+fileFormatVersion: 2
+guid: 9458f33b8e7e51a42aa19686b9779d82
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_platinum/metal_platinum
+ - first:
+ 4: 400000
+ second: metal_platinum/metal_platinum/Transform
+ - first:
+ 21: 2100000
+ second: mat.Platinum
+ - first:
+ 23: 2300000
+ second: metal_platinum/metal_platinum/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Platinum_baseColor
+ - first:
+ 28: 2800002
+ second: Platinum_normal
+ - first:
+ 28: 2800004
+ second: Platinum_metallic
+ - first:
+ 28: 2800006
+ second: Platinum_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Platinum_height
+ - first:
+ 33: 3300000
+ second: metal_platinum/metal_platinum/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_platinum/metal_platinum/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_platinum
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Platinum
+ prototypeName: Platinum
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: 3498638986299907941, guid: 9458f33b8e7e51a42aa19686b9779d82,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: -8172963137857357993, guid: 9458f33b8e7e51a42aa19686b9779d82,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -8040379993892829019, guid: 9458f33b8e7e51a42aa19686b9779d82,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: 225164955126363719, guid: 9458f33b8e7e51a42aa19686b9779d82,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: -130007606447889175, guid: 9458f33b8e7e51a42aa19686b9779d82,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Platinum_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Platinum_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Platinum_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Platinum_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Platinum_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Platinum_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Platinum_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Platinum_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Platinum_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Platinum - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Platinum - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Platinum - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Platinum - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Platinum - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Platinum - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Platinum - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Platinum - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Platinum - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 256
+ textureHeight: 256
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: 8636029498071112704, guid: 9458f33b8e7e51a42aa19686b9779d82,
+ type: 3}
+ generatedTextures:
+ - {fileID: -8172963137857357993, guid: 9458f33b8e7e51a42aa19686b9779d82, type: 3}
+ - {fileID: 3498638986299907941, guid: 9458f33b8e7e51a42aa19686b9779d82, type: 3}
+ - {fileID: -8040379993892829019, guid: 9458f33b8e7e51a42aa19686b9779d82, type: 3}
+ - {fileID: 225164955126363719, guid: 9458f33b8e7e51a42aa19686b9779d82, type: 3}
+ - {fileID: -130007606447889175, guid: 9458f33b8e7e51a42aa19686b9779d82, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_roll_up.sbsar b/Assets/Materials/Substance/Metal/metal_roll_up.sbsar
new file mode 100644
index 000000000..db99f183e
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_roll_up.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1a2036e21cdd2d392fdcb755d2faf982335fc4deaa8c7b913110db234fa04f3a
+size 11017
diff --git a/Assets/Materials/Substance/Metal/metal_roll_up.sbsar.meta b/Assets/Materials/Substance/Metal/metal_roll_up.sbsar.meta
new file mode 100644
index 000000000..3d93351e8
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_roll_up.sbsar.meta
@@ -0,0 +1,369 @@
+fileFormatVersion: 2
+guid: 4e39297ae4fe9ee4b803c04eabb69da7
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_roll_up/metal_roll_up
+ - first:
+ 4: 400000
+ second: metal_roll_up/metal_roll_up/Transform
+ - first:
+ 21: 2100000
+ second: mat.Metal roll up
+ - first:
+ 23: 2300000
+ second: metal_roll_up/metal_roll_up/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Metal roll up_baseColor
+ - first:
+ 28: 2800002
+ second: Metal roll up_normal
+ - first:
+ 28: 2800004
+ second: Metal roll up_metallic
+ - first:
+ 28: 2800006
+ second: Metal roll up_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Metal roll up_height
+ - first:
+ 33: 3300000
+ second: metal_roll_up/metal_roll_up/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_roll_up/metal_roll_up/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_roll_up
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Metal roll up
+ prototypeName: Metal roll up
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: 1258325809611119299, guid: 4e39297ae4fe9ee4b803c04eabb69da7,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: -5250987364813910665, guid: 4e39297ae4fe9ee4b803c04eabb69da7,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -1897870436205287166, guid: 4e39297ae4fe9ee4b803c04eabb69da7,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: 7199963334284863655, guid: 4e39297ae4fe9ee4b803c04eabb69da7,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: 1153539711168243343, guid: 4e39297ae4fe9ee4b803c04eabb69da7,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Metal roll up_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal roll up_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal roll up_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal roll up_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal roll up_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal roll up_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal roll up_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal roll up_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal roll up_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal roll up - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal roll up - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal roll up - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal roll up - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal roll up - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal roll up - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal roll up - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal roll up - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal roll up - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 256
+ textureHeight: 256
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: 7440086527666654772, guid: 4e39297ae4fe9ee4b803c04eabb69da7,
+ type: 3}
+ generatedTextures:
+ - {fileID: -5250987364813910665, guid: 4e39297ae4fe9ee4b803c04eabb69da7, type: 3}
+ - {fileID: 1258325809611119299, guid: 4e39297ae4fe9ee4b803c04eabb69da7, type: 3}
+ - {fileID: -1897870436205287166, guid: 4e39297ae4fe9ee4b803c04eabb69da7, type: 3}
+ - {fileID: 7199963334284863655, guid: 4e39297ae4fe9ee4b803c04eabb69da7, type: 3}
+ - {fileID: 1153539711168243343, guid: 4e39297ae4fe9ee4b803c04eabb69da7, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_silver.sbsar b/Assets/Materials/Substance/Metal/metal_silver.sbsar
new file mode 100644
index 000000000..08b0ac146
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_silver.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4b18ce39a69d5e25641d53fcbe04f281c92ca7e01936e6a9b279476be8ff3255
+size 6898
diff --git a/Assets/Materials/Substance/Metal/metal_silver.sbsar.meta b/Assets/Materials/Substance/Metal/metal_silver.sbsar.meta
new file mode 100644
index 000000000..326559316
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_silver.sbsar.meta
@@ -0,0 +1,369 @@
+fileFormatVersion: 2
+guid: 0be5fb1df83ac8e499a3f6a060041e49
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_silver/metal_silver
+ - first:
+ 4: 400000
+ second: metal_silver/metal_silver/Transform
+ - first:
+ 21: 2100000
+ second: mat.Silver
+ - first:
+ 23: 2300000
+ second: metal_silver/metal_silver/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Silver_baseColor
+ - first:
+ 28: 2800002
+ second: Silver_normal
+ - first:
+ 28: 2800004
+ second: Silver_metallic
+ - first:
+ 28: 2800006
+ second: Silver_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Silver_height
+ - first:
+ 33: 3300000
+ second: metal_silver/metal_silver/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_silver/metal_silver/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_silver
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Silver
+ prototypeName: Silver
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: 8947980237086559854, guid: 0be5fb1df83ac8e499a3f6a060041e49,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: -1383037052668628532, guid: 0be5fb1df83ac8e499a3f6a060041e49,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: 6429125567479694453, guid: 0be5fb1df83ac8e499a3f6a060041e49,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: -9097439929179392311, guid: 0be5fb1df83ac8e499a3f6a060041e49,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: 425190381137097012, guid: 0be5fb1df83ac8e499a3f6a060041e49,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Silver_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Silver_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Silver_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Silver_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Silver_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Silver_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Silver_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Silver_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Silver_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Silver - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Silver - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Silver - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Silver - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Silver - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Silver - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Silver - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Silver - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Silver - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 256
+ textureHeight: 256
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: 7490952440742008943, guid: 0be5fb1df83ac8e499a3f6a060041e49,
+ type: 3}
+ generatedTextures:
+ - {fileID: -1383037052668628532, guid: 0be5fb1df83ac8e499a3f6a060041e49, type: 3}
+ - {fileID: 8947980237086559854, guid: 0be5fb1df83ac8e499a3f6a060041e49, type: 3}
+ - {fileID: 6429125567479694453, guid: 0be5fb1df83ac8e499a3f6a060041e49, type: 3}
+ - {fileID: -9097439929179392311, guid: 0be5fb1df83ac8e499a3f6a060041e49, type: 3}
+ - {fileID: 425190381137097012, guid: 0be5fb1df83ac8e499a3f6a060041e49, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_steel.sbsar b/Assets/Materials/Substance/Metal/metal_steel.sbsar
new file mode 100644
index 000000000..31ec34fd3
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_steel.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d559edac51ad4c529c197d7c9a813fe8c2fa1bcb0963cd0f8bad8ab1403b3821
+size 10697
diff --git a/Assets/Materials/Substance/Metal/metal_steel.sbsar.meta b/Assets/Materials/Substance/Metal/metal_steel.sbsar.meta
new file mode 100644
index 000000000..172d4668b
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_steel.sbsar.meta
@@ -0,0 +1,375 @@
+fileFormatVersion: 2
+guid: cbc61995a46604441ab9de4f1c68e290
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_steel/metal_steel
+ - first:
+ 4: 400000
+ second: metal_steel/metal_steel/Transform
+ - first:
+ 21: 2100000
+ second: mat.Steel
+ - first:
+ 23: 2300000
+ second: metal_steel/metal_steel/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Steel_baseColor
+ - first:
+ 28: 2800002
+ second: Steel_normal
+ - first:
+ 28: 2800004
+ second: Steel_metallic
+ - first:
+ 28: 2800006
+ second: Steel_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Steel_height
+ - first:
+ 33: 3300000
+ second: metal_steel/metal_steel/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_steel/metal_steel/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_steel
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Steel
+ prototypeName: Steel
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n
+ \n \n \n \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: -3888315358723833787, guid: cbc61995a46604441ab9de4f1c68e290,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 4, y: 4}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: 108215966750249586, guid: cbc61995a46604441ab9de4f1c68e290,
+ type: 3}
+ scale: {x: 4, y: 4}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: 4793252353645218242, guid: cbc61995a46604441ab9de4f1c68e290,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: -4384182597330533215, guid: cbc61995a46604441ab9de4f1c68e290,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: 4600200897981803784, guid: cbc61995a46604441ab9de4f1c68e290,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Steel_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 512
+ textureHeight: 512
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: -3155047780354543793, guid: cbc61995a46604441ab9de4f1c68e290,
+ type: 3}
+ generatedTextures:
+ - {fileID: 108215966750249586, guid: cbc61995a46604441ab9de4f1c68e290, type: 3}
+ - {fileID: -3888315358723833787, guid: cbc61995a46604441ab9de4f1c68e290, type: 3}
+ - {fileID: 4793252353645218242, guid: cbc61995a46604441ab9de4f1c68e290, type: 3}
+ - {fileID: -4384182597330533215, guid: cbc61995a46604441ab9de4f1c68e290, type: 3}
+ - {fileID: 4600200897981803784, guid: cbc61995a46604441ab9de4f1c68e290, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_steel_brushed.sbsar b/Assets/Materials/Substance/Metal/metal_steel_brushed.sbsar
new file mode 100644
index 000000000..45c0b10b3
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_steel_brushed.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bf6b40453b42e050b2ce05478f1c1964d9489cdf02413f12b40f4ce1e49b4432
+size 12832
diff --git a/Assets/Materials/Substance/Metal/metal_steel_brushed.sbsar.meta b/Assets/Materials/Substance/Metal/metal_steel_brushed.sbsar.meta
new file mode 100644
index 000000000..d08c0d290
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_steel_brushed.sbsar.meta
@@ -0,0 +1,370 @@
+fileFormatVersion: 2
+guid: ea7457b9a4f0bcb43becaa33de541cbd
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_steel_brushed/metal_steel_brushed
+ - first:
+ 4: 400000
+ second: metal_steel_brushed/metal_steel_brushed/Transform
+ - first:
+ 21: 2100000
+ second: mat.Steel brushed
+ - first:
+ 23: 2300000
+ second: metal_steel_brushed/metal_steel_brushed/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Steel brushed_baseColor
+ - first:
+ 28: 2800002
+ second: Steel brushed_normal
+ - first:
+ 28: 2800004
+ second: Steel brushed_metallic
+ - first:
+ 28: 2800006
+ second: Steel brushed_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Steel brushed_height
+ - first:
+ 33: 3300000
+ second: metal_steel_brushed/metal_steel_brushed/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_steel_brushed/metal_steel_brushed/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_steel_brushed
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Steel brushed
+ prototypeName: Steel brushed
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: -4471413742775304797, guid: ea7457b9a4f0bcb43becaa33de541cbd,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: -4638397344074346932, guid: ea7457b9a4f0bcb43becaa33de541cbd,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: 5049811794194361025, guid: ea7457b9a4f0bcb43becaa33de541cbd,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: 1753668427856518731, guid: ea7457b9a4f0bcb43becaa33de541cbd,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: -3498708498072814504, guid: ea7457b9a4f0bcb43becaa33de541cbd,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Steel brushed_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel brushed_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel brushed_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel brushed_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel brushed_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel brushed_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel brushed_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel brushed_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel brushed_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel brushed - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel brushed - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel brushed - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel brushed - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel brushed - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel brushed - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel brushed - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel brushed - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel brushed - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 256
+ textureHeight: 256
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: 7852708265981260911, guid: ea7457b9a4f0bcb43becaa33de541cbd,
+ type: 3}
+ generatedTextures:
+ - {fileID: -4638397344074346932, guid: ea7457b9a4f0bcb43becaa33de541cbd, type: 3}
+ - {fileID: -4471413742775304797, guid: ea7457b9a4f0bcb43becaa33de541cbd, type: 3}
+ - {fileID: 5049811794194361025, guid: ea7457b9a4f0bcb43becaa33de541cbd, type: 3}
+ - {fileID: 1753668427856518731, guid: ea7457b9a4f0bcb43becaa33de541cbd, type: 3}
+ - {fileID: -3498708498072814504, guid: ea7457b9a4f0bcb43becaa33de541cbd, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_steel_bumped.sbsar b/Assets/Materials/Substance/Metal/metal_steel_bumped.sbsar
new file mode 100644
index 000000000..6580295bb
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_steel_bumped.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a9ae449451a55abd8466e8af67685a45d86fd39ea2070294dde7f2a07776bea5
+size 17275
diff --git a/Assets/Materials/Substance/Metal/metal_steel_bumped.sbsar.meta b/Assets/Materials/Substance/Metal/metal_steel_bumped.sbsar.meta
new file mode 100644
index 000000000..1dd652796
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_steel_bumped.sbsar.meta
@@ -0,0 +1,369 @@
+fileFormatVersion: 2
+guid: 092bdd8d243488141aeab5bb0d72429a
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_steel_bumped/metal_steel_bumped
+ - first:
+ 4: 400000
+ second: metal_steel_bumped/metal_steel_bumped/Transform
+ - first:
+ 21: 2100000
+ second: mat.Steel bumped
+ - first:
+ 23: 2300000
+ second: metal_steel_bumped/metal_steel_bumped/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Steel bumped_baseColor
+ - first:
+ 28: 2800002
+ second: Steel bumped_normal
+ - first:
+ 28: 2800004
+ second: Steel bumped_metallic
+ - first:
+ 28: 2800006
+ second: Steel bumped_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Steel bumped_height
+ - first:
+ 33: 3300000
+ second: metal_steel_bumped/metal_steel_bumped/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_steel_bumped/metal_steel_bumped/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_steel_bumped
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Steel bumped
+ prototypeName: Steel bumped
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: 3586080781697202320, guid: 092bdd8d243488141aeab5bb0d72429a,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: 86365302875955127, guid: 092bdd8d243488141aeab5bb0d72429a,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: 9208498935135840223, guid: 092bdd8d243488141aeab5bb0d72429a,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: 7740971908710523460, guid: 092bdd8d243488141aeab5bb0d72429a,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: 6493472383464308858, guid: 092bdd8d243488141aeab5bb0d72429a,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Steel bumped_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel bumped_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel bumped_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel bumped_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel bumped_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel bumped_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel bumped_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel bumped_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel bumped_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel bumped - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel bumped - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel bumped - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel bumped - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel bumped - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel bumped - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel bumped - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel bumped - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel bumped - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 256
+ textureHeight: 256
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: -864409875390858066, guid: 092bdd8d243488141aeab5bb0d72429a,
+ type: 3}
+ generatedTextures:
+ - {fileID: 86365302875955127, guid: 092bdd8d243488141aeab5bb0d72429a, type: 3}
+ - {fileID: 3586080781697202320, guid: 092bdd8d243488141aeab5bb0d72429a, type: 3}
+ - {fileID: 9208498935135840223, guid: 092bdd8d243488141aeab5bb0d72429a, type: 3}
+ - {fileID: 7740971908710523460, guid: 092bdd8d243488141aeab5bb0d72429a, type: 3}
+ - {fileID: 6493472383464308858, guid: 092bdd8d243488141aeab5bb0d72429a, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_steel_parkerized.sbsar b/Assets/Materials/Substance/Metal/metal_steel_parkerized.sbsar
new file mode 100644
index 000000000..92bee293c
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_steel_parkerized.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:54993a1aae47acf7e1aba24812f215e1787969016dd1f420899ab363342a7b6d
+size 9206
diff --git a/Assets/Materials/Substance/Metal/metal_steel_parkerized.sbsar.meta b/Assets/Materials/Substance/Metal/metal_steel_parkerized.sbsar.meta
new file mode 100644
index 000000000..a7cabf9ff
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_steel_parkerized.sbsar.meta
@@ -0,0 +1,369 @@
+fileFormatVersion: 2
+guid: e7758cad28ae98f478940e55222419a6
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_steel_parkerized/metal_steel_parkerized
+ - first:
+ 4: 400000
+ second: metal_steel_parkerized/metal_steel_parkerized/Transform
+ - first:
+ 21: 2100000
+ second: mat.Steel parkerized
+ - first:
+ 23: 2300000
+ second: metal_steel_parkerized/metal_steel_parkerized/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Steel parkerized_baseColor
+ - first:
+ 28: 2800002
+ second: Steel parkerized_normal
+ - first:
+ 28: 2800004
+ second: Steel parkerized_metallic
+ - first:
+ 28: 2800006
+ second: Steel parkerized_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Steel parkerized_height
+ - first:
+ 33: 3300000
+ second: metal_steel_parkerized/metal_steel_parkerized/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_steel_parkerized/metal_steel_parkerized/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_steel_parkerized
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Steel parkerized
+ prototypeName: Steel parkerized
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: 885599758852769373, guid: e7758cad28ae98f478940e55222419a6,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: -4474525002722929857, guid: e7758cad28ae98f478940e55222419a6,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -2334804936223627746, guid: e7758cad28ae98f478940e55222419a6,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: -8380876848358870972, guid: e7758cad28ae98f478940e55222419a6,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: 172713863077875830, guid: e7758cad28ae98f478940e55222419a6,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Steel parkerized_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel parkerized_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel parkerized_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel parkerized_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel parkerized_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel parkerized_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel parkerized_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel parkerized_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel parkerized_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel parkerized - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel parkerized - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel parkerized - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel parkerized - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel parkerized - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel parkerized - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel parkerized - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel parkerized - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Steel parkerized - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 256
+ textureHeight: 256
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: -6026401407715332296, guid: e7758cad28ae98f478940e55222419a6,
+ type: 3}
+ generatedTextures:
+ - {fileID: -4474525002722929857, guid: e7758cad28ae98f478940e55222419a6, type: 3}
+ - {fileID: 885599758852769373, guid: e7758cad28ae98f478940e55222419a6, type: 3}
+ - {fileID: -2334804936223627746, guid: e7758cad28ae98f478940e55222419a6, type: 3}
+ - {fileID: -8380876848358870972, guid: e7758cad28ae98f478940e55222419a6, type: 3}
+ - {fileID: 172713863077875830, guid: e7758cad28ae98f478940e55222419a6, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_titanium.sbsar b/Assets/Materials/Substance/Metal/metal_titanium.sbsar
new file mode 100644
index 000000000..ede9cde4d
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_titanium.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e3aabfbcb813fef9ef20793d54c93bf5c37255573bb8ad043620f60041acd6d1
+size 5206
diff --git a/Assets/Materials/Substance/Metal/metal_titanium.sbsar.meta b/Assets/Materials/Substance/Metal/metal_titanium.sbsar.meta
new file mode 100644
index 000000000..e4ece6915
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_titanium.sbsar.meta
@@ -0,0 +1,369 @@
+fileFormatVersion: 2
+guid: 58e16b7dbc1c31f4585e11544cdce127
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_titanium/metal_titanium
+ - first:
+ 4: 400000
+ second: metal_titanium/metal_titanium/Transform
+ - first:
+ 21: 2100000
+ second: mat.Titanium
+ - first:
+ 23: 2300000
+ second: metal_titanium/metal_titanium/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Titanium_baseColor
+ - first:
+ 28: 2800002
+ second: Titanium_normal
+ - first:
+ 28: 2800004
+ second: Titanium_metallic
+ - first:
+ 28: 2800006
+ second: Titanium_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Titanium_height
+ - first:
+ 33: 3300000
+ second: metal_titanium/metal_titanium/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_titanium/metal_titanium/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_titanium
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Titanium
+ prototypeName: Titanium
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: -5074057273227030627, guid: 58e16b7dbc1c31f4585e11544cdce127,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: 3009319823116150993, guid: 58e16b7dbc1c31f4585e11544cdce127,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: 3613456606582262254, guid: 58e16b7dbc1c31f4585e11544cdce127,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: 7558371940554398246, guid: 58e16b7dbc1c31f4585e11544cdce127,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: -3774795931012705877, guid: 58e16b7dbc1c31f4585e11544cdce127,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Titanium_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Titanium_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Titanium_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Titanium_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Titanium_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Titanium_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Titanium_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Titanium_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Titanium_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Titanium - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Titanium - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Titanium - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Titanium - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Titanium - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Titanium - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Titanium - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Titanium - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Titanium - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 256
+ textureHeight: 256
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: 9178725544925813344, guid: 58e16b7dbc1c31f4585e11544cdce127,
+ type: 3}
+ generatedTextures:
+ - {fileID: 3009319823116150993, guid: 58e16b7dbc1c31f4585e11544cdce127, type: 3}
+ - {fileID: -5074057273227030627, guid: 58e16b7dbc1c31f4585e11544cdce127, type: 3}
+ - {fileID: 3613456606582262254, guid: 58e16b7dbc1c31f4585e11544cdce127, type: 3}
+ - {fileID: 7558371940554398246, guid: 58e16b7dbc1c31f4585e11544cdce127, type: 3}
+ - {fileID: -3774795931012705877, guid: 58e16b7dbc1c31f4585e11544cdce127, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_used.sbsar b/Assets/Materials/Substance/Metal/metal_used.sbsar
new file mode 100644
index 000000000..5a8b87d9c
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_used.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:03b72a9708206dd2c10aba185b507def52bbbcb713666711ed5d67926fbedd68
+size 14332
diff --git a/Assets/Materials/Substance/Metal/metal_used.sbsar.meta b/Assets/Materials/Substance/Metal/metal_used.sbsar.meta
new file mode 100644
index 000000000..37fcc6a20
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_used.sbsar.meta
@@ -0,0 +1,371 @@
+fileFormatVersion: 2
+guid: 130f566ffa0b2424fbb47de2194c136a
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_used/metal_used
+ - first:
+ 4: 400000
+ second: metal_used/metal_used/Transform
+ - first:
+ 21: 2100000
+ second: mat.Metal used
+ - first:
+ 23: 2300000
+ second: metal_used/metal_used/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Metal used_baseColor
+ - first:
+ 28: 2800002
+ second: Metal used_normal
+ - first:
+ 28: 2800004
+ second: Metal used_metallic
+ - first:
+ 28: 2800006
+ second: Metal used_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Metal used_height
+ - first:
+ 33: 3300000
+ second: metal_used/metal_used/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_used/metal_used/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_used
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Metal used
+ prototypeName: Metal used
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n
+ \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: 8398852885706109728, guid: 130f566ffa0b2424fbb47de2194c136a,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: 8357651109123355072, guid: 130f566ffa0b2424fbb47de2194c136a,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -435054815742279573, guid: 130f566ffa0b2424fbb47de2194c136a,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: 6248133906606842143, guid: 130f566ffa0b2424fbb47de2194c136a,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: 2780512161145013460, guid: 130f566ffa0b2424fbb47de2194c136a,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Metal used_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal used_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal used_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal used_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal used_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal used_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal used_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal used_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal used_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal used - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal used - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal used - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal used - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal used - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal used - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal used - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal used - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal used - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 512
+ textureHeight: 512
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: -890370705972978167, guid: 130f566ffa0b2424fbb47de2194c136a,
+ type: 3}
+ generatedTextures:
+ - {fileID: 8357651109123355072, guid: 130f566ffa0b2424fbb47de2194c136a, type: 3}
+ - {fileID: 8398852885706109728, guid: 130f566ffa0b2424fbb47de2194c136a, type: 3}
+ - {fileID: -435054815742279573, guid: 130f566ffa0b2424fbb47de2194c136a, type: 3}
+ - {fileID: 6248133906606842143, guid: 130f566ffa0b2424fbb47de2194c136a, type: 3}
+ - {fileID: 2780512161145013460, guid: 130f566ffa0b2424fbb47de2194c136a, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_weapon.sbsar b/Assets/Materials/Substance/Metal/metal_weapon.sbsar
new file mode 100644
index 000000000..d96236940
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_weapon.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8e9033843201f75f1b86df82b69fd89ee6b9aa317df18f9105d0f8904d56be8f
+size 10547
diff --git a/Assets/Materials/Substance/Metal/metal_weapon.sbsar.meta b/Assets/Materials/Substance/Metal/metal_weapon.sbsar.meta
new file mode 100644
index 000000000..05d1fcf4b
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_weapon.sbsar.meta
@@ -0,0 +1,373 @@
+fileFormatVersion: 2
+guid: 07f679eadba9fb14abac26b1e165f7d5
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_weapon/metal_weapon
+ - first:
+ 4: 400000
+ second: metal_weapon/metal_weapon/Transform
+ - first:
+ 21: 2100000
+ second: mat.Metal Weapon
+ - first:
+ 23: 2300000
+ second: metal_weapon/metal_weapon/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Metal Weapon_baseColor
+ - first:
+ 28: 2800002
+ second: Metal Weapon_normal
+ - first:
+ 28: 2800004
+ second: Metal Weapon_metallic
+ - first:
+ 28: 2800006
+ second: Metal Weapon_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Metal Weapon_height
+ - first:
+ 33: 3300000
+ second: metal_weapon/metal_weapon/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_weapon/metal_weapon/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_weapon
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Metal Weapon
+ prototypeName: Metal Weapon
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n \n \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: -6635831357954291190, guid: 07f679eadba9fb14abac26b1e165f7d5,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: -6402586014670071135, guid: 07f679eadba9fb14abac26b1e165f7d5,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: 854616604008364032, guid: 07f679eadba9fb14abac26b1e165f7d5,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: 4606406952830974004, guid: 07f679eadba9fb14abac26b1e165f7d5,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: -5822151887330517421, guid: 07f679eadba9fb14abac26b1e165f7d5,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Metal Weapon_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Weapon_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Weapon_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Weapon_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Weapon_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Weapon_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Weapon_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Weapon_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Weapon_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Weapon - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Weapon - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Weapon - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Weapon - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Weapon - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Weapon - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Weapon - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Weapon - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal Weapon - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 256
+ textureHeight: 256
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: -6659110875122461561, guid: 07f679eadba9fb14abac26b1e165f7d5,
+ type: 3}
+ generatedTextures:
+ - {fileID: -6402586014670071135, guid: 07f679eadba9fb14abac26b1e165f7d5, type: 3}
+ - {fileID: -6635831357954291190, guid: 07f679eadba9fb14abac26b1e165f7d5, type: 3}
+ - {fileID: 854616604008364032, guid: 07f679eadba9fb14abac26b1e165f7d5, type: 3}
+ - {fileID: 4606406952830974004, guid: 07f679eadba9fb14abac26b1e165f7d5, type: 3}
+ - {fileID: -5822151887330517421, guid: 07f679eadba9fb14abac26b1e165f7d5, type: 3}
diff --git a/Assets/Materials/Substance/Metal/metal_woven.sbsar b/Assets/Materials/Substance/Metal/metal_woven.sbsar
new file mode 100644
index 000000000..576f8c4a5
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_woven.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6c50e25516df1c3d2cb879d4e3e78491462296d92f05ac5774b6aa1290a777ee
+size 9445
diff --git a/Assets/Materials/Substance/Metal/metal_woven.sbsar.meta b/Assets/Materials/Substance/Metal/metal_woven.sbsar.meta
new file mode 100644
index 000000000..27d8bfafe
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/metal_woven.sbsar.meta
@@ -0,0 +1,369 @@
+fileFormatVersion: 2
+guid: deb7e15e5f95294498d18869d9f11302
+ScriptedImporter:
+ internalIDToNameTable:
+ - first:
+ 1: 100000
+ second: metal_woven/metal_woven
+ - first:
+ 4: 400000
+ second: metal_woven/metal_woven/Transform
+ - first:
+ 21: 2100000
+ second: mat.Metal woven
+ - first:
+ 23: 2300000
+ second: metal_woven/metal_woven/MeshRenderer
+ - first:
+ 28: 2800000
+ second: Metal woven_baseColor
+ - first:
+ 28: 2800002
+ second: Metal woven_normal
+ - first:
+ 28: 2800004
+ second: Metal woven_metallic
+ - first:
+ 28: 2800006
+ second: Metal woven_ambientOcclusion
+ - first:
+ 28: 2800008
+ second: Metal woven_height
+ - first:
+ 33: 3300000
+ second: metal_woven/metal_woven/MeshFilter
+ - first:
+ 114: 11400000
+ second: sbsar
+ - first:
+ 114: 11400002
+ second: graph0
+ - first:
+ 135: 13500000
+ second: metal_woven/metal_woven/SphereCollider
+ - first:
+ 1001: 100100000
+ second: metal_woven
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Metal woven
+ prototypeName: Metal woven
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: 549858149917880910, guid: deb7e15e5f95294498d18869d9f11302,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: -5021036940690714266, guid: deb7e15e5f95294498d18869d9f11302,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -4741193760961545063, guid: deb7e15e5f95294498d18869d9f11302,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: 4441773978818050154, guid: deb7e15e5f95294498d18869d9f11302,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: -8782013540898460330, guid: deb7e15e5f95294498d18869d9f11302,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Metal woven_glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal woven_diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal woven_baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal woven_normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal woven_specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal woven_roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal woven_metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal woven_ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal woven_height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal woven - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal woven - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal woven - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal woven - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal woven - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal woven - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal woven - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal woven - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Metal woven - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 256
+ textureHeight: 256
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: -1778075352807424672, guid: deb7e15e5f95294498d18869d9f11302,
+ type: 3}
+ generatedTextures:
+ - {fileID: -5021036940690714266, guid: deb7e15e5f95294498d18869d9f11302, type: 3}
+ - {fileID: 549858149917880910, guid: deb7e15e5f95294498d18869d9f11302, type: 3}
+ - {fileID: -4741193760961545063, guid: deb7e15e5f95294498d18869d9f11302, type: 3}
+ - {fileID: 4441773978818050154, guid: deb7e15e5f95294498d18869d9f11302, type: 3}
+ - {fileID: -8782013540898460330, guid: deb7e15e5f95294498d18869d9f11302, type: 3}
diff --git a/Assets/Materials/Substance/Metal/snatched_metal.sbsar b/Assets/Materials/Substance/Metal/snatched_metal.sbsar
new file mode 100644
index 000000000..35980ce5c
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/snatched_metal.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:556e67022b660530d0afc8296e37706b09e9ef08db46b5421edbd80f0c8993f2
+size 28573
diff --git a/Assets/Materials/Substance/Metal/snatched_metal.sbsar.meta b/Assets/Materials/Substance/Metal/snatched_metal.sbsar.meta
new file mode 100644
index 000000000..3da7ab6e7
--- /dev/null
+++ b/Assets/Materials/Substance/Metal/snatched_metal.sbsar.meta
@@ -0,0 +1,311 @@
+fileFormatVersion: 2
+guid: 9aa51bbe4dd46874a906608c34a739e4
+ScriptedImporter:
+ internalIDToNameTable: []
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Snatched Metal
+ prototypeName: Snatched Metal
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n
+ \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: 8651868829797956950, guid: 9aa51bbe4dd46874a906608c34a739e4,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: 3043754869544600785, guid: 9aa51bbe4dd46874a906608c34a739e4,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -8730703347107057792, guid: 9aa51bbe4dd46874a906608c34a739e4,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: 8639218750153593357, guid: 9aa51bbe4dd46874a906608c34a739e4,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: 8363912540366899318, guid: 9aa51bbe4dd46874a906608c34a739e4,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambientocclusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: opacity
+ identifier: opacity
+ usageName: opacity
+ channelStr: opacity
+ label: Opacity
+ usage: 2
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: opacity
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: opacity
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: opacity
+ components:
+ - sourceName: opacity
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Snatched Metal - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Snatched Metal - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Snatched Metal - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Snatched Metal - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Snatched Metal - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Snatched Metal - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Snatched Metal - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Snatched Metal - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Snatched Metal - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Snatched Metal - opacity
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 512
+ textureHeight: 512
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: -2363654054484809406, guid: 9aa51bbe4dd46874a906608c34a739e4,
+ type: 3}
+ generatedTextures:
+ - {fileID: 3043754869544600785, guid: 9aa51bbe4dd46874a906608c34a739e4, type: 3}
+ - {fileID: 8651868829797956950, guid: 9aa51bbe4dd46874a906608c34a739e4, type: 3}
+ - {fileID: -8730703347107057792, guid: 9aa51bbe4dd46874a906608c34a739e4, type: 3}
+ - {fileID: 8363912540366899318, guid: 9aa51bbe4dd46874a906608c34a739e4, type: 3}
+ - {fileID: 8639218750153593357, guid: 9aa51bbe4dd46874a906608c34a739e4, type: 3}
diff --git a/Assets/Materials/Substance/marble_002.sbsar b/Assets/Materials/Substance/marble_002.sbsar
new file mode 100644
index 000000000..728270967
--- /dev/null
+++ b/Assets/Materials/Substance/marble_002.sbsar
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:2859e24557bccbe309d8946052849b828cabd34b8e45b933faee212eeffd462e
+size 8113
diff --git a/Assets/Materials/Substance/marble_002.sbsar.meta b/Assets/Materials/Substance/marble_002.sbsar.meta
new file mode 100644
index 000000000..624e0d1a6
--- /dev/null
+++ b/Assets/Materials/Substance/marble_002.sbsar.meta
@@ -0,0 +1,296 @@
+fileFormatVersion: 2
+guid: ef9a54b8dacea9f44be70da43472f701
+ScriptedImporter:
+ internalIDToNameTable: []
+ externalObjects: {}
+ serializedVersion: 2
+ userData:
+ assetBundleName:
+ assetBundleVariant:
+ script: {fileID: 232528478, guid: 43a8bbf65be290d44ba52b94476242b9, type: 3}
+ version: 29
+ projectContext: 0
+ mGraphInstanceData:
+ - graphLabel: Marble 002
+ prototypeName: Marble 002
+ graphDescIndex: 0
+ generateAllOutputs: 0
+ generateMipMaps: 1
+ preset: " \n \n
+ \n \n \n \n"
+ shaderName: Standard
+ materialProperties:
+ shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ shaderKeywords:
+ lightmapFlags: 4
+ enableInstancingVariants: 0
+ doubleSidedGI: 0
+ customRenderQueue: -1
+ texEnvs:
+ - name: _BumpMap
+ texture: {fileID: 5777664804669422655, guid: ef9a54b8dacea9f44be70da43472f701,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailAlbedoMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailMask
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _DetailNormalMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _EmissionMap
+ texture: {instanceID: 0}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MainTex
+ texture: {fileID: -5564000130503291907, guid: ef9a54b8dacea9f44be70da43472f701,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _MetallicGlossMap
+ texture: {fileID: -3258750942226492355, guid: ef9a54b8dacea9f44be70da43472f701,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _OcclusionMap
+ texture: {fileID: 4985089394248351555, guid: ef9a54b8dacea9f44be70da43472f701,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ - name: _ParallaxMap
+ texture: {fileID: 7116303992264550, guid: ef9a54b8dacea9f44be70da43472f701,
+ type: 3}
+ scale: {x: 1, y: 1}
+ offset: {x: 0, y: 0}
+ floats:
+ - name: _BumpScale
+ float: 1
+ - name: _Cutoff
+ float: 0.5
+ - name: _DetailNormalMapScale
+ float: 1
+ - name: _DstBlend
+ float: 0
+ - name: _GlossMapScale
+ float: 1
+ - name: _Glossiness
+ float: 0.5
+ - name: _GlossyReflections
+ float: 1
+ - name: _Metallic
+ float: 0
+ - name: _Mode
+ float: 0
+ - name: _OcclusionStrength
+ float: 1
+ - name: _Parallax
+ float: 0.02
+ - name: _SmoothnessTextureChannel
+ float: 0
+ - name: _SpecularHighlights
+ float: 1
+ - name: _SrcBlend
+ float: 1
+ - name: _UVSec
+ float: 0
+ - name: _ZWrite
+ float: 1
+ colors:
+ - name: _Color
+ color: {r: 1, g: 1, b: 1, a: 1}
+ - name: _EmissionColor
+ color: {r: 0, g: 0, b: 0, a: 1}
+ outputDescList:
+ - outputName: diffuse
+ identifier: diffuse
+ usageName: diffuse
+ channelStr: diffuse
+ label: Diffuse
+ usage: 0
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: baseColor
+ identifier: basecolor
+ usageName: baseColor
+ channelStr: baseColor
+ label: Base Color
+ usage: 1
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: normal
+ identifier: normal
+ usageName: normal
+ channelStr: normal
+ label: Normal
+ usage: 7
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: specular
+ identifier: specular
+ usageName: specular
+ channelStr: specular
+ label: Specular
+ usage: 11
+ bImage: 1
+ bNumerical: 0
+ bLinear: 0
+ - outputName: glossiness
+ identifier: glossiness
+ usageName: glossiness
+ channelStr: glossiness
+ label: Glossiness
+ usage: 14
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: roughness
+ identifier: roughness
+ usageName: roughness
+ channelStr: roughness
+ label: Roughness
+ usage: 15
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: metallic
+ identifier: metallic
+ usageName: metallic
+ channelStr: metallic
+ label: Metallic
+ usage: 34
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: ambientOcclusion
+ identifier: ambient_occlusion
+ usageName: ambientOcclusion
+ channelStr: ambientOcclusion
+ label: Ambient Occlusion
+ usage: 5
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ - outputName: height
+ identifier: height
+ usageName: height
+ channelStr: height
+ label: Height
+ usage: 9
+ bImage: 1
+ bNumerical: 0
+ bLinear: 1
+ texturePackingList:
+ - targetName: diffuse
+ components:
+ - sourceName: diffuse
+ from: 0
+ to: 3
+ - targetName: baseColor
+ components:
+ - sourceName: baseColor
+ from: 0
+ to: 3
+ - targetName: normal
+ components:
+ - sourceName: normal
+ from: 0
+ to: 3
+ - targetName: specular
+ components:
+ - sourceName: specular
+ from: 0
+ to: 3
+ - targetName: glossiness
+ components:
+ - sourceName: glossiness
+ from: 0
+ to: 3
+ - targetName: roughness
+ components:
+ - sourceName: roughness
+ from: 0
+ to: 3
+ - targetName: metallic
+ components:
+ - sourceName: smoothness
+ from: 0
+ to: 3
+ - targetName: ambientOcclusion
+ components:
+ - sourceName: ambientOcclusion
+ from: 0
+ to: 3
+ - targetName: height
+ components:
+ - sourceName: height
+ from: 0
+ to: 3
+ textureParameters:
+ - textureName: Marble 002 - diffuse
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Marble 002 - baseColor
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Marble 002 - normal
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Marble 002 - specular
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Marble 002 - glossiness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Marble 002 - roughness
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Marble 002 - metallic
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Marble 002 - ambientOcclusion
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ - textureName: Marble 002 - height
+ wrapMode: 0
+ filterMode: 1
+ aniso: 1
+ colorSpaceList: []
+ inputTextureMap: []
+ targetSettingList:
+ - label: Default
+ bOverride: 0
+ bLockRatio: 1
+ textureWidth: 4096
+ textureHeight: 4096
+ textureFormatMode: 0
+ normalCompressed: 0
+ bGenerateOnLoad: 1
+ material: {fileID: -4681939019719023292, guid: ef9a54b8dacea9f44be70da43472f701,
+ type: 3}
+ generatedTextures:
+ - {fileID: -5564000130503291907, guid: ef9a54b8dacea9f44be70da43472f701, type: 3}
+ - {fileID: 5777664804669422655, guid: ef9a54b8dacea9f44be70da43472f701, type: 3}
+ - {fileID: -3258750942226492355, guid: ef9a54b8dacea9f44be70da43472f701, type: 3}
+ - {fileID: 4985089394248351555, guid: ef9a54b8dacea9f44be70da43472f701, type: 3}
+ - {fileID: 7116303992264550, guid: ef9a54b8dacea9f44be70da43472f701, type: 3}
diff --git a/Assets/Materials/Thrusters.mat b/Assets/Materials/Thrusters.mat
new file mode 100644
index 000000000..f9b21ae83
--- /dev/null
+++ b/Assets/Materials/Thrusters.mat
@@ -0,0 +1,87 @@
+%YAML 1.1
+%TAG !u! tag:unity3d.com,2011:
+--- !u!21 &2100000
+Material:
+ serializedVersion: 6
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_Name: Thrusters
+ m_Shader: {fileID: 4800000, guid: d69ef48273708ef4680762f5cdcfc860, type: 3}
+ m_ShaderKeywords:
+ m_LightmapFlags: 4
+ m_EnableInstancingVariants: 0
+ m_DoubleSidedGI: 0
+ m_CustomRenderQueue: -1
+ stringTagMap: {}
+ disabledShaderPasses: []
+ m_SavedProperties:
+ serializedVersion: 3
+ m_TexEnvs:
+ - _BumpMap:
+ m_Texture: {fileID: -812895718602229137, guid: b7e648471e9dfc44490bd41973711541,
+ type: 3}
+ m_Scale: {x: 8, y: 8}
+ m_Offset: {x: 0, y: 0}
+ - _DetailAlbedoMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _DetailMask:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _DetailNormalMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _EmissionMap:
+ m_Texture: {fileID: 0}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _MainTex:
+ m_Texture: {fileID: -6057190860509678031, guid: 2b42584452fe0cc4fa4e8a115230b156,
+ type: 3}
+ m_Scale: {x: 8, y: 8}
+ m_Offset: {x: 0, y: 0}
+ - _MetallicGlossMap:
+ m_Texture: {fileID: -894214952450941493, guid: 2b42584452fe0cc4fa4e8a115230b156,
+ 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}
+ m_Floats:
+ - _BumpPower: 2
+ - _BumpScale: 1
+ - _Cutoff: 0.5
+ - _DetailNormalMapScale: 1
+ - _DstBlend: 0
+ - _Emission: 0
+ - _EmissionFresnel: 1
+ - _EmissionRoughnessFresnelPower: 0.5
+ - _GlossMapScale: 1
+ - _Glossiness: 1
+ - _GlossyReflections: 1
+ - _Metallic: 0
+ - _Mode: 0
+ - _OcclusionStrength: 1
+ - _Parallax: 0.02
+ - _ReverseRim: 0
+ - _Rotation: 0
+ - _SmoothnessTextureChannel: 0
+ - _SpecularHighlights: 1
+ - _SrcBlend: 1
+ - _UVSec: 0
+ - _ZWrite: 1
+ m_Colors:
+ - _Color: {r: 1, g: 1, b: 1, a: 1}
+ - _EmissionColor: {r: 0.7112653, g: 0.4292453, b: 1, a: 1}
+ m_BuildTextureStacks: []
diff --git a/Assets/Materials/Thrusters.mat.meta b/Assets/Materials/Thrusters.mat.meta
new file mode 100644
index 000000000..5fd79a1be
--- /dev/null
+++ b/Assets/Materials/Thrusters.mat.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 616adaf59c64a444f8249cc7cf13c527
+NativeFormatImporter:
+ externalObjects: {}
+ mainObjectFileID: 0
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Assets/Materials/Pickup Trim.mat b/Assets/Models/Discobolus/Discobolus Bronze.mat
similarity index 64%
rename from Assets/Materials/Pickup Trim.mat
rename to Assets/Models/Discobolus/Discobolus Bronze.mat
index 0cea43f4f..30697d42a 100644
--- a/Assets/Materials/Pickup Trim.mat
+++ b/Assets/Models/Discobolus/Discobolus Bronze.mat
@@ -2,34 +2,25 @@
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
- serializedVersion: 8
+ serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
- m_Name: Pickup Trim
- m_Shader: {fileID: 4800000, guid: ddff0b48b92c991499817d2a0f5d5059, type: 3}
- m_Parent: {fileID: 0}
- m_ModifiedSerializedProperties: 0
- m_ValidKeywords: []
- m_InvalidKeywords:
- - _MAINTEX
- - _METALLICGLOSSMAP
- - _NORMALMAP
- - _OCCLUSIONMAP
- - _PARALLAXMAP
+ m_Name: Discobolus Bronze
+ m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ m_ShaderKeywords: _METALLICGLOSSMAP _NORMALMAP
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
- m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
- m_Texture: {fileID: 0}
+ m_Texture: {fileID: 2800000, guid: 9863db663524d9a4eab030a666b1f2da, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
@@ -46,41 +37,35 @@ Material:
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
- m_Scale: {x: 16, y: 16}
- m_Offset: {x: 0, y: 0}
- - _FadeTex:
- m_Texture: {fileID: 2800000, guid: df0632a08c5f1a1498fa325c755dc459, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
- m_Texture: {fileID: 0}
- m_Scale: {x: 16, y: 16}
+ m_Texture: {fileID: -1863473678134789185, guid: 9fc901afb8a434e46b9405eaec2df5a4,
+ type: 3}
+ m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
- m_Texture: {fileID: 0}
+ m_Texture: {fileID: 6214616473909614744, guid: 9fc901afb8a434e46b9405eaec2df5a4,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
- m_Texture: {fileID: 0}
+ m_Texture: {fileID: 2800000, guid: d60207b632e464d4b884dded41db5b9b, type: 3}
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}
- m_Ints: []
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- - _Fade: 1
- - _FadeEdge: 0.1
- - _FadeSharpness: 16
- _GlossMapScale: 1
- - _Glossiness: 0.7
+ - _Glossiness: 0.5
- _GlossyReflections: 1
- - _Metallic: 0.6
+ - _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.005
@@ -90,8 +75,6 @@ Material:
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- - _Color: {r: 0, g: 0.605881, b: 1, a: 1}
- - _EdgeColor: {r: 6.0235295, g: 6.0235295, b: 24.094118, a: 1}
+ - _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
m_BuildTextureStacks: []
- m_AllowLocking: 1
diff --git a/Assets/Materials/Pickup Trim.mat.meta b/Assets/Models/Discobolus/Discobolus Bronze.mat.meta
similarity index 79%
rename from Assets/Materials/Pickup Trim.mat.meta
rename to Assets/Models/Discobolus/Discobolus Bronze.mat.meta
index d57d829c2..4ca3a3b46 100644
--- a/Assets/Materials/Pickup Trim.mat.meta
+++ b/Assets/Models/Discobolus/Discobolus Bronze.mat.meta
@@ -1,5 +1,5 @@
fileFormatVersion: 2
-guid: bebc82079e5d4e578a73c3ab48d2c2da
+guid: 45f1ac126982c314a8471da3d264210b
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
diff --git a/Assets/Models/Discobolus/Discobolus Marble.mat b/Assets/Models/Discobolus/Discobolus Marble.mat
index f4331ed09..3c862a22c 100644
--- a/Assets/Models/Discobolus/Discobolus Marble.mat
+++ b/Assets/Models/Discobolus/Discobolus Marble.mat
@@ -40,11 +40,13 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
- m_Texture: {fileID: 0}
+ m_Texture: {fileID: -5564000130503291907, guid: ef9a54b8dacea9f44be70da43472f701,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
- m_Texture: {fileID: 0}
+ m_Texture: {fileID: -3258750942226492355, guid: ef9a54b8dacea9f44be70da43472f701,
+ type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
@@ -61,7 +63,7 @@ Material:
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- - _Glossiness: 0.45
+ - _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
@@ -73,6 +75,6 @@ Material:
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- - _Color: {r: 0.7, g: 0.654348, b: 0.525, a: 1}
+ - _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
m_BuildTextureStacks: []
diff --git a/Assets/Models/Zenith_Blender.fbx.meta b/Assets/Models/Zenith_Blender.fbx.meta
index 6f719ce83..2094752dc 100644
--- a/Assets/Models/Zenith_Blender.fbx.meta
+++ b/Assets/Models/Zenith_Blender.fbx.meta
@@ -8,7 +8,8 @@ ModelImporter:
type: UnityEngine:Material
assembly: UnityEngine.CoreModule
name: Black
- second: {fileID: 2100000, guid: b9f65861b71050b4a84fe0007bedbba9, type: 2}
+ second: {fileID: 3720744386649352057, guid: 1c858fec5b74c7c46b1712494192b6b5,
+ type: 3}
- first:
type: UnityEngine:Material
assembly: UnityEngine.CoreModule
@@ -18,7 +19,8 @@ ModelImporter:
type: UnityEngine:Material
assembly: UnityEngine.CoreModule
name: White
- second: {fileID: 2100000, guid: 39af4e3978df92f40a55e2a114aa242a, type: 2}
+ second: {fileID: -741235592913766832, guid: 885e680924fc12c439a842a2142d4b78,
+ type: 3}
materials:
materialImportMode: 1
materialName: 0
diff --git a/Assets/Plugins/GPU Noise/ClassicNoise2D.cginc b/Assets/Plugins/GPU Noise/ClassicNoise2D.cginc
new file mode 100644
index 000000000..ef6b2e96c
--- /dev/null
+++ b/Assets/Plugins/GPU Noise/ClassicNoise2D.cginc
@@ -0,0 +1,129 @@
+//
+// Noise Shader Library for Unity - https://github.com/keijiro/NoiseShader
+//
+// Original work (webgl-noise) Copyright (C) 2011 Stefan Gustavson
+// Translation and modification was made by Keijiro Takahashi.
+//
+// This shader is based on the webgl-noise GLSL shader. For further details
+// of the original shader, please see the following description from the
+// original source code.
+//
+
+//
+// GLSL textureless classic 2D noise "cnoise",
+// with an RSL-style periodic variant "pnoise".
+// Author: Stefan Gustavson (stefan.gustavson@liu.se)
+// Version: 2011-08-22
+//
+// Many thanks to Ian McEwan of Ashima Arts for the
+// ideas for permutation and gradient selection.
+//
+// Copyright (c) 2011 Stefan Gustavson. All rights reserved.
+// Distributed under the MIT license. See LICENSE file.
+// https://github.com/ashima/webgl-noise
+//
+
+float4 mod(float4 x, float4 y)
+{
+ return x - y * floor(x / y);
+}
+
+float4 mod289(float4 x)
+{
+ return x - floor(x / 289.0) * 289.0;
+}
+
+float4 permute(float4 x)
+{
+ return mod289(((x*34.0)+1.0)*x);
+}
+
+float4 taylorInvSqrt(float4 r)
+{
+ return (float4)1.79284291400159 - r * 0.85373472095314;
+}
+
+float2 fade(float2 t) {
+ return t*t*t*(t*(t*6.0-15.0)+10.0);
+}
+
+// Classic Perlin noise
+float cnoise(float2 P)
+{
+ float4 Pi = floor(P.xyxy) + float4(0.0, 0.0, 1.0, 1.0);
+ float4 Pf = frac (P.xyxy) - float4(0.0, 0.0, 1.0, 1.0);
+ Pi = mod289(Pi); // To avoid truncation effects in permutation
+ float4 ix = Pi.xzxz;
+ float4 iy = Pi.yyww;
+ float4 fx = Pf.xzxz;
+ float4 fy = Pf.yyww;
+
+ float4 i = permute(permute(ix) + iy);
+
+ float4 gx = frac(i / 41.0) * 2.0 - 1.0 ;
+ float4 gy = abs(gx) - 0.5 ;
+ float4 tx = floor(gx + 0.5);
+ gx = gx - tx;
+
+ float2 g00 = float2(gx.x,gy.x);
+ float2 g10 = float2(gx.y,gy.y);
+ float2 g01 = float2(gx.z,gy.z);
+ float2 g11 = float2(gx.w,gy.w);
+
+ float4 norm = taylorInvSqrt(float4(dot(g00, g00), dot(g01, g01), dot(g10, g10), dot(g11, g11)));
+ g00 *= norm.x;
+ g01 *= norm.y;
+ g10 *= norm.z;
+ g11 *= norm.w;
+
+ float n00 = dot(g00, float2(fx.x, fy.x));
+ float n10 = dot(g10, float2(fx.y, fy.y));
+ float n01 = dot(g01, float2(fx.z, fy.z));
+ float n11 = dot(g11, float2(fx.w, fy.w));
+
+ float2 fade_xy = fade(Pf.xy);
+ float2 n_x = lerp(float2(n00, n01), float2(n10, n11), fade_xy.x);
+ float n_xy = lerp(n_x.x, n_x.y, fade_xy.y);
+ return 2.3 * n_xy;
+}
+
+// Classic Perlin noise, periodic variant
+float pnoise(float2 P, float2 rep)
+{
+ float4 Pi = floor(P.xyxy) + float4(0.0, 0.0, 1.0, 1.0);
+ float4 Pf = frac (P.xyxy) - float4(0.0, 0.0, 1.0, 1.0);
+ Pi = mod(Pi, rep.xyxy); // To create noise with explicit period
+ Pi = mod289(Pi); // To avoid truncation effects in permutation
+ float4 ix = Pi.xzxz;
+ float4 iy = Pi.yyww;
+ float4 fx = Pf.xzxz;
+ float4 fy = Pf.yyww;
+
+ float4 i = permute(permute(ix) + iy);
+
+ float4 gx = frac(i / 41.0) * 2.0 - 1.0 ;
+ float4 gy = abs(gx) - 0.5 ;
+ float4 tx = floor(gx + 0.5);
+ gx = gx - tx;
+
+ float2 g00 = float2(gx.x,gy.x);
+ float2 g10 = float2(gx.y,gy.y);
+ float2 g01 = float2(gx.z,gy.z);
+ float2 g11 = float2(gx.w,gy.w);
+
+ float4 norm = taylorInvSqrt(float4(dot(g00, g00), dot(g01, g01), dot(g10, g10), dot(g11, g11)));
+ g00 *= norm.x;
+ g01 *= norm.y;
+ g10 *= norm.z;
+ g11 *= norm.w;
+
+ float n00 = dot(g00, float2(fx.x, fy.x));
+ float n10 = dot(g10, float2(fx.y, fy.y));
+ float n01 = dot(g01, float2(fx.z, fy.z));
+ float n11 = dot(g11, float2(fx.w, fy.w));
+
+ float2 fade_xy = fade(Pf.xy);
+ float2 n_x = lerp(float2(n00, n01), float2(n10, n11), fade_xy.x);
+ float n_xy = lerp(n_x.x, n_x.y, fade_xy.y);
+ return 2.3 * n_xy;
+}
diff --git a/Assets/Plugins/GPU Noise/ClassicNoise2D.cginc.meta b/Assets/Plugins/GPU Noise/ClassicNoise2D.cginc.meta
new file mode 100644
index 000000000..ff437e70a
--- /dev/null
+++ b/Assets/Plugins/GPU Noise/ClassicNoise2D.cginc.meta
@@ -0,0 +1,5 @@
+fileFormatVersion: 2
+guid: e1b0b5fd6a4e44923b40d856017562e1
+ShaderImporter:
+ defaultTextures: []
+ userData:
diff --git a/Assets/Plugins/GPU Noise/ClassicNoise3D.cginc b/Assets/Plugins/GPU Noise/ClassicNoise3D.cginc
new file mode 100644
index 000000000..738f6d12a
--- /dev/null
+++ b/Assets/Plugins/GPU Noise/ClassicNoise3D.cginc
@@ -0,0 +1,194 @@
+//
+// Noise Shader Library for Unity - https://github.com/keijiro/NoiseShader
+//
+// Original work (webgl-noise) Copyright (C) 2011 Stefan Gustavson
+// Translation and modification was made by Keijiro Takahashi.
+//
+// This shader is based on the webgl-noise GLSL shader. For further details
+// of the original shader, please see the following description from the
+// original source code.
+//
+
+//
+// GLSL textureless classic 3D noise "cnoise",
+// with an RSL-style periodic variant "pnoise".
+// Author: Stefan Gustavson (stefan.gustavson@liu.se)
+// Version: 2011-10-11
+//
+// Many thanks to Ian McEwan of Ashima Arts for the
+// ideas for permutation and gradient selection.
+//
+// Copyright (c) 2011 Stefan Gustavson. All rights reserved.
+// Distributed under the MIT license. See LICENSE file.
+// https://github.com/ashima/webgl-noise
+//
+
+float3 mod(float3 x, float3 y)
+{
+ return x - y * floor(x / y);
+}
+
+float3 mod289(float3 x)
+{
+ return x - floor(x / 289.0) * 289.0;
+}
+
+float4 mod289(float4 x)
+{
+ return x - floor(x / 289.0) * 289.0;
+}
+
+float4 permute(float4 x)
+{
+ return mod289(((x*34.0)+1.0)*x);
+}
+
+float4 taylorInvSqrt(float4 r)
+{
+ return (float4)1.79284291400159 - r * 0.85373472095314;
+}
+
+float3 fade(float3 t) {
+ return t*t*t*(t*(t*6.0-15.0)+10.0);
+}
+
+// Classic Perlin noise
+float cnoise(float3 P)
+{
+ float3 Pi0 = floor(P); // Integer part for indexing
+ float3 Pi1 = Pi0 + (float3)1.0; // Integer part + 1
+ Pi0 = mod289(Pi0);
+ Pi1 = mod289(Pi1);
+ float3 Pf0 = frac(P); // Fractional part for interpolation
+ float3 Pf1 = Pf0 - (float3)1.0; // Fractional part - 1.0
+ float4 ix = float4(Pi0.x, Pi1.x, Pi0.x, Pi1.x);
+ float4 iy = float4(Pi0.y, Pi0.y, Pi1.y, Pi1.y);
+ float4 iz0 = (float4)Pi0.z;
+ float4 iz1 = (float4)Pi1.z;
+
+ float4 ixy = permute(permute(ix) + iy);
+ float4 ixy0 = permute(ixy + iz0);
+ float4 ixy1 = permute(ixy + iz1);
+
+ float4 gx0 = ixy0 / 7.0;
+ float4 gy0 = frac(floor(gx0) / 7.0) - 0.5;
+ gx0 = frac(gx0);
+ float4 gz0 = (float4)0.5 - abs(gx0) - abs(gy0);
+ float4 sz0 = step(gz0, (float4)0.0);
+ gx0 -= sz0 * (step((float4)0.0, gx0) - 0.5);
+ gy0 -= sz0 * (step((float4)0.0, gy0) - 0.5);
+
+ float4 gx1 = ixy1 / 7.0;
+ float4 gy1 = frac(floor(gx1) / 7.0) - 0.5;
+ gx1 = frac(gx1);
+ float4 gz1 = (float4)0.5 - abs(gx1) - abs(gy1);
+ float4 sz1 = step(gz1, (float4)0.0);
+ gx1 -= sz1 * (step((float4)0.0, gx1) - 0.5);
+ gy1 -= sz1 * (step((float4)0.0, gy1) - 0.5);
+
+ float3 g000 = float3(gx0.x,gy0.x,gz0.x);
+ float3 g100 = float3(gx0.y,gy0.y,gz0.y);
+ float3 g010 = float3(gx0.z,gy0.z,gz0.z);
+ float3 g110 = float3(gx0.w,gy0.w,gz0.w);
+ float3 g001 = float3(gx1.x,gy1.x,gz1.x);
+ float3 g101 = float3(gx1.y,gy1.y,gz1.y);
+ float3 g011 = float3(gx1.z,gy1.z,gz1.z);
+ float3 g111 = float3(gx1.w,gy1.w,gz1.w);
+
+ float4 norm0 = taylorInvSqrt(float4(dot(g000, g000), dot(g010, g010), dot(g100, g100), dot(g110, g110)));
+ g000 *= norm0.x;
+ g010 *= norm0.y;
+ g100 *= norm0.z;
+ g110 *= norm0.w;
+
+ float4 norm1 = taylorInvSqrt(float4(dot(g001, g001), dot(g011, g011), dot(g101, g101), dot(g111, g111)));
+ g001 *= norm1.x;
+ g011 *= norm1.y;
+ g101 *= norm1.z;
+ g111 *= norm1.w;
+
+ float n000 = dot(g000, Pf0);
+ float n100 = dot(g100, float3(Pf1.x, Pf0.y, Pf0.z));
+ float n010 = dot(g010, float3(Pf0.x, Pf1.y, Pf0.z));
+ float n110 = dot(g110, float3(Pf1.x, Pf1.y, Pf0.z));
+ float n001 = dot(g001, float3(Pf0.x, Pf0.y, Pf1.z));
+ float n101 = dot(g101, float3(Pf1.x, Pf0.y, Pf1.z));
+ float n011 = dot(g011, float3(Pf0.x, Pf1.y, Pf1.z));
+ float n111 = dot(g111, Pf1);
+
+ float3 fade_xyz = fade(Pf0);
+ float4 n_z = lerp(float4(n000, n100, n010, n110), float4(n001, n101, n011, n111), fade_xyz.z);
+ float2 n_yz = lerp(n_z.xy, n_z.zw, fade_xyz.y);
+ float n_xyz = lerp(n_yz.x, n_yz.y, fade_xyz.x);
+ return 2.2 * n_xyz;
+}
+
+// Classic Perlin noise, periodic variant
+float pnoise(float3 P, float3 rep)
+{
+ float3 Pi0 = mod(floor(P), rep); // Integer part, modulo period
+ float3 Pi1 = mod(Pi0 + (float3)1.0, rep); // Integer part + 1, mod period
+ Pi0 = mod289(Pi0);
+ Pi1 = mod289(Pi1);
+ float3 Pf0 = frac(P); // Fractional part for interpolation
+ float3 Pf1 = Pf0 - (float3)1.0; // Fractional part - 1.0
+ float4 ix = float4(Pi0.x, Pi1.x, Pi0.x, Pi1.x);
+ float4 iy = float4(Pi0.y, Pi0.y, Pi1.y, Pi1.y);
+ float4 iz0 = (float4)Pi0.z;
+ float4 iz1 = (float4)Pi1.z;
+
+ float4 ixy = permute(permute(ix) + iy);
+ float4 ixy0 = permute(ixy + iz0);
+ float4 ixy1 = permute(ixy + iz1);
+
+ float4 gx0 = ixy0 / 7.0;
+ float4 gy0 = frac(floor(gx0) / 7.0) - 0.5;
+ gx0 = frac(gx0);
+ float4 gz0 = (float4)0.5 - abs(gx0) - abs(gy0);
+ float4 sz0 = step(gz0, (float4)0.0);
+ gx0 -= sz0 * (step((float4)0.0, gx0) - 0.5);
+ gy0 -= sz0 * (step((float4)0.0, gy0) - 0.5);
+
+ float4 gx1 = ixy1 / 7.0;
+ float4 gy1 = frac(floor(gx1) / 7.0) - 0.5;
+ gx1 = frac(gx1);
+ float4 gz1 = (float4)0.5 - abs(gx1) - abs(gy1);
+ float4 sz1 = step(gz1, (float4)0.0);
+ gx1 -= sz1 * (step((float4)0.0, gx1) - 0.5);
+ gy1 -= sz1 * (step((float4)0.0, gy1) - 0.5);
+
+ float3 g000 = float3(gx0.x,gy0.x,gz0.x);
+ float3 g100 = float3(gx0.y,gy0.y,gz0.y);
+ float3 g010 = float3(gx0.z,gy0.z,gz0.z);
+ float3 g110 = float3(gx0.w,gy0.w,gz0.w);
+ float3 g001 = float3(gx1.x,gy1.x,gz1.x);
+ float3 g101 = float3(gx1.y,gy1.y,gz1.y);
+ float3 g011 = float3(gx1.z,gy1.z,gz1.z);
+ float3 g111 = float3(gx1.w,gy1.w,gz1.w);
+
+ float4 norm0 = taylorInvSqrt(float4(dot(g000, g000), dot(g010, g010), dot(g100, g100), dot(g110, g110)));
+ g000 *= norm0.x;
+ g010 *= norm0.y;
+ g100 *= norm0.z;
+ g110 *= norm0.w;
+ float4 norm1 = taylorInvSqrt(float4(dot(g001, g001), dot(g011, g011), dot(g101, g101), dot(g111, g111)));
+ g001 *= norm1.x;
+ g011 *= norm1.y;
+ g101 *= norm1.z;
+ g111 *= norm1.w;
+
+ float n000 = dot(g000, Pf0);
+ float n100 = dot(g100, float3(Pf1.x, Pf0.y, Pf0.z));
+ float n010 = dot(g010, float3(Pf0.x, Pf1.y, Pf0.z));
+ float n110 = dot(g110, float3(Pf1.x, Pf1.y, Pf0.z));
+ float n001 = dot(g001, float3(Pf0.x, Pf0.y, Pf1.z));
+ float n101 = dot(g101, float3(Pf1.x, Pf0.y, Pf1.z));
+ float n011 = dot(g011, float3(Pf0.x, Pf1.y, Pf1.z));
+ float n111 = dot(g111, Pf1);
+
+ float3 fade_xyz = fade(Pf0);
+ float4 n_z = lerp(float4(n000, n100, n010, n110), float4(n001, n101, n011, n111), fade_xyz.z);
+ float2 n_yz = lerp(n_z.xy, n_z.zw, fade_xyz.y);
+ float n_xyz = lerp(n_yz.x, n_yz.y, fade_xyz.x);
+ return 2.2 * n_xyz;
+}
diff --git a/Assets/Plugins/GPU Noise/ClassicNoise3D.cginc.meta b/Assets/Plugins/GPU Noise/ClassicNoise3D.cginc.meta
new file mode 100644
index 000000000..b4dd551ab
--- /dev/null
+++ b/Assets/Plugins/GPU Noise/ClassicNoise3D.cginc.meta
@@ -0,0 +1,5 @@
+fileFormatVersion: 2
+guid: 3ba1abd1cb44c47b68fbb577c6c4ba3e
+ShaderImporter:
+ defaultTextures: []
+ userData:
diff --git a/Assets/Plugins/GPU Noise/SimplexNoise3D.cginc b/Assets/Plugins/GPU Noise/SimplexNoise3D.cginc
new file mode 100644
index 000000000..0b7add240
--- /dev/null
+++ b/Assets/Plugins/GPU Noise/SimplexNoise3D.cginc
@@ -0,0 +1,114 @@
+//
+// Noise Shader Library for Unity - https://github.com/keijiro/NoiseShader
+//
+// Original work (webgl-noise) Copyright (C) 2011 Ashima Arts.
+// Translation and modification was made by Keijiro Takahashi.
+//
+// This shader is based on the webgl-noise GLSL shader. For further details
+// of the original shader, please see the following description from the
+// original source code.
+//
+
+//
+// Description : Array and textureless GLSL 2D/3D/4D simplex
+// noise functions.
+// Author : Ian McEwan, Ashima Arts.
+// Maintainer : ijm
+// Lastmod : 20110822 (ijm)
+// License : Copyright (C) 2011 Ashima Arts. All rights reserved.
+// Distributed under the MIT License. See LICENSE file.
+// https://github.com/ashima/webgl-noise
+//
+
+float3 mod289(float3 x)
+{
+ return x - floor(x / 289.0) * 289.0;
+}
+
+float4 mod289(float4 x)
+{
+ return x - floor(x / 289.0) * 289.0;
+}
+
+float4 permute(float4 x)
+{
+ return mod289((x * 34.0 + 1.0) * x);
+}
+
+float4 taylorInvSqrt(float4 r)
+{
+ return 1.79284291400159 - r * 0.85373472095314;
+}
+
+float snoise(float3 v)
+{
+ const float2 C = float2(1.0 / 6.0, 1.0 / 3.0);
+
+ // First corner
+ float3 i = floor(v + dot(v, C.yyy));
+ float3 x0 = v - i + dot(i, C.xxx);
+
+ // Other corners
+ float3 g = step(x0.yzx, x0.xyz);
+ float3 l = 1.0 - g;
+ float3 i1 = min(g.xyz, l.zxy);
+ float3 i2 = max(g.xyz, l.zxy);
+
+ // x1 = x0 - i1 + 1.0 * C.xxx;
+ // x2 = x0 - i2 + 2.0 * C.xxx;
+ // x3 = x0 - 1.0 + 3.0 * C.xxx;
+ float3 x1 = x0 - i1 + C.xxx;
+ float3 x2 = x0 - i2 + C.yyy;
+ float3 x3 = x0 - 0.5;
+
+ // Permutations
+ i = mod289(i); // Avoid truncation effects in permutation
+ float4 p =
+ permute(permute(permute(i.z + float4(0.0, i1.z, i2.z, 1.0))
+ + i.y + float4(0.0, i1.y, i2.y, 1.0))
+ + i.x + float4(0.0, i1.x, i2.x, 1.0));
+
+ // Gradients: 7x7 points over a square, mapped onto an octahedron.
+ // The ring size 17*17 = 289 is close to a multiple of 49 (49*6 = 294)
+ float4 j = p - 49.0 * floor(p / 49.0); // mod(p,7*7)
+
+ float4 x_ = floor(j / 7.0);
+ float4 y_ = floor(j - 7.0 * x_); // mod(j,N)
+
+ float4 x = (x_ * 2.0 + 0.5) / 7.0 - 1.0;
+ float4 y = (y_ * 2.0 + 0.5) / 7.0 - 1.0;
+
+ float4 h = 1.0 - abs(x) - abs(y);
+
+ float4 b0 = float4(x.xy, y.xy);
+ float4 b1 = float4(x.zw, y.zw);
+
+ //float4 s0 = float4(lessThan(b0, 0.0)) * 2.0 - 1.0;
+ //float4 s1 = float4(lessThan(b1, 0.0)) * 2.0 - 1.0;
+ float4 s0 = floor(b0) * 2.0 + 1.0;
+ float4 s1 = floor(b1) * 2.0 + 1.0;
+ float4 sh = -step(h, 0.0);
+
+ float4 a0 = b0.xzyw + s0.xzyw * sh.xxyy;
+ float4 a1 = b1.xzyw + s1.xzyw * sh.zzww;
+
+ float3 g0 = float3(a0.xy, h.x);
+ float3 g1 = float3(a0.zw, h.y);
+ float3 g2 = float3(a1.xy, h.z);
+ float3 g3 = float3(a1.zw, h.w);
+
+ // Normalise gradients
+ float4 norm = taylorInvSqrt(float4(dot(g0, g0), dot(g1, g1), dot(g2, g2), dot(g3, g3)));
+ g0 *= norm.x;
+ g1 *= norm.y;
+ g2 *= norm.z;
+ g3 *= norm.w;
+
+ // Mix final noise value
+ float4 m = max(0.6 - float4(dot(x0, x0), dot(x1, x1), dot(x2, x2), dot(x3, x3)), 0.0);
+ m = m * m;
+ m = m * m;
+
+ float4 px = float4(dot(x0, g0), dot(x1, g1), dot(x2, g2), dot(x3, g3));
+ return 42.0 * dot(m, px);
+}
diff --git a/Assets/Shaders/Resources/TacticalFade.shader.meta b/Assets/Plugins/GPU Noise/SimplexNoise3D.cginc.meta
similarity index 50%
rename from Assets/Shaders/Resources/TacticalFade.shader.meta
rename to Assets/Plugins/GPU Noise/SimplexNoise3D.cginc.meta
index c67b3aad5..612bd9ef0 100644
--- a/Assets/Shaders/Resources/TacticalFade.shader.meta
+++ b/Assets/Plugins/GPU Noise/SimplexNoise3D.cginc.meta
@@ -1,10 +1,9 @@
fileFormatVersion: 2
-guid: 20fc266aaa8644d392ec11bfaf7fc4f3
+guid: b577a94f58a1398409bfcfe9cd5dbf99
+timeCreated: 1448788105
+licenseType: Pro
ShaderImporter:
- externalObjects: {}
defaultTextures: []
- nonModifiableTextures: []
- preprocessorOverride: 0
userData:
assetBundleName:
assetBundleVariant:
diff --git a/Assets/Plugins/GPU Noise/SimplexNoiseGrad3D.cginc b/Assets/Plugins/GPU Noise/SimplexNoiseGrad3D.cginc
new file mode 100644
index 000000000..4cfef835a
--- /dev/null
+++ b/Assets/Plugins/GPU Noise/SimplexNoiseGrad3D.cginc
@@ -0,0 +1,118 @@
+//
+// Noise Shader Library for Unity - https://github.com/keijiro/NoiseShader
+//
+// Original work (webgl-noise) Copyright (C) 2011 Ashima Arts.
+// Translation and modification was made by Keijiro Takahashi.
+//
+// This shader is based on the webgl-noise GLSL shader. For further details
+// of the original shader, please see the following description from the
+// original source code.
+//
+
+//
+// Description : Array and textureless GLSL 2D/3D/4D simplex
+// noise functions.
+// Author : Ian McEwan, Ashima Arts.
+// Maintainer : ijm
+// Lastmod : 20110822 (ijm)
+// License : Copyright (C) 2011 Ashima Arts. All rights reserved.
+// Distributed under the MIT License. See LICENSE file.
+// https://github.com/ashima/webgl-noise
+//
+
+float3 mod289(float3 x)
+{
+ return x - floor(x / 289.0) * 289.0;
+}
+
+float4 mod289(float4 x)
+{
+ return x - floor(x / 289.0) * 289.0;
+}
+
+float4 permute(float4 x)
+{
+ return mod289((x * 34.0 + 1.0) * x);
+}
+
+float4 taylorInvSqrt(float4 r)
+{
+ return 1.79284291400159 - r * 0.85373472095314;
+}
+
+float3 snoise_grad(float3 v)
+{
+ const float2 C = float2(1.0 / 6.0, 1.0 / 3.0);
+
+ // First corner
+ float3 i = floor(v + dot(v, C.yyy));
+ float3 x0 = v - i + dot(i, C.xxx);
+
+ // Other corners
+ float3 g = step(x0.yzx, x0.xyz);
+ float3 l = 1.0 - g;
+ float3 i1 = min(g.xyz, l.zxy);
+ float3 i2 = max(g.xyz, l.zxy);
+
+ // x1 = x0 - i1 + 1.0 * C.xxx;
+ // x2 = x0 - i2 + 2.0 * C.xxx;
+ // x3 = x0 - 1.0 + 3.0 * C.xxx;
+ float3 x1 = x0 - i1 + C.xxx;
+ float3 x2 = x0 - i2 + C.yyy;
+ float3 x3 = x0 - 0.5;
+
+ // Permutations
+ i = mod289(i); // Avoid truncation effects in permutation
+ float4 p =
+ permute(permute(permute(i.z + float4(0.0, i1.z, i2.z, 1.0))
+ + i.y + float4(0.0, i1.y, i2.y, 1.0))
+ + i.x + float4(0.0, i1.x, i2.x, 1.0));
+
+ // Gradients: 7x7 points over a square, mapped onto an octahedron.
+ // The ring size 17*17 = 289 is close to a multiple of 49 (49*6 = 294)
+ float4 j = p - 49.0 * floor(p / 49.0); // mod(p,7*7)
+
+ float4 x_ = floor(j / 7.0);
+ float4 y_ = floor(j - 7.0 * x_); // mod(j,N)
+
+ float4 x = (x_ * 2.0 + 0.5) / 7.0 - 1.0;
+ float4 y = (y_ * 2.0 + 0.5) / 7.0 - 1.0;
+
+ float4 h = 1.0 - abs(x) - abs(y);
+
+ float4 b0 = float4(x.xy, y.xy);
+ float4 b1 = float4(x.zw, y.zw);
+
+ //float4 s0 = float4(lessThan(b0, 0.0)) * 2.0 - 1.0;
+ //float4 s1 = float4(lessThan(b1, 0.0)) * 2.0 - 1.0;
+ float4 s0 = floor(b0) * 2.0 + 1.0;
+ float4 s1 = floor(b1) * 2.0 + 1.0;
+ float4 sh = -step(h, 0.0);
+
+ float4 a0 = b0.xzyw + s0.xzyw * sh.xxyy;
+ float4 a1 = b1.xzyw + s1.xzyw * sh.zzww;
+
+ float3 g0 = float3(a0.xy, h.x);
+ float3 g1 = float3(a0.zw, h.y);
+ float3 g2 = float3(a1.xy, h.z);
+ float3 g3 = float3(a1.zw, h.w);
+
+ // Normalise gradients
+ float4 norm = taylorInvSqrt(float4(dot(g0, g0), dot(g1, g1), dot(g2, g2), dot(g3, g3)));
+ g0 *= norm.x;
+ g1 *= norm.y;
+ g2 *= norm.z;
+ g3 *= norm.w;
+
+ // Compute gradient of noise function at P
+ float4 m = max(0.6 - float4(dot(x0, x0), dot(x1, x1), dot(x2, x2), dot(x3, x3)), 0.0);
+ float4 m2 = m * m;
+ float4 m3 = m2 * m;
+ float4 m4 = m2 * m2;
+ float3 grad =
+ -6.0 * m3.x * x0 * dot(x0, g0) + m4.x * g0 +
+ -6.0 * m3.y * x1 * dot(x1, g1) + m4.y * g1 +
+ -6.0 * m3.z * x2 * dot(x2, g2) + m4.z * g2 +
+ -6.0 * m3.w * x3 * dot(x3, g3) + m4.w * g3;
+ return 42.0 * grad;
+}
diff --git a/Assets/Shaders/Resources/WormholeWarp.shader.meta b/Assets/Plugins/GPU Noise/SimplexNoiseGrad3D.cginc.meta
similarity index 50%
rename from Assets/Shaders/Resources/WormholeWarp.shader.meta
rename to Assets/Plugins/GPU Noise/SimplexNoiseGrad3D.cginc.meta
index 0b7ffe143..250b646fa 100644
--- a/Assets/Shaders/Resources/WormholeWarp.shader.meta
+++ b/Assets/Plugins/GPU Noise/SimplexNoiseGrad3D.cginc.meta
@@ -1,10 +1,9 @@
fileFormatVersion: 2
-guid: 04f163edfb284c52903ef7796af0df2b
+guid: a7111eafc2463224faacf7be3bddb9a4
+timeCreated: 1449292284
+licenseType: Pro
ShaderImporter:
- externalObjects: {}
defaultTextures: []
- nonModifiableTextures: []
- preprocessorOverride: 0
userData:
assetBundleName:
assetBundleVariant:
diff --git a/Assets/Prefabs/RPG/Pickups/Dodecahedron.prefab b/Assets/Prefabs/RPG/Pickups/Dodecahedron.prefab
index 7be70840f..7a65a0864 100644
--- a/Assets/Prefabs/RPG/Pickups/Dodecahedron.prefab
+++ b/Assets/Prefabs/RPG/Pickups/Dodecahedron.prefab
@@ -103,8 +103,8 @@ MeshRenderer:
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- - {fileID: 2100000, guid: bebc82079e5d4e578a73c3ab48d2c2da, type: 2}
- - {fileID: 2100000, guid: b9f65861b71050b4a84fe0007bedbba9, type: 2}
+ - {fileID: 3720744386649352057, guid: c00b5a4f1e4743a4ca59b8030251f900, type: 3}
+ - {fileID: 3720744386649352057, guid: 26a894e543f3ed44893b1620707ca62c, type: 3}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
diff --git a/Assets/Prefabs/RPG/Pickups/Hexahedron.prefab b/Assets/Prefabs/RPG/Pickups/Hexahedron.prefab
index 4a8609c7c..f9a477cda 100644
--- a/Assets/Prefabs/RPG/Pickups/Hexahedron.prefab
+++ b/Assets/Prefabs/RPG/Pickups/Hexahedron.prefab
@@ -103,8 +103,8 @@ MeshRenderer:
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- - {fileID: 2100000, guid: bebc82079e5d4e578a73c3ab48d2c2da, type: 2}
- - {fileID: 2100000, guid: b9f65861b71050b4a84fe0007bedbba9, type: 2}
+ - {fileID: 3720744386649352057, guid: c00b5a4f1e4743a4ca59b8030251f900, type: 3}
+ - {fileID: 3720744386649352057, guid: 26a894e543f3ed44893b1620707ca62c, type: 3}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
diff --git a/Assets/Prefabs/RPG/Pickups/Icosahedron.prefab b/Assets/Prefabs/RPG/Pickups/Icosahedron.prefab
index b80967c41..4252e74cc 100644
--- a/Assets/Prefabs/RPG/Pickups/Icosahedron.prefab
+++ b/Assets/Prefabs/RPG/Pickups/Icosahedron.prefab
@@ -103,8 +103,8 @@ MeshRenderer:
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- - {fileID: 2100000, guid: bebc82079e5d4e578a73c3ab48d2c2da, type: 2}
- - {fileID: 2100000, guid: b9f65861b71050b4a84fe0007bedbba9, type: 2}
+ - {fileID: 3720744386649352057, guid: c00b5a4f1e4743a4ca59b8030251f900, type: 3}
+ - {fileID: 3720744386649352057, guid: 26a894e543f3ed44893b1620707ca62c, type: 3}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
diff --git a/Assets/Prefabs/RPG/Pickups/Octahedron.prefab b/Assets/Prefabs/RPG/Pickups/Octahedron.prefab
index 9cabd7b79..099083195 100644
--- a/Assets/Prefabs/RPG/Pickups/Octahedron.prefab
+++ b/Assets/Prefabs/RPG/Pickups/Octahedron.prefab
@@ -103,8 +103,8 @@ MeshRenderer:
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- - {fileID: 2100000, guid: bebc82079e5d4e578a73c3ab48d2c2da, type: 2}
- - {fileID: 2100000, guid: b9f65861b71050b4a84fe0007bedbba9, type: 2}
+ - {fileID: 3720744386649352057, guid: c00b5a4f1e4743a4ca59b8030251f900, type: 3}
+ - {fileID: 3720744386649352057, guid: 26a894e543f3ed44893b1620707ca62c, type: 3}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
diff --git a/Assets/Prefabs/RPG/Pickups/Tetrahedron.prefab b/Assets/Prefabs/RPG/Pickups/Tetrahedron.prefab
index 20f8073a7..6dad19967 100644
--- a/Assets/Prefabs/RPG/Pickups/Tetrahedron.prefab
+++ b/Assets/Prefabs/RPG/Pickups/Tetrahedron.prefab
@@ -103,8 +103,8 @@ MeshRenderer:
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- - {fileID: 2100000, guid: bebc82079e5d4e578a73c3ab48d2c2da, type: 2}
- - {fileID: 2100000, guid: b9f65861b71050b4a84fe0007bedbba9, type: 2}
+ - {fileID: 3720744386649352057, guid: c00b5a4f1e4743a4ca59b8030251f900, type: 3}
+ - {fileID: 3720744386649352057, guid: 26a894e543f3ed44893b1620707ca62c, type: 3}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
diff --git a/Assets/Prefabs/RPG/Wormhole 1.prefab b/Assets/Prefabs/RPG/Wormhole 1.prefab
index 24737191b..e1ca93be7 100644
--- a/Assets/Prefabs/RPG/Wormhole 1.prefab
+++ b/Assets/Prefabs/RPG/Wormhole 1.prefab
@@ -28,7 +28,6 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 8249320701965103923}
- - {fileID: 7100000000000000014}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@@ -113,443 +112,3 @@ MeshRenderer:
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
---- !u!1 &7100000000000000007
-GameObject:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- serializedVersion: 6
- m_Component:
- - component: {fileID: 7100000000000000014}
- m_Layer: 0
- m_Name: Anchor Beacon
- m_TagString: Untagged
- m_Icon: {fileID: 0}
- m_NavMeshLayer: 0
- m_StaticEditorFlags: 0
- m_IsActive: 1
---- !u!4 &7100000000000000014
-Transform:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- m_GameObject: {fileID: 7100000000000000007}
- m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
- m_LocalPosition: {x: 0, y: -15, z: 110}
- m_LocalScale: {x: 1, y: 1, z: 1}
- m_Children:
- - {fileID: 7100000000000000028}
- - {fileID: 7100000000000000056}
- - {fileID: 7100000000000000084}
- - {fileID: 7100000000000000112}
- - {fileID: 7100000000000000140}
- m_Father: {fileID: 463084220523011477}
- m_RootOrder: 1
- m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
---- !u!1 &7100000000000000021
-GameObject:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- serializedVersion: 6
- m_Component:
- - component: {fileID: 7100000000000000028}
- - component: {fileID: 7100000000000000035}
- - component: {fileID: 7100000000000000042}
- m_Layer: 0
- m_Name: Base
- m_TagString: Untagged
- m_Icon: {fileID: 0}
- m_NavMeshLayer: 0
- m_StaticEditorFlags: 0
- m_IsActive: 1
---- !u!4 &7100000000000000028
-Transform:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- m_GameObject: {fileID: 7100000000000000021}
- m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
- m_LocalPosition: {x: 0, y: -4, z: 0}
- m_LocalScale: {x: 36, y: 1.5, z: 36}
- m_Children: []
- m_Father: {fileID: 7100000000000000014}
- m_RootOrder: 0
- m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
---- !u!33 &7100000000000000035
-MeshFilter:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- m_GameObject: {fileID: 7100000000000000021}
- m_Mesh: {fileID: 10206, guid: 0000000000000000e000000000000000, type: 0}
---- !u!23 &7100000000000000042
-MeshRenderer:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- m_GameObject: {fileID: 7100000000000000021}
- m_Enabled: 1
- m_CastShadows: 1
- m_ReceiveShadows: 1
- m_DynamicOccludee: 1
- m_MotionVectors: 1
- m_LightProbeUsage: 1
- m_ReflectionProbeUsage: 1
- m_RayTracingMode: 2
- m_RayTraceProcedural: 0
- m_RenderingLayerMask: 1
- m_RendererPriority: 0
- m_Materials:
- - {fileID: 2100000, guid: eef716efbd7734f41b4e6b18da069007, type: 2}
- m_StaticBatchInfo:
- firstSubMesh: 0
- subMeshCount: 0
- m_StaticBatchRoot: {fileID: 0}
- m_ProbeAnchor: {fileID: 0}
- m_LightProbeVolumeOverride: {fileID: 0}
- m_ScaleInLightmap: 1
- m_ReceiveGI: 1
- m_PreserveUVs: 0
- m_IgnoreNormalsForChartDetection: 0
- m_ImportantGI: 0
- m_StitchLightmapSeams: 1
- m_SelectedEditorRenderState: 3
- m_MinimumChartSize: 4
- m_AutoUVMaxDistance: 0.5
- m_AutoUVMaxAngle: 89
- m_LightmapParameters: {fileID: 0}
- m_SortingLayerID: 0
- m_SortingLayer: 0
- m_SortingOrder: 0
- m_AdditionalVertexStreams: {fileID: 0}
---- !u!1 &7100000000000000049
-GameObject:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- serializedVersion: 6
- m_Component:
- - component: {fileID: 7100000000000000056}
- - component: {fileID: 7100000000000000063}
- - component: {fileID: 7100000000000000070}
- m_Layer: 0
- m_Name: Spire
- m_TagString: Untagged
- m_Icon: {fileID: 0}
- m_NavMeshLayer: 0
- m_StaticEditorFlags: 0
- m_IsActive: 1
---- !u!4 &7100000000000000056
-Transform:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- m_GameObject: {fileID: 7100000000000000049}
- m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
- m_LocalPosition: {x: 0, y: 3, z: 0}
- m_LocalScale: {x: 5, y: 5, z: 5}
- m_Children: []
- m_Father: {fileID: 7100000000000000014}
- m_RootOrder: 1
- m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
---- !u!33 &7100000000000000063
-MeshFilter:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- m_GameObject: {fileID: 7100000000000000049}
- m_Mesh: {fileID: 10206, guid: 0000000000000000e000000000000000, type: 0}
---- !u!23 &7100000000000000070
-MeshRenderer:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- m_GameObject: {fileID: 7100000000000000049}
- m_Enabled: 1
- m_CastShadows: 1
- m_ReceiveShadows: 1
- m_DynamicOccludee: 1
- m_MotionVectors: 1
- m_LightProbeUsage: 1
- m_ReflectionProbeUsage: 1
- m_RayTracingMode: 2
- m_RayTraceProcedural: 0
- m_RenderingLayerMask: 1
- m_RendererPriority: 0
- m_Materials:
- - {fileID: 2100000, guid: eef716efbd7734f41b4e6b18da069007, type: 2}
- m_StaticBatchInfo:
- firstSubMesh: 0
- subMeshCount: 0
- m_StaticBatchRoot: {fileID: 0}
- m_ProbeAnchor: {fileID: 0}
- m_LightProbeVolumeOverride: {fileID: 0}
- m_ScaleInLightmap: 1
- m_ReceiveGI: 1
- m_PreserveUVs: 0
- m_IgnoreNormalsForChartDetection: 0
- m_ImportantGI: 0
- m_StitchLightmapSeams: 1
- m_SelectedEditorRenderState: 3
- m_MinimumChartSize: 4
- m_AutoUVMaxDistance: 0.5
- m_AutoUVMaxAngle: 89
- m_LightmapParameters: {fileID: 0}
- m_SortingLayerID: 0
- m_SortingLayer: 0
- m_SortingOrder: 0
- m_AdditionalVertexStreams: {fileID: 0}
---- !u!1 &7100000000000000077
-GameObject:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- serializedVersion: 6
- m_Component:
- - component: {fileID: 7100000000000000084}
- - component: {fileID: 7100000000000000091}
- - component: {fileID: 7100000000000000098}
- m_Layer: 0
- m_Name: Crown
- m_TagString: Untagged
- m_Icon: {fileID: 0}
- m_NavMeshLayer: 0
- m_StaticEditorFlags: 0
- m_IsActive: 1
---- !u!4 &7100000000000000084
-Transform:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- m_GameObject: {fileID: 7100000000000000077}
- m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
- m_LocalPosition: {x: 0, y: 8, z: 0}
- m_LocalScale: {x: 10, y: 10, z: 10}
- m_Children: []
- m_Father: {fileID: 7100000000000000014}
- m_RootOrder: 2
- m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
---- !u!33 &7100000000000000091
-MeshFilter:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- m_GameObject: {fileID: 7100000000000000077}
- m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
---- !u!23 &7100000000000000098
-MeshRenderer:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- m_GameObject: {fileID: 7100000000000000077}
- m_Enabled: 1
- m_CastShadows: 1
- m_ReceiveShadows: 1
- m_DynamicOccludee: 1
- m_MotionVectors: 1
- m_LightProbeUsage: 1
- m_ReflectionProbeUsage: 1
- m_RayTracingMode: 2
- m_RayTraceProcedural: 0
- m_RenderingLayerMask: 1
- m_RendererPriority: 0
- m_Materials:
- - {fileID: 2100000, guid: eef716efbd7734f41b4e6b18da069007, type: 2}
- m_StaticBatchInfo:
- firstSubMesh: 0
- subMeshCount: 0
- m_StaticBatchRoot: {fileID: 0}
- m_ProbeAnchor: {fileID: 0}
- m_LightProbeVolumeOverride: {fileID: 0}
- m_ScaleInLightmap: 1
- m_ReceiveGI: 1
- m_PreserveUVs: 0
- m_IgnoreNormalsForChartDetection: 0
- m_ImportantGI: 0
- m_StitchLightmapSeams: 1
- m_SelectedEditorRenderState: 3
- m_MinimumChartSize: 4
- m_AutoUVMaxDistance: 0.5
- m_AutoUVMaxAngle: 89
- m_LightmapParameters: {fileID: 0}
- m_SortingLayerID: 0
- m_SortingLayer: 0
- m_SortingOrder: 0
- m_AdditionalVertexStreams: {fileID: 0}
---- !u!1 &7100000000000000105
-GameObject:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- serializedVersion: 6
- m_Component:
- - component: {fileID: 7100000000000000112}
- - component: {fileID: 7100000000000000119}
- - component: {fileID: 7100000000000000126}
- m_Layer: 0
- m_Name: Arm X
- m_TagString: Untagged
- m_Icon: {fileID: 0}
- m_NavMeshLayer: 0
- m_StaticEditorFlags: 0
- m_IsActive: 1
---- !u!4 &7100000000000000112
-Transform:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- m_GameObject: {fileID: 7100000000000000105}
- m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
- m_LocalPosition: {x: 0, y: 4, z: 0}
- m_LocalScale: {x: 34, y: 1, z: 3}
- m_Children: []
- m_Father: {fileID: 7100000000000000014}
- m_RootOrder: 3
- m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
---- !u!33 &7100000000000000119
-MeshFilter:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- m_GameObject: {fileID: 7100000000000000105}
- m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
---- !u!23 &7100000000000000126
-MeshRenderer:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- m_GameObject: {fileID: 7100000000000000105}
- m_Enabled: 1
- m_CastShadows: 1
- m_ReceiveShadows: 1
- m_DynamicOccludee: 1
- m_MotionVectors: 1
- m_LightProbeUsage: 1
- m_ReflectionProbeUsage: 1
- m_RayTracingMode: 2
- m_RayTraceProcedural: 0
- m_RenderingLayerMask: 1
- m_RendererPriority: 0
- m_Materials:
- - {fileID: 2100000, guid: eef716efbd7734f41b4e6b18da069007, type: 2}
- m_StaticBatchInfo:
- firstSubMesh: 0
- subMeshCount: 0
- m_StaticBatchRoot: {fileID: 0}
- m_ProbeAnchor: {fileID: 0}
- m_LightProbeVolumeOverride: {fileID: 0}
- m_ScaleInLightmap: 1
- m_ReceiveGI: 1
- m_PreserveUVs: 0
- m_IgnoreNormalsForChartDetection: 0
- m_ImportantGI: 0
- m_StitchLightmapSeams: 1
- m_SelectedEditorRenderState: 3
- m_MinimumChartSize: 4
- m_AutoUVMaxDistance: 0.5
- m_AutoUVMaxAngle: 89
- m_LightmapParameters: {fileID: 0}
- m_SortingLayerID: 0
- m_SortingLayer: 0
- m_SortingOrder: 0
- m_AdditionalVertexStreams: {fileID: 0}
---- !u!1 &7100000000000000133
-GameObject:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- serializedVersion: 6
- m_Component:
- - component: {fileID: 7100000000000000140}
- - component: {fileID: 7100000000000000147}
- - component: {fileID: 7100000000000000154}
- m_Layer: 0
- m_Name: Arm Z
- m_TagString: Untagged
- m_Icon: {fileID: 0}
- m_NavMeshLayer: 0
- m_StaticEditorFlags: 0
- m_IsActive: 1
---- !u!4 &7100000000000000140
-Transform:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- m_GameObject: {fileID: 7100000000000000133}
- m_LocalRotation: {x: 0, y: 0.7071068, z: 0, w: 0.7071068}
- m_LocalPosition: {x: 0, y: 4, z: 0}
- m_LocalScale: {x: 34, y: 1, z: 3}
- m_Children: []
- m_Father: {fileID: 7100000000000000014}
- m_RootOrder: 4
- m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
---- !u!33 &7100000000000000147
-MeshFilter:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- m_GameObject: {fileID: 7100000000000000133}
- m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
---- !u!23 &7100000000000000154
-MeshRenderer:
- m_ObjectHideFlags: 0
- m_CorrespondingSourceObject: {fileID: 0}
- m_PrefabInstance: {fileID: 0}
- m_PrefabAsset: {fileID: 0}
- m_GameObject: {fileID: 7100000000000000133}
- m_Enabled: 1
- m_CastShadows: 1
- m_ReceiveShadows: 1
- m_DynamicOccludee: 1
- m_MotionVectors: 1
- m_LightProbeUsage: 1
- m_ReflectionProbeUsage: 1
- m_RayTracingMode: 2
- m_RayTraceProcedural: 0
- m_RenderingLayerMask: 1
- m_RendererPriority: 0
- m_Materials:
- - {fileID: 2100000, guid: eef716efbd7734f41b4e6b18da069007, type: 2}
- m_StaticBatchInfo:
- firstSubMesh: 0
- subMeshCount: 0
- m_StaticBatchRoot: {fileID: 0}
- m_ProbeAnchor: {fileID: 0}
- m_LightProbeVolumeOverride: {fileID: 0}
- m_ScaleInLightmap: 1
- m_ReceiveGI: 1
- m_PreserveUVs: 0
- m_IgnoreNormalsForChartDetection: 0
- m_ImportantGI: 0
- m_StitchLightmapSeams: 1
- m_SelectedEditorRenderState: 3
- m_MinimumChartSize: 4
- m_AutoUVMaxDistance: 0.5
- m_AutoUVMaxAngle: 89
- m_LightmapParameters: {fileID: 0}
- m_SortingLayerID: 0
- m_SortingLayer: 0
- m_SortingOrder: 0
- m_AdditionalVertexStreams: {fileID: 0}
diff --git a/Assets/Resources/Aetheria.inputactions b/Assets/Resources/Aetheria.inputactions
index 8201c8471..fe1ef6086 100644
--- a/Assets/Resources/Aetheria.inputactions
+++ b/Assets/Resources/Aetheria.inputactions
@@ -36,36 +36,6 @@
"initialStateCheck": false,
"priority": 0
},
- {
- "name": "Zoom",
- "type": "Value",
- "id": "47ee174a-e711-4dd1-885c-f1cfbdd3681e",
- "expectedControlType": "Axis",
- "processors": "",
- "interactions": "",
- "initialStateCheck": true,
- "priority": 0
- },
- {
- "name": "Pan",
- "type": "Button",
- "id": "591eacf3-8726-4393-8a6d-f09410b745a4",
- "expectedControlType": "Button",
- "processors": "",
- "interactions": "",
- "initialStateCheck": false,
- "priority": 0
- },
- {
- "name": "Point",
- "type": "Value",
- "id": "f0ec75bc-84a5-4ea4-8e0f-e72f725e6b9d",
- "expectedControlType": "Vector2",
- "processors": "",
- "interactions": "",
- "initialStateCheck": true,
- "priority": 0
- },
{
"name": "Target Reticle",
"type": "Button",
@@ -383,50 +353,6 @@
"isComposite": false,
"isPartOfComposite": false
},
- {
- "name": "",
- "id": "c2b6406d-0c48-47e1-ad45-9f05fc7b7017",
- "path": "/scroll/y",
- "interactions": "",
- "processors": "",
- "groups": "Keyboard&Mouse",
- "action": "Zoom",
- "isComposite": false,
- "isPartOfComposite": false
- },
- {
- "name": "",
- "id": "e4e6d330-0963-4690-8e53-a1b52c5c6bce",
- "path": "/leftButton",
- "interactions": "",
- "processors": "",
- "groups": "Keyboard&Mouse",
- "action": "Pan",
- "isComposite": false,
- "isPartOfComposite": false
- },
- {
- "name": "",
- "id": "fe708e7d-0f9e-4b03-b983-d60e769e4292",
- "path": "/middleButton",
- "interactions": "",
- "processors": "",
- "groups": "Keyboard&Mouse",
- "action": "Pan",
- "isComposite": false,
- "isPartOfComposite": false
- },
- {
- "name": "",
- "id": "8ad98e17-f4bd-4d92-8300-f562b96f3750",
- "path": "/position",
- "interactions": "",
- "processors": "",
- "groups": "Keyboard&Mouse",
- "action": "Point",
- "isComposite": false,
- "isPartOfComposite": false
- },
{
"name": "",
"id": "5211a58c-428b-4ee6-820d-2f67789806d6",
diff --git a/Assets/Resources/Settings.asset b/Assets/Resources/Settings.asset
index 7d89eea8e..46bee7272 100644
--- a/Assets/Resources/Settings.asset
+++ b/Assets/Resources/Settings.asset
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:d9d381e3b25ea04d92768f0633cb89668108229dcc17336b560d0cbbfbaed04f
-size 12397
+oid sha256:7f09c54dfdb87dffd76fa92365d62c53ce333457b89ccf8ead09093ffffedc42
+size 12525
diff --git a/Assets/Resources/Sprites/Attribution.txt b/Assets/Resources/Sprites/Attribution.txt
index 8ca89fb1b..666742406 100644
--- a/Assets/Resources/Sprites/Attribution.txt
+++ b/Assets/Resources/Sprites/Attribution.txt
@@ -2,7 +2,8 @@ Noun Project
Tornado by Bart Laubsch
Alien Abduction by Bart Laubsch
-Hurricane by icon 54 from Smashicons Space by Ben Davis
+Hurricane by icon 54 from
+Smashicons Space by Ben Davis
Space 2 - Solid by Ben Davis
Filter by Karthik Aathis
Search by il Capitano
diff --git a/Assets/Scenes/ARPG.unity b/Assets/Scenes/ARPG.unity
index f583a38ec..4d5b15473 100644
--- a/Assets/Scenes/ARPG.unity
+++ b/Assets/Scenes/ARPG.unity
@@ -21236,7 +21236,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
- m_IsActive: 1
+ m_IsActive: 0
--- !u!224 &1396909587
RectTransform:
m_ObjectHideFlags: 0
@@ -24703,7 +24703,26 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
- m_text: ""
+ m_text: "What the fuck did you just fucking type about me, you little bitch? I\u2019ll
+ have you know I graduated top of my class at MIT, and I\u2019ve been involved
+ in numerous secret raids with Anonymous, and I have over 300 confirmed DDoSes.\n\nI
+ am trained in online trolling and I\u2019m the top hacker in the entire world.
+ You are nothing to me but just another virus host. I will wipe you the fuck out
+ with precision the likes of which has never been seen before on the Internet,
+ mark my fucking words. You think you can get away with typing that shit to me
+ over the Internet? Think again, fucker.\n\nAs we chat over IRC I am tracing your
+ IP with my damn bare hands so you better prepare for the storm, maggot. The storm
+ that wipes out the pathetic little thing you call your computer. You\u2019re
+ fucking dead, kid. I can be anywhere, anytime, and I can hack into your files
+ in over seven hundred ways, and that\u2019s just with my bare hands.\n\nNot only
+ am I extensively trained in hacking, but I have access to the entire arsenal
+ of every piece of malware ever created and I will use it to its full extent to
+ wipe your miserable ass off the face of the world wide web, you little shit.
+ If only you could have known what unholy retribution your little \u201Cclever\u201D
+ comment was about to bring down upon you, maybe you would have held your fucking
+ fingers. But you couldn\u2019t, you didn\u2019t, and now you\u2019re paying the
+ price, you goddamn idiot. I will shit code all over you and you will drown in
+ it.\n\nYou\u2019re fucking dead, kiddo."
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 53555f7a2d5e745428813f1b1118734f, type: 2}
m_sharedMaterial: {fileID: -2804126062856497447, guid: 53555f7a2d5e745428813f1b1118734f,
diff --git a/Assets/Scripts/AetheriaInput.cs b/Assets/Scripts/AetheriaInput.cs
index d9248909e..373c0b8bb 100644
--- a/Assets/Scripts/AetheriaInput.cs
+++ b/Assets/Scripts/AetheriaInput.cs
@@ -122,36 +122,6 @@ public partial class @AetheriaInput: IInputActionCollection2, IDisposable
""initialStateCheck"": false,
""priority"": 0
},
- {
- ""name"": ""Zoom"",
- ""type"": ""Value"",
- ""id"": ""47ee174a-e711-4dd1-885c-f1cfbdd3681e"",
- ""expectedControlType"": ""Axis"",
- ""processors"": """",
- ""interactions"": """",
- ""initialStateCheck"": true,
- ""priority"": 0
- },
- {
- ""name"": ""Pan"",
- ""type"": ""Button"",
- ""id"": ""591eacf3-8726-4393-8a6d-f09410b745a4"",
- ""expectedControlType"": ""Button"",
- ""processors"": """",
- ""interactions"": """",
- ""initialStateCheck"": false,
- ""priority"": 0
- },
- {
- ""name"": ""Point"",
- ""type"": ""Value"",
- ""id"": ""f0ec75bc-84a5-4ea4-8e0f-e72f725e6b9d"",
- ""expectedControlType"": ""Vector2"",
- ""processors"": """",
- ""interactions"": """",
- ""initialStateCheck"": true,
- ""priority"": 0
- },
{
""name"": ""Target Reticle"",
""type"": ""Button"",
@@ -469,50 +439,6 @@ public partial class @AetheriaInput: IInputActionCollection2, IDisposable
""isComposite"": false,
""isPartOfComposite"": false
},
- {
- ""name"": """",
- ""id"": ""c2b6406d-0c48-47e1-ad45-9f05fc7b7017"",
- ""path"": ""/scroll/y"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Keyboard&Mouse"",
- ""action"": ""Zoom"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""e4e6d330-0963-4690-8e53-a1b52c5c6bce"",
- ""path"": ""/leftButton"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Keyboard&Mouse"",
- ""action"": ""Pan"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""fe708e7d-0f9e-4b03-b983-d60e769e4292"",
- ""path"": ""/middleButton"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Keyboard&Mouse"",
- ""action"": ""Pan"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
- {
- ""name"": """",
- ""id"": ""8ad98e17-f4bd-4d92-8300-f562b96f3750"",
- ""path"": ""/position"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": ""Keyboard&Mouse"",
- ""action"": ""Point"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- },
{
""name"": """",
""id"": ""5211a58c-428b-4ee6-820d-2f67789806d6"",
@@ -1377,9 +1303,6 @@ public partial class @AetheriaInput: IInputActionCollection2, IDisposable
m_Player_Move = m_Player.FindAction("Move", throwIfNotFound: true);
m_Player_Look = m_Player.FindAction("Look", throwIfNotFound: true);
m_Player_MinimapZoom = m_Player.FindAction("Minimap Zoom", throwIfNotFound: true);
- m_Player_Zoom = m_Player.FindAction("Zoom", throwIfNotFound: true);
- m_Player_Pan = m_Player.FindAction("Pan", throwIfNotFound: true);
- m_Player_Point = m_Player.FindAction("Point", throwIfNotFound: true);
m_Player_TargetReticle = m_Player.FindAction("Target Reticle", throwIfNotFound: true);
m_Player_TargetPrevious = m_Player.FindAction("Target Previous", throwIfNotFound: true);
m_Player_TargetNext = m_Player.FindAction("Target Next", throwIfNotFound: true);
@@ -1499,9 +1422,6 @@ public partial class @AetheriaInput: IInputActionCollection2, IDisposable
private readonly InputAction m_Player_Move;
private readonly InputAction m_Player_Look;
private readonly InputAction m_Player_MinimapZoom;
- private readonly InputAction m_Player_Zoom;
- private readonly InputAction m_Player_Pan;
- private readonly InputAction m_Player_Point;
private readonly InputAction m_Player_TargetReticle;
private readonly InputAction m_Player_TargetPrevious;
private readonly InputAction m_Player_TargetNext;
@@ -1541,18 +1461,6 @@ public partial class @AetheriaInput: IInputActionCollection2, IDisposable
///
public InputAction @MinimapZoom => m_Wrapper.m_Player_MinimapZoom;
///
- /// Provides access to the underlying input action "Player/Zoom".
- ///
- public InputAction @Zoom => m_Wrapper.m_Player_Zoom;
- ///
- /// Provides access to the underlying input action "Player/Pan".
- ///
- public InputAction @Pan => m_Wrapper.m_Player_Pan;
- ///
- /// Provides access to the underlying input action "Player/Point".
- ///
- public InputAction @Point => m_Wrapper.m_Player_Point;
- ///
/// Provides access to the underlying input action "Player/TargetReticle".
///
public InputAction @TargetReticle => m_Wrapper.m_Player_TargetReticle;
@@ -1647,15 +1555,6 @@ public partial class @AetheriaInput: IInputActionCollection2, IDisposable
@MinimapZoom.started += instance.OnMinimapZoom;
@MinimapZoom.performed += instance.OnMinimapZoom;
@MinimapZoom.canceled += instance.OnMinimapZoom;
- @Zoom.started += instance.OnZoom;
- @Zoom.performed += instance.OnZoom;
- @Zoom.canceled += instance.OnZoom;
- @Pan.started += instance.OnPan;
- @Pan.performed += instance.OnPan;
- @Pan.canceled += instance.OnPan;
- @Point.started += instance.OnPoint;
- @Point.performed += instance.OnPoint;
- @Point.canceled += instance.OnPoint;
@TargetReticle.started += instance.OnTargetReticle;
@TargetReticle.performed += instance.OnTargetReticle;
@TargetReticle.canceled += instance.OnTargetReticle;
@@ -1721,15 +1620,6 @@ public partial class @AetheriaInput: IInputActionCollection2, IDisposable
@MinimapZoom.started -= instance.OnMinimapZoom;
@MinimapZoom.performed -= instance.OnMinimapZoom;
@MinimapZoom.canceled -= instance.OnMinimapZoom;
- @Zoom.started -= instance.OnZoom;
- @Zoom.performed -= instance.OnZoom;
- @Zoom.canceled -= instance.OnZoom;
- @Pan.started -= instance.OnPan;
- @Pan.performed -= instance.OnPan;
- @Pan.canceled -= instance.OnPan;
- @Point.started -= instance.OnPoint;
- @Point.performed -= instance.OnPoint;
- @Point.canceled -= instance.OnPoint;
@TargetReticle.started -= instance.OnTargetReticle;
@TargetReticle.performed -= instance.OnTargetReticle;
@TargetReticle.canceled -= instance.OnTargetReticle;
@@ -2211,27 +2101,6 @@ public partial class @AetheriaInput: IInputActionCollection2, IDisposable
///
void OnMinimapZoom(InputAction.CallbackContext context);
///
- /// Method invoked when associated input action "Zoom" is either , or .
- ///
- ///
- ///
- ///
- void OnZoom(InputAction.CallbackContext context);
- ///
- /// Method invoked when associated input action "Pan" is either , or .
- ///
- ///
- ///
- ///
- void OnPan(InputAction.CallbackContext context);
- ///
- /// Method invoked when associated input action "Point" is either , or .
- ///
- ///
- ///
- ///
- void OnPoint(InputAction.CallbackContext context);
- ///
/// Method invoked when associated input action "Target Reticle" is either , or .
///
///
diff --git a/Assets/Scripts/Editor/ShipPrefabAuthoring.cs b/Assets/Scripts/Editor/ShipPrefabAuthoring.cs
index 45bbc8609..d2937b79d 100644
--- a/Assets/Scripts/Editor/ShipPrefabAuthoring.cs
+++ b/Assets/Scripts/Editor/ShipPrefabAuthoring.cs
@@ -112,7 +112,6 @@ public static class ShipPrefabAuthoring
case "Thruster":
var emitter = DirectChild(node, "Emitter")?.GetComponent();
if (emitter == null) throw new InvalidOperationException($"{name} needs an Emitter mesh child");
- ShipModShips.Hide(emitter, invisible);
AddOrGet(node.gameObject).Emitter = emitter;
thrusters.Add(node.GetComponent());
break;
diff --git a/Assets/Scripts/Editor/ShipPrefabAuthoringSmoke.cs b/Assets/Scripts/Editor/ShipPrefabAuthoringSmoke.cs
index 5342eb352..9f740f557 100644
--- a/Assets/Scripts/Editor/ShipPrefabAuthoringSmoke.cs
+++ b/Assets/Scripts/Editor/ShipPrefabAuthoringSmoke.cs
@@ -28,8 +28,6 @@ public static class ShipPrefabAuthoringSmoke
ShipPrefabAuthoring.Configure(root);
var ship = root.GetComponent();
Require(ship != null && ship.ThrusterHardpoints.Length == 1 && ship.ThrusterHardpoints[0].Emitter != null, "thruster emitter");
- Require(Array.TrueForAll(ship.ThrusterHardpoints[0].Emitter.sharedMaterials, material => material == ship.InvisibleMaterial),
- "thruster emitter drawn with the invisible material only");
Require(ship.WeaponHardpoints.Length == 1 && ship.WeaponHardpoints[0].FiringPoint.Length == 2, "weapon muzzles");
Require(ship.WeaponHardpoints[0].FiringPoint[0].name == "Muzzle.0", "numeric muzzle order");
Require(ship.RadiatorHardpoints.Length == 1 && ship.RadiatorHardpoints[0].Mesh != null, "radiator mesh");
diff --git a/Assets/Scripts/EventLog.cs b/Assets/Scripts/EventLog.cs
index 967653b1d..54db8dd57 100644
--- a/Assets/Scripts/EventLog.cs
+++ b/Assets/Scripts/EventLog.cs
@@ -13,8 +13,7 @@ public class EventLog : MonoBehaviour
private SizedQueue LogMessages;
private StringBuilder LogText;
- // Awake, not Start: a message can arrive in the frame the parent activates, before Start would run.
- private void Awake()
+ private void Start()
{
LogMessages = new SizedQueue(LineCount);
LogText = new StringBuilder();
diff --git a/Assets/Scripts/Gameplay/ActionGameManager.cs b/Assets/Scripts/Gameplay/ActionGameManager.cs
index ab6c43176..a0cf3a4c1 100644
--- a/Assets/Scripts/Gameplay/ActionGameManager.cs
+++ b/Assets/Scripts/Gameplay/ActionGameManager.cs
@@ -106,9 +106,6 @@ public class ActionGameManager : MonoBehaviour
}
public static Galaxy CurrentGalaxy;
- // Whether a run is live: a failed start and a finished run both clear the galaxy, and the scene's update paths (this
- // manager's, the renderer's) step and draw nothing without one.
- public static bool RunLive => CurrentGalaxy != null;
// The scenario a new run starts from: MainMenu.Launch sets it, and StartGame's new-run branch consumes it once.
public static Scenario PendingScenario;
@@ -140,6 +137,7 @@ public class ActionGameManager : MonoBehaviour
public ZoneRenderer ZoneRenderer;
public CinemachineVirtualCamera DockCamera;
public CinemachineVirtualCamera FollowCamera;
+ public CinemachineVirtualCamera WormholeCamera;
//public SectorRenderer SectorRenderer;
public SectorMap SectorMap;
@@ -190,6 +188,9 @@ public class ActionGameManager : MonoBehaviour
//public PlayerInput Input;
+ // private CinemachineFramingTransposer _transposer;
+ // private CinemachineComposer _composer;
+
private bool _paused;
private float _time;
private int _zoomLevelIndex;
@@ -273,25 +274,13 @@ public class ActionGameManager : MonoBehaviour
private void OnApplicationQuit()
{
SaveRun();
- DiscardSimulation();
SavePlayerSettings();
}
- // The live simulation (Scenario.Saved false), or null while a saved run or nothing is live. Whether the session is
- // saved is derived from it alone: StartScenario is the only setter and DiscardSimulation the only clearer.
- public static RunSave.Simulation Simulation { get; private set; }
-
- // Removes what the simulation wrote to the run store, so the saved run and the next run never see it.
- private void DiscardSimulation()
- {
- Simulation?.Discard(CultCache);
- Simulation = null;
- }
-
- // Wormhole arrival and quit save the run; a dead run has no galaxy, so it is not saved, and a simulation never is.
+ // Wormhole arrival and quit save the run; a dead run has no galaxy, so it is not saved.
public void SaveRun()
{
- if (Simulation == null && CurrentGalaxy != null)
+ if (CurrentGalaxy != null)
{
var (game, zones) = RunSave.Capture(CultCache, CurrentGalaxy, Zone, DockedEntity ?? CurrentEntity,
_actionBarSlots.Select(s => s.Save()).ToArray(), Credits);
@@ -332,7 +321,7 @@ public class ActionGameManager : MonoBehaviour
Input.Global.Enable();
// The latch is the game's own, so it can disagree with the keyboard's Caps Lock light: show it.
- Bind(Input.Player.ToggleFaceAim, context => _helm.Toggle());
+ Input.Player.ToggleFaceAim.performed += context => _helm.Toggle();
var markParent = GameplayUI != null ? GameplayUI.transform : UiRoot.transform;
var markObject = new GameObject("Face Aim Mark", typeof(RectTransform));
markObject.transform.SetParent(markParent, false);
@@ -346,59 +335,23 @@ public class ActionGameManager : MonoBehaviour
_faceAimMark.enabled = false;
_zoomLevelIndex = Settings.DefaultMinimapZoom;
- Bind(Input.Player.MinimapZoom, context =>
+ Input.Player.MinimapZoom.performed += context =>
{
_zoomLevelIndex = (_zoomLevelIndex + 1) % Settings.MinimapZoomLevels.Length;
ZoneRenderer.MinimapDistance = Settings.MinimapZoomLevels[_zoomLevelIndex];
- });
+ };
- // The tactical view is a distinct camera over the grid (ruling tactical-view-distinct-mode): the wheel is one axis
- // from the chase view through a detent into it, and TacticalView the one owner of where on that axis the camera is.
- _tactical = new TacticalView(Settings.TacticalZoomStep, Settings.TacticalBlendStart, Settings.TacticalBlendEnd,
- Settings.TacticalTimeScale, Settings.TacticalFitPerRadius, Settings.DetentResistance, Settings.DetentRelaxTime,
- Settings.ViewEaseTime);
- // The view rig: the chase camera (child 0) and the tactical camera (child 1) mixed by the blend, built here so the
- // scene stays as authored. The mix is a function of the eased distance, not a brain blend on a priority switch.
- var rig = new GameObject("View Rig");
- _viewRig = rig.AddComponent();
- _viewRig.Priority = FollowCamera.Priority;
- FollowCamera.transform.SetParent(rig.transform, false);
- FollowCamera.transform.SetAsFirstSibling();
- var tacticalCamera = new GameObject("Tactical Camera");
- tacticalCamera.transform.SetParent(rig.transform, false);
- _tacticalCamera = tacticalCamera.AddComponent();
- _tacticalFade = ScriptableObject.CreateInstance();
- _tacticalFade.enabled.Override(true);
- _tacticalFade.Background.Override(Settings.TacticalBackground);
- _tacticalVolume = PostProcessManager.instance.QuickVolume(DeathPost.gameObject.layer, 100f, _tacticalFade);
- _tacticalVolume.weight = 0;
- var schematic = new GameObject("Tactical Schematic Camera");
- schematic.transform.SetParent(ZoneRenderer.MainCamera.transform, false);
- _schematicCamera = schematic.AddComponent();
- _schematicCamera.clearFlags = CameraClearFlags.Depth;
- _schematicCamera.depth = ZoneRenderer.MainCamera.depth + 1;
- _schematicCamera.cullingMask = 1 << LayerMask.NameToLayer("Minimap");
- _schematicCamera.enabled = false;
- Bind(Input.Player.Zoom, context =>
- {
- var scroll = context.ReadValue();
- if (scroll == 0 || !Flying) return;
- var was = _tactical.Tactical;
- _tactical.Scroll(-Mathf.Sign(scroll));
- if (_tactical.Tactical != was) EnablePlayerInput();
- });
-
- Bind(Input.Global.ZoneMap, context =>
+ Input.Global.ZoneMap.performed += context =>
{
ToggleMenuTab(MenuTab.Map);
MenuMap.Position = DrawAhead.Position(CurrentEntity, Clock.Lead).xz;
- });
+ };
- Bind(Input.Global.Inventory, context => ToggleMenuTab(MenuTab.Inventory));
+ Input.Global.Inventory.performed += context => ToggleMenuTab(MenuTab.Inventory);
- Bind(Input.Global.GalaxyMap, context => ToggleMenuTab(MenuTab.Galaxy));
+ Input.Global.GalaxyMap.performed += context => ToggleMenuTab(MenuTab.Galaxy);
- Bind(Input.Global.Interact, context =>
+ Input.Global.Interact.performed += context =>
{
if (EventSystem.current.currentSelectedGameObject != null && EventSystem.current.currentSelectedGameObject.GetComponent() != null) return;
if (MainMenu.gameObject.activeSelf) return;
@@ -415,15 +368,6 @@ public class ActionGameManager : MonoBehaviour
foreach (var wormhole in ZoneRenderer.WormholeInstances.Keys)
{
if (!(length(wormhole.Position - CurrentEntity.Position.xz) < Settings.GameplaySettings.WormholeExitRadius)) continue;
- if (Simulation != null)
- {
- // The simulation's wormhole is its exit (ruling ifl-wormhole-exit-standin).
- Dialog.Clear();
- Dialog.Title.text = "Leave the simulation and start a run?";
- Dialog.Show(onConfirm: LeaveSimulation, onCancel: () => { }, confirmText: "Leave", cancelText: "Stay");
- Dialog.MoveToCursor();
- return;
- }
if (wormhole.Exit)
{
// The exit gate leads nowhere: TryWin consults RunGoal and ends the run when the gate is open.
@@ -441,57 +385,53 @@ public class ActionGameManager : MonoBehaviour
Dock();
}
else Undock();
- });
+ };
- Bind(Input.Global.MainMenu, context =>
+ Input.Global.MainMenu.performed += context =>
{
if(Menu.gameObject.activeSelf)
ToggleMenuTab(Menu.CurrentTab);
else
ToggleFullscreenMenu(MainMenu.gameObject);
- });
+ };
- Bind(Input.Global.InputScreen, context => ToggleFullscreenMenu(HelpScreen));
+ Input.Global.InputScreen.performed += context => ToggleFullscreenMenu(HelpScreen);
- Bind(Input.Player.HideUI, context =>
+ Input.Player.HideUI.performed += context =>
{
_uiHidden = !_uiHidden;
GameplayUI.alpha = _uiHidden ? 0 : 1;
ActionBar.gameObject.SetActive(!_uiHidden);
- });
+ };
// The switches and the ping are presses on the entity's command, flipped at the next step.
- Bind(Input.Player.OverrideShutdown, context => CurrentEntity.Command.ToggleOverrideShutdown());
- Bind(Input.Player.Ping, context => CurrentEntity.Command.Ping());
+ Input.Player.OverrideShutdown.performed += context => CurrentEntity.Command.ToggleOverrideShutdown();
+ Input.Player.Ping.performed += context => CurrentEntity.Command.Ping();
// TODO: SFX: Success/Fail
- Bind(Input.Player.ToggleHeatsinks, context => CurrentEntity.Command.ToggleHeatsinks());
+ Input.Player.ToggleHeatsinks.performed += context => CurrentEntity.Command.ToggleHeatsinks();
// TODO: SFX: Success/Fail
- Bind(Input.Player.ToggleShield, context => CurrentEntity.Command.ToggleShield());
+ Input.Player.ToggleShield.performed += context => CurrentEntity.Command.ToggleShield();
// Flips the player's own stance on the current target between hostile and neutral. Going
// neutral mid-fight safes weapons (Weapon.StanceAllowsFire); an unmarked/undetected target
// reads as non-hostile, so the first press declares hostile. The flip reads the target and its stance when applied,
// after the step's target presses, so two presses in a step cancel.
- Bind(Input.Player.ToggleStance, context => CurrentEntity.Command.ToggleStance());
+ Input.Player.ToggleStance.performed += context => CurrentEntity.Command.ToggleStance();
#region Targeting
// The reticle, nearest, next and previous presses each command a verb; the applier chooses through Entity at the
// next step (mining target-queries cut): the rule lives with the entity, so the player, the test agent and any
// director pick alike.
- Bind(Input.Player.TargetReticle, context => CurrentEntity.Command.Verb(TargetVerb.UnderReticle));
- Bind(Input.Player.TargetNearest, context => CurrentEntity.Command.Verb(TargetVerb.NearestEnemy));
- Bind(Input.Player.TargetNext, context => CurrentEntity.Command.Verb(TargetVerb.Next));
- Bind(Input.Player.TargetPrevious, context => CurrentEntity.Command.Verb(TargetVerb.Previous));
+ Input.Player.TargetReticle.performed += context => CurrentEntity.Command.Verb(TargetVerb.UnderReticle);
+ Input.Player.TargetNearest.performed += context => CurrentEntity.Command.Verb(TargetVerb.NearestEnemy);
+ Input.Player.TargetNext.performed += context => CurrentEntity.Command.Verb(TargetVerb.Next);
+ Input.Player.TargetPrevious.performed += context => CurrentEntity.Command.Verb(TargetVerb.Previous);
// Cut 2 (docs/fire-control-cut.md): steps the aim through the target's schematic rows -- every mount this ship
// has located, empty or not, minus the ones it saw destroyed. Decides nothing: the entity owns the cycle, applied at
// the next step.
- Bind(Input.Player.CycleTargetItem, context => CurrentEntity.Command.CycleAim());
-
- // The tractor is held while its key is: a press and a release each set it. It is not polled, so a key already down when the
- // flight view returns does nothing until it is pressed again, as with fire; Update releases it while the view is tactical.
- Bind(Input.Player.TractorBeam, context => CurrentEntity.Command.Tractor = context.ReadValue(), context => CurrentEntity.Command.Tractor = 0);
+ Input.Player.CycleTargetItem.performed += context => CurrentEntity.Command.CycleAim();
#endregion
@@ -616,7 +556,11 @@ public class ActionGameManager : MonoBehaviour
{
FollowCamera.Follow = x.missile.transform;
FollowCamera.LookAt = x.target ? x.target : x.missile.transform;
- x.missile.OnKill += () => FrameFollow(CurrentEntity);
+ x.missile.OnKill += () =>
+ {
+ FollowCamera.LookAt = ZoneRenderer.EntityInstances[CurrentEntity].LookAtPoint;
+ FollowCamera.Follow = ZoneRenderer.EntityInstances[CurrentEntity].transform;
+ };
});
}
});
@@ -633,33 +577,6 @@ public class ActionGameManager : MonoBehaviour
ItemManager.Random.NextFloat2Direction() * ItemManager.Random.NextFloat(50, 500);
Zone.Admit(turret, piloted: false);
});
- // "summon" lists the formations; "summon " places one 400 m ahead of the current ship, facing back toward it. The
- // faction rule decides who fights whom: a summon writes no stance.
- ConsoleController.AddCommand("summon",
- args =>
- {
- var console = ConsoleController.Instance;
- if (args.Length == 0)
- {
- console.AppendLogLine("Formations: " + string.Join(", ", Formations.All.Select(formation => formation.Id)));
- return;
- }
- var formation = Formations.ById(args[0]);
- if (formation == null)
- {
- console.AppendLogLine($"No formation \"{args[0]}\"; summon alone lists them");
- return;
- }
- if (_currentEntity == null || _currentEntity.Parent != null)
- {
- console.AppendLogLine("Refused: undock first");
- return;
- }
- var failures = new List();
- var summoned = formation.Summon(ItemManager, Zone, _currentEntity.Position.xz + _currentEntity.Direction * 400, -_currentEntity.Direction, failures);
- foreach (var failure in failures) console.AppendLogLine($"summon {formation.Id}: {failure}");
- if (summoned != null) console.AppendLogLine($"Summoned {formation.Name}: {string.Join(", ", summoned.Select(entity => entity.Name))}");
- });
// "fly Djinni": a freshly fitted ship of the named hull beside the current one, and you in it. The ship you leave
// stays where it is, unpiloted.
ConsoleController.AddCommand("fly",
@@ -702,12 +619,6 @@ public class ActionGameManager : MonoBehaviour
//Temporary, or not
ConsoleController.AddCommand("tow", _ => TowShip());
- ConsoleController.AddCommand("leave", _ =>
- {
- if (Simulation == null) Debug.Log("leave: only a simulation can be left; there is no simulation");
- else LeaveSimulation();
- });
-
// Manual IFF override for the player's current target, for hand-testing combat.
// "iff hostile"/"iff neutral" force a stance; "iff clear" restores the derived faction rule.
ConsoleController.AddCommand("iff", args =>
@@ -777,37 +688,11 @@ public class ActionGameManager : MonoBehaviour
return success ?? false;
}
- // Ruling tactical-input-hands-off: the one route every Player and Global action is subscribed and read through. TacticalInput
- // decides per action whether it is live (an unclassified action is not); a press, a release or a read that is not live is
- // dropped, never queued, so the ship holds its last commands. A test scans this file and fails if an action is touched anywhere else.
- private bool Live(InputAction action) => TacticalInput.Live(_tactical, action.actionMap.name, action.name);
-
- private void Bind(InputAction action, Action performed, Action canceled = null)
- {
- action.performed += context => { if (Live(action)) performed(context); };
- if (canceled != null) action.canceled += context => { if (Live(action)) canceled(context); };
- }
-
- private bool TryRead(InputAction action, out T value) where T : struct
- {
- value = default;
- if (!Live(action)) return false;
- value = action.ReadValue();
- return true;
- }
-
- private bool Held(InputAction action) => Live(action) && action.IsPressed();
-
- private InputControl ActiveControl(InputAction action) => Live(action) ? action.activeControl : null;
-
- // The one writer of the cursor lock and the action bar while playing: the tactical view frees the cursor and gives the
- // mouse buttons to Pan, so the bar is off there. It is re-applied whenever Tactical changes.
public void EnablePlayerInput()
{
- Cursor.lockState = _tactical.Tactical ? CursorLockMode.None : CursorLockMode.Locked;
+ Cursor.lockState = CursorLockMode.Locked;
Input.Player.Enable();
- foreach (var a in _actionBarActions)
- if (_tactical.Tactical) a.Disable(); else a.Enable();
+ foreach (var a in _actionBarActions) a.Enable();
}
public void DisablePlayerInput()
@@ -820,10 +705,13 @@ public class ActionGameManager : MonoBehaviour
private void EnterWormhole(Wormhole wormhole)
{
if (!(CurrentEntity is Ship ship) || ship.WormholeAnimationInProgress) return;
+ // var wormholeCameraFollow = new GameObject("Wormhole Camera Follow").transform;
+ // wormholeCameraFollow.position = new Vector3(wormhole.Position.x, -50, wormhole.Position.y);
+ // wormholeCameraFollow.rotation = Quaternion.LookRotation(Vector3.down, ship.Aim);
+ // WormholeCamera.enabled = true;
+ // WormholeCamera.Follow = wormholeCameraFollow;
+ // FollowCamera.enabled = false;
ship.EnterWormhole(wormhole.Position);
- WormholeWarpPresenter.Begin(ship, DeathPost.gameObject.layer,
- Mathf.Max(DeathPost.priority, HeatstrokePost.priority, HypothermiaPost.priority,
- SevereHeatstrokePost.priority, SevereHypothermiaPost.priority) + 1);
ship.OnEnteredWormhole += () =>
{
var oldZone = Zone;
@@ -838,13 +726,6 @@ public class ActionGameManager : MonoBehaviour
};
}
- // The one way out of a simulation: starts the Terminus run. AL7 puts the pilot pick in front of this call.
- public void LeaveSimulation()
- {
- MainMenu.gameObject.SetActive(true); // Launch starts a coroutine on it
- MainMenu.Launch(Scenarios.Terminus);
- }
-
public void PopulateLevel(GalaxyZone galaxyZone)
{
if (galaxyZone == null) throw new ArgumentNullException(nameof(galaxyZone));
@@ -856,7 +737,8 @@ public class ActionGameManager : MonoBehaviour
Settings.ZoneSettings,
Settings.PlanetSettings,
CurrentGalaxy,
- galaxyZone
+ galaxyZone,
+ CurrentGalaxy.IsPrelude
);
galaxyZone.Contents = new Zone(ItemManager, Settings.PlanetSettings, galaxyZone.PackedContents, galaxyZone, CurrentGalaxy);
}
@@ -934,7 +816,6 @@ public class ActionGameManager : MonoBehaviour
private void StartGame()
{
- DiscardSimulation(); // a run's Replace never sees simulation records
if (CurrentGalaxy != null)
{
if (PendingScenario != null) StartScenario();
@@ -966,27 +847,28 @@ public class ActionGameManager : MonoBehaviour
}
// RunStart owns what a new run starts with (docs/scenarios-cut.md, R.4); this enters and binds. The saved run is
- // replaced only once the scenario has staged; a simulation starts beside it and never replaces it. A start that fails leaves the saved run as it was and says why on
+ // replaced only once the scenario has staged. A start that fails leaves the saved run as it was and says why on
// the main menu, where Continue still resumes the saved run.
private void StartScenario()
{
var scenario = PendingScenario;
PendingScenario = null;
var failures = new List();
- RunSave.Simulation simulation = null;
- Func start = () =>
+ RunStart.Staged staged = null;
+ try
{
- RunStart.GenerateArena(ItemManager, Settings.ZoneSettings, Settings.PlanetSettings, CurrentGalaxy, scenario);
- PopulateLevel(CurrentGalaxy.Entrance);
- return RunStart.Stage(ItemManager, Zone, scenario, Settings.StartingHullName, failures);
- };
- var staged = RunStart.Launch(() =>
+ staged = RunSave.Replace(CultCache, () =>
+ {
+ RunStart.GenerateArena(ItemManager, Settings.ZoneSettings, Settings.PlanetSettings, CurrentGalaxy, scenario);
+ PopulateLevel(CurrentGalaxy.Entrance);
+ return RunStart.Stage(ItemManager, Zone, scenario, Settings.StartingHullName, Settings.TutorialGenerationSettings, failures);
+ });
+ }
+ catch (Exception exception)
{
- if (scenario.Saved) return RunSave.Replace(CultCache, start);
- var (started, begun) = RunSave.Beside(CultCache, start);
- simulation = begun;
- return started;
- }, failures, Debug.LogException);
+ Debug.LogException(exception);
+ failures.Add(exception.Message);
+ }
if (staged == null)
{
@@ -995,7 +877,6 @@ public class ActionGameManager : MonoBehaviour
MainMenu.Refuse($"{scenario.Name} could not start", string.Join("\n", failures));
return;
}
- Simulation = simulation;
Credits = staged.Credits;
SectorMap.QueueZoneReveal(CurrentGalaxy.Entrance.AdjacentZones.Prepend(CurrentGalaxy.Entrance));
BindToEntity(staged.Player);
@@ -1041,7 +922,7 @@ public class ActionGameManager : MonoBehaviour
ZoneRenderer.PerspectiveEntity = DockedEntity;
DockingBay = dockingBay;
DockCamera.enabled = true;
- _viewRig.enabled = false;
+ FollowCamera.enabled = false;
var orbital = (OrbitalEntity) entity;
DockCamera.Follow = ZoneRenderer.EntityInstances[orbital].transform;
var parentOrbit = Zone.Orbits[orbital.OrbitData].Data.Parent.Key;
@@ -1143,6 +1024,7 @@ public class ActionGameManager : MonoBehaviour
if(_incomingLockIndicator.indicator != null) _incomingLockIndicator.indicator.GetComponent().ReturnToPool();
_incomingLockIndicator = default;
DisablePlayerInput();
+ Cursor.lockState = CursorLockMode.None;
GameplayUI.gameObject.SetActive(false);
foreach(var subscription in _shipSubscriptions) subscription.Dispose();
@@ -1182,8 +1064,6 @@ public class ActionGameManager : MonoBehaviour
private void BindToEntity(Entity entity)
{
- // A tractor held through a ship change would stay on for the ship we leave: its release is a press we will no longer see.
- if (CurrentEntity != null) CurrentEntity.Command.Tractor = 0;
if (!ZoneRenderer.EntityInstances.ContainsKey(entity))
{
Debug.LogError($"Attempted to bind to entity {entity.Name}, but SectorRenderer has no such instance!");
@@ -1191,7 +1071,6 @@ public class ActionGameManager : MonoBehaviour
}
CurrentEntity = entity;
- _tactical.Reset(entity.Zone.Pack.Radius, BaseFollowDistance(entity), DrawAhead.Position(entity, Clock.Lead).xz);
DeathPost.weight = 0;
ZoneRenderer.PerspectiveEntity = CurrentEntity;
@@ -1199,11 +1078,12 @@ public class ActionGameManager : MonoBehaviour
DockedEntity = null;
DockingBay = null;
DockCamera.enabled = false;
- _viewRig.enabled = true;
+ FollowCamera.enabled = true;
if (length(CurrentEntity.Direction) > .1f)
_viewDirection = float3(CurrentEntity.Direction.x,0,CurrentEntity.Direction.y);
-
+
+ Cursor.lockState = CursorLockMode.Locked;
EnablePlayerInput();
GameplayUI.gameObject.SetActive(true);
ShipPanel.Display(CurrentEntity, true);
@@ -1212,14 +1092,9 @@ public class ActionGameManager : MonoBehaviour
_shipSubscriptions.Add(CurrentEntity.Zone.ShotResolved
.Where(outcome => outcome.Source == CurrentEntity)
.Subscribe(outcome => _debugLastShots[outcome.Weapon] = outcome));
- _shipSubscriptions.Add(CurrentEntity.Zone.CargoGained
- .Where(gain => gain.Taker == CurrentEntity)
- .Subscribe(gain =>
- {
- if (EventLog != null) EventLog.LogMessage(HaulFeed.Line(gain, ItemManager), gain.Adrift > 0 ? Color.yellow : Color.white);
- }));
- FrameFollow(CurrentEntity);
+ FollowCamera.LookAt = ZoneRenderer.EntityInstances[CurrentEntity].LookAtPoint;
+ FollowCamera.Follow = ZoneRenderer.EntityInstances[CurrentEntity].transform;
_articulationGroups = CurrentEntity.Equipment
.Where(item => item.Behaviors.Any(x => x.Data is WeaponData && !(x.Data is LauncherData)))
.GroupBy(item => ZoneRenderer.EntityInstances[CurrentEntity]
@@ -1327,85 +1202,6 @@ public class ActionGameManager : MonoBehaviour
_incomingLockIndicator = (incoming, incoming.GetComponent());
}
- private CinemachineFramingTransposer _framingTransposer;
- private CinemachineMixingCamera _viewRig;
- private CinemachineVirtualCamera _tacticalCamera;
- // The grid point the Pan drag holds under the cursor; one gesture's state, nothing else.
- private float2? _grab;
- private TacticalView _tactical;
- private TacticalFade _tacticalFade;
- private PostProcessVolume _tacticalVolume;
- private Camera _schematicCamera;
-
- // Flying: a ship under the player's hand, not docked. Everything tactical reads 0 otherwise.
- private bool Flying => RunLive && CurrentEntity != null && DockedEntity == null;
-
- // The one writer of the follow camera's Follow, LookAt and distance for an entity: the distance is
- // the hull's reach (from its centre of mass, where Follow sits) times the authored ratio.
- private void FrameFollow(Entity entity)
- {
- var instance = ZoneRenderer.EntityInstances[entity];
- FollowCamera.LookAt = instance.LookAtPoint;
- FollowCamera.Follow = instance.transform;
- ApplyFraming(entity);
- }
-
- private float BaseFollowDistance(Entity entity) => Settings.FollowCameraDistancePerReach * Contacts.Radius(entity);
-
- // The one writer of the follow camera's distance: the eased view distance. It asks ZoneRenderer, the one writer of the
- // far clip, to see the whole zone from there.
- private void ApplyFraming(Entity entity)
- {
- if (_framingTransposer == null)
- _framingTransposer = FollowCamera.GetCinemachineComponent();
- var distance = _tactical.Distance;
- _framingTransposer.m_CameraDistance = distance;
- ZoneRenderer.FarClipNeeded = distance + 2 * entity.Zone.Pack.Radius;
- }
-
- // The one writer of the tactical camera: three-quarters top-down over the view target on the grid surface, the chase
- // view's yaw held, at the eased distance. Its lens is the chase camera's, so the far clip is the one writer's.
- private void PoseTactical()
- {
- var target = _tactical.Target;
- var target3 = new Vector3(target.x, DrawAhead.Height(CurrentEntity.Zone, target, Clock.Lead), target.y);
- var rotation = Quaternion.Euler(Settings.TacticalPitch, _entityYawPitch.x * Mathf.Rad2Deg, 0);
- _tacticalCamera.transform.SetPositionAndRotation(target3 - rotation * Vector3.forward * _tactical.Distance, rotation);
- _tacticalCamera.m_Lens = FollowCamera.m_Lens;
- }
-
- // Drag: the grid point under the cursor when the button went down stays under it.
- private void PanTarget()
- {
- if (!Held(Input.Player.Pan))
- {
- _grab = null;
- return;
- }
- var height = DrawAhead.Height(CurrentEntity.Zone, _tactical.Target, Clock.Lead);
- TryRead(Input.Player.Point, out Vector2 pointer);
- var ray = ZoneRenderer.MainCamera.ScreenPointToRay(pointer);
- if (!new Plane(Vector3.up, new Vector3(0, height, 0)).Raycast(ray, out var hit)) return;
- var point = ray.GetPoint(hit);
- var ground = float2(point.x, point.z);
- if (_grab is { } grab) _tactical.Pan(grab - ground);
- else _grab = ground;
- }
-
- // Everything the tactical view shows is read off the eased camera distance: the fade, the rig's mix, the schematic, the
- // map icons' size and the minimap cameras. Time is the Update line that feeds the clock.
- private float TacticalBlend() => Flying ? _tactical.Blend(_tactical.Distance) : 0f;
-
- private void ShowTactical(float blend)
- {
- _viewRig.SetWeight(0, 1 - blend);
- _viewRig.SetWeight(1, blend);
- _tacticalVolume.weight = blend;
- _schematicCamera.enabled = blend > 0;
- ZoneRenderer.Map.SetTacticalScale(blend > 0 ? _tactical.Distance * Settings.TacticalIconSize : 0);
- foreach (var camera in ZoneRenderer.MinimapCameras) camera.enabled = blend == 0;
- }
-
private void UpdatePlayerPanel()
{
ShipPanel.Display(CurrentEntity, true);
@@ -1432,8 +1228,7 @@ public class ActionGameManager : MonoBehaviour
MainMenu.gameObject.SetActive(true);
Menu.gameObject.SetActive(false);
CurrentGalaxy = null;
- if (Simulation != null) DiscardSimulation();
- else RunSave.Clear(CultCache);
+ RunSave.Clear(CultCache);
SavePlayerSettings();
}
@@ -1455,7 +1250,7 @@ public class ActionGameManager : MonoBehaviour
var deathTime = Time.time;
EndRun();
Observable.EveryUpdate()
- .TakeWhile(_ => Time.time - deathTime < DeathPostTransitionTime)
+ .Where(_ => Time.time - deathTime < DeathPostTransitionTime)
.Subscribe(_ =>
{
var t = (Time.time - deathTime) / DeathPostTransitionTime;
@@ -1478,11 +1273,7 @@ public class ActionGameManager : MonoBehaviour
HypothermiaPost.weight = 0;
SevereHypothermiaPost.weight = 0;
DeathPost.weight = 1;
- // Every run begins in the simulation (ruling terminus-boots-into-ifl), so death anywhere returns to it.
- // A New Game or Continue click during the fade has already launched; the scene reload ends the subscription.
- if (!MainMenu.Launching) MainMenu.Launch(Scenarios.Simulation);
- })
- .AddTo(this);
+ });
}
// public void ToggleEditMode()
@@ -1551,18 +1342,6 @@ public class ActionGameManager : MonoBehaviour
void Update()
{
- if (Flying)
- {
- _tactical.Tick(Time.unscaledDeltaTime);
- _tactical.Track(DrawAhead.Position(CurrentEntity, Clock.Lead).xz);
- if (_tactical.Tactical) PanTarget();
- else _grab = null;
- ApplyFraming(CurrentEntity);
- PoseTactical();
- }
- var blend = TacticalBlend();
- ShowTactical(blend);
- if (!RunLive) return;
if(!_paused)
{
_time += Time.deltaTime;
@@ -1583,13 +1362,10 @@ public class ActionGameManager : MonoBehaviour
indicator.Value.Place.Target = DrawAhead.Position(indicator.Key, Clock.Lead).ToUnity();
PlaceFill(indicator.Value, indicator.Key);
}
- // The tactical view does not steer: the aim and the chase yaw hold while the mouse pans the view.
- if (TryRead(Input.Player.Look, out Vector2 look))
- {
- var sensitivity = PlayerSettings.InputSettings.Sensitivity;
- _entityYawPitch = float2(_entityYawPitch.x + look.x * sensitivity.x, clamp(_entityYawPitch.y + look.y * sensitivity.y, -.45f * PI, .45f * PI));
- _viewDirection = mul(float3(0, 0, 1), CultMath.float3x3.Euler(float3(_entityYawPitch.yx, 0), RotationOrder.YXZ));
- }
+ var look = Input.Player.Look.ReadValue();
+ var sensitivity = PlayerSettings.InputSettings.Sensitivity;
+ _entityYawPitch = float2(_entityYawPitch.x + look.x * sensitivity.x, clamp(_entityYawPitch.y + look.y * sensitivity.y, -.45f * PI, .45f * PI));
+ _viewDirection = mul(float3(0, 0, 1), CultMath.float3x3.Euler(float3(_entityYawPitch.yx, 0), RotationOrder.YXZ));
CurrentEntity.Command.Aim = _viewDirection;
HeatstrokePost.weight = saturate(unlerp(0, Settings.GameplaySettings.SevereHeatstrokeRiskThreshold, CurrentEntity.Heatstroke));
var severeHeatstrokeLerp = saturate(unlerp(Settings.GameplaySettings.SevereHeatstrokeRiskThreshold, 1, CurrentEntity.Heatstroke));
@@ -1598,14 +1374,13 @@ public class ActionGameManager : MonoBehaviour
max(Settings.HeatstrokePhasingFloor, sin(Time.time * Settings.HeatstrokePhasingFrequency));
_faceAimMark.enabled = _helm.Latched;
- if (CurrentEntity is Ship ship && TryRead(Input.Player.Move, out Vector2 move))
+ if(CurrentEntity is Ship ship)
{
- ship.Command.Movement = move.ToCultMath();
- _helm.Held = Held(Input.Player.FaceAim);
- if (ActiveControl(Input.Player.Turn) is { } turnControl)
+ ship.Command.Movement = Input.Player.Move.ReadValue().ToCultMath();
+ _helm.Held = Input.Player.FaceAim.IsPressed();
+ if (Input.Player.Turn.activeControl is { } turnControl)
_turnDigital = turnControl.device is UnityEngine.InputSystem.Keyboard;
- TryRead(Input.Player.Turn, out float turn);
- var turnAxis = _helm.TurnAxis(turn, _turnDigital, Time.deltaTime, KeyboardTurnRampTime);
+ var turnAxis = _helm.TurnAxis(Input.Player.Turn.ReadValue(), _turnDigital, Time.deltaTime, KeyboardTurnRampTime);
ship.Command.Turn = _helm.Demand(_viewDirection.xz, ship.BandedTurn(turnAxis));
}
@@ -1621,7 +1396,7 @@ public class ActionGameManager : MonoBehaviour
TargetShieldsFill.fillAmount = target.Shield == null ? 0 : lerp(.25f, .75f, target.Shield.Progress);
}
- if (!Live(Input.Player.TractorBeam)) CurrentEntity.Command.Tractor = 0;
+ CurrentEntity.Command.Tractor = Input.Player.TractorBeam.ReadValue();
}
}
// One clock steps the zone, paused or not: a paused frame feeds it no real time.
@@ -1629,7 +1404,6 @@ public class ActionGameManager : MonoBehaviour
void EnterNewZone() { if (_zoneEntered) { Clock.Reset(); _zoneEntered = false; } }
EnterNewZone();
var steppedZone = Zone;
- Clock.Rate = _tactical.TimeRate(blend);
Clock.Advance(_paused ? 0f : Time.deltaTime, delta =>
{
if (Zone != steppedZone) return;
@@ -1719,11 +1493,6 @@ public class ActionGameManager : MonoBehaviour
private void LateUpdate()
{
- // The schematic camera is the game camera's pose and lens, seeing only the map's layer.
- var output = ZoneRenderer.MainCamera;
- _schematicCamera.fieldOfView = output.fieldOfView;
- _schematicCamera.nearClipPlane = output.nearClipPlane;
- _schematicCamera.farClipPlane = output.farClipPlane;
UpdateTargetIndicators();
}
diff --git a/Assets/Scripts/Gameplay/GameSettings.cs b/Assets/Scripts/Gameplay/GameSettings.cs
index e5e4c2b92..9d89c5822 100644
--- a/Assets/Scripts/Gameplay/GameSettings.cs
+++ b/Assets/Scripts/Gameplay/GameSettings.cs
@@ -14,9 +14,6 @@ public class GameSettings : ScriptableObject
public float HeatstrokePhasingFloor = 0;
public float HeatstrokePhasingFrequency = 5;
public float WormholeDistanceRatio;
- // The follow camera's distance from the hull's centre of mass, as a multiple of the hull's reach
- // (Contacts.Radius); 1.5 keeps the Longinus at about 30 m.
- public float FollowCameraDistancePerReach = 1.5f;
public float DefaultViewDistance;
public float[] MinimapZoomLevels;
public int DefaultMinimapZoom;
@@ -24,32 +21,9 @@ public class GameSettings : ScriptableObject
public int AsteroidMeshCount = 5;
public float MinimapAsteroidSize = 3;
public float MinimapIconSize = 1f / 32;
- // Tactical view (rulings tactical-view-distinct-mode, tactical-view-in-runs-slow-time): one wheel notch multiplies the
- // camera distance by this, in either view. Every feel constant here (step, band, detent, ease, pitch) is a placeholder
- // the operator tunes by eye.
- public float TacticalZoomStep = 1.25f;
- // The camera distance (m) where the scene starts to fade to the schematic: the chase view's farthest distance and the
- // detent band's near edge; and where it is fully faded: the tactical view's nearest distance and the band's far edge.
- public float TacticalBlendStart = 250;
- public float TacticalBlendEnd = 1000;
- // Inside the detent band a notch moves the view this fraction as far as outside it (lower holds harder).
- public float DetentResistance = .6f;
- // Seconds, e-folding, for the band to push the view back to the edge it came from.
- public float DetentRelaxTime = .4f;
- // Seconds the camera takes to settle on where the wheel put it (critically damped).
- public float ViewEaseTime = .15f;
- // The tactical camera's pitch down from the horizon, degrees.
- public float TacticalPitch = 55;
- // Sim seconds per real second at full fade (about 100x slower).
- public float TacticalTimeScale = .01f;
- // The farthest zoom, as a multiple of the zone radius.
- public float TacticalFitPerRadius = 2;
- // Schematic icon size as a fraction of the camera distance.
- public float TacticalIconSize = 1f / 40;
- // The colour the scene fades toward.
- public Color TacticalBackground = new Color(.02f, .03f, .05f, 1);
public float PlanetRotationSpeed = 1;
- public SectorBackgroundSettings CastBackgroundSettings;
+ public TutorialGenerationSettings TutorialGenerationSettings;
+ public SectorBackgroundSettings TutorialBackgroundSettings;
public SectorBackgroundSettings SectorBackgroundSettings;
public SectorGenerationSettings SectorGenerationSettings;
public BodySettingsCollection[] BodySettingsCollections;
diff --git a/Assets/Scripts/Gameplay/ShipModShips.cs b/Assets/Scripts/Gameplay/ShipModShips.cs
index 33f09f590..89106a6b7 100644
--- a/Assets/Scripts/Gameplay/ShipModShips.cs
+++ b/Assets/Scripts/Gameplay/ShipModShips.cs
@@ -6,10 +6,9 @@ using GameCult.Caching;
using UnityEngine;
using Object = UnityEngine.Object;
-// Mod ships in the running game. Compose (Bind) is the one verdict on whether a mod hull exists, from the package's files;
-// Preload only builds a prototype for each, keyed by the hull's record key, into an inactive assembled copy that Instantiate
-// clones synchronously, so LoadEntity never loads async. ImportFault reports what the Unity importer made of a composed hull:
-// a composed hull Preload cannot build is an import fault: Loading faults with ImportFault, naming every such hull's package.
+// Mod ships in the running game. Compose decides which mod hulls exist; Preload builds a prototype for each, keyed by the
+// hull's record key, into an inactive assembled copy that Instantiate clones synchronously, so LoadEntity never loads async.
+// A composed hull Preload cannot build is an import fault: Loading faults with ImportFault, naming every such hull's package.
// The prototypes are cache-only: rebuilt every boot from the catalog, the mod GLBs and the template.
public static class ShipModShips
{
@@ -102,7 +101,6 @@ public static class ShipModShips
node.name = id;
return node;
}
- // An importer report, not a verdict: Bind has already judged the file.
MeshRenderer Renderer(string id)
{
var found = Node(id).GetComponentInChildren(true);
@@ -132,6 +130,9 @@ public static class ShipModShips
var surface = AddOrGet(hullNode.gameObject);
var shieldMarker = Node(plan.Shield);
+ var scale = shieldMarker.localScale;
+ if (!(scale.x > 0 && scale.y > 0 && scale.z > 0))
+ throw new InvalidOperationException($"{ship.Id}: the shield anchor scale must have three positive radii.");
var shield = Object.Instantiate(template.Shield.GetComponent(), shieldMarker, false);
Reset(shield.transform);
AddOrGet(shield.gameObject);
diff --git a/Assets/Scripts/ServerShared/Behaviors/Behaviors.cs b/Assets/Scripts/ServerShared/Behaviors/Behaviors.cs
index 300229d3f..6b899ee35 100644
--- a/Assets/Scripts/ServerShared/Behaviors/Behaviors.cs
+++ b/Assets/Scripts/ServerShared/Behaviors/Behaviors.cs
@@ -6,7 +6,6 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
-using GameCult.Caching;
using MessagePack;
using Newtonsoft.Json;
using CultMath;
@@ -213,7 +212,4 @@ public abstract class BehaviorData
{
return base.ToString().FormatTypeName();
}
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(37)] [CultElementId] public string Id = "";
}
\ No newline at end of file
diff --git a/Assets/Scripts/ServerShared/Behaviors/ConstantWeapon.cs b/Assets/Scripts/ServerShared/Behaviors/ConstantWeapon.cs
index 8e44075ed..b90a124da 100644
--- a/Assets/Scripts/ServerShared/Behaviors/ConstantWeapon.cs
+++ b/Assets/Scripts/ServerShared/Behaviors/ConstantWeapon.cs
@@ -46,7 +46,6 @@ public class ConstantWeapon : Weapon, IProgressBehavior, IEventBehavior, IPowerC
{
get => _ammo;
}
- public override bool HasMagazine => false;
public float Progress
{
diff --git a/Assets/Scripts/ServerShared/Behaviors/ItemUsage.cs b/Assets/Scripts/ServerShared/Behaviors/ItemUsage.cs
index 29de67727..e8c5e7dd0 100644
--- a/Assets/Scripts/ServerShared/Behaviors/ItemUsage.cs
+++ b/Assets/Scripts/ServerShared/Behaviors/ItemUsage.cs
@@ -45,8 +45,10 @@ public class ItemUsage : Behavior
if (cargo == null) return false;
var item = cargo.ItemsOfType[_data.Item.Key][0];
- // One unit of a stack, or the unit itself.
- cargo.Remove(item, 1);
+ if (item is SimpleCommodity simpleCommodity)
+ cargo.Remove(simpleCommodity, 1);
+ if (item is CraftedItemInstance craftedItemInstance)
+ cargo.Remove(craftedItemInstance);
return true;
}
diff --git a/Assets/Scripts/ServerShared/Behaviors/Weapon.cs b/Assets/Scripts/ServerShared/Behaviors/Weapon.cs
index 52b69d196..62e4f4b14 100644
--- a/Assets/Scripts/ServerShared/Behaviors/Weapon.cs
+++ b/Assets/Scripts/ServerShared/Behaviors/Weapon.cs
@@ -104,14 +104,6 @@ public abstract class Weapon : ActivatedBehavior
public abstract int Ammo { get; }
// Rounds in the ship's cargo that reload this weapon's magazine: crates of AmmoType, 0 when the weapon draws none.
public int Reserve => _data.AmmoType.IsSet() ? Entity.CountItemsInCargo(_data.AmmoType.Key) : 0;
- // Whether Ammo counts a magazine. A weapon that names an AmmoType and fires from one (InstantWeapon) does; a beam (ConstantWeapon) draws one
- // crate per AmmoInterval straight from the cargo and has none.
- public virtual bool HasMagazine => true;
- // What the HUD's ammunition label shows: "magazine/reserve" for a magazine weapon, the reserve alone for one without a magazine, empty when
- // the weapon draws no ammunition. The one rule the HUD reads, so the label cannot show a magazine a weapon does not have.
- public string AmmoReadout => !ShowsAmmoReadout ? "" : HasMagazine ? $"{Ammo}/{Reserve}" : Reserve.ToString();
- // Whether the HUD shows the ammunition label at all (and not the infinite-ammunition icon): the weapon names an AmmoType.
- public bool ShowsAmmoReadout => _data.AmmoType.IsSet();
public WeaponData WeaponData => _data;
public float RangeFactor(float at) => WeaponData.RangeFactor(MinRange, EffectiveRange, Range, _data.DamageAtMaxRange, at);
diff --git a/Assets/Scripts/ServerShared/CargoTransfer.cs b/Assets/Scripts/ServerShared/CargoTransfer.cs
index f7d789bcf..32f49b611 100644
--- a/Assets/Scripts/ServerShared/CargoTransfer.cs
+++ b/Assets/Scripts/ServerShared/CargoTransfer.cs
@@ -23,8 +23,7 @@ public enum GiveEnd
public sealed class GiveOrder
{
public readonly Entity Receiver;
- // A stack order is for any stack the item StacksWith in the giver's bays (the same design, and for a compound
- // commodity the same lot); a unit order is for this instance.
+ // A commodity order is for any stack of this item's design in the giver's bays; a crafted order is for this instance.
public readonly ItemInstance Item;
// Units still to move.
public int Remaining { get; internal set; }
@@ -100,25 +99,27 @@ public static class CargoTransfer
}
}
- // Where the next unit comes from: the first stack in the giver's bays the order's item StacksWith, or the unit itself.
+ // Where the next unit comes from: the first stack of the order's design in the giver's bays, or the crafted instance.
private static (EquippedCargoBay Bay, ItemInstance Item) Source(Entity giver, GiveOrder order)
{
foreach (var bay in giver.CargoBays)
{
- if (order.Item is ICommodityStack wanted)
+ if (order.Item is CraftedItemInstance crafted)
{
- if (bay.ItemsOfType.TryGetValue(order.Item.Data.Key, out var stacks))
- {
- var stack = stacks.FirstOrDefault(wanted.StacksWith);
- if (stack != null) return (bay, stack);
- }
+ if (bay.Cargo.ContainsKey(crafted)) return (bay, crafted);
+ }
+ else if (bay.ItemsOfType.TryGetValue(order.Item.Data.Key, out var stacks))
+ {
+ var stack = stacks.OfType().FirstOrDefault();
+ if (stack != null) return (bay, stack);
}
- else if (bay.Cargo.ContainsKey(order.Item)) return (bay, order.Item);
}
return (null, null);
}
- // One unit of a stack, or the unit itself, into the first receiver bay that takes it.
+ // One unit of a commodity, or the crafted item, into the first receiver bay that takes it.
private static bool Move(EquippedCargoBay from, ItemInstance item, Entity receiver) =>
- receiver.CargoBays.Any(bay => from.TryTransferItem(bay, item, 1));
+ item is SimpleCommodity commodity
+ ? receiver.CargoBays.Any(bay => from.TryTransferItem(bay, commodity, 1))
+ : receiver.CargoBays.Any(bay => from.TryTransferItem(bay, (CraftedItemInstance) item));
}
diff --git a/Assets/Scripts/ServerShared/Corporations.cs b/Assets/Scripts/ServerShared/Corporations.cs
index 680436520..e527606d9 100644
--- a/Assets/Scripts/ServerShared/Corporations.cs
+++ b/Assets/Scripts/ServerShared/Corporations.cs
@@ -49,10 +49,7 @@ public class Faction
// Keys 13 to 15 (overworldMusic, combatMusic, bossMusic) held Wwise ids; retired, never reuse them.
- // How this faction regards each other faction; absent is Neutral. Directed: this map says how this faction regards them, theirs
- // says how they regard it. Read only through Entity.Regard (ruling faction-relations-field).
- [Inspectable, CultReference(typeof(Faction), many: true), JsonProperty("relations"), Key(16)]
- public Dictionary, FactionRelationship> Relations = new Dictionary, FactionRelationship>();
+ // Key 16 is reserved for Relations (operator ruling faction-relations-field).
// The faction's rules of engagement; null fights as FactionDoctrine.Default.
[Inspectable, JsonProperty("doctrine"), Key(17)]
@@ -61,7 +58,7 @@ public class Faction
// The maker's final assembly: the distribution every lot of theirs draws its own quality from, and the hard ceiling on each
// of its roles (quality-lean-assembly-hard-ceiling). Null is not authored: a lot of theirs assembles at AssemblyDistribution's
// defaults. assembly-from-maker derives it once at the part mean plus a tolerance margin (quality-min-tolerance-binned-assembly);
- // tune it in Studio after that. Key 18 is reserved for Livery. Key 20 was assemblyDeviation (retired); never reuse it.
+ // tune it in Studio after that. Key 16 is reserved for Relations and 18 for Livery. Key 20 was assemblyDeviation (retired); never reuse it.
[Inspectable, JsonProperty("assembly"), Key(19)]
public AssemblyDistribution Assembly;
@@ -87,8 +84,5 @@ public class FactionPlace
// treats an invalid entry as absent; AetherDb place-names refuses a table that holds one.
public static bool IsValidName(string name) =>
!string.IsNullOrEmpty(name) && name == name.Trim() && !name.StartsWith("EAC-", StringComparison.OrdinalIgnoreCase);
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(2)] [CultElementId] public string Id = "";
}
diff --git a/Assets/Scripts/ServerShared/Credits.cs b/Assets/Scripts/ServerShared/Credits.cs
deleted file mode 100644
index 9b7ac4226..000000000
--- a/Assets/Scripts/ServerShared/Credits.cs
+++ /dev/null
@@ -1,189 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-
-// The third-party attributions the shipped game must show the player. One list, owned here: the credits screen only
-// renders it, and CreditsTests holds it against the licence files in Assets. Unity-free so the headless build checks it.
-public class Credit
-{
- public string Name;
- public string Licence;
- // What the licence requires shown: copyright holders, and any change notice.
- public string Notice;
- // The licence file in the repo that carries the full text and that this entry answers for.
- public string LicenceFile;
-}
-
-public static class Credits
-{
- public const string TwemojiFile = "Assets/Fonts/Emoji/LICENSE.txt";
- public const string PlaydeadFile = "Assets/Plugins/Playdead/LICENSE.txt";
- public const string NounProjectFile = "Assets/Resources/Sprites/Attribution.txt";
- public const string LiberationFile = "Assets/TextMesh Pro/Fonts/LiberationSans - OFL.txt";
- // Fonts state their holder and licence in their own name tables; the licence texts shipped beside them are these.
- public const string UbuntuLicenceFile = "Assets/Fonts/Ubuntu/UFL-1.0.txt";
- public const string MontserratLicenceFile = "Assets/Fonts/Ubuntu/Montserrat-OFL-1.1.txt";
- public const string UniRxFile = "Assets/Plugins/UniRx/ReadMe.txt";
- public const string AmbientCgFile = "Assets/Materials/PBR/SOURCES.md";
- public const string KdTreeFile = "Assets/Scripts/ServerShared/NIH/KDTree/KDTree.cs";
- public const string SimplexNoiseFile = "Assets/Plugins/GPU Noise/SimplexNoise2D.cginc";
- // Works whose notice is only a source-file header; each answers through the file whose header states it.
- public const string UnityShaderFile = "Assets/Shaders/Particle Standard Unlit.shader";
- public const string AdditiveUiFile = "Assets/Shaders/AdditiveUI.shader";
- public const string AcesFile = "Assets/Shaders/CustomDoF/ACES.hlsl";
- public const string BezierPathFile = "Assets/Plugins/com.unity.uiextensions/Runtime/Scripts/Utilities/BezierPath.cs";
- public const string ClassicNoiseFile = "Assets/Plugins/Celestial Body/Scripts/Shaders/Includes/SimplexNoise2.cginc";
- // The first line of the attribution file; the icon credits are the lines after it.
- public const string NounProjectHeading = "Noun Project";
- // Where the player build loads the Noun Project credit lines from (Resources path, no extension).
- public const string NounProjectResource = "Sprites/Attribution";
-
- // The full list. The Noun Project icon credits are the lines of its attribution file, whose text the caller supplies
- // (Unity reads it as a Resources TextAsset; tests read it from disk), so the file stays the one copy of those names.
- public static IReadOnlyList All(string nounProjectAttribution)
- {
- var credits = new List
- {
- new Credit
- {
- Name = "Twemoji",
- Licence = "CC BY 4.0",
- Notice = "Copyright (c) 2022-present Jason Sofonia & Justine De Caires; copyright (c) 2014-2021 Twitter. " +
- "Graphics licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). " +
- "Converted to a colour font; the artwork itself is not edited.",
- LicenceFile = TwemojiFile
- },
- new Credit
- {
- Name = "Playdead temporal anti-aliasing",
- Licence = "MIT",
- Notice = "Copyright (c) 2015 Playdead",
- LicenceFile = PlaydeadFile
- },
- new Credit
- {
- Name = "Liberation Sans",
- Licence = "SIL Open Font License 1.1",
- Notice = "Digitized data copyright (c) 2010 Google Corporation with Reserved Font Arimo, Tinos and Cousine. " +
- "Copyright (c) 2012 Red Hat, Inc. with Reserved Font Name Liberation.",
- LicenceFile = LiberationFile
- },
- new Credit
- {
- Name = "Ubuntu and Ubuntu Mono fonts",
- Licence = "Ubuntu Font Licence 1.0",
- Notice = "Copyright 2011 Canonical Ltd.",
- LicenceFile = UbuntuLicenceFile
- },
- new Credit
- {
- Name = "Montserrat",
- Licence = "SIL Open Font License 1.1",
- Notice = "Copyright(c) 2014 by Julieta Ulanovsky",
- LicenceFile = MontserratLicenceFile
- },
- new Credit
- {
- Name = "UniRx",
- Licence = "MIT",
- Notice = "Created by Yoshifumi Kawai (neuecc)",
- LicenceFile = UniRxFile
- },
- new Credit
- {
- Name = "KDTree",
- Licence = "MIT",
- Notice = "Copyright (c) 2018 Vili Volčini / viliwonka",
- LicenceFile = KdTreeFile
- },
- new Credit
- {
- Name = "webgl-noise simplex noise",
- Licence = "MIT",
- Notice = "Copyright (C) 2011 Ashima Arts. Author: Ian McEwan, Ashima Arts " +
- "(https://github.com/ashima/webgl-noise). Translated to Unity shaders and modified by Keijiro Takahashi " +
- "(https://github.com/keijiro/NoiseShader).",
- LicenceFile = SimplexNoiseFile
- },
- new Credit
- {
- Name = "Celestial Body noise shaders",
- Licence = "MIT",
- Notice = "Copyright (C) 2011 Ashima Arts. Copyright (C) 2011 by Ashima Arts (Simplex noise). " +
- "Copyright (C) 2011 by Stefan Gustavson (Classic noise).",
- LicenceFile = ClassicNoiseFile
- },
- new Credit
- {
- Name = "Unity built-in shaders",
- Licence = "MIT",
- Notice = "Copyright (c) 2016 Unity Technologies. Shader source adapted from Unity's built-in shaders " +
- "(Particle Standard Unlit, StretchedSkybox, MaskedWorldSpaceUI, MaskedWorldSpaceAdditiveUI).",
- LicenceFile = UnityShaderFile
- },
- new Credit
- {
- Name = "AdditiveUI shaders",
- Licence = "MIT for the Unity Technologies portion; the Supyrb portion states no licence",
- Notice = "Copyright (c) 2017 Supyrb. All rights reserved. Author: Johannes Deml. " +
- "Built on Unity's built-in UI shader, copyright (c) 2016 Unity Technologies, MIT.",
- LicenceFile = AdditiveUiFile
- },
- new Credit
- {
- Name = "ACES colour transforms",
- Licence = "Academy Color Encoding System licence",
- Notice = "Copyright 2015 Academy of Motion Picture Arts and Sciences (A.M.P.A.S.). " +
- "Portions contributed by others as indicated. All rights reserved. " +
- "Source: https://github.com/ampas/aces-dev",
- LicenceFile = AcesFile
- },
- new Credit
- {
- Name = "Bezier path (UI Extensions)",
- Licence = "No named licence; permissive grant in the file header",
- Notice = "Author: Herman Tulleken, dev.mag.org.za (http://devmag.org.za/2011/04/05/bzier-curves-a-tutorial/). " +
- "Use this code as you wish, at your own risk.",
- LicenceFile = BezierPathFile
- },
- new Credit
- {
- Name = "ambientCG PBR materials",
- Licence = "CC0 1.0 Universal",
- Notice = "Texture sets from ambientCG (https://ambientcg.com), public domain",
- LicenceFile = AmbientCgFile
- },
- new Credit
- {
- Name = "Noun Project icons",
- Licence = "Noun Project attribution licence",
- Notice = string.Join("\n", NounProjectLines(nounProjectAttribution)),
- LicenceFile = NounProjectFile
- }
- };
- Validate(credits);
- return credits;
- }
-
- // The icon credit lines of the attribution file: everything after its "Noun Project" heading, one line per icon (the
- // file's "Other" sub-heading and its lines follow in the same list). A file that does not open with the heading is
- // refused rather than having its first line dropped.
- public static IEnumerable NounProjectLines(string attribution)
- {
- var lines = (attribution ?? "").Split('\n').Select(line => line.Trim()).Where(line => line.Length > 0).ToArray();
- if (lines.Length < 2 || lines[0] != NounProjectHeading)
- throw new InvalidOperationException($"{NounProjectFile} must open with the heading '{NounProjectHeading}' followed by icon credits");
- return lines.Skip(1);
- }
-
- // Throws on an entry a player-facing screen could not honestly show.
- public static void Validate(IReadOnlyList credits)
- {
- foreach (var credit in credits)
- if (string.IsNullOrWhiteSpace(credit.Name) || string.IsNullOrWhiteSpace(credit.Licence) ||
- string.IsNullOrWhiteSpace(credit.Notice) || string.IsNullOrWhiteSpace(credit.LicenceFile))
- throw new InvalidOperationException($"Credit '{credit.Name}' is missing its name, licence, notice or licence file");
- var duplicate = credits.GroupBy(credit => credit.LicenceFile).FirstOrDefault(group => group.Count() > 1);
- if (duplicate != null) throw new InvalidOperationException($"Licence file {duplicate.Key} is credited twice");
- }
-}
diff --git a/Assets/Scripts/ServerShared/Credits.cs.meta b/Assets/Scripts/ServerShared/Credits.cs.meta
deleted file mode 100644
index e88730bb6..000000000
--- a/Assets/Scripts/ServerShared/Credits.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: b3333d3c0203441fbadd64fad27b60e5
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Scripts/ServerShared/Delaunay.cs b/Assets/Scripts/ServerShared/Delaunay.cs
index 911de658a..b6a25bba6 100644
--- a/Assets/Scripts/ServerShared/Delaunay.cs
+++ b/Assets/Scripts/ServerShared/Delaunay.cs
@@ -1,33 +1,17 @@
using System;
using System.Collections.Generic;
-using System.Numerics;
using CultMath;
// The Delaunay triangulation of a galaxy's zone positions, as the edges Galaxy links zones along. Bowyer-Watson
-// (Bowyer 1981, Watson 1981): each point is inserted by removing every triangle whose circumcircle strictly holds it and
-// fanning the cavity's boundary to it. The orientation and in-circle predicates are exact: a double-precision
-// determinant answers when it clears its rounding-error bound (Shewchuk 1997), otherwise the determinant is evaluated
-// in BigInteger, since every double is a dyadic rational. For two or more distinct points the edge graph is connected:
-// collinear points link each to its neighbour along the line; duplicate or non-finite points throw.
+// (Bowyer 1981, Watson 1981) in double precision: each point is inserted by removing every triangle whose
+// circumcircle holds it and fanning the cavity's boundary to it. Every point lands in the triangulation, so for two or
+// more distinct points the edge graph is connected.
public static class Delaunay
{
// Each edge once, as (lower index, higher index), in ascending order.
public static List<(int a, int b)> Edges(IReadOnlyList points)
{
var n = points.Count;
- var order = new int[n];
- for (var i = 0; i < n; i++)
- {
- if (!float.IsFinite(points[i].x) || !float.IsFinite(points[i].y))
- throw new ArgumentException($"Delaunay point {i} is not finite: ({points[i].x}, {points[i].y})");
- order[i] = i;
- }
- // Lexicographic order runs along any line, and puts equal points side by side.
- Array.Sort(order, (i, j) => points[i].x != points[j].x ? points[i].x.CompareTo(points[j].x) : points[i].y.CompareTo(points[j].y));
- for (var i = 1; i < n; i++)
- if (points[order[i - 1]].x == points[order[i]].x && points[order[i - 1]].y == points[order[i]].y)
- throw new ArgumentException($"Delaunay points {Math.Min(order[i - 1], order[i])} and {Math.Max(order[i - 1], order[i])} are the same point ({points[order[i]].x}, {points[order[i]].y})");
-
var x = new double[n + 3];
var y = new double[n + 3];
double minX = double.MaxValue, minY = double.MaxValue, maxX = double.MinValue, maxY = double.MinValue;
@@ -41,22 +25,9 @@ public static class Delaunay
maxY = Math.Max(maxY, y[i]);
}
- var collinear = true;
- for (var i = 2; i < n && collinear; i++)
- collinear = Orientation(x, y, order[0], order[1], order[i]) == 0;
- if (collinear)
- {
- var line = new List<(int a, int b)>();
- for (var i = 1; i < n; i++) line.Add(Ordered(order[i - 1], order[i]));
- line.Sort();
- return line;
- }
-
- // A super-triangle so far outside the points that its vertices bend no edge between them: a float's coordinates
- // are multiples of 2^-149, so a triple of distinct non-collinear points has circumradius under extent^3 * 2^300,
- // which 2^700 * extent exceeds for any extent a float holds. Its triangles are dropped at the end. Its
- // coordinates overflow the double determinants, which then fail every comparison and fall to the exact path.
- var size = Math.Max(maxX - minX, maxY - minY) * Math.Pow(2, 700);
+ // A super-triangle far outside the points, so its vertices bend no edge between them; its triangles are
+ // dropped at the end.
+ var size = Math.Max(Math.Max(maxX - minX, maxY - minY), 1e-6) * 1000;
double midX = (minX + maxX) / 2, midY = (minY + maxY) / 2;
x[n] = midX - size; y[n] = midY - size;
x[n + 1] = midX + size; y[n + 1] = midY - size;
@@ -70,7 +41,9 @@ public static class Delaunay
for (var t = triangles.Count - 1; t >= 0; t--)
{
var triangle = triangles[t];
- if (InCircle(x, y, triangle.A, triangle.B, triangle.C, p) * triangle.Orientation <= 0) continue;
+ var dx = x[p] - triangle.CenterX;
+ var dy = y[p] - triangle.CenterY;
+ if (dx * dx + dy * dy >= triangle.RadiusSquared) continue;
Count(cavity, triangle.A, triangle.B);
Count(cavity, triangle.B, triangle.C);
Count(cavity, triangle.C, triangle.A);
@@ -106,90 +79,19 @@ public static class Delaunay
private readonly struct Triangle
{
public readonly int A, B, C;
- // +1 if A, B, C run counter-clockwise, -1 if clockwise; a triangle never has zero area.
- public readonly int Orientation;
+ public readonly double CenterX, CenterY, RadiusSquared;
public Triangle(int a, int b, int c, double[] x, double[] y)
{
A = a;
B = b;
C = c;
- Orientation = Delaunay.Orientation(x, y, a, b, c);
- if (Orientation == 0) throw new InvalidOperationException($"Delaunay built a zero-area triangle on points {a}, {b}, {c}");
- }
- }
-
- // Shewchuk's error bounds for the double-precision determinants: (3 + 16e)e and (10 + 96e)e, e = 2^-53.
- private const double OrientationBound = 3.3306690738754716e-16;
- private const double InCircleBound = 1.1102230246251577e-15;
-
- // The sign of the area a, b, c span: +1 counter-clockwise, -1 clockwise, 0 collinear.
- private static int Orientation(double[] x, double[] y, int a, int b, int c)
- {
- var left = (x[a] - x[c]) * (y[b] - y[c]);
- var right = (y[a] - y[c]) * (x[b] - x[c]);
- var det = left - right;
- var bound = OrientationBound * (Math.Abs(left) + Math.Abs(right));
- if (det > bound) return 1;
- if (-det > bound) return -1;
- var exact = Exact.Of(x, y, a, b, c);
- return (exact[0] * exact[3] - exact[1] * exact[2]).Sign;
- }
-
- // The sign of the in-circle determinant: +1 when p is strictly inside the circle through a, b, c taken
- // counter-clockwise, -1 strictly outside, 0 on it.
- private static int InCircle(double[] x, double[] y, int a, int b, int c, int p)
- {
- double adx = x[a] - x[p], ady = y[a] - y[p], bdx = x[b] - x[p], bdy = y[b] - y[p], cdx = x[c] - x[p], cdy = y[c] - y[p];
- double abL = adx * bdy, abR = bdx * ady, bcL = bdx * cdy, bcR = cdx * bdy, caL = cdx * ady, caR = adx * cdy;
- double alift = adx * adx + ady * ady, blift = bdx * bdx + bdy * bdy, clift = cdx * cdx + cdy * cdy;
- var det = alift * (bcL - bcR) + blift * (caL - caR) + clift * (abL - abR);
- var permanent = (Math.Abs(bcL) + Math.Abs(bcR)) * alift + (Math.Abs(caL) + Math.Abs(caR)) * blift + (Math.Abs(abL) + Math.Abs(abR)) * clift;
- var bound = InCircleBound * permanent;
- if (det > bound) return 1;
- if (-det > bound) return -1;
- var e = Exact.Of(x, y, a, b, c, p);
- BigInteger ax = e[0], ay = e[1], bx = e[2], by = e[3], cx = e[4], cy = e[5];
- return (e[6] * (bx * cy - cx * by) + e[7] * (cx * ay - ax * cy) + e[8] * (ax * by - bx * ay)).Sign;
- }
-
- // Coordinates exactly, as integers in units of the smallest binary exponent among them.
- private static class Exact
- {
- // Orientation: [a.x - c.x, a.y - c.y, b.x - c.x, b.y - c.y] with the cross product the caller takes.
- public static BigInteger[] Of(double[] x, double[] y, int a, int b, int c)
- {
- var v = Scaled(new[] { x[a], y[a], x[b], y[b], x[c], y[c] });
- return new[] { v[0] - v[4], v[1] - v[5], v[2] - v[4], v[3] - v[5] };
- }
-
- // In-circle: [a - p (x, y), b - p, c - p, then each one's squared length].
- public static BigInteger[] Of(double[] x, double[] y, int a, int b, int c, int p)
- {
- var v = Scaled(new[] { x[a], y[a], x[b], y[b], x[c], y[c], x[p], y[p] });
- BigInteger adx = v[0] - v[6], ady = v[1] - v[7], bdx = v[2] - v[6], bdy = v[3] - v[7], cdx = v[4] - v[6], cdy = v[5] - v[7];
- return new[] { adx, ady, bdx, bdy, cdx, cdy, adx * adx + ady * ady, bdx * bdx + bdy * bdy, cdx * cdx + cdy * cdy };
- }
-
- private static BigInteger[] Scaled(double[] values)
- {
- var mantissa = new long[values.Length];
- var exponent = new int[values.Length];
- var lowest = int.MaxValue;
- for (var i = 0; i < values.Length; i++)
- {
- var bits = BitConverter.DoubleToInt64Bits(values[i]);
- var biased = (int) ((bits >> 52) & 0x7FF);
- var fraction = bits & 0xFFFFFFFFFFFFFL;
- mantissa[i] = biased == 0 ? fraction : fraction | (1L << 52);
- exponent[i] = biased == 0 ? -1074 : biased - 1075;
- if (bits < 0) mantissa[i] = -mantissa[i];
- if (mantissa[i] != 0) lowest = Math.Min(lowest, exponent[i]);
- }
- var scaled = new BigInteger[values.Length];
- for (var i = 0; i < values.Length; i++)
- scaled[i] = mantissa[i] == 0 ? BigInteger.Zero : new BigInteger(mantissa[i]) << (exponent[i] - lowest);
- return scaled;
+ double ax = x[a], ay = y[a], bx = x[b], by = y[b], cx = x[c], cy = y[c];
+ var d = 2 * (ax * (by - cy) + bx * (cy - ay) + cx * (ay - by));
+ double a2 = ax * ax + ay * ay, b2 = bx * bx + by * by, c2 = cx * cx + cy * cy;
+ CenterX = (a2 * (by - cy) + b2 * (cy - ay) + c2 * (ay - by)) / d;
+ CenterY = (a2 * (cx - bx) + b2 * (ax - cx) + c2 * (bx - ax)) / d;
+ RadiusSquared = (ax - CenterX) * (ax - CenterX) + (ay - CenterY) * (ay - CenterY);
}
}
}
diff --git a/Assets/Scripts/ServerShared/DemoPressure.cs b/Assets/Scripts/ServerShared/DemoPressure.cs
deleted file mode 100644
index 25987b3b2..000000000
--- a/Assets/Scripts/ServerShared/DemoPressure.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
-
-using System;
-using System.Linq;
-
-// The demo's pressure curve (aetheria-release, cut demo-pressure-curve): how many hostiles, of what hull tier, a zone of a
-// galaxy with a gate antagonist (Galaxy.Antagonist) holds, as a function of its depth toward the gate. The single owner of these numbers;
-// ZoneGenerator asks and draws. Pure: no Unity, no cache, no randomness, so the same persisted galaxy yields the same zone.
-public static class DemoPressure
-{
- // Depth at or below which a zone carries no hostiles. Depth is e / (e + x), the share of the way from the entrance to the
- // gate a zone sits at, so a quarter covers the entrance, its neighbours, and on a short galaxy the first jump out.
- public const float GraceDepth = 0.25f;
-
- // Hostiles at the gate (its ring, besides the boss), the most the curve ever asks for.
- public const int MaxHostiles = 6;
-
- // Tier is depth raised to this power: above 1 keeps heavy hulls rare until the last stretch.
- public const float TierExponent = 2f;
-
- public readonly struct Pressure
- {
- public readonly int Hostiles;
- // 0..1: the antagonist's ship hulls up to this quantile of cost may be drawn.
- public readonly float Tier;
- public Pressure(int hostiles, float tier) { Hostiles = hostiles; Tier = tier; }
- }
-
- // e / (e + x) for e = jumps from the entrance and x = jumps to the exit: 0 only at the entrance, 1 only at the gate, from
- // the persisted Entrance and Exit alone. On a shortest entrance-exit path it is the share of the way travelled; a zone
- // behind the entrance rises slowly with its distance from it rather than sitting at 0.
- public static float Depth(Galaxy galaxy, GalaxyZone zone)
- {
- float e = galaxy.Entrance.Distance[zone], x = galaxy.Exit.Distance[zone];
- return e + x == 0 ? 0f : e / (e + x);
- }
-
- // The entrance and this many jumps around it are quiet whatever the galaxy's depth scale, so a short galaxy's first
- // neighbours are no deeper than the grace.
- public const int GraceJumps = 1;
-
- // No antagonist ship, station or turret holds a zone in grace.
- public static bool InGrace(Galaxy galaxy, GalaxyZone zone) =>
- galaxy.Entrance.Distance[zone] <= GraceJumps || Depth(galaxy, zone) <= GraceDepth;
-
- // What the zone holds: the curve at its depth, none in grace.
- public static Pressure Of(Galaxy galaxy, GalaxyZone zone) =>
- InGrace(galaxy, zone) ? new Pressure(0, At(Depth(galaxy, zone)).Tier) : At(Depth(galaxy, zone));
-
- public static Pressure At(float depth)
- {
- depth = Math.Clamp(depth, 0f, 1f);
- var ramp = Math.Clamp((depth - GraceDepth) / (1f - GraceDepth), 0f, 1f);
- var smooth = ramp * ramp * (3f - 2f * ramp);
- return new Pressure((int)MathF.Round(MaxHostiles * smooth), MathF.Pow(depth, TierExponent));
- }
-
- // The dearest hull price the tier admits: the price at that quantile of the hulls offered, cheapest first. Never below the
- // cheapest hull offered, so the draw is never empty while any hull is offered.
- public static int PriceCeiling(int[] offeredPrices, float tier)
- {
- var sorted = offeredPrices.OrderBy(price => price).ToArray();
- return sorted[(int)MathF.Round(Math.Clamp(tier, 0f, 1f) * (sorted.Length - 1))];
- }
-}
diff --git a/Assets/Scripts/ServerShared/DrawAhead.cs b/Assets/Scripts/ServerShared/DrawAhead.cs
index a1d389083..a5d4736c5 100644
--- a/Assets/Scripts/ServerShared/DrawAhead.cs
+++ b/Assets/Scripts/ServerShared/DrawAhead.cs
@@ -106,7 +106,7 @@ public static class DrawAhead
}
public static BeltDraw DrawListOf(AsteroidBelt belt, PlanetSettings settings, IReadOnlyList meshes, System.Func radius, int keep, CultRecordKey beltKey) =>
- new(Enumerable.Range(0, belt.Data.Asteroids.Length).Select(i => belt.UndamagedSize(i, settings)).ToArray(), meshes, radius, keep, belt.Data.SiteOr(beltKey));
+ new(Enumerable.Range(0, belt.Data.Asteroids.Length).Select(i => belt.UndamagedSize(i, settings)).ToArray(), meshes, radius, keep, beltKey.Value);
// A ship in a wormhole animation has its pose scripted by the step, not integrated from Velocity and TurnRate,
// so it is drawn where the step put it: extrapolating a scripted pose draws a streak that resets every step.
diff --git a/Assets/Scripts/ServerShared/EconomyBalance.cs b/Assets/Scripts/ServerShared/EconomyBalance.cs
deleted file mode 100644
index 770806487..000000000
--- a/Assets/Scripts/ServerShared/EconomyBalance.cs
+++ /dev/null
@@ -1,195 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using GameCult.Caching;
-
-// One recipe read as a chain link. Wage is the implied credits per worker-second at the authored prices; null when the link
-// is unpriced (an input, any filler of a role, or the output at Price 0) or has no labour. Cost is the derived cost of one output unit.
-public sealed class BalanceLink
-{
- public string Output, Name, StationKind;
- public double Labour, Price, Cost;
- public double? Wage;
- public double? WageRatio;
- // Why Wage is null: "output" (the output is at Price 0), "input" (an input, upkeep or role filler is at Price 0), "labour" (no labour);
- // null when priced. The first that applies, in that order.
- public string Unpriced;
-}
-
-// One ore a kind of belt holds: its share of the kind's abundance, its extraction link's wage over the median, its price and cost.
-public sealed class BeltYield
-{
- public string Ore;
- public double Share, Price, Cost;
- public double? WageRatio;
-}
-
-public sealed class BeltRow
-{
- public string Kind;
- public List Yields = new List();
- public double Price, Cost;
-}
-
-public sealed class BalanceReport
-{
- public double WageReference;
- public List Links;
- public List Faults;
- public List Belts;
-}
-
-// The static economy balance: a steady-state input-output reading of the chain (Leontief 1936; Sraffa 1960 zero-profit prices under
-// one wage; Samuelson 1951: with labour the only primary factor the cheapest filler of a role is demand-independent; Lewis 1954: the
-// extraction sector sets the going wage). Pure: reads the catalog, writes nothing. ItemData.Price stays the one price the game charges;
-// for a made commodity it is the price Prices derives, which economy author writes. Balance's faults are report-only.
-public static class EconomyBalance
-{
- public const string HMargin = "H-margin", HWage = "H-wage", HConverge = "H-converge";
- private const int SweepCap = 10000, SettleWindow = 100;
-
- // The stored price a derived price becomes: whole credits, at least 1.
- public static int Rounded(double derived) => (int) Math.Max(1, Math.Round(derived, MidpointRounding.AwayFromZero));
-
- // The words for goods whose price does not settle.
- public static string Unsettled(CultCache catalog, IEnumerable keys) =>
- $"No price settles within {SweepCap} sweeps: these goods sit on a cycle of recipes whose requirements do not shrink: " +
- string.Join(", ", keys.Select(k => catalog.Get(new CultRecordKey(k))?.Name ?? k));
-
- private static double Price(CultCache catalog, string key) => catalog.Get(new CultRecordKey(key))?.Price ?? 0;
-
- // Authored-price wage per link; the cheapest filler fills a role, and a role with any filler at Price 0 leaves the link unpriced.
- private static List Links(CultCache catalog, List columns)
- {
- double? CheapestPriced(string[] fillers) => fillers.Length == 0 || fillers.Any(f => Price(catalog, f) <= 0) ? (double?) null : fillers.Min(f => Price(catalog, f));
- var links = new List();
- foreach (var c in columns)
- {
- var link = new BalanceLink { Output = c.Output, Name = catalog.Get(c.Recipe.Output)?.Name ?? c.Output, Labour = c.Labour, Price = Price(catalog, c.Output), StationKind = catalog.Get(c.Recipe.StationKind)?.Name ?? "no kind" };
- var cost = 0.0;
- var inputsPriced = true;
- foreach (var (commodity, count) in c.Inputs.Concat(c.Upkeep))
- {
- if (count <= 0) continue;
- var p = Price(catalog, commodity);
- if (p <= 0) inputsPriced = false;
- cost += count * p;
- }
- foreach (var slot in c.Slots)
- {
- if (slot.Count <= 0) continue;
- var p = CheapestPriced(slot.Fillers);
- if (p == null) inputsPriced = false;
- else cost += slot.Count * p.Value;
- }
- link.Unpriced = link.Price <= 0 ? "output" : !inputsPriced ? "input" : c.Labour <= 0 ? "labour" : null;
- if (link.Unpriced == null) link.Wage = (c.OutputCount * link.Price - cost) / c.Labour;
- links.Add(link);
- }
- return links;
- }
-
- // The going wage: the median implied wage of the priced raw links, 0 when none is priced.
- private static double RawWage(CultCache catalog, List columns, List links)
- {
- var wages = links.Where((l, i) => l.Wage.HasValue && columns[i].IsCommodity && Recipes.IsRaw(catalog, columns[i].Recipe)).Select(l => l.Wage.Value).OrderBy(w => w).ToList();
- return wages.Count == 0 ? 0 : wages.Count % 2 == 1 ? wages[wages.Count / 2] : (wages[wages.Count / 2 - 1] + wages[wages.Count / 2]) / 2;
- }
-
- public static double Wage(CultCache catalog)
- {
- var columns = EconomyChecks.Columns(catalog);
- return RawWage(catalog, columns, Links(catalog, columns));
- }
-
- // Value iteration from zero over every recipe at one wage. A good in fixedOutputs, or with no recipe, holds its authored price.
- // Two recipes for one output: the cheaper sets its price, as a role takes its cheapest filler.
- private static Dictionary Sweep(CultCache catalog, List columns, double wage, ISet fixedOutputs, out List unsettled)
- {
- var derived = new Dictionary(StringComparer.Ordinal);
- foreach (var c in columns) if (!fixedOutputs.Contains(c.Output)) derived[c.Output] = 0;
- double Cost(string key) => derived.TryGetValue(key, out var v) ? v : Price(catalog, key);
- var converged = false;
- // The last sweep each good moved in: a cycle can move one good per sweep, so the last sweep alone would name half of it.
- var lastMoved = new Dictionary(StringComparer.Ordinal);
- for (var sweep = 0; sweep < SweepCap && !converged; sweep++)
- {
- converged = true;
- var best = new Dictionary(StringComparer.Ordinal);
- foreach (var c in columns.Where(c => !fixedOutputs.Contains(c.Output)))
- {
- var sum = wage * c.Labour;
- foreach (var (commodity, count) in c.Inputs.Concat(c.Upkeep)) if (count > 0) sum += count * Cost(commodity);
- foreach (var slot in c.Slots)
- if (slot.Count > 0 && slot.Fillers.Length > 0) sum += slot.Count * slot.Fillers.Min(Cost);
- var next = sum / c.OutputCount;
- if (!best.TryGetValue(c.Output, out var held) || next < held) best[c.Output] = next;
- }
- foreach (var (output, next) in best)
- {
- // A price that is not a finite number is not settled, however little it moved.
- if (!double.IsFinite(next) || Math.Abs(next - derived[output]) > 1e-12 * Math.Max(1, Math.Abs(next))) { converged = false; lastMoved[output] = sweep; }
- derived[output] = next;
- }
- }
- unsettled = converged ? new List() : lastMoved.Where(p => p.Value >= SweepCap - SettleWindow).Select(p => p.Key).OrderBy(k => k, StringComparer.Ordinal).ToList();
- return derived;
- }
-
- // The price of every made commodity (a commodity whose recipe is not raw) at the going wage: its inputs, upkeep and cheapest
- // role fillers at their prices, plus the wage times its labour, over its output count. Raw and recipeless goods keep their
- // authored price; designs are not priced here unless asked. Unsettled names the goods still moving when the sweep gave up: a cycle of recipes
- // whose requirements do not shrink has no price, so none of the values are a price.
- // With designs, the derived price of every design output that has a recipe is returned too: a reading for the report, never a
- // price anything writes.
- public static Dictionary Prices(CultCache catalog, out List unsettled, bool designs = false)
- {
- var columns = EconomyChecks.Columns(catalog);
- var raw = new HashSet(columns.Where(c => Recipes.IsRaw(catalog, c.Recipe)).Select(c => c.Output), StringComparer.Ordinal);
- var derived = Sweep(catalog, columns, RawWage(catalog, columns, Links(catalog, columns)), raw, out unsettled);
- return columns.Where(c => (c.IsCommodity || designs) && !raw.Contains(c.Output)).Select(c => c.Output).Distinct(StringComparer.Ordinal)
- .ToDictionary(key => key, key => derived[key], StringComparer.Ordinal);
- }
-
- public static BalanceReport Balance(CultCache catalog, double wageSpread = 2)
- {
- var columns = EconomyChecks.Columns(catalog);
- var links = Links(catalog, columns);
- var reference = RawWage(catalog, columns, links);
- foreach (var l in links) l.WageRatio = reference > 0 ? l.Wage / reference : null;
-
- // Derived cost: nothing fixed, so an ore costs its labour; belt rows show price minus cost, the rent.
- var derived = Sweep(catalog, columns, reference, new HashSet(), out var unsettled);
- var converged = unsettled.Count == 0;
- double Cost(string key) => derived.TryGetValue(key, out var v) ? v : Price(catalog, key);
- foreach (var l in links) l.Cost = derived[l.Output];
-
- var faults = new List();
- if (!converged) faults.Add(new EconomyFault(HConverge, "(chain)", $"Derived cost did not settle within {SweepCap} sweeps."));
- foreach (var l in links.Where(l => l.Wage.HasValue))
- {
- if (l.Wage.Value <= 0)
- faults.Add(new EconomyFault(HMargin, l.Output, $"{l.Name} sells at or below its inputs: implied wage {l.Wage.Value:0.#####} per worker-second."));
- else if (reference > 0 && (l.Wage.Value < reference / wageSpread || l.Wage.Value > reference * wageSpread))
- faults.Add(new EconomyFault(HWage, l.Output, $"{l.Name}: implied wage {l.Wage.Value:0.#####} is {l.WageRatio:0.##}x the median {reference:0.#####}, outside the spread of {wageSpread:0.##}."));
- }
-
- var belts = new List();
- foreach (var kind in catalog.GetAll().OrderBy(k => k.Name, StringComparer.Ordinal))
- {
- var row = new BeltRow { Kind = kind.Name };
- var total = kind.Yields.Where(y => y.Abundance > 0).Sum(y => (double) y.Abundance);
- foreach (var y in kind.Yields.Where(y => y.Abundance > 0 && total > 0))
- {
- var ore = y.Commodity.Key.Value;
- var share = y.Abundance / total;
- var yield = new BeltYield { Ore = ore, Share = share, Price = Price(catalog, ore), Cost = Cost(ore), WageRatio = links.FirstOrDefault(l => l.Output == ore)?.WageRatio };
- row.Price += share * yield.Price;
- row.Cost += share * yield.Cost;
- row.Yields.Add(yield);
- }
- belts.Add(row);
- }
- return new BalanceReport { WageReference = reference, Links = links, Faults = faults, Belts = belts };
- }
-}
diff --git a/Assets/Scripts/ServerShared/EconomyChecks.cs b/Assets/Scripts/ServerShared/EconomyChecks.cs
index cff5de88b..75de68f57 100644
--- a/Assets/Scripts/ServerShared/EconomyChecks.cs
+++ b/Assets/Scripts/ServerShared/EconomyChecks.cs
@@ -56,16 +56,13 @@ public sealed class EconomyReport
// The one owner of the catalog's economy invariants. Pure: draws nothing, reads no clock, writes nothing. One method per rule.
public static class EconomyChecks
{
- public const string LRecipe = "L-recipe", LOneKindList = "L-one-kind-list", LLore = "L-lore", LSource = "L-source-sink", LProductive = "L-productive", LDemand = "L-consumer-demand", LWeights = "L-weights", LShape = "L-shape", LPrice = "L-price";
+ public const string LRecipe = "L-recipe", LOneKindList = "L-one-kind-list", LLore = "L-lore", LSource = "L-source-sink", LProductive = "L-productive", LDemand = "L-consumer-demand";
private const double Margin = 1e-9;
public static EconomyReport Check(CultCache catalog, EconomyLoad load = null)
{
var faults = new List();
faults.AddRange(Recipe(catalog));
- faults.AddRange(Shapes(catalog));
- faults.AddRange(PriceCheck(catalog));
- faults.AddRange(Weights(catalog));
faults.AddRange(Lore(catalog));
faults.AddRange(SourceSink(catalog));
faults.AddRange(Productive(catalog, load));
@@ -96,7 +93,7 @@ public static class EconomyChecks
};
// The designs some faction offers, but a Station or Turret hull, distinct and ordered by key: the designs that need a recipe.
- public static List OfferedDesigns(CultCache catalog)
+ private static List OfferedDesigns(CultCache catalog)
{
var designs = new Dictionary(StringComparer.Ordinal);
foreach (var product in catalog.GetAll().Where(p => LoadoutGenerator.IsOffered(catalog, p)))
@@ -116,75 +113,6 @@ public static class EconomyChecks
private static IEnumerable Commodities(CultCache catalog) =>
catalog.GetAll().Where(Recipes.IsCommodity).OrderBy(item => catalog.RefOf(item).Key.Value, StringComparer.Ordinal);
- // Ore geography is weighted draws: a field kind's generation weight and abundances, a province's card count and its kind and ore
- // weights are finite and not negative, and every yield, kind weight and province ore names a record this catalog holds. A weight of
- // zero is legal (never drawn); a negative or NaN weight corrupts the weighted pick.
- public static List Weights(CultCache catalog)
- {
- var faults = new List();
- void Weight(string record, string field, double value)
- {
- if (!double.IsFinite(value) || value < 0) faults.Add(new EconomyFault(LWeights, record, $"{field} is {value}, not a finite number from zero up."));
- }
- void Names(string record, string field, CultRecordRef reference) where T : class
- {
- if (catalog.Get(reference) == null) faults.Add(new EconomyFault(LWeights, record, $"{field} names no record this catalog holds."));
- }
- foreach (var kind in catalog.GetAll().OrderBy(k => catalog.RefOf(k).Key.Value, StringComparer.Ordinal))
- {
- var key = catalog.RefOf(kind).Key.Value;
- Weight(key, "GenerationWeight", kind.GenerationWeight);
- for (var i = 0; i < (kind.Yields?.Count ?? 0); i++)
- {
- Weight(key, $"Yields[{i}].Abundance", kind.Yields[i].Abundance);
- Names(key, $"Yields[{i}].Commodity", kind.Yields[i].Commodity);
- }
- }
- foreach (var province in catalog.GetAll().OrderBy(p => catalog.RefOf(p).Key.Value, StringComparer.Ordinal))
- {
- var key = catalog.RefOf(province).Key.Value;
- Weight(key, "GenerationWeight", province.GenerationWeight);
- for (var i = 0; i < (province.Kinds?.Count ?? 0); i++)
- {
- Weight(key, $"Kinds[{i}].Weight", province.Kinds[i].Weight);
- Names(key, $"Kinds[{i}].Kind", province.Kinds[i].Kind);
- }
- for (var i = 0; i < (province.Ores?.Count ?? 0); i++)
- {
- Weight(key, $"Ores[{i}].Weight", province.Ores[i].Weight);
- Names(key, $"Ores[{i}].Commodity", province.Ores[i].Commodity);
- }
- }
- return faults;
- }
-
- // Every commodity holds a Shape with at least one cell: a cargo bay reads it to store the good, and a commodity without one cannot be held.
- public static List Shapes(CultCache catalog) =>
- Commodities(catalog).Where(item => item.Shape?.Coordinates == null || item.Shape.Coordinates.Length == 0)
- .Select(item => new EconomyFault(LShape, catalog.RefOf(item).Key.Value, $"Commodity '{item.Name}' has no Shape cell: a cargo bay cannot hold it.")).ToList();
-
- // A made commodity's Price is the price EconomyBalance derives from its chain, rounded to whole credits (at least 1); economy author
- // writes it, and a stored price off it is drift (an inspector edit) that the next author run repairs.
- public static List PriceCheck(CultCache catalog)
- {
- var faults = new List();
- var prices = EconomyBalance.Prices(catalog, out var unsettled);
- if (unsettled.Count > 0)
- {
- faults.Add(new EconomyFault(LPrice, unsettled[0], EconomyBalance.Unsettled(catalog, unsettled)));
- return faults;
- }
- foreach (var (key, derived) in prices.OrderBy(p => p.Key, StringComparer.Ordinal))
- {
- var item = catalog.Get(new CultRecordKey(key));
- if (item == null) continue;
- var want = EconomyBalance.Rounded(derived);
- if (item.Price != want)
- faults.Add(new EconomyFault(LPrice, key, $"Commodity '{item.Name}' is priced {item.Price}; its chain derives {want}."));
- }
- return faults;
- }
-
// Every commodity and every offered design (but a Station or Turret hull) has a recipe, and each recipe is well formed.
public static List Recipe(CultCache catalog)
{
@@ -344,35 +272,6 @@ public static class EconomyChecks
return deepest + 1;
}
- // One recipe's consumption per cycle, unscaled: the one reader of what a recipe takes, for Productive's matrix and EconomyBalance.
- // Labour is Workforce x Cycle worker-seconds; Slots are the role slots (a role recipe's design roles, or the recipe's RoleInputs)
- // with every commodity that fills the role.
- internal sealed class Column
- {
- public string Output;
- public RecipeData Recipe;
- public bool IsCommodity;
- public int OutputCount;
- public double Labour;
- public List<(string Commodity, int Count)> Inputs;
- public List<(string Commodity, int Count)> Upkeep;
- public List<(string Role, int Count, string[] Fillers)> Slots;
- }
-
- // Every recipe whose output exists, produces something and has a finite cycle, ordered by output key.
- internal static List Columns(CultCache catalog) =>
- AllRecipes(catalog).Where(p => catalog.Get(p.Recipe.Output) != null && p.Recipe.OutputCount > 0 && float.IsFinite(p.Recipe.Cycle)).Select(p => new Column
- {
- Output = p.Recipe.Output.Key.Value,
- Recipe = p.Recipe,
- IsCommodity = Recipes.IsCommodity(catalog.Get(p.Recipe.Output)),
- OutputCount = p.Recipe.OutputCount,
- Labour = p.Recipe.Workforce * (double) p.Recipe.Cycle,
- Inputs = p.Recipe.Inputs.Select(i => (i.Commodity.Key.Value, i.Count)).ToList(),
- Upkeep = p.Recipe.Upkeep.Select(i => (i.Commodity.Key.Value, i.Count)).ToList(),
- Slots = Recipes.RoleInputsOf(catalog, p.Recipe).Select(r => (r.Name, r.Count, Recipes.Fillers(catalog, r.Name).Select(k => k.Value).ToArray())).ToList()
- }).ToList();
-
// Hawkins-Simon over commodities plus one labour good, at the worst single filler of every role slot (a recipe's role inputs): the spectral radius
// of the requirements matrix stays below one however the roles are filled. The worst fill is the spectral simplex
// (Nesterov and Protasov 2013) on the matrix nudged strictly positive, then the radius of the chosen matrix is taken exactly.
@@ -381,8 +280,8 @@ public static class EconomyChecks
load = load ?? new EconomyLoad();
if (!(load.InputFactor >= 1) || !(load.WorkforceFactor >= 1) || !(load.UpkeepFactor >= 1))
throw new ArgumentException("Setting factors are at least 1.", nameof(load));
- var columns = Columns(catalog).Where(c => c.IsCommodity).ToList();
- var names = columns.Select(c => c.Output).ToList();
+ var columns = AllRecipes(catalog).Where(p => Recipes.IsCommodity(catalog.Get(p.Recipe.Output)) && p.Recipe.OutputCount > 0 && float.IsFinite(p.Recipe.Cycle)).ToList();
+ var names = columns.Select(p => p.Recipe.Output.Key.Value).ToList();
var index = new Dictionary(StringComparer.Ordinal);
for (var i = 0; i < names.Count; i++) index[names[i]] = i;
var n = names.Count + 1;
@@ -391,16 +290,16 @@ public static class EconomyChecks
var slots = new List<(int Column, double Amount, int[] Fillers)>();
for (var j = 0; j < columns.Count; j++)
{
- var column = columns[j];
- foreach (var input in column.Inputs)
- if (index.TryGetValue(input.Commodity, out var row) && input.Count > 0) fixedTerms[row, j] += input.Count * load.InputFactor / column.OutputCount;
- foreach (var upkeep in column.Upkeep)
- if (index.TryGetValue(upkeep.Commodity, out var row) && upkeep.Count > 0) fixedTerms[row, j] += upkeep.Count * load.UpkeepFactor / column.OutputCount;
- fixedTerms[labour, j] = column.Labour * load.WorkforceFactor / column.OutputCount;
- foreach (var slot in column.Slots)
+ var recipe = columns[j].Recipe;
+ foreach (var input in recipe.Inputs)
+ if (index.TryGetValue(input.Commodity.Key.Value, out var row) && input.Count > 0) fixedTerms[row, j] += input.Count * load.InputFactor / recipe.OutputCount;
+ foreach (var upkeep in recipe.Upkeep)
+ if (index.TryGetValue(upkeep.Commodity.Key.Value, out var row) && upkeep.Count > 0) fixedTerms[row, j] += upkeep.Count * load.UpkeepFactor / recipe.OutputCount;
+ fixedTerms[labour, j] = recipe.Workforce * (double) recipe.Cycle * load.WorkforceFactor / recipe.OutputCount;
+ foreach (var role in Recipes.RoleInputsOf(catalog, recipe))
{
- var fillers = slot.Fillers.Where(k => index.ContainsKey(k)).Select(k => index[k]).ToArray();
- if (fillers.Length > 0 && slot.Count > 0) slots.Add((j, slot.Count * load.InputFactor / column.OutputCount, fillers));
+ var fillers = Recipes.Fillers(catalog, role.Name).Where(k => index.ContainsKey(k.Value)).Select(k => index[k.Value]).ToArray();
+ if (fillers.Length > 0 && role.Count > 0) slots.Add((j, role.Count * load.InputFactor / recipe.OutputCount, fillers));
}
}
foreach (var need in load.LabourNeeds)
diff --git a/Assets/Scripts/ServerShared/Entity.cs b/Assets/Scripts/ServerShared/Entity.cs
index 7f9e9c35c..2394a6134 100644
--- a/Assets/Scripts/ServerShared/Entity.cs
+++ b/Assets/Scripts/ServerShared/Entity.cs
@@ -551,7 +551,7 @@ public abstract class Entity
foreach (var candidate in _targetCandidates)
if (candidate.Target.Chunk is ChunkId chunk && ChunkVisible(chunk))
into.Add(chunk);
- into.Sort(ByIndexThenSite);
+ into.Sort(ByIndexThenField);
}
// The one search every chunk question asks the zone's targeting index: from here, as far as the longest range
@@ -737,12 +737,8 @@ public abstract class Entity
}
private readonly List _targetCandidates = new List();
- private int ByIndexThenSite(ChunkId a, ChunkId b)
- {
- if (a.Index != b.Index) return a.Index.CompareTo(b.Index);
- var bySite = string.CompareOrdinal(Zone.AsteroidBelts[a.Field].Data.SiteOr(a.Field), Zone.AsteroidBelts[b.Field].Data.SiteOr(b.Field));
- return bySite != 0 ? bySite : string.CompareOrdinal(a.Field.Value, b.Field.Value);
- }
+ private static readonly Comparison ByIndexThenField = (a, b) =>
+ a.Index != b.Index ? a.Index.CompareTo(b.Index) : a.Field.GetHashCode().CompareTo(b.Field.GetHashCode());
// The planar distance per unit of visibility beyond which no target can pass ChunkVisible's threshold: an upper
// bound, never a decision. ChunkInfo is saturate(sum_i v s_i c_i(angle) / d / (n k)), linear in v and falling as
@@ -1265,15 +1261,13 @@ public abstract class Entity
// This observer's stance toward `other`: its own override, else its belief. Allies (the observer's own non-null faction) are
// known by datalink; any other contact is believed by the telemetry received with its track, and unknown (never hostile)
- // without it. A contact whose claimed faction this observer's faction Hates is hostile in any zone, owned or not; Hostile to
- // Beloved govern presence instead. In a zone owned by a faction a contact is hostile when its claimed faction is the owner's and
- // the owner does not permit its presence, or when this is the owner's ship and believes the contact trespasses.
+ // without it. In a zone owned by a faction a contact is hostile when its claimed faction is the owner's and the owner does
+ // not permit its presence, or when this is the owner's ship and believes the contact trespasses.
public bool IsHostileTo(Entity other)
{
if (_iffOverrides.TryGetValue(other, out var overrideHostile)) return overrideHostile;
if (Faction != null && other.Faction == Faction) return false;
if (!_telemetry.TryGetValue(other, out var claimed)) return false;
- if (Regard(Faction, claimed) == FactionRelationship.Hated) return true;
var owner = Zone.GalaxyZone.Owner;
if (owner == null) return false;
return (claimed == owner && !(PresencePermitted?.Value ?? true)) || (Faction == owner && BelievesTrespassing(other));
@@ -1306,27 +1300,14 @@ public abstract class Entity
return false;
}
- // How `faction` regards this entity's faction.
+ // TODO: Inter-faction relationships
public FactionRelationship GetFactionRelationship(Faction faction)
{
if (faction == null)
return FactionRelationship.Neutral;
if (this is Ship {IsPlayerShip: true})
return Zone.Galaxy.FactionRelationships[faction];
- return Regard(faction, Faction);
- }
-
- // The one reader of Faction.Relations: how `regarding` regards `regarded`. Unset either side is Neutral, a faction regards
- // itself Beloved, and absent from the map is Neutral. A faction the catalog does not hold has no key and is Neutral.
- private FactionRelationship Regard(Faction regarding, Faction regarded)
- {
- if (regarding == null || regarded == null) return FactionRelationship.Neutral;
- if (regarding == regarded) return FactionRelationship.Beloved;
- if (regarding.Relations == null || regarding.Relations.Count == 0) return FactionRelationship.Neutral;
- var key = ItemManager.ItemData.TryGetHandle(regarded)?.Key;
- return key != null && regarding.Relations.TryGetValue(new CultRecordRef(key.Value), out var relationship)
- ? relationship
- : FactionRelationship.Neutral;
+ return faction == Faction ? FactionRelationship.Beloved : FactionRelationship.Neutral;
}
public static bool IsPresencePermitted(FactionRelationship relationship, SecurityLevel securityLevel) =>
@@ -1448,7 +1429,19 @@ public abstract class Entity
Temperature[position.x, position.y] += heat / ThermalMass[position.x, position.y];
}
- public int CountItemsInCargo(CultRecordKey itemDataID) => CargoBays.Sum(bay => bay.Count(itemDataID));
+ public int CountItemsInCargo(CultRecordKey itemDataID)
+ {
+ int sum = 0;
+ foreach (var x in CargoBays)
+ {
+ if (x.ItemsOfType.ContainsKey(itemDataID))
+ {
+ foreach (var i in x.ItemsOfType[itemDataID]) sum += i is SimpleCommodity simpleCommodity ? simpleCommodity.Quantity : 1;
+ }
+ }
+
+ return sum;
+ }
public EquippedCargoBay FindItemInCargo(CultRecordKey itemDataID)
{
@@ -1532,8 +1525,7 @@ public abstract class Entity
// Check whether the given item will fit when its origin is placed at the given coordinate. For hardpoint gear,
// hardpoint is the one hardpoint the item would occupy there (HardpointAt); Tool gear occupies none.
- private bool ItemFits(EquippableItemData itemData, HullData hullData, EquippableItem item, int2 hullCoord, out HardpointData hardpoint,
- EquippedItem moving = null)
+ private bool ItemFits(EquippableItemData itemData, HullData hullData, EquippableItem item, int2 hullCoord, out HardpointData hardpoint)
{
hardpoint = null;
// Items without specific hardpoints on the ship can be freely rotated and placed anywhere
@@ -1546,64 +1538,49 @@ public abstract class Entity
// general gear may take it until hardpoint gear claims it, which is the same rule
// UnoccupiedSpace reports, so what generation is offered and what equipping accepts agree.
var itemCoord = hullCoord + itemData.Shape.Rotate(i, item.Rotation);
- if (!hullData.InteriorCells[itemCoord] || !IsFree(itemCoord.x, itemCoord.y, moving))
+ if (!hullData.InteriorCells[itemCoord] || GearOccupancy[itemCoord.x, itemCoord.y] != null)
return false;
}
}
else
{
- hardpoint = HardpointAt(itemData, hullData, hullCoord, item.Rotation, moving);
+ hardpoint = HardpointAt(itemData, hullData, hullCoord);
if (hardpoint == null) return false;
+ item.Rotation = hardpoint.Rotation;
}
return true;
}
- // A cell is free when no gear occupies it, or when the only occupant is the item being moved: a re-place of
- // equipped gear is judged against the hull minus that item's own cells (the caller unequips, then equips).
- private bool IsFree(int x, int y, EquippedItem moving) => GearOccupancy[x, y] == null || GearOccupancy[x, y] == moving;
-
// The one placement rule for hardpoint gear. At this origin the item lies within a hardpoint of its type, turned to
// that hardpoint's rotation (HardpointData.TakesAt, the fit rule); its own cells are free, since a hardpoint's
// leftover cells may hold general gear (operator, 2026-09-30: "saving slots in a hardpoint can be a valid tradeoff
- // for crowded ships"); and that hardpoint holds no other hardpoint item, since it holds one at most. Where several hardpoints accept the origin, the
- // one whose rotation equals the item's own (saved) rotation is preferred, so reload seats gear where it was; an item whose
- // rotation names none of them takes the first (stable order).
- private HardpointData HardpointAt(EquippableItemData itemData, HullData hullData, int2 hullCoord, ItemRotation seated, EquippedItem moving)
+ // for crowded ships"); and that hardpoint holds no other hardpoint item, since it holds one at most.
+ private HardpointData HardpointAt(EquippableItemData itemData, HullData hullData, int2 hullCoord)
{
- foreach (var hardpoint in hullData.Hardpoints.OrderBy(h => h.Rotation == seated ? 0 : 1))
+ foreach (var hardpoint in hullData.Hardpoints)
{
if (!hardpoint.TakesAt(itemData, hullCoord - hardpoint.Position)) continue;
var ownCellsFree = itemData.Shape.Coordinates
.Select(v => hullCoord + itemData.Shape.Rotate(v, hardpoint.Rotation))
- .All(c => IsFree(c.x, c.y, moving));
+ .All(c => GearOccupancy[c.x, c.y] == null);
var holdsAnother = hardpoint.Shape.Coordinates
.Select(v => GearOccupancy[hardpoint.Position.x + v.x, hardpoint.Position.y + v.y])
- .Any(occupant => occupant != null && occupant != moving && occupant.Data.HardpointType != HardpointType.Tool);
+ .Any(occupant => occupant != null && occupant.Data.HardpointType != HardpointType.Tool);
if (ownCellsFree && !holdsAnother) return hardpoint;
}
return null;
}
- // Check whether the given item will fit when its origin is placed at the given coordinate on the hull. An item that
- // is already equipped here is judged without its own cells, so a gun can be moved within its own hardpoint;
- // TryEquip stays strict (it never sees an item as its own occupant), so equipping an equipped item twice is refused.
- public bool ItemFits(EquippableItem item, int2 hullCoord) => ItemFits(item, hullCoord, out _);
-
- // As above, and reports the rotation TryEquip would seat the item at: its hardpoint's for hardpoint gear, otherwise
- // its own. A probe never writes item.Rotation; TryEquip is the only seat.
- public bool ItemFits(EquippableItem item, int2 hullCoord, out ItemRotation seated)
+ // Check whether the given item will fit when its origin is placed at the given coordinate on the hull
+ public bool ItemFits(EquippableItem item, int2 hullCoord)
{
- seated = item.Rotation;
// Don't allow equipping while deployed
if (_active) return false;
var itemData = ItemManager.GetData(item);
var hullData = ItemManager.GetData(Hull) as HullData;
- if (!ItemFits(itemData, hullData, item, hullCoord, out var hardpoint, Equipment.FirstOrDefault(e => e.EquippableItem == item)))
- return false;
- seated = hardpoint?.Rotation ?? item.Rotation;
- return true;
+ return ItemFits(itemData, hullData, item, hullCoord, out _);
}
public bool TryFindSpace(EquippableItem item, out int2 hullCoord)
@@ -1676,9 +1653,7 @@ public abstract class Entity
var hullData = ItemManager.GetData(Hull) as HullData;
if (!ItemFits(itemData, hullData, item, hullCoord, out var hardpoint)) return false;
- // The one seat of hardpoint gear's rotation, before EquippedItem's ctor reads it.
- if (hardpoint != null) item.Rotation = hardpoint.Rotation;
-
+
EquippedItem equippedItem;
if (itemData.HardpointType == HardpointType.Tool)
{
@@ -2464,39 +2439,38 @@ public class EquippedCargoBay : EquippedItem
public bool TryFindSpace(ItemInstance item)
{
- if (item is ICommodityStack)
- return TryFindStackSpace(item, out _);
+ if (item is SimpleCommodity simpleCommodity)
+ return TryFindSpace(simpleCommodity, out _);
if (item is CraftedItemInstance craftedItem)
- return TryFindUnitSpace(craftedItem, out _);
+ return TryFindSpace(craftedItem, out _);
return false;
}
- // Tries to find a place to put the given stack in the inventory
- // Will attempt to fill existing stacks it StacksWith first
- // Returns true only when ALL of the units have places to go
- private bool TryFindStackSpace(ItemInstance item, out List positions)
+ // Tries to find a place to put the given items in the inventory
+ // Will attempt to fill existing item stacks first
+ // Returns true only when ALL of the items have places to go
+ public bool TryFindSpace(SimpleCommodity item, out List positions)
{
positions = new List();
- var stack = (ICommodityStack) item;
- var maxStack = ItemManager.MaxStack(item);
- var remainingQuantity = stack.Quantity;
-
- // Search for existing stacks to add to
+ var itemData = ItemManager.GetData(item);
+ var remainingQuantity = item.Quantity;
+
+ // For simple commodities, search for existing item stacks to add to
foreach (var cargoItem in Cargo.Keys)
{
- if (!stack.StacksWith(cargoItem)) continue;
-
- var held = (ICommodityStack) cargoItem;
- if (held.Quantity >= maxStack) continue;
-
+ if (!item.Data.Key.Equals(cargoItem.Data.Key)) continue;
+
+ var cargoCommodity = (SimpleCommodity) cargoItem;
+ if (cargoCommodity.Quantity >= itemData.MaxStack) continue;
+
// Subtract remaining space in existing stack from remaining quantity
- remainingQuantity -= min(maxStack - held.Quantity, remainingQuantity);
+ remainingQuantity -= min(itemData.MaxStack - cargoCommodity.Quantity, remainingQuantity);
positions.Add(Cargo[cargoItem]);
-
+
// If we've moved all of the items into existing stacks, no need to search for empty space!
if (remainingQuantity == 0) return true;
}
-
+
// TODO: Try alternate item rotations / use Shape.FitsWithin
// Search all the space in the cargo bay for an empty space where the item fits
foreach (var cargoCoord in Data.InteriorShape.Coordinates)
@@ -2512,7 +2486,7 @@ public class EquippedCargoBay : EquippedItem
}
// Searches the cargo bay for a position where the item will fit, returns true when found
- private bool TryFindUnitSpace(CraftedItemInstance item, out int2 position)
+ public bool TryFindSpace(CraftedItemInstance item, out int2 position)
{
// Search all the space in the cargo bay for an empty space where the item fits
foreach (var cargoCoord in Data.InteriorShape.Coordinates)
@@ -2527,50 +2501,48 @@ public class EquippedCargoBay : EquippedItem
position = int2.zero;
return false;
}
-
+
public bool TryStore(ItemInstance item)
{
- if (item is ICommodityStack)
- return TryStoreStack(item);
+ if (item is SimpleCommodity simpleCommodity)
+ return TryStore(simpleCommodity);
if (item is CraftedItemInstance craftedItem)
- return TryStoreUnit(craftedItem);
+ return TryStore(craftedItem);
return false;
}
public bool TryStore(ItemInstance item, int2 cargoCoord)
{
- if (item is ICommodityStack)
- return TryStoreStack(item, cargoCoord);
+ if (item is SimpleCommodity simpleCommodity)
+ return TryStore(simpleCommodity, cargoCoord);
if (item is CraftedItemInstance craftedItem)
- return TryStoreUnit(craftedItem, cargoCoord);
+ return TryStore(craftedItem, cargoCoord);
return false;
}
- // Attempts to store all of the given stack anywhere in the inventory
- // Will attempt to fill existing stacks first
- // Returns true only when ALL of the units are successfully stored
- private bool TryStoreStack(ItemInstance item)
+ // Attempts to store all of the given item anywhere in the inventory
+ // Will attempt to fill existing item stacks first
+ // Returns true only when ALL of the items are successfully stored
+ public bool TryStore(SimpleCommodity item)
{
- if (!TryFindStackSpace(item, out var positions)) return false;
+ if (!TryFindSpace(item, out var positions)) return false;
foreach (var position in positions)
{
- if (TryStoreStack(item, position)) return true;
+ if (TryStore(item, position)) return true;
}
return false;
}
- // Try to store the given stack at the given position
- // If there's a stack it StacksWith at the given position it will be added to
- // Returns true only when ALL of the units are successfully stored
+ // Try to store the given commodity at the given position
+ // If there's a stack at the given position it will be added to
+ // Returns true only when ALL of the items are successfully stored
// The bay decides what quantity may sit in it: a stack below one unit or above its design's MaxStack is refused with
// the bay as it was, so no caller, loot, pickup or restore has to check for it.
- private bool TryStoreStack(ItemInstance item, int2 cargoCoord)
+ public bool TryStore(SimpleCommodity item, int2 cargoCoord)
{
- var stack = (ICommodityStack) item;
var itemData = ItemManager.GetData(item);
- var maxStack = ItemManager.MaxStack(item);
- if (stack.Quantity < 1 || stack.Quantity > maxStack) return false;
+ if (item.Quantity < 1 || item.Quantity > itemData.MaxStack) return false;
if (ItemFits(item, cargoCoord))
{
foreach (var p in itemData.Shape.Coordinates)
@@ -2579,43 +2551,43 @@ public class EquippedCargoBay : EquippedItem
Occupancy[pos.x, pos.y] = item;
}
Cargo[item] = cargoCoord;
-
+
if(!ItemsOfType.ContainsKey(item.Data.Key))
ItemsOfType[item.Data.Key] = new List();
ItemsOfType[item.Data.Key].Add(item);
}
- else if (Occupancy[cargoCoord.x, cargoCoord.y] is ICommodityStack held && stack.StacksWith(Occupancy[cargoCoord.x, cargoCoord.y]))
+ else if (Occupancy[cargoCoord.x, cargoCoord.y] is SimpleCommodity cargoCommodity && cargoCommodity.Data.Key.Equals(item.Data.Key))
{
- if (held.Quantity + stack.Quantity <= maxStack)
+ if (cargoCommodity.Quantity + item.Quantity <= itemData.MaxStack)
{
- held.Quantity += stack.Quantity;
+ cargoCommodity.Quantity += item.Quantity;
}
else
{
- var quantityTransferred = maxStack - held.Quantity;
- stack.Quantity -= quantityTransferred;
- held.Quantity = maxStack;
-
+ var quantityTransferred = itemData.MaxStack - cargoCommodity.Quantity;
+ item.Quantity -= quantityTransferred;
+ cargoCommodity.Quantity = itemData.MaxStack;
+
Mass += itemData.Mass * quantityTransferred;
ThermalMass += itemData.Mass * itemData.SpecificHeat * quantityTransferred;
return false;
}
}
else return false;
-
+
Mass += ItemManager.GetMass(item);
ThermalMass += ItemManager.GetThermalMass(item);
return true;
}
// Try to store the given item anywhere it will fit, returns true when the item was successfully stored
- private bool TryStoreUnit(CraftedItemInstance item) => TryFindUnitSpace(item, out var position) && TryStoreUnit(item, position);
+ public bool TryStore(CraftedItemInstance item) => TryFindSpace(item, out var position) && TryStore(item, position);
// Try to store the given item at the given position, returns true when the item was successfully stored
- private bool TryStoreUnit(CraftedItemInstance item, int2 cargoCoord)
+ public bool TryStore(CraftedItemInstance item, int2 cargoCoord)
{
if (!ItemFits(item, cargoCoord)) return false;
-
+
var itemData = ItemManager.GetData(item);
foreach (var p in itemData.Shape.Coordinates)
{
@@ -2623,54 +2595,19 @@ public class EquippedCargoBay : EquippedItem
Occupancy[pos.x, pos.y] = item;
}
Cargo[item] = cargoCoord;
-
+
if(!ItemsOfType.ContainsKey(item.Data.Key))
ItemsOfType[item.Data.Key] = new List();
ItemsOfType[item.Data.Key].Add(item);
-
+
Mass += ItemManager.GetMass(item);
ThermalMass += ItemManager.GetThermalMass(item);
return true;
}
- // The units of a design in the bay: a stack counts its Quantity, any other item one. The one reader of how many
- // units a bay holds; Entity.CountItemsInCargo and the trade menu's Owned column derive from it.
- public int Count(CultRecordKey design) =>
- ItemsOfType.TryGetValue(design, out var items) ? items.Sum(i => i is ICommodityStack stack ? stack.Quantity : 1) : 0;
-
- // Pours each stack into an earlier stack (InteriorShape.Coordinates order) it StacksWith that has room, through
- // Remove and TryStore, so Mass and ThermalMass conserve and the merge rule stays StacksWith's. Emptied stacks leave.
- // Run once after a restore: a saved bay may hold fragments that were stored before the bay merged them.
- public void Consolidate()
- {
- var stacks = new List();
- foreach (var coordinate in Data.InteriorShape.Coordinates)
- if (Occupancy[coordinate.x, coordinate.y] is ICommodityStack && !stacks.Contains(Occupancy[coordinate.x, coordinate.y]))
- stacks.Add(Occupancy[coordinate.x, coordinate.y]);
-
- for (var later = 1; later < stacks.Count; later++)
- {
- var from = stacks[later];
- for (var earlier = 0; earlier < later && Cargo.ContainsKey(from); earlier++)
- {
- var into = stacks[earlier];
- if (!Cargo.ContainsKey(into) || !((ICommodityStack) into).StacksWith(from)) continue;
- var room = ItemManager.MaxStack(into) - ((ICommodityStack) into).Quantity;
- if (room < 1) continue;
-
- var origin = Cargo[from];
- var part = Remove(from, Math.Min(room, ((ICommodityStack) from).Quantity));
- // Whole or nothing: the part fits the room it was sized to, and a refusal puts it back where it was.
- if (!TryStore(part, Cargo[into])) TryStore(part, origin);
- }
- }
- }
-
- // The part removed: null, with the bay as it was, when the item is not here or the quantity is below one unit. A
- // stack gives up `quantity` units through its own Split (the stack itself, whole, when it holds no more); a unit
- // leaves whole for any quantity of one or more.
- public ItemInstance Remove(ItemInstance item, int quantity)
+ // The part removed: null, with the bay as it was, when the item is not here or the quantity is below one unit.
+ public SimpleCommodity Remove(SimpleCommodity item, int quantity)
{
if (quantity < 1) return null;
if (!Cargo.ContainsKey(item))
@@ -2678,46 +2615,60 @@ public class EquippedCargoBay : EquippedItem
ItemManager.Log("Attempted to remove item from a cargo bay that it wasn't even in! Something went wrong here!");
return null;
}
- if (item is ICommodityStack stack && quantity < stack.Quantity)
+ var itemData = ItemManager.GetData(item);
+ if(quantity >= item.Quantity)
{
- var itemData = ItemManager.GetData(item);
- stack.Quantity -= quantity;
- Mass -= itemData.Mass * quantity;
- ThermalMass -= itemData.Mass * itemData.SpecificHeat * quantity;
- return stack.Split(quantity);
+ foreach(var v in Data.InteriorShape.Coordinates)
+ if (Occupancy[v.x, v.y] == item)
+ Occupancy[v.x, v.y] = null;
+
+ Cargo.Remove(item);
+ ItemsOfType[item.Data.Key].Remove(item);
+ if (!ItemsOfType[item.Data.Key].Any())
+ ItemsOfType.Remove(item.Data.Key);
+
+ Mass -= ItemManager.GetMass(item);
+ ThermalMass -= ItemManager.GetThermalMass(item);
+
+ return item;
}
- RemoveWhole(item);
- return item;
+ item.Quantity -= quantity;
+ Mass -= itemData.Mass * quantity;
+ ThermalMass -= itemData.Mass * itemData.SpecificHeat * quantity;
+ return new SimpleCommodity{Data = item.Data, Quantity = quantity, Rotation = item.Rotation};
}
- public void Remove(ItemInstance item)
- {
- if (item is ICommodityStack stack)
- Remove(item, stack.Quantity);
- else if (item is CraftedItemInstance)
- Remove(item, 1);
- }
-
- // The item, with everything it holds, leaves the bay: the one place a cell is freed.
- private void RemoveWhole(ItemInstance item)
+ public void Remove(CraftedItemInstance item)
{
+ if (!Cargo.ContainsKey(item))
+ {
+ ItemManager.Log("Attempted to remove item from a cargo bay that it wasn't even in! Something went wrong here!");
+ return;
+ }
+ var itemData = ItemManager.GetData(item);
foreach(var v in Data.InteriorShape.Coordinates)
if (Occupancy[v.x, v.y] == item)
Occupancy[v.x, v.y] = null;
-
+
Cargo.Remove(item);
ItemsOfType[item.Data.Key].Remove(item);
if (!ItemsOfType[item.Data.Key].Any())
ItemsOfType.Remove(item.Data.Key);
-
+
Mass -= ItemManager.GetMass(item);
ThermalMass -= ItemManager.GetThermalMass(item);
}
- // Moves `quantity` units of a stack, or the one unit, to the target bay. The part goes across, never the stack left
- // behind; whole or nothing: a refusal puts the part back where it came from.
- public bool TryTransferItem(EquippedCargoBay target, ItemInstance item, int quantity)
+ public void Remove(ItemInstance item)
+ {
+ if (item is SimpleCommodity simpleCommodity)
+ Remove(simpleCommodity, simpleCommodity.Quantity);
+ if (item is CraftedItemInstance craftedItem)
+ Remove(craftedItem);
+ }
+
+ public bool TryTransferItem(EquippedCargoBay target, SimpleCommodity item, int quantity)
{
if (quantity < 1) return false;
if (!Cargo.ContainsKey(item))
@@ -2726,15 +2677,25 @@ public class EquippedCargoBay : EquippedItem
return false;
}
- if (item is ICommodityStack)
+ var oldPos = Cargo[item];
+ var newItem = Remove(item, quantity);
+
+ // The part removed goes across, never the stack left behind.
+ if (target.TryStore(newItem)) return true;
+
+ // Whole or nothing: TryStore takes all of the part or none of it, so a refusal puts the part back where it came from.
+ TryStore(newItem, oldPos);
+ return false;
+ }
+
+ public bool TryTransferItem(EquippedCargoBay target, CraftedItemInstance item)
+ {
+ if (!Cargo.ContainsKey(item))
{
- var oldPos = Cargo[item];
- var part = Remove(item, quantity);
- if (target.TryStore(part)) return true;
- TryStore(part, oldPos);
+ ItemManager.Log("Attempted to remove item from a cargo bay that it wasn't even in! Something went wrong here!");
return false;
}
-
+
if (!target.TryStore(item)) return false;
Remove(item);
return true;
diff --git a/Assets/Scripts/ServerShared/EntitySerializer.cs b/Assets/Scripts/ServerShared/EntitySerializer.cs
index b1d5d7c35..7f0f04ebd 100644
--- a/Assets/Scripts/ServerShared/EntitySerializer.cs
+++ b/Assets/Scripts/ServerShared/EntitySerializer.cs
@@ -54,38 +54,38 @@ public static class EntitySerializer
// first MaxStack units go back where it was and the rest is returned to be placed by SpillOversize once every stack
// has its own cell, so a spill cannot take a cell a later stack was saved in.
private static void RestoreStack(ItemManager itemManager, EquippedCargoBay bay, int2 position, ItemInstance item,
- List<(EquippedCargoBay home, ItemInstance rest)> spill)
+ List<(EquippedCargoBay home, SimpleCommodity rest)> spill)
{
- if (item is ICommodityStack stack && stack.Quantity > itemManager.MaxStack(item) && itemManager.MaxStack(item) >= 1)
+ if (item is SimpleCommodity commodity && commodity.Quantity > itemManager.GetData(commodity).MaxStack
+ && itemManager.GetData(commodity).MaxStack >= 1)
{
- var maxStack = itemManager.MaxStack(item);
- var first = stack.Split(maxStack);
- var rest = stack.Split(stack.Quantity - maxStack);
- if (!bay.TryStore(first, position)) ((ICommodityStack) rest).Quantity += maxStack;
+ var maxStack = itemManager.GetData(commodity).MaxStack;
+ var first = new SimpleCommodity { Data = commodity.Data, Rotation = commodity.Rotation, Quantity = maxStack };
+ var rest = new SimpleCommodity { Data = commodity.Data, Rotation = commodity.Rotation, Quantity = commodity.Quantity - maxStack };
+ if (!bay.TryStore(first, position)) rest.Quantity += first.Quantity;
spill.Add((bay, rest));
return;
}
if (bay.TryStore(item, position)) return;
- var quantity = item is ICommodityStack c ? $" x{c.Quantity}" : "";
+ var quantity = item is SimpleCommodity c ? $" x{c.Quantity}" : "";
itemManager.Log($"Dropped a saved item the bay refused at {position}: {itemManager.GetData(item).Name}{quantity}");
}
// Places the units an oversize saved stack left over, in stacks of at most MaxStack: the stack's own bay first, then
// the entity's other bays. Only the units that fit nowhere are dropped, logged with their design and quantity.
private static void SpillOversize(ItemManager itemManager, IReadOnlyList bays,
- List<(EquippedCargoBay home, ItemInstance rest)> spill)
+ List<(EquippedCargoBay home, SimpleCommodity rest)> spill)
{
foreach (var (home, rest) in spill)
{
- var maxStack = itemManager.MaxStack(rest);
- var remaining = ((ICommodityStack) rest).Quantity;
+ var maxStack = itemManager.GetData(rest).MaxStack;
+ var remaining = rest.Quantity;
while (remaining > 0)
{
- var chunk = ((ICommodityStack) rest).Split(Math.Min(remaining, maxStack));
- var chunkStack = (ICommodityStack) chunk;
+ var chunk = new SimpleCommodity { Data = rest.Data, Rotation = rest.Rotation, Quantity = Math.Min(remaining, maxStack) };
var placed = home.TryStore(chunk) || bays.Where(b => b != home).Any(b => b.TryStore(chunk));
// A refused store may still have topped up a stack; what is left in the chunk found no room.
- remaining -= Math.Min(remaining, maxStack) - (placed ? 0 : chunkStack.Quantity);
+ remaining -= Math.Min(remaining, maxStack) - (placed ? 0 : chunk.Quantity);
if (placed) continue;
itemManager.Log($"Dropped saved units no bay has room for: {itemManager.GetData(rest).Name} x{remaining}");
break;
@@ -147,7 +147,7 @@ public static class EntitySerializer
entity.DockingBays[i].DockedShip = entity.Children[pack.DockingBayAssignments[i]] as Ship;
}
- var spill = new List<(EquippedCargoBay home, ItemInstance rest)>();
+ var spill = new List<(EquippedCargoBay home, SimpleCommodity rest)>();
for (var bayIndex = 0; bayIndex < pack.CargoContents.Length; bayIndex++)
if(entity.CargoBays.Count >= bayIndex + 1)
foreach (var (position, item) in pack.CargoContents[bayIndex])
@@ -158,10 +158,7 @@ public static class EntitySerializer
foreach (var (position, item) in pack.DockingBayContents[bayIndex])
RestoreStack(itemManager, entity.DockingBays[bayIndex], position, item, spill);
- var bays = entity.CargoBays.Cast().Concat(entity.DockingBays).ToList();
- SpillOversize(itemManager, bays, spill);
- // Fragments saved before the bay merged them, and the parts a spill placed, fold into the stacks that take them.
- foreach (var bay in bays) bay.Consolidate();
+ SpillOversize(itemManager, entity.CargoBays.Cast().Concat(entity.DockingBays).ToList(), spill);
entity.Temperature = pack.Temperature;
@@ -276,7 +273,10 @@ public abstract class EntityPack
foreach (var (_, item) in t)
{
var itemData = itemManager.GetData(item);
- _price += item is ICommodityStack s ? itemData.Price * s.Quantity : itemData.Price;
+ if (item is SimpleCommodity s)
+ _price += itemData.Price * s.Quantity;
+ else
+ _price += itemData.Price;
}
}
@@ -285,13 +285,13 @@ public abstract class EntityPack
foreach (var (_, item) in t)
{
var itemData = itemManager.GetData(item);
- _price += item is ICommodityStack s ? itemData.Price * s.Quantity : itemData.Price;
+ if (item is SimpleCommodity s)
+ _price += itemData.Price * s.Quantity;
+ else
+ _price += itemData.Price;
}
}
return _price;
}
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(23)] [CultElementId] public string Id = "";
}
diff --git a/Assets/Scripts/ServerShared/Extensions.cs b/Assets/Scripts/ServerShared/Extensions.cs
index 6ac7b5186..97433a299 100644
--- a/Assets/Scripts/ServerShared/Extensions.cs
+++ b/Assets/Scripts/ServerShared/Extensions.cs
@@ -32,13 +32,16 @@ public static class Extensions
// Every loadable type assignable to this one. An assembly whose dependencies are missing (a Unity plugin
// referencing UnityEngine outside Unity) still yields the types that do load.
- // Read from parallel loaders (catalog validation, parallel tests), so the memo is concurrent.
- private static readonly System.Collections.Concurrent.ConcurrentDictionary ChildClasses = new System.Collections.Concurrent.ConcurrentDictionary();
- public static Type[] GetAllChildClasses(this Type type) => ChildClasses.GetOrAdd(type, t => AppDomain.CurrentDomain.GetAssemblies().SelectMany(assembly =>
+ private static readonly Dictionary ChildClasses = new Dictionary();
+ public static Type[] GetAllChildClasses(this Type type)
{
- try { return assembly.GetTypes(); }
- catch (ReflectionTypeLoadException e) { return e.Types.Where(x => x != null); }
- }).Where(t.IsAssignableFrom).ToArray());
+ if (ChildClasses.TryGetValue(type, out var children)) return children;
+ return ChildClasses[type] = AppDomain.CurrentDomain.GetAssemblies().SelectMany(assembly =>
+ {
+ try { return assembly.GetTypes(); }
+ catch (ReflectionTypeLoadException e) { return e.Types.Where(t => t != null); }
+ }).Where(type.IsAssignableFrom).ToArray();
+ }
public static string SplitCamelCase(this string str) =>
Regex.Replace(Regex.Replace(str, @"(\P{Ll})(\P{Ll}\p{Ll})", "$1 $2"), @"(\p{Ll})(\P{Ll})", "$1 $2");
diff --git a/Assets/Scripts/ServerShared/FactionProduct.cs b/Assets/Scripts/ServerShared/FactionProduct.cs
index 87ac72f7d..14f7af57d 100644
--- a/Assets/Scripts/ServerShared/FactionProduct.cs
+++ b/Assets/Scripts/ServerShared/FactionProduct.cs
@@ -61,9 +61,6 @@ public class ProductRole
[Inspectable, JsonProperty("standardDeviation"), Key(2)]
public float StandardDeviation = .15f;
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(3)] [CultElementId] public string Id = "";
}
// A bin of one of the maker's lines (ruling maker-design-tiers-allowed): the line it bins (the same design and maker, itself
diff --git a/Assets/Scripts/ServerShared/FireControl.cs b/Assets/Scripts/ServerShared/FireControl.cs
index 06448cc95..1581e3457 100644
--- a/Assets/Scripts/ServerShared/FireControl.cs
+++ b/Assets/Scripts/ServerShared/FireControl.cs
@@ -7,7 +7,6 @@ using System.Buffers;
using System.Collections.Generic;
using System.Linq;
using CultMath;
-using GameCult.Caching;
using static CultMath.math;
using float2 = CultMath.float2;
using float3 = CultMath.float3;
@@ -85,10 +84,10 @@ public static class FireControl
// Whether the shooter's next round from this weapon is refused: the weapons ask before they spend anything, so
// a refused round costs no ammo, energy, sound, heat, wear or visibility (operator ruling 2026-09-30). The
// answer is Solve's own -- there is no second copy of the arming test.
- public static bool Refuses(Weapon weapon, Entity shooter) => Refuses(weapon, shooter, shooter.Target.Value);
+ public static bool Refuses(Weapon weapon, Entity shooter) => Refuses(weapon, shooter, shooter.Target.Value.Entity);
// The same answer against a target the shooter's pilot has commanded but not yet applied.
- public static bool Refuses(Weapon weapon, Entity shooter, TargetRef target) =>
+ public static bool Refuses(Weapon weapon, Entity shooter, Entity target) =>
!IsMineLayer(weapon) && Solve(weapon, weapon.Item, shooter, target).Outcome == FireOutcome.Refused;
// A mine layer lays a body, not a round: it is never refused, never arc-gated, and Fire routes it to Lay.
@@ -140,18 +139,27 @@ public static class FireControl
// The one owner of a gun's solution against its subject (the designated target; ruling controls-solution-subject).
// Bears: the gun can engage the subject, so the player fires on it without the aim. Free: the aim is inside the
// arc, so the gun can fire along it. Direction: where a round from this gun travels and where its barrel points --
- // the subject's intercept when it bears (a rock's too), else the arc-clamped aim. Subject is null for a rock. Derived on every read and never stored: turrets
+ // the subject's intercept when it bears, else the arc-clamped aim. A chunk subject bears through its pose and
+ // flies the aim, as an untargeted round (Subject is null for it). Derived on every read and never stored: turrets
// traverse instantly in the simulation. Traverse is the weapon's Tracking (ruling mount-arc-gun-traverse), priced in
// TrackingRate; this holds no slew state, and a rig's slew is presentation. It never prices; HitProbability is the one price.
public static GunSolution Solution(Weapon weapon, Entity shooter, TargetRef subject)
{
- var bears = Bears(weapon, shooter, subject, out _);
+ var bears = false;
+ if (subject.Entity != null) bears = Bears(weapon, shooter, subject.Entity, out _);
+ else if (subject.Chunk is ChunkId chunk)
+ {
+ var at = shooter.Zone.ChunkPose(chunk.Field, chunk.Index).xy;
+ bears = InArc(weapon.Item, float3(at.x, 0, at.y) - shooter.Position);
+ }
return new GunSolution
{
Subject = subject.Entity,
Bears = bears,
Free = InArc(weapon.Item, shooter.Aim),
- Direction = bears ? TravelDirection(weapon, shooter, subject) : AimDirection(weapon.Item, shooter)
+ Direction = bears && subject.Entity != null
+ ? TravelDirection(weapon, shooter, subject.Entity)
+ : AimDirection(weapon.Item, shooter)
};
}
@@ -216,8 +224,8 @@ public static class FireControl
return degrees(abs(offset.x * relativeVelocity.y - offset.y * relativeVelocity.x) / (range * range));
}
- public static float AngularVelocity(Entity source, TargetRef target) =>
- AngularVelocity((PositionOf(source, target) - source.Position).xz, VelocityOf(source, target) - source.Velocity);
+ public static float AngularVelocity(Entity source, Entity target) =>
+ AngularVelocity((target.Position - source.Position).xz, target.Velocity - source.Velocity);
// The gun's rate times the ship's gear over the unaided baseline (ruling tracking-per-gun, "gun times ship"): the
// one product of the two. An unauthored gun is +infinity and so is its rate whatever the gear reads: a mount with no
@@ -233,31 +241,14 @@ public static class FireControl
// be judged against another. This is the one function; CombatState (and FireControl.Fire below) both call
// it instead of touching CultMath.first_order_intercept directly. Planar: source velocity is never fed in
// (no shooter here leads its own motion into the shot), matching every existing call site this replaces.
- // Mining Cut 4b: a target is an entity or a rock; its position and velocity come from PositionOf and VelocityOf.
- public static float3 PredictedIntercept(Weapon weapon, Entity source, TargetRef target)
+ public static float3 PredictedIntercept(Weapon weapon, Entity source, Entity target)
{
- var position = PositionOf(source, target);
- var velocity = VelocityOf(source, target);
+ var targetVelocity = float3(target.Velocity.x, 0, target.Velocity.y);
return weapon.Velocity > .01f
- ? first_order_intercept(source.Position, float3.zero, weapon.Velocity, position, float3(velocity.x, 0, velocity.y))
- : position;
+ ? first_order_intercept(source.Position, float3.zero, weapon.Velocity, target.Position, targetVelocity)
+ : target.Position;
}
- // Where a target is now: an entity's position, a rock's pose at the shooter's height (everything here is planar).
- private static float3 PositionOf(Entity source, TargetRef target)
- {
- if (target.Chunk is ChunkId chunk)
- {
- var at = source.Zone.ChunkPose(chunk.Field, chunk.Index).xy;
- return float3(at.x, source.Position.y, at.y);
- }
- return target.Entity.Position;
- }
-
- // How fast a target moves: an entity's velocity, a rock's from Zone.ChunkVelocity, the one owner.
- private static float2 VelocityOf(Entity source, TargetRef target) =>
- target.Chunk is ChunkId chunk ? source.Zone.ChunkVelocity(chunk) : target.Entity.Velocity;
-
// Cut 3, R1/R3: the targeting solution (0b table) -- pure, no draw, recomputed fresh on every call. AI
// reads this to decide whether a shot is worth taking; the HUD reads it to draw a number; Fire below reads
// it once, at the instant the trigger is pulled, and freezes the result into the shot (R10, Q6). Two reads
@@ -272,13 +263,13 @@ public static class FireControl
// freezes (R10), gated exactly as HitProbability gates. Nothing about the target's facing or silhouette
// enters here; that is Silhouette's and PSpread's job, priced fresh by HitProbability below and again,
// live, by Commit at the commit tick. 0 the moment any gate closes.
- private static float PFire(Weapon weapon, Entity source, TargetRef target) => PFire(weapon, source, target, out _, out _, out _);
+ private static float PFire(Weapon weapon, Entity source, Entity target) => PFire(weapon, source, target, out _, out _, out _);
// The `out range` overload is HitProbability's own gate call -- one computation of `target.Position -
// source.Position`, not two. HitProbability used to recompute its own copy for PSpread, which is exactly
// the kind of split authority Cut 3 named as the risk (two places computing the same vector, free to
// drift or to have their subtraction order flipped in only one of them).
- private static float PFire(Weapon weapon, Entity source, TargetRef target, out float range) =>
+ private static float PFire(Weapon weapon, Entity source, Entity target, out float range) =>
PFire(weapon, source, target, out range, out _, out _);
// The one answer to "does the shooter hold valid targeting data on this target": visible, in range and locked
@@ -288,29 +279,25 @@ public static class FireControl
// visible, out of range) already denies the target. Planar (R7: the simulation is 2D): the range gate, the
// burst reach and the range clamp all measure the same distance, so a target's height never moves one of
// them without the others.
- // Mining Cut 4b: a rock is designated by the same range gates, seen when Entity.ChunkVisible says so; a
- // LockWeapon (a launcher) is never designated on a rock (ruling Q12 = A, 2026-09-30).
- public static bool Designated(Weapon weapon, Entity source, TargetRef target, out float range)
+ public static bool Designated(Weapon weapon, Entity source, Entity target, out float range)
{
range = 0f;
- if (target.IsNone) return false;
- range = length((PositionOf(source, target) - source.Position).xz);
- var inRange = range >= weapon.MinRange && range <= weapon.Range;
- if (target.Chunk is ChunkId chunk) return inRange && !(weapon is LockWeapon) && source.ChunkVisible(chunk);
- return source.VisibleEntities.Contains(target.Entity) && inRange &&
+ if (target == null) return false;
+ range = length((target.Position - source.Position).xz);
+ return source.VisibleEntities.Contains(target) && range >= weapon.MinRange && range <= weapon.Range &&
!(weapon is LockWeapon lockWeapon && !lockWeapon.IsLocked);
}
// Whether this gun can engage this target: designated and inside the arc. The one test of it; PFire prices a shot
// at zero unless it holds, and Solution reads it to decide whether the gun fires on the target. `designated` is
// the answer above, kept apart for Solve's burst flight: a designated target out of arc still sets the burst range.
- public static bool Bears(Weapon weapon, Entity source, TargetRef target, out float range) =>
+ public static bool Bears(Weapon weapon, Entity source, Entity target, out float range) =>
Bears(weapon, source, target, out range, out _);
- private static bool Bears(Weapon weapon, Entity source, TargetRef target, out float range, out bool designated)
+ private static bool Bears(Weapon weapon, Entity source, Entity target, out float range, out bool designated)
{
designated = Designated(weapon, source, target, out range);
- return designated && InArc(weapon.Item, PositionOf(source, target) - source.Position);
+ return designated && InArc(weapon.Item, target.Position - source.Position);
}
// `designated` is the answer above. `inArc` is Bears, asked only once a target is designated.
@@ -318,14 +305,13 @@ public static class FireControl
// (operator rulings 2026-09-30): without valid data it has no target and bursts at max range; with data but
// out of arc it bursts at the target's range, along the aim. The HUD reads Designated and the
// arc from Solve and Inspect and decides nothing.
- private static float PFire(Weapon weapon, Entity source, TargetRef target, out float range, out bool designated, out bool inArc)
+ private static float PFire(Weapon weapon, Entity source, Entity target, out float range, out bool designated, out bool inArc)
{
inArc = Bears(weapon, source, target, out range, out designated);
if (!inArc) return 0f;
var settings = source.ItemManager.GameplaySettings;
- var info = target.Chunk is ChunkId chunk ? source.ChunkInfo(chunk)
- : source.EntityInfoGathered.TryGetValue(target.Entity, out var gathered) ? gathered : 0f;
+ var info = source.EntityInfoGathered.TryGetValue(target, out var gathered) ? gathered : 0f;
return Accuracy(source) * PSensor(settings, Resolution(source), info);
}
@@ -378,33 +364,22 @@ public static class FireControl
return (sil, pSpread, evasion);
}
- public static float HitProbability(Weapon weapon, Entity source, TargetRef target) =>
+ public static float HitProbability(Weapon weapon, Entity source, Entity target) =>
HitProbability(weapon, source, target, (AimTarget?) null);
// Priced on `aim` rather than the source's aim slot: the aim its pilot commands this step.
- public static float HitProbability(Weapon weapon, Entity source, TargetRef target, AimTarget aim) =>
+ public static float HitProbability(Weapon weapon, Entity source, Entity target, AimTarget aim) =>
HitProbability(weapon, source, target, (AimTarget?) aim);
// A null aim reads source.ResolvedAim, after the gate, so a gated-out shot reads nothing more.
- // Mining Cut 4b: a rock is priced by the same factors as a ship at equal range, precision and info -- its disc
- // through the same integrator, its evasion 0 (a rock is not a Ship), and no aim point: the disc is aimed at.
- private static float HitProbability(Weapon weapon, Entity source, TargetRef target, AimTarget? aim)
+ private static float HitProbability(Weapon weapon, Entity source, Entity target, AimTarget? aim)
{
var pFire = PFire(weapon, source, target, out var range);
if (pFire <= 0f) return 0f;
- var pMount = PMount(AngularVelocity(source, target), TrackingRate(weapon, source));
- if (target.Chunk is ChunkId chunk)
- {
- var mass = RockMass(source.Zone, chunk, Precision(source), out var span);
- var pSpreadRock = PSpread(weapon.Spread, span, range, source.ItemManager.GameplaySettings.SchematicCellSize);
- return pFire * pMount * pSpreadRock * mass * PDeviation(0f, Tracking(source));
- }
-
- var entity = target.Entity;
- var targetHull = source.ItemManager.GetData(entity.Hull) as HullData;
- var (sil, pSpread, evasion) = Forecast(weapon, source, entity, targetHull, Precision(source), range, aim ?? source.ResolvedAim);
- return pFire * pMount * pSpread * sil.POnHull * PDeviation(evasion, Tracking(source));
+ var targetHull = source.ItemManager.GetData(target.Hull) as HullData;
+ var (sil, pSpread, evasion) = Forecast(weapon, source, target, targetHull, Precision(source), range, aim ?? source.ResolvedAim);
+ return pFire * PMount(AngularVelocity(source, target), TrackingRate(weapon, source)) * pSpread * sil.POnHull * PDeviation(evasion, Tracking(source));
}
// Presentation only: the debug HUD's view of exactly the factors HitProbability multiplies. It computes
@@ -482,7 +457,7 @@ public static class FireControl
// at Fire (R10); HitProbability and Inspect recompute it fresh, at the current source/target positions,
// for their forecast. Below a length of 1e-6 (point-blank, source and intercept coincide) it falls back
// to world +z, the same fallback Apply used before this cut (`:463`).
- public static float2 TravelDirection(Weapon weapon, Entity source, TargetRef target)
+ public static float2 TravelDirection(Weapon weapon, Entity source, Entity target)
{
var toIntercept = (PredictedIntercept(weapon, source, target) - source.Position).xz;
return lengthsq(toIntercept) < 1e-6f ? float2(0, 1) : normalize(toIntercept);
@@ -530,21 +505,12 @@ public static class FireControl
// The commit price's deviation: what the target has already moved off the frozen forecast, plus what it can and
// does move off the line of fire (Evasion). The second part applies at any flight time, so an instant weapon
// (flight time 0, realized deviation 0) still feels a jinking target.
- // Mining Cut 4b: a rock's deviation is where its pose is now against that projection, with no evasion; its
- // zone is the shooter's (a shot that outlives its shooter is resolved by Step, which passes the zone it runs in).
- public static float DeviationProbability(PendingShot shot, float now, out float deviation) =>
- DeviationProbability(shot.Source?.Zone, shot, now, out deviation);
-
- private static float DeviationProbability(Zone zone, PendingShot shot, float now, out float deviation)
+ public static float DeviationProbability(PendingShot shot, float now, out float deviation)
{
- deviation = 0f;
- if (shot.Target == null && shot.Chunk == null) return 1f;
var elapsed = now - shot.FireTime;
var predicted = shot.FireTargetPosition + shot.FireTargetVelocity * elapsed;
- deviation = shot.Chunk is ChunkId chunk
- ? length(zone.ChunkPose(chunk.Field, chunk.Index).xy - predicted.xz)
- : length((shot.Target.Position - predicted).xz) + Evasion(shot.Target, shot.TravelDirection);
- return PDeviation(deviation, shot.Tracking);
+ deviation = shot.Target == null ? 0f : length((shot.Target.Position - predicted).xz) + Evasion(shot.Target, shot.TravelDirection);
+ return shot.Target == null ? 1f : PDeviation(deviation, shot.Tracking);
}
// How far a target can and does move off the line of fire in the solution window: the term DeviationProbability
@@ -642,7 +608,7 @@ public static class FireControl
// BurstReach the planar distance from the shooter at which the payload is delivered (a direct round's target, a fused
// round's burst point, 0 for an untargeted direct round), which Fire's range factor reads for every outcome. Refused: a fused round whose blast
// radius (its arming distance) exceeds the weapon's Range; it cannot be fired.
- public static FireSolution Solve(Weapon weapon, EquippedItem item, Entity source, TargetRef target)
+ public static FireSolution Solve(Weapon weapon, EquippedItem item, Entity source, Entity target)
{
var pFire = PFire(weapon, source, target, out var fireRange, out var designated, out var inArc);
@@ -673,14 +639,14 @@ public static class FireControl
// that leaves the zone cancels it like any other. A round whose Range is shorter than the arming distance
// cannot be fired at all: it is refused, per round, where Range is read after Execute refreshed it (a
// burst's later rounds and a power-starved Range included).
- var engaged = fuse != null && !(designated && inArc) ? TargetRef.None : target;
+ var engaged = fuse != null && !(designated && inArc) ? null : target;
var origin = source.Position;
var travelDirection = Solution(weapon, source, target).Direction;
var arming = fuse != null ? blastRadius : 0f;
- var burstPosition = !engaged.IsNone ? PositionOf(source, engaged) : origin;
+ var burstPosition = engaged != null ? engaged.Position : origin;
var flightDistance = 0f;
- if (fuse != null && !engaged.IsNone)
+ if (fuse != null && engaged != null)
{
// Nothing bursts beyond max range: an intercept a receding target leads the round past Range is
// pulled back along its own line to Range.
@@ -696,7 +662,7 @@ public static class FireControl
burstPosition = Armed(origin, travelDirection, arming, origin + float3(travelDirection.x, 0, travelDirection.y) * reach);
flightDistance = max(reach, arming);
}
- else if (!engaged.IsNone) flightDistance = fireRange;
+ else if (engaged != null) flightDistance = fireRange;
var solution = new FireSolution
{
@@ -744,7 +710,8 @@ public static class FireControl
Lay(weapon, item, source);
return 0;
}
- var target = source.Target.Value;
+ // Mining Cut 3: a chunk target fires as an untargeted round until Cut 4 routes shots at chunks.
+ var target = source.Target.Value.Entity;
var now = zone.Time - age;
// R1's engage gate and the shooter-side probability, evaluated now and frozen: nothing at commit time
@@ -754,7 +721,7 @@ public static class FireControl
var solution = Solve(weapon, item, source, target);
if (solution.Outcome == FireOutcome.Refused) return 0;
// The mount factor is frozen with the shooter-side probability: nothing at commit time re-reads the sweep.
- var pFire = solution.PFire * (!solution.Engaged.IsNone ? PMount(AngularVelocity(source, solution.Engaged), TrackingRate(weapon, source)) : 1f);
+ var pFire = solution.PFire * (solution.Engaged != null ? PMount(AngularVelocity(source, solution.Engaged), TrackingRate(weapon, source)) : 1f);
var fireRange = solution.FireRange;
var engaged = solution.Engaged;
var travelDirection = solution.TravelDirection;
@@ -765,11 +732,10 @@ public static class FireControl
var targetVelocity = float3.zero;
var targetPosition = origin;
- if (!engaged.IsNone)
+ if (engaged != null)
{
- var velocity = VelocityOf(source, engaged);
- targetVelocity = float3(velocity.x, 0, velocity.y);
- targetPosition = PositionOf(source, engaged) - targetVelocity * age;
+ targetVelocity = float3(engaged.Velocity.x, 0, engaged.Velocity.y);
+ targetPosition = engaged.Position - targetVelocity * age;
}
var flightTime = weapon.Velocity > .01f ? solution.FlightDistance / weapon.Velocity : 0f;
@@ -780,8 +746,7 @@ public static class FireControl
{
ShotId = zone.NextShotId(),
Source = source,
- Target = engaged.Entity,
- Chunk = engaged.Chunk,
+ Target = engaged,
Weapon = item,
Aimed = aim.Item,
AimedMount = aim.Mount,
@@ -808,7 +773,7 @@ public static class FireControl
// The commit horizon exists so the target's facing can be read late (Bearing timing). A round fired at
// nothing has no facing to read, so it commits at Fire: its burst point is decided from the poses of
// the moment it leaves, and a Contact round short of max range can arrive as early as it truly does.
- CommitTime = fuse != null && engaged.IsNone ? now : now + max(0f, flightTime - commitHorizon),
+ CommitTime = fuse != null && engaged == null ? now : now + max(0f, flightTime - commitHorizon),
BurstPosition = burstPosition,
Fuse = fuse,
BlastRadius = blastRadius,
@@ -896,7 +861,7 @@ public static class FireControl
{
var shot = shots[i];
- var targetGone = TargetGone(zone, shot);
+ var targetGone = shot.Target != null && !zone.Entities.Contains(shot.Target);
if (targetGone)
{
// Cut 11 (Soul C4): a shot whose target has left the zone resolves as a miss whichever
@@ -943,7 +908,7 @@ public static class FireControl
if (i < 0) continue;
var shot = shots[i];
- var targetGone = TargetGone(zone, shot);
+ var targetGone = shot.Target != null && !zone.Entities.Contains(shot.Target);
if (targetGone)
{
// As in the commit walk: a shot whose target left the zone in this step resolves as a miss.
@@ -965,10 +930,6 @@ public static class FireControl
}
}
- // A shot's target has left the zone, or a rock it flies at no longer exists (broken in flight): the shot is a miss.
- private static bool TargetGone(Zone zone, PendingShot shot) =>
- (shot.Target != null && !zone.Entities.Contains(shot.Target)) || (shot.Chunk is ChunkId chunk && !zone.ChunkExists(chunk));
-
// R3/R4: the one roll. p_base was frozen at fire, PFire carrying the mount factor; the only thing measured live is how far the target has
// actually strayed, by now, from where a straight-line projection of its fire-time velocity said it would
// be -- forgiven by the targeting system's Tracking, likewise frozen at fire.
@@ -984,25 +945,15 @@ public static class FireControl
// (bearing) -- is read live, here, at the commit tick. The Cut 7 guard extends to cover the new factors:
// when PFire x pDeviation is already 0, no Silhouette is built. Shared by Commit's own roll and by the
// debug HUD's forecast (TheHudEstimateIsTheCommitPrice) -- one function, one commit-time price.
- public static float CommitProbability(PendingShot shot, float now, out Silhouette sil) =>
- CommitProbability(shot.Source?.Zone, shot, now, out sil);
-
- // Mining Cut 4b: a rock's price is PFire x PDeviation x PSpread(span 2R) x the disc's mass; it reads no hull.
- private static float CommitProbability(Zone zone, PendingShot shot, float now, out Silhouette sil)
+ public static float CommitProbability(PendingShot shot, float now, out Silhouette sil)
{
sil = default;
- if (shot.Target == null && shot.Chunk == null) return 0f;
+ if (shot.Target == null) return 0f;
- var pDeviation = DeviationProbability(zone, shot, now, out _);
+ var pDeviation = DeviationProbability(shot, now, out _);
var p = shot.PFire * pDeviation;
if (p <= 0f) return 0f;
- if (shot.Chunk is ChunkId chunk)
- {
- var mass = RockMass(zone, chunk, shot.Precision, out var span);
- return p * PSpread(shot.Spread, span, shot.FireRange, zone.SchematicCellSize) * mass;
- }
-
var bearing = Bearing(shot.Target, shot.TravelDirection);
var hullData = shot.Target.ItemManager.GetData(shot.Target.Hull) as HullData;
sil = Silhouette(shot.Target, hullData, shot.Aimed, bearing, shot.Precision, null, shot.AimedMount);
@@ -1033,7 +984,7 @@ public static class FireControl
// drawing once is the documented way to get a correlated first output, and a follow-up to give
// CultMath.Random a mixed-seed entry point of its own is recorded for a separate CultLib cut.
var random = new Random(SimulationDice.Mix((zone.CombatSeed * 2654435761u) ^ (uint) shot.ShotId | 1u));
- var p = CommitProbability(zone, shot, now, out var sil);
+ var p = CommitProbability(shot, now, out var sil);
var hit = p > 0f && random.NextFloat() < p;
var cell = int2.zero;
@@ -1042,8 +993,7 @@ public static class FireControl
var shielded = false;
var shieldBroken = false;
- // A rock hit has no lane and no shield: Cell, Bearing and Lateral stay zero (Apply wears the rock).
- if (hit && shot.Chunk == null)
+ if (hit)
{
// Cut 12.2: the same silhouette pOnHull drew its mass from -- same bearing (live, at this commit
// tick), same sigma (the frozen Precision). A shot that passed the roll always lands on metal (R3:
@@ -1235,13 +1185,7 @@ public static class FireControl
// Detonate is still the one blast path.
if (shot.Outcome.Result == ShotResult.Burst || shot.Fuse == WeaponFuse.Proximity)
{
- Detonate(zone, shot.Outcome.BurstPoint, shot.BlastRadius, shot.Damage, shot.DamageType, shot);
- return;
- }
-
- if (shot.Chunk is ChunkId rock)
- {
- ApplyRockHit(zone, shot, rock);
+ Detonate(zone, shot.Outcome.BurstPoint, shot.BlastRadius, shot.Damage, shot.DamageType);
return;
}
@@ -1257,28 +1201,6 @@ public static class FireControl
}
}
- // Mining Cut 4b: a committed hit on a rock. A round without a fuse wears the rock by its Damage (the falloff was
- // read at Fire) and publishes one absorb on the zone's ChunkCapabilities (through Publish, at height 0 like a blast's), at the
- // rock's surface facing the shot and before the wear shrinks it. A contact or delayed round detonates at the rock's centre as it arrives (the
- // arming rule kept), through Detonate, the one area owner.
- private static void ApplyRockHit(Zone zone, PendingShot shot, ChunkId rock)
- {
- if (!shot.Outcome.Hit) return;
-
- var centre = zone.ChunkPose(rock.Field, rock.Index).xy;
- if (shot.Fuse == null)
- {
- var direction = float3(shot.TravelDirection.x, 0, shot.TravelDirection.y);
- var surface = centre - shot.TravelDirection * zone.ChunkRadius(rock);
- Publish(zone.ChunkCapabilities, AbsorbLayer.Hull, float3(surface.x, 0f, surface.y), direction, shot.Damage, shot.DamageType);
- var absorbed = zone.Wear(rock, shot.Damage);
- Extract(zone, rock, absorbed, shot.Source, SimulationDice.For(zone.DropSeed, SimulationDice.OreStream, (uint) shot.ShotId));
- return;
- }
- var point = Armed(shot.FireOrigin, shot.TravelDirection, shot.BlastRadius, float3(centre.x, shot.FireOrigin.y, centre.y)).xz;
- Detonate(zone, point, shot.BlastRadius, shot.Damage, shot.DamageType, shot);
- }
-
// Cut 12.3 (docs/fire-control-cut.md, "How a direct hit travels"): replaces Entity.ApplyHit's 0.5-step
// march and Entity.DamageSchematic's even split over the whole hit shape. Spread is width (Q12-2 = A):
// 2n+1 parallel lanes, sharing the shot's damage evenly over whichever lanes actually meet metal -- the
@@ -1299,7 +1221,7 @@ public static class FireControl
if (shot.Outcome.Shielded)
{
- Publish(shot.Target.Capabilities, AbsorbLayer.Shield, ImpactPoint(shot.Target, shot.Outcome.Cell),
+ Publish(shot.Target, AbsorbLayer.Shield, ImpactPoint(shot.Target, shot.Outcome.Cell),
float3(shot.TravelDirection.x, 0, shot.TravelDirection.y), shot.Damage, shot.DamageType);
shot.Target.Shield.TakeHit(shot.DamageType, shot.Damage);
return;
@@ -1344,7 +1266,7 @@ public static class FireControl
for (var li = 0; li < laneCount; li++) ArrayPool.Shared.Return(buffers[li]);
- Publish(target.Capabilities, AbsorbLayer.Hull, ImpactPoint(target, shot.Outcome.Cell),
+ Publish(target, AbsorbLayer.Hull, ImpactPoint(target, shot.Outcome.Cell),
float3(shot.TravelDirection.x, 0, shot.TravelDirection.y), shot.Damage, shot.DamageType);
target.DamageHull(hullDamage);
}
@@ -1356,18 +1278,17 @@ public static class FireControl
return float3(world.x, target.Position.y, world.y);
}
- // The one publisher of an absorbed impact: once per receiver, on its CapabilityEvents (an entity's, or the zone's
- // for a rock), before the damage it reports.
- private static void Publish(CapabilityEvents receiver, AbsorbLayer layer, float3 position, float3 direction, float magnitude, DamageType damageType) =>
- receiver.PublishAbsorb(new AbsorbEvent(position, direction, magnitude, damageType, layer));
+ // The one publisher of an absorbed impact: once per receiver, on its Capabilities, before the damage it reports.
+ private static void Publish(Entity receiver, AbsorbLayer layer, float3 position, float3 direction, float magnitude, DamageType damageType) =>
+ receiver.Capabilities.PublishAbsorb(new AbsorbEvent(position, direction, magnitude, damageType, layer));
- // A blast's impact on one receiver: at the blast point (at the receiver's height), travelling from the blast out
- // through the receiver's planar centre, or zero when they coincide. An entity and a rock go through it alike.
- private static void PublishBlast(CapabilityEvents receiver, float2 centre, float height, float2 blast, AbsorbLayer layer, float magnitude, DamageType damageType)
+ // A blast's impact on one entity: at the blast point (on the entity's height), travelling from the blast out through
+ // the entity's centre, or zero when they coincide.
+ private static void PublishBlast(Entity entity, float2 blast, AbsorbLayer layer, float magnitude, DamageType damageType)
{
- var away = centre - blast;
+ var away = entity.Position.xz - blast;
var direction = lengthsq(away) > 0f ? normalize(away) : float2.zero;
- Publish(receiver, layer, float3(blast.x, height, blast.y), float3(direction.x, 0, direction.y), magnitude, damageType);
+ Publish(entity, layer, float3(blast.x, entity.Position.y, blast.y), float3(direction.x, 0, direction.y), magnitude, damageType);
}
// Cut 12.4(b) (docs/fire-control-cut.md, "Where P is"): a contact or delayed blast needs a committed hit --
@@ -1415,7 +1336,7 @@ public static class FireControl
// the muzzle than the blast radius is detonated on at the radius, along the round's own flight line.
var hullPoint = target.ToWorldPoint(schematicPoint);
var worldPoint = Armed(shot.FireOrigin, shot.TravelDirection, shot.BlastRadius, float3(hullPoint.x, shot.FireOrigin.y, hullPoint.y)).xz;
- Detonate(target.Zone, worldPoint, shot.BlastRadius, shot.Damage, shot.DamageType, shot);
+ Detonate(target.Zone, worldPoint, shot.BlastRadius, shot.Damage, shot.DamageType);
}
// Cut 12.4(b) (docs/fire-control-cut.md, "The penetrator", Q12-8): the one penetration-reach owner, moved
@@ -1672,7 +1593,6 @@ public static class FireControl
ShotId = shot.ShotId,
Source = shot.Source,
Target = shot.Target,
- Chunk = shot.Chunk,
Weapon = shot.Weapon,
Result = result,
Shielded = shielded,
@@ -1687,13 +1607,7 @@ public static class FireControl
// Cut 12.4(b) (docs/fire-control-cut.md, "Area, per entity"): the one owner of blast damage -- a blast is
// an area, not a bundle of rays (Q12-7 dissolved the ray model's remainder question along with the rays
- // themselves). Splash's signature with the point made planar (R7). Callers: Apply's three fuse branches and
- // Zone's mine step. Nothing draws: every candidate entity in radius takes its share, unconditionally.
- //
- // Mining cut 4a (docs/mining-cut-refresh.md, Q10 = A): this is also the one owner of blast area over rocks.
- // After the entity pass, every unbroken rock whose disc the blast disc overlaps takes its lens share of the
- // damage -- damage * lens / (pi r^2), the cells' own normaliser -- through Zone.Wear, and publishes one absorb
- // on Zone.ChunkCapabilities first. Overlapping bodies each take their own overlap; shares off every body are lost.
+ // themselves). Splash's signature with the point made planar (R7). Callers: Apply's three fuse branches. Nothing draws: every candidate entity in radius takes its share, unconditionally.
//
// For each candidate (an entity whose centre lies within radius plus half its own hull diagonal --
// CandidatesIncludeHullsWhoseCentreIsOutsideTheRadius, which Splash's centre-distance cull could not pass):
@@ -1717,7 +1631,7 @@ public static class FireControl
// call: doing so would buy no behaviour, per ProbeC in the cut doc). Leftovers -- unoccupied-cell shares,
// and whatever an item's pool does not absorb -- join one entity-wide hull total, applied through one
// DamageHull call.
- public static void Detonate(Zone zone, float2 worldPlanar, float radius, float damage, DamageType damageType, PendingShot? shot = null)
+ public static void Detonate(Zone zone, float2 worldPlanar, float radius, float damage, DamageType damageType)
{
// No distance prefilter: RectDiskOverlap is the one decider of whether the disc touches a hull. A
// prefilter measured from Position (the centre of mass) with the bounding box's half-diagonal is not a
@@ -1759,7 +1673,7 @@ public static class FireControl
{
if (shield.CanTakeHit(damageType, totalShare))
{
- PublishBlast(entity.Capabilities, entity.Position.xz, entity.Position.y, worldPlanar, AbsorbLayer.Shield, totalShare, damageType);
+ PublishBlast(entity, worldPlanar, AbsorbLayer.Shield, totalShare, damageType);
shield.TakeHit(damageType, totalShare);
continue;
}
@@ -1789,110 +1703,11 @@ public static class FireControl
for (var i = 0; i < amounts.Length; i++) hullTotal += amounts[i];
}
- PublishBlast(entity.Capabilities, entity.Position.xz, entity.Position.y, worldPlanar, AbsorbLayer.Hull, totalShare, damageType);
+ PublishBlast(entity, worldPlanar, AbsorbLayer.Hull, totalShare, damageType);
entity.DamageHull(hullTotal);
}
-
- if (!(radius > 0f) || zone.AsteroidBelts.Count == 0) return; // no area, or no rocks to cover
- // Rocks, through the targeting index (no observer: entities stay out of it). Reach is exact on a rock's
- // centre, so it is the blast radius plus the widest any rock can be. Walked in (field, index) order so the
- // order of wear -- and any later dice on it -- is fixed.
- var rocks = _rockScratch ??= new List();
- zone.Targets.Within(new TargetSearch(worldPlanar, radius + Zone.LargestChunkRadius(zone.Settings)), rocks);
- rocks.RemoveAll(c => !c.Target.Chunk.HasValue);
- rocks.Sort((a, b) =>
- {
- var byField = string.CompareOrdinal(a.Target.Chunk.Value.Field.Value, b.Target.Chunk.Value.Field.Value);
- return byField != 0 ? byField : a.Target.Chunk.Value.Index.CompareTo(b.Target.Chunk.Value.Index);
- });
- var discArea = PI * radius * radius;
- // Mining Cut 5a: a shot's blast pays its Source for the rocks it wears, from the shot's own dice, once for the
- // blast, drawn in the rock order above. A mine (no shot) wears rocks and yields nothing.
- var dice = shot != null ? SimulationDice.For(zone.DropSeed, SimulationDice.OreStream, (uint) shot.Value.ShotId) : default;
- foreach (var rock in rocks)
- {
- var chunk = rock.Target.Chunk.Value;
- if (!zone.ChunkExists(chunk)) continue;
- var centre = zone.ChunkPose(chunk.Field, chunk.Index).xy;
- var share = damage * CircleCircleOverlap(length(centre - worldPlanar), radius, zone.ChunkRadius(chunk)) / discArea;
- if (!(share > 0f)) continue;
- PublishBlast(zone.ChunkCapabilities, centre, 0f, worldPlanar, AbsorbLayer.Hull, share, damageType);
- var absorbed = zone.Wear(chunk, share);
- if (shot != null) Extract(zone, chunk, absorbed, shot.Value.Source, dice);
- }
}
- // Mining Cut 5a: the one loot owner of a rock. A worn rock pays the shooter at the wear site, at arrival or detonation,
- // from the shot's own dice: the damage it absorbed is that fraction of its hitpoints, and the same fraction of the
- // units its size authors (AsteroidYield), so a rock pays its whole yield however many hits break it. Whole units, and
- // one Bernoulli draw on the fraction. Each unit draws an ore by weight: the belt's yields for this province, scaled by
- // exp(variance x g), g a stable hash of (field, index, ore) in [-1, 1) -- a rock's composition, derived here every call
- // and never stored. A shot with no Source (a mine) yields nothing. The units go to the shooter's cargo bays in
- // stacks; what does not fit, or everything when the shooter has left the zone, floats at the rock (ruling
- // mining-overflow-floats).
- // Draw order: the Bernoulli, then one draw per unit.
- public static void Extract(Zone zone, ChunkId chunk, float absorbed, Entity shooter, Random dice)
- {
- if (shooter == null || !(absorbed > 0f)) return;
- var settings = zone.Settings;
- var belt = zone.AsteroidBelts[chunk.Field];
- var catalog = shooter.ItemManager.ItemData;
- var ores = FieldKinds.Yield(belt.Data.Kind, zone.GalaxyZone?.Province?.Type ?? default, catalog);
- if (ores.Length == 0) return;
-
- var size = belt.Data.Asteroids[chunk.Index].Size;
- var owed = absorbed / settings.AsteroidHitpoints.Evaluate(size) * settings.AsteroidYield.Evaluate(size);
- var units = (int) floor(owed);
- if (dice.NextFloat() < owed - units) units++;
- if (units == 0) return;
-
- var weights = new float[ores.Length];
- var total = 0f;
- for (var i = 0; i < ores.Length; i++)
- {
- var g = $"{belt.Data.SiteOr(chunk.Field)}:{chunk.Index}:{ores[i].Commodity.Key.Value}".StableHash() / 2147483648.0 - 1.0;
- total += weights[i] = ores[i].Amount * (float) Math.Exp(settings.ChunkCompositionVariance * g);
- }
- var counts = new int[ores.Length];
- for (var unit = 0; unit < units; unit++)
- {
- var pick = dice.NextFloat() * total;
- var ore = 0;
- while (ore < ores.Length - 1 && pick >= weights[ore]) pick -= weights[ore++];
- counts[ore]++;
- }
-
- var at = zone.ChunkPose(chunk.Field, chunk.Index).xy;
- var velocity = zone.ChunkVelocity(chunk);
- var present = zone.Entities.Contains(shooter);
- for (var i = 0; i < ores.Length; i++)
- {
- var key = ores[i].Commodity.Key;
- var commodity = (SimpleCommodityData) catalog.Get(ores[i].Commodity);
- var maxStack = Math.Max(1, commodity.MaxStack);
- var adrift = 0;
- for (var left = counts[i]; left > 0; left -= maxStack)
- {
- var stack = new SimpleCommodity { Data = new CultRecordRef(key), Quantity = Math.Min(left, maxStack) };
- // A partial store leaves the remainder in Quantity and returns false, so the next bay is offered the rest.
- var stored = false;
- if (present) foreach (var bay in shooter.CargoBays) if (stored = bay.TryStore(stack)) break;
- if (!stored)
- {
- adrift += stack.Quantity;
- zone.Release(stack, at, velocity);
- }
- }
- if (counts[i] > 0)
- zone.CargoGained.OnNext(new CargoGain
- {
- Taker = shooter, Design = new CultRecordRef(key), Stored = counts[i] - adrift, Adrift = adrift, Kind = GainKind.Mined
- });
- }
- }
-
- [ThreadStatic] private static List _rockScratch;
-
// Whether the disc reaches any occupied hull cell of the entity: Detonate's own coverage test (the same
// ToSchematicPoint, SchematicCellSize and CircleSquareOverlap), so what triggers a mine and what its blast
// reaches are one geometry.
@@ -1906,19 +1721,6 @@ public static class FireControl
return false;
}
- // Mining cut 4a: the exact area shared by two discs at centre distance d -- the lens. Exactly zero when they are
- // disjoint or tangent, and the smaller disc's whole area when one contains the other.
- public static float CircleCircleOverlap(float d, float r1, float r2)
- {
- if (r1 <= 0f || r2 <= 0f || d >= r1 + r2) return 0f;
- var small = min(r1, r2);
- if (d <= abs(r1 - r2)) return PI * small * small;
- var a = (d * d + r1 * r1 - r2 * r2) / (2f * d * r1);
- var b = (d * d + r2 * r2 - r1 * r1) / (2f * d * r2);
- var k = (-d + r1 + r2) * (d + r1 - r2) * (d - r1 + r2) * (d + r1 + r2);
- return r1 * r1 * acos(clamp(a, -1f, 1f)) + r2 * r2 * acos(clamp(b, -1f, 1f)) - .5f * sqrt(max(0f, k));
- }
-
// Cut 12.4(b) (docs/fire-control-cut.md, "Exact overlap, in float"): the exact area of a unit square,
// centred on `cell` (the unit square centred on its integer coordinate, the same convention every other
// frame rule uses), that lies inside a disc of radius `r` centred at `diskCentre` -- both in the same
@@ -2074,7 +1876,9 @@ public static class FireControl
var aimPoint = ResolveAimPoint(target, hull, aimed, mount);
var a = dot(aimPoint, ell);
- var pOnHull = Mass(new ReadOnlySpan(intervals, 0, count), a, sigma);
+ var pOnHull = 0f;
+ for (var i = 0; i < count; i++)
+ pOnHull += Phi((intervals[i].Hi - a) / sigma) - Phi((intervals[i].Lo - a) / sigma);
var span = count > 0 ? intervals[count - 1].Hi - intervals[0].Lo : 0f;
@@ -2090,27 +1894,6 @@ public static class FireControl
};
}
- // The one Gaussian integrator: the mass a normal of `sigma` about `aim` puts inside the merged, disjoint
- // `intervals`. A hull's shadow and a rock's disc (one interval about its aim) both read it.
- private static float Mass(ReadOnlySpan intervals, float aim, float sigma)
- {
- var mass = 0f;
- foreach (var interval in intervals)
- mass += Phi((interval.Hi - aim) / sigma) - Phi((interval.Lo - aim) / sigma);
- return mass;
- }
-
- // A rock is a disc of radius R schematic cells aimed at its centre: one interval [-R, R] about the aim, span 2R.
- // The one price of it, read by HitProbability's forecast and by Commit, at the rock's radius now.
- private static float RockMass(Zone zone, ChunkId chunk, float precision, out float span)
- {
- var radius = zone.ChunkCells(chunk);
- span = 2f * radius;
- Span disc = stackalloc Interval[1];
- disc[0] = new Interval { Lo = -radius, Hi = radius };
- return saturate(Mass(disc, 0f, Sigma(precision)));
- }
-
// Phi(z) = 1/2 (1 + erf(z / sqrt(2))): the standard normal CDF, CultMath's erf the one function underneath
// every Gaussian-mass sum this cut computes.
private static float Phi(float z) => .5f * (1f + erf(z * (1f / SQRT2)));
@@ -2271,9 +2054,6 @@ public struct PendingShot
public int ShotId;
public Entity Source;
public Entity Target;
- // Mining Cut 4b: the rock a shot flies at, frozen at Fire; at most one of Target and Chunk is set. Unity reads
- // Target only, so a rock shot draws untargeted until the Unity follow-up (mining-unity-chunk-presentation).
- public ChunkId? Chunk;
public EquippedItem Weapon;
public EquippedItem Aimed;
// The mount the aim was at, when it was at a mount rather than an item (Entity.ResolvedAim at Fire), frozen with Aimed:
@@ -2333,7 +2113,7 @@ public struct PendingShot
// A fused round with no target: where it bursts is decided at its commit (the first hull its aim line meets), so its
// damage reads the falloff there rather than at Fire.
- public bool DeliveredAtCommit => Fuse != null && Target == null && Chunk == null;
+ public bool DeliveredAtCommit => Fuse != null && Target == null;
}
// What a round does when fired (FireControl.Solve): Direct resolves against its target, Burst detonates at a
@@ -2367,7 +2147,7 @@ public struct FireSolution
public float FireRange;
// Whether the shooter holds valid targeting data on the target (Designated); the HUD and the agents read it here.
public bool Designated;
- public TargetRef Engaged;
+ public Entity Engaged;
public float2 TravelDirection;
public float3 BurstPosition;
public WeaponFuse? Fuse;
@@ -2533,7 +2313,6 @@ public sealed class ShotOutcome
public int ShotId;
public Entity Source;
public Entity Target;
- public ChunkId? Chunk;
public EquippedItem Weapon;
// What the commit decided, typed: a shot rolled and missed, rolled and hit, or was a fused round with no
// target and so burst without rolling, or a proximity round whose roll missed but which detonates anyway
diff --git a/Assets/Scripts/ServerShared/Formation.cs b/Assets/Scripts/ServerShared/Formation.cs
deleted file mode 100644
index 5dbfd9e5e..000000000
--- a/Assets/Scripts/ServerShared/Formation.cs
+++ /dev/null
@@ -1,85 +0,0 @@
-using System.Collections.Generic;
-using System.Linq;
-using CultMath;
-using static CultMath.math;
-using float2 = CultMath.float2;
-
-// A formation is a compiled group of ships a summon places into a running zone (ruling summons-follow-faction-logic): a
-// script, a stable id and the faction it is cast as. It declares; ZoneStage.Summon is the one admission, and the stance of
-// what arrives is the faction rule's and its grudges', so a formation writes none. The IFL palette calls the same Summon.
-public abstract class Formation
-{
- // The formation's stable identity: kebab-case, unique across Formations, never shown to the player. Name is display only.
- public abstract string Id { get; }
-
- public abstract string Name { get; }
-
- // A catalog faction the formation's ships are fitted for and belong to, resolved through Galaxy.ResolveFaction. Null is
- // factionless.
- public virtual string Faction => null;
-
- // Places the formation with the stage's verbs, around a point and facing a direction. The faction is the resolved one, null
- // when the formation is factionless; only a Generated fit carries it.
- public abstract void Place(ZoneStage stage, Faction faction, float2 at, float2 facing);
-
- // Summons the formation into a running zone, or returns null with every failure listed and the zone, item stream and
- // lot ledger unchanged. A faction the catalog does not hold refuses the summon: it would otherwise arrive factionless.
- public IReadOnlyList Summon(ItemManager items, Zone zone, float2 at, float2 facing, List failures)
- {
- Faction faction = null;
- if (Faction != null)
- {
- faction = zone.Galaxy.ResolveFaction(Faction);
- if (faction == null)
- {
- failures.Add($"formation {Id}: no faction named {Faction}");
- return null;
- }
- }
- return ZoneStage.Summon(items, zone, stage => Place(stage, faction, at, facing), failures);
- }
-}
-
-// Every formation, in the order the console lists them.
-public static class Formations
-{
- public static readonly Formation[] All =
- {
- new Squad("sparring-target", "Sparring Target", null, 1),
- new Squad("zhestokost-pair", "Zhestokost Pair", "Zhe", 2),
- new Squad("pirates-pair", "Pirates Pair", "Pirates", 2),
- new Squad("lucent-pair", "Lucent Media Pair", "Luc", 2),
- new Squad("aeronautics-pair", "Aeronautics Unlimited Pair", "Aero", 2)
- };
-
- public static Formation ById(string id) => All.FirstOrDefault(formation => formation.Id == id);
-
- // Piloted generated ships of any hull, side by side across the line of facing, 60 m apart, centred on the point.
- // Faction names are the demo cast's (DemoTerminus.Cast).
- private sealed class Squad : Formation
- {
- private const float Spacing = 60f;
- private readonly string _faction;
- private readonly int _ships;
-
- public Squad(string id, string name, string faction, int ships)
- {
- Id = id;
- Name = name;
- _faction = faction;
- _ships = ships;
- }
-
- public override string Id { get; }
- public override string Name { get; }
- public override string Faction => _faction;
-
- public override void Place(ZoneStage stage, Faction faction, float2 at, float2 facing)
- {
- var forward = lengthsq(facing) > 0 ? normalize(facing) : float2(0, 1);
- var across = float2(-forward.y, forward.x);
- for (var ship = 0; ship < _ships; ship++)
- stage.Place(stage.Generated("", faction), at + across * ((ship - (_ships - 1) / 2f) * Spacing), forward, piloted: true);
- }
- }
-}
diff --git a/Assets/Scripts/ServerShared/Formation.cs.meta b/Assets/Scripts/ServerShared/Formation.cs.meta
deleted file mode 100644
index ae1475310..000000000
--- a/Assets/Scripts/ServerShared/Formation.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: dfed2b8eaa234dd88ad6ada0315e6ee2
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Scripts/ServerShared/Galaxy.cs b/Assets/Scripts/ServerShared/Galaxy.cs
index 5861f7131..797e77764 100644
--- a/Assets/Scripts/ServerShared/Galaxy.cs
+++ b/Assets/Scripts/ServerShared/Galaxy.cs
@@ -26,15 +26,7 @@ public class Galaxy
public GalaxyZone Exit { get; private set; }
public Dictionary FactionRelationships { get; } = new Dictionary();
private Action Log { get; }
-
- // How far each faction's authored InfluenceDistance reaches in this galaxy (InfluenceOf): the cast's InfluenceScale,
- // 1 for a main galaxy. Carried by the save because every zone generated after Continue reads it.
- public float InfluenceScale { get; }
-
- // The faction whose gate this galaxy has, null when it has none: the scope and the source of the demo's raids
- // (ZoneGenerator reads it through DemoPressure). Written only by PlaceGate and the save constructor; carried by the
- // save because every zone generated after Continue reads it and nothing else persisted regenerates it.
- public Faction Antagonist { get; private set; }
+ public bool IsPrelude { get; }
// The run's seed, minted once by GalaxyStage.SeedFrom and carried by the save (SavedGame.Seed). It seeds
// generation, the run's item draws (RunStart) and the zone's drop dice (Zone.DropSeed).
@@ -59,9 +51,7 @@ public class Galaxy
public Galaxy(CultCache cultCache, SavedGame savedGame, Action log)
{
- InfluenceScale = savedGame.InfluenceScale > 0
- ? savedGame.InfluenceScale
- : throw new InvalidOperationException($"the save has no {nameof(InfluenceScale)} ({savedGame.InfluenceScale}); a run saved before InfluenceScale existed cannot be continued");
+ IsPrelude = savedGame.IsTutorial;
_cache = cultCache;
Log = log;
Background = savedGame.Background;
@@ -107,11 +97,6 @@ public class Galaxy
if(savedGame.Exit != -1)
Exit = Zones[savedGame.Exit];
- // Unset: no gate antagonist (a save from before key 18). Set but not one of the save's factions: refused.
- if (savedGame.Antagonist.IsSet())
- Antagonist = Factions.Contains(cultCache.Get(savedGame.Antagonist)) ? cultCache.Get(savedGame.Antagonist)
- : throw new InvalidOperationException("SavedGame.Antagonist is not one of the save's factions");
-
// A save from before ore geography has no provinces: it gets them by the rule generation uses.
BuildProvinces(global::Provinces.DefaultZonesPerProvince, savedGame.Provinces == null ? null : savedZones.Select(zone => zone.Province).ToArray(), savedGame.Provinces);
@@ -127,7 +112,7 @@ public class Galaxy
uint seed)
{
_cache = cache;
- InfluenceScale = 1;
+ IsPrelude = false;
Background = background;
Log = log;
var factions = cache.GetAll();
@@ -201,37 +186,35 @@ public class Galaxy
return _cache.GetAll().FirstOrDefault(f => f.Name.StartsWith(name, StringComparison.InvariantCultureIgnoreCase));
}
- // A cast member of a cast galaxy, by name. A name the catalog does not hold refuses the galaxy, naming the field.
+ // A cast member of a prelude galaxy, by name. A name the catalog does not hold refuses the galaxy, naming the field.
private Faction ResolveCast(string field, string name) =>
ResolveFaction(name) ?? throw new InvalidOperationException($"cast faction {name} ({field}) is not in the catalog");
- // Gives a cast galaxy its gate: the antagonist's home is the boss zone and the exit. The only writer of Exit and
- // Antagonist besides the constructors.
+ // Gives a prelude galaxy its gate: the antagonist's home is the boss zone and the exit. The only writer of Exit
+ // besides the constructors.
public void PlaceGate(Faction antagonist)
{
- Antagonist = antagonist;
BossZones[antagonist] = HomeZones[antagonist];
Exit = HomeZones[antagonist];
}
- // How many jumps a faction's influence reaches in this galaxy: its authored distance scaled by the galaxy's
- // InfluenceScale (the cast decides the scale), rounding up. Derived, never written back to the catalog's Faction,
- // so one galaxy's generation cannot change the next.
+ // How many jumps a faction's influence reaches in this galaxy: its authored distance, halved (rounding up) in a
+ // prelude. Derived, never written back to the catalog's Faction, so one galaxy's generation cannot change the next.
public int InfluenceOf(Faction faction) =>
- (int) MathF.Ceiling(faction.InfluenceDistance * InfluenceScale);
+ IsPrelude ? (faction.InfluenceDistance + 1) / 2 : faction.InfluenceDistance;
public Galaxy(
- GalaxyCast cast,
+ TutorialGenerationSettings settings,
SectorBackgroundSettings background,
CultCache cache,
+ PlayerSettings playerSettings,
+ DirectoryInfo narrativeDirectory,
Action log,
Action progressCallback,
uint seed)
{
_cache = cache;
- InfluenceScale = cast.InfluenceScale > 0
- ? cast.InfluenceScale
- : throw new InvalidOperationException($"the cast's {nameof(cast.InfluenceScale)} must be positive, got {cast.InfluenceScale}");
+ IsPrelude = true;
Background = background;
Log = log;
@@ -240,32 +223,32 @@ public class Galaxy
var factions = new List();
- var protagonistFaction = ResolveCast(nameof(cast.ProtagonistFaction), cast.ProtagonistFaction);
+ var protagonistFaction = ResolveCast(nameof(settings.ProtagonistFaction), settings.ProtagonistFaction);
factions.Add(protagonistFaction);
- var antagonistFaction = ResolveCast(nameof(cast.AntagonistFaction), cast.AntagonistFaction);
+ var antagonistFaction = ResolveCast(nameof(settings.AntagonistFaction), settings.AntagonistFaction);
factions.Add(antagonistFaction);
- var bufferFaction = ResolveCast(nameof(cast.BufferFaction), cast.BufferFaction);
+ var bufferFaction = ResolveCast(nameof(settings.BufferFaction), settings.BufferFaction);
factions.Add(bufferFaction);
// A cast without a quest faction places no quest zone.
- var questFaction = string.IsNullOrEmpty(cast.QuestFaction)
+ var questFaction = string.IsNullOrEmpty(settings.QuestFaction)
? null
- : ResolveCast(nameof(cast.QuestFaction), cast.QuestFaction);
+ : ResolveCast(nameof(settings.QuestFaction), settings.QuestFaction);
if (questFaction != null) factions.Add(questFaction);
- var neutralFactions = cast.NeutralFactions
- .Select(name => ResolveCast(nameof(cast.NeutralFactions), name))
+ var neutralFactions = settings.NeutralFactions
+ .Select(name => ResolveCast(nameof(settings.NeutralFactions), name))
.ToArray();
factions.AddRange(neutralFactions);
Factions = factions.ToArray();
foreach (var faction in Factions) FactionRelationships[faction] = FactionRelationship.Neutral;
- Zones = GenerateZones(cast.ZoneCount, ref random, progressCallback);
+ Zones = GenerateZones(settings.ZoneCount, ref random, progressCallback);
- GenerateLinks(cast.LinkDensity, progressCallback);
+ GenerateLinks(settings.LinkDensity, progressCallback);
CalculateDistanceMatrix(progressCallback);
@@ -319,11 +302,15 @@ public class Galaxy
CalculateFactionInfluence(progressCallback);
- // No boss zone and no Exit yet (PlaceGate comes after): a cast galaxy is one region.
- BuildProvinces(cast.ProvinceZones);
+ // No boss zone and no Exit yet (PlaceGate comes after): the prelude is one region.
+ BuildProvinces(settings.ProvinceZones);
NamePlaces(ref random, progressCallback);
+ // progressCallback?.Invoke("Weaving Narrative");
+ // var processor = new StoryProcessor(playerSettings, narrativeDirectory, this, ref random, Log);
+ // processor.ProcessStories();
+
progressCallback?.Invoke("Done!");
if(progressCallback!=null) Thread.Sleep(500); // Inserting Delay to make it seem like it's doing more work lmao
}
@@ -462,21 +449,6 @@ public class Galaxy
}
}
- // A zone no link reaches would throw far from here, placing homes or the entrance; refuse it where it is made.
- public static void RequireEveryZoneLinked(GalaxyZone[] zones, IEnumerable<(GalaxyZone, GalaxyZone)> links)
- {
- if (zones.Length < 2) return;
- var linked = new HashSet();
- foreach (var link in links)
- {
- linked.Add(link.Item1);
- linked.Add(link.Item2);
- }
- var stranded = zones.Where(zone => !linked.Contains(zone)).ToList();
- if (stranded.Count > 0)
- throw new InvalidOperationException($"Triangulation left {stranded.Count} of {zones.Length} zones unlinked, first at {stranded[0].Position}");
- }
-
private void GenerateLinks(float linkDensity, Action progressCallback = null)
{
progressCallback?.Invoke("Triangulating Zone Positions");
@@ -486,7 +458,6 @@ public class Galaxy
var links = Delaunay.Edges(Zones.Select(z => z.Position).ToArray())
.Select(edge => (Zones[edge.a], Zones[edge.b]))
.ToList();
- RequireEveryZoneLinked(Zones, links);
progressCallback?.Invoke("Eliminating Zone Links");
if (progressCallback != null) Thread.Sleep(500); // Inserting Delay to make it seem like it's doing more work lmao
diff --git a/Assets/Scripts/ServerShared/GalaxyStage.cs b/Assets/Scripts/ServerShared/GalaxyStage.cs
index 4bea4d6c7..a93e25f89 100644
--- a/Assets/Scripts/ServerShared/GalaxyStage.cs
+++ b/Assets/Scripts/ServerShared/GalaxyStage.cs
@@ -1,4 +1,5 @@
using System;
+using System.IO;
using GameCult.Caching;
using MessagePack;
using static CultMath.math;
@@ -12,8 +13,11 @@ public sealed class GalaxyStage
{
private readonly SectorGenerationSettings _sector;
private readonly SectorBackgroundSettings _sectorBackground;
- private readonly SectorBackgroundSettings _castBackground;
+ private readonly TutorialGenerationSettings _prelude;
+ private readonly SectorBackgroundSettings _preludeBackground;
private readonly CultCache _cache;
+ private readonly PlayerSettings _playerSettings;
+ private readonly DirectoryInfo _narrativeDirectory;
private readonly Action _log;
private readonly Action _progress;
private readonly Func _clock;
@@ -21,16 +25,22 @@ public sealed class GalaxyStage
public GalaxyStage(
SectorGenerationSettings sector,
SectorBackgroundSettings sectorBackground,
- SectorBackgroundSettings castBackground,
+ TutorialGenerationSettings prelude,
+ SectorBackgroundSettings preludeBackground,
CultCache cache,
+ PlayerSettings playerSettings,
+ DirectoryInfo narrativeDirectory,
Action log,
Action progress = null,
Func clock = null)
{
_sector = sector;
_sectorBackground = sectorBackground;
- _castBackground = castBackground;
+ _prelude = prelude;
+ _preludeBackground = preludeBackground;
_cache = cache;
+ _playerSettings = playerSettings;
+ _narrativeDirectory = narrativeDirectory;
_log = log;
_progress = progress;
_clock = clock ?? (() => (uint) (DateTime.Now.Ticks % uint.MaxValue));
@@ -55,10 +65,13 @@ public sealed class GalaxyStage
return new Galaxy(_sector, background, _cache, _log, _progress, Seed);
}
- // A galaxy of the given fixed cast, centred in dense cloud.
- public Galaxy Cast(GalaxyCast cast)
+ // A prelude galaxy: the tutorial settings and their fixed factions, centred in dense cloud.
+ public Galaxy Prelude() => Prelude(_prelude);
+
+ // A prelude galaxy of the given fixed cast, centred in dense cloud.
+ public Galaxy Prelude(TutorialGenerationSettings cast)
{
- var background = Copy(_castBackground);
+ var background = Copy(_preludeBackground);
var random = new Random(Seed);
var iteration = 1;
do
@@ -66,7 +79,7 @@ public sealed class GalaxyStage
background.NoisePosition = random.NextFloat() * 1000;
_progress?.Invoke($"Finding Galaxy Position: iteration {iteration++}");
} while (background.CloudDensity(float2(.5f)) < .5f);
- return new Galaxy(cast, background, _cache, _log, _progress, Seed);
+ return new Galaxy(cast, background, _cache, _playerSettings, _narrativeDirectory, _log, _progress, Seed);
}
private static SectorBackgroundSettings Copy(SectorBackgroundSettings settings) =>
diff --git a/Assets/Scripts/ServerShared/HaulFeed.cs b/Assets/Scripts/ServerShared/HaulFeed.cs
deleted file mode 100644
index 838c28198..000000000
--- a/Assets/Scripts/ServerShared/HaulFeed.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-using System.Collections.Generic;
-using System.Linq;
-using GameCult.Caching;
-
-public enum GainKind { Mined, Collected }
-
-// One entry into a hold: what Extract stored (and let float) of one ore, or what a pickup collected. Stored plus Adrift is
-// the units; a pickup has Adrift 0. Published on Zone.CargoGained by its two writers and read by presentations only.
-public struct CargoGain
-{
- public Entity Taker;
- public CultRecordRef Design;
- public int Stored;
- public int Adrift;
- public GainKind Kind;
-}
-
-// The words for a cargo gain, and the taker's hold fill. Nothing here is stored: the line and the fill are derived on
-// every call.
-public static class HaulFeed
-{
- public static string Line(CargoGain gain, ItemManager items)
- {
- var name = items.ItemData.Get(gain.Design).Name;
- var (used, total) = HoldFill(gain.Taker?.CargoBays ?? Enumerable.Empty());
- var hold = $"(hold {used}/{total})";
- if (gain.Kind == GainKind.Collected) return $"Collected {gain.Stored} {name} {hold}";
- return gain.Adrift > 0
- ? $"+{gain.Stored} {name}, {gain.Adrift} adrift {hold}"
- : $"+{gain.Stored} {name} {hold}";
- }
-
- // Occupied cells over the bays' interiors, a multi-cell item counted per cell.
- public static (int used, int total) HoldFill(IEnumerable bays)
- {
- int used = 0, total = 0;
- foreach (var bay in bays)
- foreach (var v in bay.Data.InteriorShape.AllCoordinates)
- {
- if (!bay.Data.InteriorShape[v]) continue;
- total++;
- if (bay.Occupancy[v.x, v.y] != null) used++;
- }
- return (used, total);
- }
-}
diff --git a/Assets/Scripts/ServerShared/HaulFeed.cs.meta b/Assets/Scripts/ServerShared/HaulFeed.cs.meta
deleted file mode 100644
index b9b4b88b6..000000000
--- a/Assets/Scripts/ServerShared/HaulFeed.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 4d3ef606ec5240119cbb3d7dd51123d9
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Scripts/ServerShared/InputLayout.cs b/Assets/Scripts/ServerShared/InputLayout.cs
index 7e942c519..a688598b2 100644
--- a/Assets/Scripts/ServerShared/InputLayout.cs
+++ b/Assets/Scripts/ServerShared/InputLayout.cs
@@ -29,10 +29,7 @@ public class InputLayout
Union(0, typeof(InputLayoutRowSpacer)),
Union(1, typeof(InputLayoutKeyRow))
]
-public abstract class InputLayoutRow {
- // Element identity: minted by the cache on write; "" means unset.
- [Key(1)] [CultElementId] public string Id = "";
-}
+public abstract class InputLayoutRow { }
[MessagePackObject, JsonObject(MemberSerialization.OptIn)]
public class InputLayoutRowSpacer : InputLayoutRow
@@ -55,9 +52,6 @@ public class InputLayoutKeyRow : InputLayoutRow
public abstract class InputLayoutColumn
{
[Key(0), JsonProperty("width")] public float Width;
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(5)] [CultElementId] public string Id = "";
}
[MessagePackObject, JsonObject(MemberSerialization.OptIn)]
diff --git a/Assets/Scripts/ServerShared/ItemData.cs b/Assets/Scripts/ServerShared/ItemData.cs
index 792b9029c..72c07fc9a 100644
--- a/Assets/Scripts/ServerShared/ItemData.cs
+++ b/Assets/Scripts/ServerShared/ItemData.cs
@@ -327,8 +327,6 @@ public class SimpleCommodityData : ItemData
[Inspectable, JsonProperty("maxStackSize"), Key(9)]
public int MaxStack = 10;
- // A commodity is one cell unless authored otherwise: crate size is a balance knob, and a cargo bay reads Shape to store the good.
- public SimpleCommodityData() => Shape = new Shape();
}
[JsonObject(MemberSerialization.OptIn)]
@@ -350,22 +348,12 @@ public class ItemRole
[Inspectable, JsonProperty("count"), Key(1)]
public int Count = 1;
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(2)] [CultElementId] public string Id = "";
}
[CultDocument("aetheria.compoundcommoditydata", "1"), Inspectable, MessagePackObject]
public class CompoundCommodityData : CraftedItemData
{
// MessagePack keys 10 and 11 belonged to the removed demand weights and classification; do not reuse them.
-
- // The most units of one lot a cargo cell holds. A sim-tuned knob; records written before it existed read 10.
- [Inspectable, JsonProperty("maxStackSize"), Key(12)]
- public int MaxStack = 10;
-
- // A commodity is one cell unless authored otherwise: crate size is a balance knob, and a cargo bay reads Shape to store the good.
- public CompoundCommodityData() => Shape = new Shape();
}
[CultDocument("aetheria.consumableitemdata", "1"), Inspectable, MessagePackObject]
@@ -647,9 +635,6 @@ public class HardpointData
}
private static Dictionary _tintColors;
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(8)] [CultElementId] public string Id = "";
}
// What a PerformanceStat reads to resolve one number: the lot it prices quality against, and the per-context
@@ -695,9 +680,6 @@ public class StatTerm
// The design role whose part quality this term reads; unset reads the item's effective quality (Lot.EffectiveQuality).
// Njordr states the same rule as a derivation over dimensions; this is that rule with one dimension.
[Inspectable, JsonProperty("role"), Key(2)] public string Role;
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(3)] [CultElementId] public string Id = "";
}
[MessagePackObject, JsonObject(MemberSerialization.OptIn)]
diff --git a/Assets/Scripts/ServerShared/ItemInstance.cs b/Assets/Scripts/ServerShared/ItemInstance.cs
index efb369964..80a891666 100644
--- a/Assets/Scripts/ServerShared/ItemInstance.cs
+++ b/Assets/Scripts/ServerShared/ItemInstance.cs
@@ -24,7 +24,6 @@ public abstract class ItemInstance
{
[JsonProperty("data"), Key(0)] public CultRecordRef Data;
[JsonProperty("rotation"), Key(1)] public ItemRotation Rotation;
-
}
[Union(0, typeof(CompoundCommodity)),
@@ -35,50 +34,17 @@ public abstract class CraftedItemInstance : ItemInstance
{
// Keys 2 (Quality), 9 (Ingredients) and 10 (Product) belonged to fields moved to Lot; do not reuse them.
- // The lot a crafted unit was minted from: its design, provenance, workmanship and role fills all live there. A
- // simple commodity has none (ruling simple-commodities-fungible).
+ // The lot this unit was minted from: its design, provenance, workmanship and role fills all live there.
[JsonProperty("lot"), Key(11)] public int Lot;
}
-// A commodity that stacks: the one owner of which units are interchangeable (StacksWith) and of what a split carries
-// (Split). The cargo bay applies it at every merge and ItemManager.MaxStack bounds it; nothing else decides either.
-public interface ICommodityStack
-{
- int Quantity { get; set; }
-
- // True when `other` is a unit this stack may merge with.
- bool StacksWith(ItemInstance other);
-
- // A new stack of `quantity` units interchangeable with this one; this stack is left as it was.
- ItemInstance Split(int quantity);
-}
-
-// Units of a compound commodity merge only within one lot (ruling compound-commodities-stack-by-lot): the lot is the
-// units' provenance, workmanship and role fills.
[MessagePackObject, JsonObject(MemberSerialization.OptIn)]
-public class CompoundCommodity : CraftedItemInstance, ICommodityStack
-{
- // Keys 2, 9, 10 and 11 are CraftedItemInstance's and 12 EquippableItem's. A unit saved before Quantity existed has
- // no slot 13 and reads one.
- [JsonProperty("quantity"), Key(13)] public int Quantity { get; set; } = 1;
-
- public bool StacksWith(ItemInstance other) =>
- other is CompoundCommodity compound && compound.Data.Key.Equals(Data.Key) && compound.Lot == Lot;
-
- public ItemInstance Split(int quantity) =>
- new CompoundCommodity { Data = Data, Rotation = Rotation, Lot = Lot, Quantity = quantity };
-}
+public class CompoundCommodity : CraftedItemInstance { }
[MessagePackObject, JsonObject(MemberSerialization.OptIn)]
-public class SimpleCommodity : ItemInstance, ICommodityStack
+public class SimpleCommodity : ItemInstance
{
- // Key 11 belonged to a lot before ruling simple-commodities-fungible and is never reused; a pre-ruling stack's
- // slot 11 is skipped on read.
- [JsonProperty("quantity"), Key(2)] public int Quantity { get; set; }
-
- public bool StacksWith(ItemInstance other) => other is SimpleCommodity && other.Data.Key.Equals(Data.Key);
-
- public ItemInstance Split(int quantity) => new SimpleCommodity { Data = Data, Rotation = Rotation, Quantity = quantity };
+ [JsonProperty("quantity"), Key(2)] public int Quantity;
}
[MessagePackObject, JsonObject(MemberSerialization.OptIn)]
diff --git a/Assets/Scripts/ServerShared/ItemManager.cs b/Assets/Scripts/ServerShared/ItemManager.cs
index 25b467992..090fe1545 100644
--- a/Assets/Scripts/ServerShared/ItemManager.cs
+++ b/Assets/Scripts/ServerShared/ItemManager.cs
@@ -25,7 +25,6 @@ public class ItemManager
public CultCache ItemData { get; }
public ProvenanceLedger Lots { get; }
-
public GameplaySettings GameplaySettings { get; }
public ItemManager(uint seed, CultCache itemData, ProvenanceLedger lots, GameplaySettings settings, Action logger)
@@ -38,24 +37,6 @@ public class ItemManager
_logger = logger;
}
- // A restore point over everything building items draws or mints: the item stream and the lot ledger, which a run save
- // persists. Rewind puts both back, so a refused build is neither a draw nor a lot.
- public readonly struct Checkpoint
- {
- internal readonly Random Stream;
- internal readonly int NextLot;
- internal Checkpoint(Random stream, int nextLot) { Stream = stream; NextLot = nextLot; }
- }
-
- public Checkpoint Mark() => new Checkpoint(Random, Lots.NextLot);
-
- public void Rewind(Checkpoint mark)
- {
- Random = mark.Stream;
- foreach (var id in Lots.Lots.Keys.Where(id => id >= mark.NextLot).ToList()) Lots.Lots.Remove(id);
- Lots.NextLot = mark.NextLot;
- }
-
public void Log(string s)
{
_logger(s);
@@ -74,8 +55,8 @@ public class ItemManager
{
return item switch
{
- ICommodityStack stack => GetData(item).Mass * stack.Quantity,
CraftedItemInstance _ => GetData(item).Mass,
+ SimpleCommodity commodity => GetData(item).Mass * commodity.Quantity,
_ => 0
};
}
@@ -85,22 +66,13 @@ public class ItemManager
var data = GetData(item);
return item switch
{
- ICommodityStack stack => data.Mass * data.SpecificHeat * stack.Quantity,
CraftedItemInstance _ => data.Mass * data.SpecificHeat,
+ SimpleCommodity commodity => data.Mass * data.SpecificHeat * commodity.Quantity,
_ => 0
};
}
- // The most units of the item one cell holds: the design's MaxStack for a commodity, one for anything else. The one
- // reader of either design's MaxStack outside authoring.
- public int MaxStack(ItemInstance item) => GetData(item) switch
- {
- SimpleCommodityData simple => simple.MaxStack,
- CompoundCommodityData compound => compound.MaxStack,
- _ => 1
- };
-
- // The one path from a crafted instance to its lot; a simple commodity has no lot.
+ // The one resolution path from a crafted instance to the lot it was minted from.
public Lot GetLot(CraftedItemInstance item) => Lots[item.Lot];
// Returns stat when not equipped: a null-entity context with no heat, no power and no modifiers. It says so
@@ -243,7 +215,7 @@ public class ItemManager
}
// Who made an item and what it is branded as. The maker derives from its lot's provenance and the product is the
- // one its lot records; nothing re-derives it. Null maker (an unset faction) means
+ // one its lot records; nothing re-derives it. Null maker (an unset faction, or an Extracted lot with none) means
// no brand at all; a set maker whose lot records no product (or one the catalog no longer holds) still shows
// the maker, with no product name or flavour text.
public (Faction Maker, FactionProductData Product) Brand(CraftedItemInstance item)
@@ -262,7 +234,7 @@ public class ItemManager
}
// What the player reads an item as: its lot's product name when it records one,
- // otherwise the design's own name (unbranded and console-given lots, and commodities).
+ // otherwise the design's own name (unbranded, console-given and extracted lots, and commodities).
public string Title(ItemInstance item) =>
(item is CraftedItemInstance crafted ? Brand(crafted).Product?.Name : null) ?? GetData(item).Name;
diff --git a/Assets/Scripts/ServerShared/Loadout.cs b/Assets/Scripts/ServerShared/Loadout.cs
index b423eb1a0..4866aa406 100644
--- a/Assets/Scripts/ServerShared/Loadout.cs
+++ b/Assets/Scripts/ServerShared/Loadout.cs
@@ -28,9 +28,6 @@ public class LoadoutSlot
[Key(1)] public ItemRotation Rotation;
[Key(2)] public CultRecordRef Design;
[Key(3)] public CultRecordRef Product; // unset: design-only, chosen at materialization
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(4)] [CultElementId] public string Id = "";
}
// Why a faction has no boss Loadout to build; see Loadouts.BossOf.
diff --git a/Assets/Scripts/ServerShared/LoadoutGenerator.cs b/Assets/Scripts/ServerShared/LoadoutGenerator.cs
index d4e2d5643..fcd554efd 100644
--- a/Assets/Scripts/ServerShared/LoadoutGenerator.cs
+++ b/Assets/Scripts/ServerShared/LoadoutGenerator.cs
@@ -64,11 +64,6 @@ public class LoadoutGenerator
return EntitySerializer.Pack(entity);
}
- // The ship hulls this faction's generator can draw (its products, with the any-manufacturer fallback a required hull has).
- public HullData[] OfferedShipHulls() =>
- AvailableProducts(hull => hull.HullType == HullType.Ship, required: true).available
- .Select(entry => entry.design).Distinct().ToArray();
-
public OrbitalEntityPack GenerateTurretLoadout()
{
var (hullProduct, hullData) = RandomHull(HullType.Turret);
@@ -262,11 +257,8 @@ public class LoadoutGenerator
// Whether a product is on the market at all (ruling off-market-is-unoffered-product). The one reader of NotOffered. A bin is
// offered only if both it and its line are (ruling bin-inherits-line-offered); the catalog read guarantees a bin's line exists.
- public static bool IsOffered(CultCache items, FactionProductData product) => IsOffered(product, line => items.Get(line));
-
- // The same reader for a caller whose bin lines are not all in one catalog yet (ShipModCatalog.MarketFault, over a package's own products).
- public static bool IsOffered(FactionProductData product, Func, FactionProductData> lineOf) =>
- !product.NotOffered && (product.Bin == null || !lineOf(product.Bin.Line).NotOffered);
+ public static bool IsOffered(CultCache items, FactionProductData product) =>
+ !product.NotOffered && (product.Bin == null || !items.Get(product.Bin.Line).NotOffered);
// How much this outfitter favors a product: its maker's preference times the product's share of it. The one weight of
// generation and of ChooseProduct. A bin takes the share of its maker's stock that would pass its floor and its line takes
diff --git a/Assets/Scripts/ServerShared/Pilot.cs b/Assets/Scripts/ServerShared/Pilot.cs
index e0f51078c..0ef20f96c 100644
--- a/Assets/Scripts/ServerShared/Pilot.cs
+++ b/Assets/Scripts/ServerShared/Pilot.cs
@@ -79,13 +79,13 @@ public sealed class PilotCommand
public void ToggleHeatsinks() => HeatsinkToggles++;
public void ToggleShield() => ShieldToggles++;
public void Ping() => Pings++;
- // Offers goods from this entity's hold to a ship alongside (ruling transfer-is-give-only): the quantity of a commodity
- // stack, or the one unit. It replaces any give under way. A give of nothing, or of less than one, is ignored, and
+ // Offers goods from this entity's hold to a ship alongside (ruling transfer-is-give-only): the quantity of a commodity,
+ // or the one crafted instance. It replaces any give under way. A give of nothing, or of less than one, is ignored, and
// so is one to oneself when applied. The last give or stop in a step wins.
public void Give(Entity receiver, ItemInstance item, int quantity)
{
if (receiver == null || item == null) return;
- var count = item is ICommodityStack ? quantity : 1;
+ var count = item is CraftedItemInstance ? 1 : quantity;
if (count < 1) return;
GiveVerb = (receiver, item, count);
}
diff --git a/Assets/Scripts/ServerShared/Provenance.cs b/Assets/Scripts/ServerShared/Provenance.cs
index be28ef2e6..4121332d6 100644
--- a/Assets/Scripts/ServerShared/Provenance.cs
+++ b/Assets/Scripts/ServerShared/Provenance.cs
@@ -4,7 +4,6 @@
using System;
using System.Collections.Generic;
-using System.Linq;
using GameCult.Caching;
using MessagePack;
@@ -36,8 +35,6 @@ public class ProvenanceLedger
// A new ledger holding only lots reachable from roots, closed over Produced.Facility and Produced.Inputs. Never
// mutates this: the live ledger keeps unreachable lots, because a floor pickup can still be collected after a save.
- // An input whose lot is RetiredExtracted names a lot RunSave.Commit drops (no item roots it), so the reached copy of
- // the Produced lot omits it rather than name a lot the saved ledger lacks (finding input-keeps-retired-lot).
public ProvenanceLedger Reachable(IEnumerable roots)
{
var reached = new Dictionary();
@@ -47,22 +44,14 @@ public class ProvenanceLedger
var id = pending.Dequeue();
if (reached.ContainsKey(id)) continue;
var lot = this[id];
+ reached[id] = lot;
if (lot.Origin is Produced produced)
{
- var inputs = produced.Inputs?.Where(input => !(this[input].Origin is RetiredExtracted)).ToArray();
- if (inputs != null && inputs.Length != produced.Inputs.Length)
- lot = new Lot
- {
- Design = lot.Design, Quality = lot.Quality, Roles = lot.Roles, Product = lot.Product, Id = lot.Id,
- Origin = new Produced { Faction = produced.Faction, Station = produced.Station, Facility = produced.Facility, Inputs = inputs }
- };
- reached[id] = lot;
pending.Enqueue(produced.Facility);
- if (inputs != null)
- foreach (var input in inputs)
+ if (produced.Inputs != null)
+ foreach (var input in produced.Inputs)
pending.Enqueue(input);
}
- else reached[id] = lot;
}
return new ProvenanceLedger { NextLot = NextLot, Lots = reached };
@@ -80,7 +69,7 @@ public class Lot
[Key(3)] public List Roles;
// The product the lot was made as: the one owner of which product names its units. Unset for unbranded lots
- // (console give, presets), which brand their maker only.
+ // (console give, presets, extracted), which brand their maker only.
[Key(4)] public CultRecordRef Product;
// The quality a stat reads for one of the design's roles: the part's, capped by the lot's own final assembly
@@ -103,9 +92,6 @@ public class Lot
foreach (var fill in Roles) sum += Math.Min(fill.Quality, Quality);
return sum / Roles.Count;
}
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(5)] [CultElementId] public string Id = "";
}
// One filled slot: the design's role name and how good the part that went into it turned out to be. Stats read it through
@@ -115,16 +101,13 @@ public class RoleFill
{
[Key(0)] public string Role;
[Key(1)] public float Quality;
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(2)] [CultElementId] public string Id = "";
}
-// Who built a lot, where, and from what. Terminus mints Attributed placeholders; Produced is the forward shape for
-// backward generation, next scope.
+// Who built a lot, where, and from what. Terminus mints Attributed placeholders; Produced and Extracted are the
+// forward shape for backward generation, next scope.
[Union(0, typeof(Attributed)),
Union(1, typeof(Produced)),
- Union(2, typeof(RetiredExtracted))]
+ Union(2, typeof(Extracted))]
public abstract class Provenance { }
// The Terminus placeholder: only the faction is known. No other level of the crafting pyramid is generated yet.
@@ -134,8 +117,7 @@ public class Attributed : Provenance
[Key(0)] public CultRecordRef Faction;
}
-// Built in place at a station, from a factory item's own lot and a set of input lots. Inputs names the compound input
-// lots; a simple input carries no lot and is not named per unit.
+// Built in place at a station, from a factory item's own lot and a set of input lots.
[MessagePackObject]
public class Produced : Provenance
{
@@ -145,8 +127,10 @@ public class Produced : Provenance
[Key(3)] public int[] Inputs;
}
-// Key 2 held a per-source lot on mined simple commodities until ruling simple-commodities-fungible; nothing constructs or
-// reads it. It is declared only because CultUnionGuard refuses an undeclared arm, so a run ledger saved before the ruling
-// still loads, and RunSave.Commit drops those lots because no item roots them. Never reuse key 2.
+// A raw commodity pulled from a zone.
[MessagePackObject]
-public class RetiredExtracted : Provenance { }
+public class Extracted : Provenance
+{
+ [Key(0)] public int Zone;
+ [Key(1)] public CultRecordRef Commodity;
+}
diff --git a/Assets/Scripts/ServerShared/Recipes.cs b/Assets/Scripts/ServerShared/Recipes.cs
index f9aa3ee4a..e434a84a5 100644
--- a/Assets/Scripts/ServerShared/Recipes.cs
+++ b/Assets/Scripts/ServerShared/Recipes.cs
@@ -63,9 +63,6 @@ public class CommodityCount
[JsonProperty("count"), Key(1)]
public int Count = 1;
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(2)] [CultElementId] public string Id = "";
}
// A region gate's trade with the world beyond it: what the outside buys and sells, at what price and at most how fast.
@@ -99,9 +96,6 @@ public class OutsideMarketRow
[JsonProperty("ratePerHour"), Key(4)]
public float RatePerHour;
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(5)] [CultElementId] public string Id = "";
}
// The one reader of recipes: which recipe makes a good, a recipe's role slots (RoleInputsOf), which commodities fill a role, and
diff --git a/Assets/Scripts/ServerShared/RunStart.cs b/Assets/Scripts/ServerShared/RunStart.cs
index 6278c0cbc..cadd66bcc 100644
--- a/Assets/Scripts/ServerShared/RunStart.cs
+++ b/Assets/Scripts/ServerShared/RunStart.cs
@@ -27,40 +27,42 @@ public static class RunStart
{
SeedItems(itemManager, galaxy, ArenaStep);
return galaxy.Entrance.PackedContents = ZoneGenerator.GenerateZone(
- itemManager, zoneSettings, planetSettings, galaxy, galaxy.Entrance, scenario.EntranceStation, scenario.Ambient);
+ itemManager, zoneSettings, planetSettings, galaxy, galaxy.Entrance, galaxy.IsPrelude, scenario.Ambient);
}
- // Runs a start and answers whether it produced a run: null, with the reason in `failures`, when `start` throws or
- // returns nothing. The caller shows the failure and clears its run; nothing past a null may run the game.
- public static Staged Launch(Func start, List failures, Action log = null)
- {
- Staged staged = null;
- try { staged = start(); }
- catch (Exception exception)
- {
- log?.Invoke(exception);
- failures.Add(exception.Message);
- }
- if (staged == null && failures.Count == 0) failures.Add("the start produced no run");
- return staged;
- }
-
- // Runs the scenario's Stage, then has the stage admit its player and everything it placed.
- // Returns null, with every failure listed and the arena unchanged,
+ // Runs the scenario's Stage, then admits its player and everything it placed: each entity's stance set both ways
+ // with the player, a pilot for each piloted one. Returns null, with every failure listed and the arena unchanged,
// unless the whole scenario staged.
public static Staged Stage(ItemManager itemManager, Zone arena, Scenario scenario, string startingHull,
- List failures)
+ TutorialGenerationSettings tutorialGenerationSettings, List failures)
{
SeedItems(itemManager, arena.Galaxy, StageStep);
- var stage = new ScenarioStage(itemManager, arena, startingHull);
+ var stage = new ScenarioStage(itemManager, arena, startingHull, tutorialGenerationSettings);
scenario.Stage(stage);
var reported = failures.Count;
failures.AddRange(stage.Failures);
if (!stage.PlayerPlaced)
failures.Add("player: the scenario places no player");
if (failures.Count > reported) return null;
- stage.Admit();
- return new Staged { Player = stage.PlayerShip, Credits = stage.Credits, Entities = stage.Placed.Select(placed => placed.Entity).ToList() };
+ stage.StockUnauthoredAmmunition();
+
+ var player = stage.PlayerShip;
+ player.IsPlayerShip = true;
+ arena.Admit(player, piloted: false);
+ foreach (var placed in stage.Placed)
+ {
+ var hostile = placed.Stance == ScenarioStance.Hostile;
+ placed.Entity.SetIff(player, hostile);
+ player.SetIff(placed.Entity, hostile);
+ arena.Admit(placed.Entity, placed.Piloted, placed.Task);
+ }
+
+ // A start state includes what a pilot knows (ruling stage-states-pilot-knowledge): its anchor is tracked from the first
+ // step, by the sensors' own path (info gathered past the detection threshold), so they can lose it like any track.
+ foreach (var placed in stage.Placed)
+ if (placed.Knows != null && placed.Piloted)
+ placed.Entity.EntityInfoGathered[placed.Knows] = (itemManager.GameplaySettings.TargetDetectionInfoThreshold + 1f) / 2f;
+ return new Staged { Player = player, Credits = stage.Credits, Entities = stage.Placed.Select(placed => placed.Entity).ToList() };
}
// A new run's item draws (each lot's quality, each generated fit) come from its galaxy's seed, not the process clock,
diff --git a/Assets/Scripts/ServerShared/SavedGame.cs b/Assets/Scripts/ServerShared/SavedGame.cs
index 01a0b876d..88ff8c9bf 100644
--- a/Assets/Scripts/ServerShared/SavedGame.cs
+++ b/Assets/Scripts/ServerShared/SavedGame.cs
@@ -42,7 +42,8 @@ public class SavedGame
[Key(10)]
public SavedActionBarBinding[] ActionBarBindings;
- // Key(11): retired, do not reuse (a retired run-mode flag)
+ [Key(11)]
+ public bool IsTutorial;
// Read only by a save written before Standings: its entries follow galaxy.Factions order, not Factions order, so
// Galaxy trusts it only when the two orders cannot differ (see Galaxy's save constructor).
@@ -67,17 +68,6 @@ public class SavedGame
// null in a save written before it, which then reads Relationships.
[Key(16)]
public List Standings;
-
- // Galaxy.InfluenceScale: every zone generated after Continue reads it (ZoneGenerator's factionPresence). Written only
- // by RunSave.Capture and read only by Galaxy's save constructor, which refuses a save without one (0).
- [Key(17)]
- public float InfluenceScale;
-
- // Galaxy.Antagonist: the faction whose gate the galaxy has, the scope and source of the demo's raids, which every zone
- // generated after Continue reads. Written only by RunSave.Capture and read only by Galaxy's save constructor; unset means
- // no gate antagonist, set but not one of Factions refuses Continue. Keyed by the record, as Standings is.
- [Key(18)]
- public CultRecordRef Antagonist;
}
[MessagePackObject]
@@ -88,9 +78,6 @@ public class SavedStanding
[Key(1)]
public FactionRelationship Relationship;
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(2)] [CultElementId] public string Id = "";
}
[MessagePackObject]
@@ -101,9 +88,6 @@ public class SavedProvince
[Key(1)]
public CultRecordRef Type;
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(2)] [CultElementId] public string Id = "";
}
// The run's lifecycle over the run store. Only Commit creates SavedGame, SavedZone and ProvenanceLedger records;
@@ -132,8 +116,7 @@ public static class RunSave
CurrentZoneEntity = currentZone.Entities.IndexOf(currentEntity),
Entrance = Array.IndexOf(galaxy.Zones, galaxy.Entrance),
Exit = Array.IndexOf(galaxy.Zones, galaxy.Exit),
- InfluenceScale = galaxy.InfluenceScale,
- Antagonist = galaxy.Antagonist == null ? default : cache.RefOf(galaxy.Antagonist),
+ IsTutorial = galaxy.IsPrelude,
ActionBarBindings = actionBar,
Credits = credits,
Seed = galaxy.Seed
@@ -233,8 +216,6 @@ public static class RunSave
.Select(stored => stored.Key)
.ToArray();
game.Zones = keys.Select(key => new CultRecordRef(key)).ToArray();
- // Every crafted item roots, Lot 0 included: a crafted item with no lot is corruption and Reachable throws on it.
- // A simple commodity has no lot.
var roots = zones
.SelectMany(zone => zone.Contents?.Entities ?? new List())
.SelectMany(EntitySerializer.Items)
@@ -270,34 +251,6 @@ public static class RunSave
return started;
}
- // A simulation starts beside the saved run and never replaces it. start runs with the saved run still in the store.
- // When it returns null or throws, the records it wrote go and the saved run stays. When it returns a value, both the
- // value and the Simulation that discards what start wrote come back; the saved run's records are never removed.
- public static (T started, Simulation simulation) Beside(CultCache cache, Func start) where T : class
- {
- var saved = Records(cache);
- T started = null;
- try
- {
- started = start();
- }
- finally
- {
- if (started == null) Remove(cache, Records(cache).Except(saved).ToArray());
- }
- return started == null ? (null, null) : (started, new Simulation(saved));
- }
-
- // The run-record keys stored when a simulation began: everything else in the run store is the simulation's.
- public sealed class Simulation
- {
- private readonly CultRecordKey[] _saved;
-
- internal Simulation(CultRecordKey[] saved) => _saved = saved;
-
- public void Discard(CultCache cache) => Remove(cache, Records(cache).Except(_saved).ToArray());
- }
-
private static CultRecordKey[] Records(CultCache cache) =>
cache.AllStoredDocuments
.Where(stored => IsRunRecord(stored.Descriptor.DocumentType))
@@ -348,9 +301,6 @@ public class SavedZone
]
public abstract class SavedActionBarBinding
{
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(2)] [CultElementId] public string Id = "";
}
[MessagePackObject]
diff --git a/Assets/Scripts/ServerShared/Scenario.cs b/Assets/Scripts/ServerShared/Scenario.cs
index 4d0806597..72b084866 100644
--- a/Assets/Scripts/ServerShared/Scenario.cs
+++ b/Assets/Scripts/ServerShared/Scenario.cs
@@ -22,24 +22,13 @@ public abstract class Scenario
// the scenario's conditions.
public virtual bool Ambient => true;
- // False: the scenario is a simulation. It starts through RunSave.Beside, so the saved run stays in the store and
- // stays resumable; it is never captured or committed, and its records are discarded when it ends. The one
- // declaration: nothing tests a scenario's type to decide saving.
- public virtual bool Saved => true;
-
- // True: the arena's zone always gets a generated faction station with a docking bay, whatever its seed rolls
- // (ZoneGenerator). False: its stations are rolled like any other zone's.
- public virtual bool EntranceStation => true;
-
- // Which galaxy the run is in: stage.Main() or stage.Cast(cast).
+ // Which galaxy the run is in: stage.Main() or stage.Prelude().
public abstract Galaxy Generate(GalaxyStage stage);
// What the run starts with: exactly one stage.Player, and anything else the scenario places.
public abstract void Stage(ScenarioStage stage);
}
-// A run-start placement's stance toward the player. Hostile is written as an override both ways; Neutral writes nothing,
-// so the faction rule and grudges decide.
public enum ScenarioStance
{
Neutral,
diff --git a/Assets/Scripts/ServerShared/ScenarioStage.cs b/Assets/Scripts/ServerShared/ScenarioStage.cs
index a39a94578..a813bbf49 100644
--- a/Assets/Scripts/ServerShared/ScenarioStage.cs
+++ b/Assets/Scripts/ServerShared/ScenarioStage.cs
@@ -8,18 +8,14 @@ using float2 = CultMath.float2;
using float3 = CultMath.float3;
// The run half of a scenario's vocabulary (docs/scenarios-cut.md, R.4). A scenario's Stage builds its fits and places
-// them here; nothing joins the arena until Stage returns with no failure, and then the stage admits it all at once.
+// them here; nothing joins the arena until Stage returns with no failure, and then RunStart admits it all at once.
// Every verb names what it could not do instead of throwing, so one bad name in a script lists every bad name.
-// Designs, hulls and products are named as the catalog names them.
-// ZoneStage is the placement vocabulary and the admission of what it placed; Zone.Admit stays the only admission.
-// RunStart builds a ScenarioStage (a ZoneStage that also stages the player and authors stance); ZoneStage.Summon builds a
-// ZoneStage for a running zone. A ZoneStage has no Player verb and no stance, so a summon placing a player or writing who
-// fights whom is unrepresentable: a summon's stance is the faction rule's and its grudges'.
-public class ZoneStage
+// Designs, hulls and products are named as the catalog names them. Only RunStart builds a stage.
+public sealed class ScenarioStage
{
private readonly ItemManager _items;
private readonly Func _choose;
- private protected readonly List _failures = new List();
+ private readonly List _failures = new List();
private readonly List _placed = new List();
private int _placements;
// The entities this stage built from a fit (a packed fit is a saved ship, whose cargo is its own) and those whose cargo the scenario
@@ -27,10 +23,13 @@ public class ZoneStage
private readonly HashSet _fitted = new HashSet();
private readonly HashSet _cargoAuthored = new HashSet();
- internal ZoneStage(ItemManager items, Zone arena)
+ internal ScenarioStage(ItemManager items, Zone arena, string startingHull, TutorialGenerationSettings tutorialGenerationSettings)
{
_items = items;
Arena = arena;
+ StartingHull = startingHull;
+ TutorialGenerationSettings = tutorialGenerationSettings;
+ Credits = items.GameplaySettings.StartingCredits;
// A design named without a product is chosen by the generator's ChooseProduct. The stage outfits with no faction,
// so every maker is reachable and the run's seed draws.
_choose = new LoadoutGenerator(ref items.Random, items, arena.Galaxy, arena.GalaxyZone, null, 2).ChooseProduct;
@@ -38,21 +37,29 @@ public class ZoneStage
public Galaxy Galaxy => Arena.Galaxy;
public Zone Arena { get; }
+ public string StartingHull { get; }
+ public TutorialGenerationSettings TutorialGenerationSettings { get; }
+
+ // What the run starts with: the gameplay settings' starting credits unless the scenario sets another amount.
+ public int Credits { get; set; }
internal IReadOnlyList Failures => _failures;
// Staging's last step: a fitted entity whose cargo the scenario did not author gets the crates its weapons draw, like every other
// newly built armed entity (Loadouts.StockAmmunition). Draws nothing, so it moves no item roll.
- private protected void StockUnauthoredAmmunition()
+ internal void StockUnauthoredAmmunition()
{
foreach (var entity in _fitted.Where(entity => !_cargoAuthored.Contains(entity)))
Loadouts.StockAmmunition(_items, entity);
}
+ internal bool PlayerPlaced { get; private set; }
+ internal Ship PlayerShip { get; private set; }
internal IReadOnlyList Placed => _placed;
internal sealed class Placement
{
public Entity Entity;
+ public ScenarioStance Stance;
public bool Piloted;
public AgentTask Task;
// What the pilot already knows at the start: an entity its sensors hold a track of (Approach). Seeded through the
@@ -108,31 +115,39 @@ public class ZoneStage
public ScenarioFit Preset(string name)
{
var preset = _items.ItemData.GetAll().FirstOrDefault(loadout => loadout.Name == name);
- if (preset == null)
- {
- _failures.Add($"preset {name}: no such preset");
- return null;
- }
- // A faction's boss is the zone generator's to place (boss-hulls-exclusive): Loadouts.BossOf owns which loadout it is.
- if (_items.ItemData.GetAll().Any(faction => Loadouts.BossOf(_items.ItemData, faction, out _)?.Name == preset.Name))
- {
- _failures.Add($"preset {name}: a faction's boss loadout is placed only by the zone generator");
- return null;
- }
- return new ScenarioFit(preset);
+ if (preset != null) return new ScenarioFit(preset);
+ _failures.Add($"preset {name}: no such preset");
+ return null;
}
- // Anything else in the arena. A piloted ship gets the zone's pilot; an unpiloted entity has none and goes nowhere on its
- // own unless it is placed moving: velocity is the planar velocity it starts with, and the sim carries it from there. A
- // turret hull stays where it is put. It writes no stance: who fights whom is the faction rule's (stance is ScenarioStage's).
- public Entity Place(ScenarioFit fit, float2 at, float2 facing = default, bool piloted = false, float2 velocity = default)
+ // The player's ship. A run has exactly one, and it is a ship hull.
+ public Ship Player(ScenarioFit fit, float2 at, float2 facing = default)
+ {
+ if (PlayerPlaced)
+ {
+ _failures.Add("player: the scenario places a second player");
+ return null;
+ }
+ PlayerPlaced = true;
+ var entity = Build(fit, "player", at, facing);
+ if (entity == null) return null;
+ if (entity is Ship ship) return PlayerShip = ship;
+ _failures.Add($"player: {entity.Name} is not a ship hull");
+ return null;
+ }
+
+ // Anything else in the arena. A stance holds both ways between it and the player. A piloted ship gets the zone's
+ // pilot; an unpiloted entity has none and goes nowhere on its own unless it is placed moving: velocity is the planar
+ // velocity it starts with, and the sim carries it from there. A turret hull stays where it is put.
+ public Entity Place(ScenarioFit fit, float2 at, float2 facing = default, ScenarioStance stance = ScenarioStance.Neutral, bool piloted = false,
+ float2 velocity = default)
{
var where = $"entity {_placements++}";
var entity = Build(fit, where, at, facing);
if (entity == null) return null;
entity.Velocity = velocity;
if (piloted && !(entity is Ship)) _failures.Add($"{where}: {entity.Name} is not a ship hull, so it cannot be piloted");
- _placed.Add(new Placement { Entity = entity, Piloted = piloted });
+ _placed.Add(new Placement { Entity = entity, Stance = stance, Piloted = piloted });
return entity;
}
@@ -153,8 +168,7 @@ public class ZoneStage
}
// Items in the entity's first cargo bay, one per name. A name is an equippable or consumable design (open: the stage
- // chooses its product) or a product of one (pinned), or a commodity (one unit: the crates an AmmoType weapon reloads
- // from); a name that is none of these is a failure.
+ // chooses its product) or a product of one (pinned); a name that is neither is a failure.
public void Cargo(Entity entity, params string[] names)
{
if (entity == null) return;
@@ -163,13 +177,6 @@ public class ZoneStage
var bay = entity.CargoBays.FirstOrDefault();
foreach (var name in names)
{
- var commodity = _items.ItemData.GetAll().FirstOrDefault(data => data.Name == name);
- if (commodity != null)
- {
- if (bay == null || !bay.TryStore(new SimpleCommodity { Data = new CultRecordRef(_items.ItemData.RefOf(commodity).Key), Quantity = 1 }))
- _failures.Add($"{where}: no room for {name}");
- continue;
- }
var (data, product) = NamedOrProduct(name, where, found => found is EquippableItemData || found is ConsumableItemData);
if (data == null) continue;
var build = Loadouts.Resolve(_items, _items.ItemData.RefOf(data),
@@ -180,42 +187,7 @@ public class ZoneStage
}
}
- // Admits what was placed: Zone.Admit with a pilot for each piloted one. It writes no stance. A start state includes what a pilot knows (ruling stage-states-pilot-knowledge): its anchor is tracked
- // from the first step, by the sensors' own path (info gathered past the detection threshold), so they can lose it
- // like any track. The one owner of admitting placements.
- private protected void AdmitPlaced()
- {
- foreach (var placed in _placed)
- {
- Arena.Admit(placed.Entity, placed.Piloted, placed.Task);
- }
- foreach (var placed in _placed)
- if (placed.Knows != null && placed.Piloted)
- placed.Entity.EntityInfoGathered[placed.Knows] = (_items.GameplaySettings.TargetDetectionInfoThreshold + 1f) / 2f;
- }
-
- // Places ships into a running zone through the admission a run start uses: the script places with the stage's verbs,
- // and the entities join with a pilot when piloted and the knowledge the script stated. A summon writes no stance: the
- // faction rule decides who fights whom, and a grudge (Entity.Provoke) turns the summoned faction on whoever attacks it.
- // Returns the placed entities in order, or null with every failure listed and the zone and the item stream and lot ledger unchanged.
- // It draws from the live item stream and does not reseed (a reseed would give every summon the same fits).
- public static IReadOnlyList Summon(ItemManager items, Zone zone, Action script, List failures)
- {
- var mark = items.Mark();
- var stage = new ZoneStage(items, zone);
- script(stage);
- failures.AddRange(stage._failures);
- if (stage._failures.Count > 0)
- {
- items.Rewind(mark); // a refusal draws and mints nothing: the fits it built are discarded with it
- return null;
- }
- stage.StockUnauthoredAmmunition();
- stage.AdmitPlaced();
- return stage._placed.Select(placed => placed.Entity).ToList();
- }
-
- private protected Entity Build(ScenarioFit fit, string where, float2 at, float2 facing)
+ private Entity Build(ScenarioFit fit, string where, float2 at, float2 facing)
{
if (fit == null) return null; // the verb that made it named why
@@ -255,71 +227,8 @@ public class ZoneStage
}
}
-// The run-start stage: a ZoneStage that also stages the player, the credits the run starts with and the hull it
-// starts in, and the one place a script authors stance: a Hostile placement is hostile both ways with the player, written
-// once at admission. Neutral writes nothing (the faction rule and grudges decide). Only RunStart builds one.
-public sealed class ScenarioStage : ZoneStage
-{
- internal ScenarioStage(ItemManager items, Zone arena, string startingHull) : base(items, arena)
- {
- StartingHull = startingHull;
- Credits = items.GameplaySettings.StartingCredits;
- }
-
- public string StartingHull { get; }
-
- // What the run starts with: the gameplay settings' starting credits unless the scenario sets another amount.
- public int Credits { get; set; }
-
- private readonly List _hostile = new List();
-
- // Anything else in the arena, as ZoneStage.Place, with a stance toward the player: Hostile holds both ways from the start.
- public new Entity Place(ScenarioFit fit, float2 at, float2 facing = default, ScenarioStance stance = ScenarioStance.Neutral, bool piloted = false,
- float2 velocity = default)
- {
- var entity = base.Place(fit, at, facing, piloted, velocity);
- if (entity != null && stance == ScenarioStance.Hostile) _hostile.Add(entity);
- return entity;
- }
-
- internal bool PlayerPlaced { get; private set; }
- internal Ship PlayerShip { get; private set; }
-
- // The player's ship. A run has exactly one, and it is a ship hull.
- public Ship Player(ScenarioFit fit, float2 at, float2 facing = default)
- {
- if (PlayerPlaced)
- {
- _failures.Add("player: the scenario places a second player");
- return null;
- }
- PlayerPlaced = true;
- var entity = Build(fit, "player", at, facing);
- if (entity == null) return null;
- if (entity is Ship ship) return PlayerShip = ship;
- _failures.Add($"player: {entity.Name} is not a ship hull");
- return null;
- }
-
- // Run start's admission: stock unauthored ammunition, the player, then everything placed. Nothing at admission or
- // activation reads cargo (ammunition is read when a weapon fires), so stocking is not ordered by admission; it keeps
- // the run start's order.
- internal void Admit()
- {
- StockUnauthoredAmmunition();
- PlayerShip.IsPlayerShip = true;
- Arena.Admit(PlayerShip, piloted: false);
- foreach (var entity in _hostile)
- {
- entity.SetIff(PlayerShip, true);
- PlayerShip.SetIff(entity, true);
- }
- AdmitPlaced();
- }
-}
-
// What a scenario places: a fit built from named designs or a preset, or a ship generated as the game generates them.
-// Only a ZoneStage makes one.
+// Only ScenarioStage makes one.
public sealed class ScenarioFit
{
internal readonly Loadout Loadout;
diff --git a/Assets/Scripts/ServerShared/Scenarios/AiFusedDiscipline.cs b/Assets/Scripts/ServerShared/Scenarios/AiFusedDiscipline.cs
index bdfc153fd..beb4235da 100644
--- a/Assets/Scripts/ServerShared/Scenarios/AiFusedDiscipline.cs
+++ b/Assets/Scripts/ServerShared/Scenarios/AiFusedDiscipline.cs
@@ -13,7 +13,7 @@ public sealed class AiFusedDiscipline : Scenario
public static readonly CultMath.float2 Hostile = float2(0, 700), Neutral = float2(500, 300);
- public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
+ public override Galaxy Generate(GalaxyStage stage) => stage.Prelude(DemoTerminus.Cast);
public override void Stage(ScenarioStage stage)
{
diff --git a/Assets/Scripts/ServerShared/Scenarios/Arcs.cs b/Assets/Scripts/ServerShared/Scenarios/Arcs.cs
index 6da63b0e2..f0c3f5553 100644
--- a/Assets/Scripts/ServerShared/Scenarios/Arcs.cs
+++ b/Assets/Scripts/ServerShared/Scenarios/Arcs.cs
@@ -1,4 +1,3 @@
-using System.Linq;
using static CultMath.math;
using static ItemRotation;
@@ -21,12 +20,7 @@ public sealed class Arcs : Scenario
public static readonly CultMath.float2 Bow = float2(0, 400), Stern = float2(0, -400), Turret = float2(600, 300),
Port = float2(-400, 0), Starboard = float2(400, 0);
- // Crates of ammunition each shooter's hold is stocked with: the measured draw over a run (ScenarioAmmunitionRunTests: at most ten minutes of play, and in
- // practice the ~260 s a shooter holding every gun down lasts before it dies of heat; a pilot who vents heat is unmeasured) plus half again and one. The turret drew 14 Ammo with the player in its range; the player drew 27 Ammo
- // holding every gun down. The guided launchers fire only on a lock, which that run cannot give them, so they carry the default three crates.
- public const int TurretAmmoCrates = 22, PlayerAmmoCrates = 42, PlayerMissileCrates = 3;
-
- public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
+ public override Galaxy Generate(GalaxyStage stage) => stage.Prelude();
public override void Stage(ScenarioStage stage)
{
@@ -46,8 +40,7 @@ public sealed class Arcs : Scenario
("not if i see you first", int2(5, 10), None), // Compact Sensor
("Panopticon Prime", int2(3, 6), Clockwise), // Fire Control Array
("🫳🔫", int2(8, 4), Clockwise), // Autocannon
- ("ChargeBlast SG", int2(0, 4), CounterClockwise), // Charged Scatter Blaster
- ("Store-All Plus", int2(4, 8), None)); // Cargo Bay: the only 2x2 the hull has free
+ ("ChargeBlast SG", int2(0, 4), CounterClockwise)); // Charged Scatter Blaster
var turret = stage.Fit("Turret",
("ClearPath", int2(1, 2), None), // Light Machine Gun
("ClearPath", int2(5, 2), None), // Light Machine Gun
@@ -56,15 +49,12 @@ public sealed class Arcs : Scenario
("Compact Reactor", int2(3, 3), None),
("Turret Control Module", int2(3, 5), None),
("not if i see you first", int2(4, 5), None), // Compact Sensor
- ("Panopticon Prime", int2(3, 6), None), // Fire Control Array
- ("Store-All Plus", int2(3, 1), None)); // Cargo Bay: the only 2x2 the turret hull has free
+ ("Panopticon Prime", int2(3, 6), None)); // Fire Control Array
- var player = stage.Player(fighter, float2(0, 0), facing: float2(0, 1));
- stage.Cargo(player, Enumerable.Repeat("Ammo", PlayerAmmoCrates).Concat(Enumerable.Repeat("Missiles", PlayerMissileCrates)).ToArray());
+ stage.Player(fighter, float2(0, 0), facing: float2(0, 1));
stage.Place(stage.Bare("Longinus"), Bow);
stage.Place(stage.Bare("Longinus"), Stern);
- // The turret's guns reload from its hold, a crate of Ammo per magazine.
- stage.Cargo(stage.Place(turret, Turret, stance: ScenarioStance.Hostile), Enumerable.Repeat("Ammo", TurretAmmoCrates).ToArray());
+ stage.Place(turret, Turret, stance: ScenarioStance.Hostile);
stage.Place(stage.Bare("Longinus"), Port);
stage.Place(stage.Bare("Longinus"), Starboard);
}
diff --git a/Assets/Scripts/ServerShared/Scenarios/Belt.cs b/Assets/Scripts/ServerShared/Scenarios/Belt.cs
index 7058b993b..50c815f6d 100644
--- a/Assets/Scripts/ServerShared/Scenarios/Belt.cs
+++ b/Assets/Scripts/ServerShared/Scenarios/Belt.cs
@@ -17,7 +17,7 @@ public sealed class Belt : Scenario
public override uint Seed => 86;
public override bool Ambient => false;
- public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
+ public override Galaxy Generate(GalaxyStage stage) => stage.Prelude(DemoTerminus.Cast);
public override void Stage(ScenarioStage stage)
{
diff --git a/Assets/Scripts/ServerShared/Scenarios/Crossing.cs b/Assets/Scripts/ServerShared/Scenarios/Crossing.cs
index be5a1fe06..61529d6d9 100644
--- a/Assets/Scripts/ServerShared/Scenarios/Crossing.cs
+++ b/Assets/Scripts/ServerShared/Scenarios/Crossing.cs
@@ -6,8 +6,8 @@ public sealed class Crossing : Scenario
public override string Name => "Crossing";
public override string Id => "crossing";
public override string Brief => "A Lightning Projector at the starboard gun and a Cell Blaster at the port gun, an unpiloted Djinni coasting across the bow " +
- "close ahead and an unpiloted one waiting at range. The crosser is launched to port at 25 m/s and only coasts: nothing steers it, " +
- "a hull coasts at its launch speed below its top speed, and it does not shoot back. Make the pass coasting: give no throttle until the Djinni has crossed the bow, then fly freely " +
+ "close ahead and an unpiloted one waiting at range. The crosser is launched to port at 50 m/s and only coasts: nothing steers it, " +
+ "its hull drag slows it to about 25 m/s at the bow line, and it does not shoot back. Make the pass coasting: give no throttle until the Djinni has crossed the bow, then fly freely " +
"(thrusting from the start carries you past it). Verify: as the Djinni crosses close, FastBlast lands some and projector " +
"almost none; against the Djinni at range both land. Fly it again without the Fire Control Array: " +
"with it the small gun lands more.";
@@ -16,15 +16,13 @@ public sealed class Crossing : Scenario
// Where the Djinni sit: the player is at Origin facing +z. Origin is 250 m or more from every body, where the zone's
// pull is weakest (about 1.4 u/s^2; the sum of the wells never drops to nothing, and at the old origin the player sat on the star).
- // The crosser is unpiloted and placed moving at 25 m/s, well under the Djinni's 50 m/s top speed, so its pass is ballistic: a hull
- // coasts below its top speed (aetheria-gravity:ruling:no-drag-below-top-speed) and only the field bends it, so it reaches the
- // bow line at 25 m/s relative to the player, 3.6 s in, and nothing steers it. (Launched at the cap with drag slowing it to 25 m/s,
- // as this scenario was first tuned, it would now hold 50 m/s and cross in 2.6 s.)
+ // The crosser is unpiloted and placed moving at the Djinni's 50 m/s cap, so its pass is ballistic: bent by the field and slowed
+ // by hull drag (it reaches the bow line at about 25 m/s relative to the player, 3.6 s in), and nothing steers it.
// CrosserAt is the centre of the start window in which the pass holds: shifting it by 10 m along either axis keeps the pass
// inside the test's time and distance windows (CrossingHoldsAcrossTheStartWindow).
// The waiting Djinni sits inside the Lightning Projector's arc at 80% of its Range.
public static readonly CultMath.float2 Origin = float2(724, 124);
- public static readonly CultMath.float2 CrosserAt = Origin + float2(-90, 45), CrosserFacing = float2(1, 0), CrosserVelocity = float2(25, 0);
+ public static readonly CultMath.float2 CrosserAt = Origin + float2(-128, 45), CrosserFacing = float2(1, 0), CrosserVelocity = float2(50, 0);
// The fighter is staged at this quality, so its gear and the range below do not ride the item stream.
public const float StagedQuality = .6f;
// The Lightning Projector's Range in metres at the staged fit: 996.99 after the three seconds the test settles for
@@ -33,7 +31,7 @@ public sealed class Crossing : Scenario
public const float ProjectorRange = 997f;
public static readonly CultMath.float2 Waiting = Origin + float2(0, ProjectorRange * .8f);
- public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
+ public override Galaxy Generate(GalaxyStage stage) => stage.Prelude(DemoTerminus.Cast);
public override void Stage(ScenarioStage stage)
{
diff --git a/Assets/Scripts/ServerShared/Scenarios/DemoTerminus.cs b/Assets/Scripts/ServerShared/Scenarios/DemoTerminus.cs
index 7d8fbe330..f4dce7be7 100644
--- a/Assets/Scripts/ServerShared/Scenarios/DemoTerminus.cs
+++ b/Assets/Scripts/ServerShared/Scenarios/DemoTerminus.cs
@@ -2,10 +2,10 @@ using float2 = CultMath.float2;
// The demo: one gate, one region and one boss, with a fixed cast. The Pirates are the protagonist's ostensible
// employer, Zhestokost the antagonist whose home is the boss zone and the exit, Lucent Media and Aeronautics Unlimited
-// the neutrals. A galaxy of that cast at half influence; the player, who is not a Pirate, flies the base Longinus.
+// the neutrals. A prelude galaxy of that cast; the player, who is not a Pirate, flies the base Longinus.
public sealed class DemoTerminus : Scenario
{
- public static readonly GalaxyCast Cast = new GalaxyCast
+ public static readonly TutorialGenerationSettings Cast = new TutorialGenerationSettings
{
ProtagonistFaction = "Pirates",
AntagonistFaction = "Zhe",
@@ -13,8 +13,7 @@ public sealed class DemoTerminus : Scenario
NeutralFactions = new[] { "Aero" },
QuestFaction = null,
ZoneCount = 64,
- LinkDensity = .5f,
- InfluenceScale = .5f
+ LinkDensity = .5f
};
public override string Name => "Terminus (Demo)";
@@ -24,7 +23,7 @@ public sealed class DemoTerminus : Scenario
public override Galaxy Generate(GalaxyStage stage)
{
- var galaxy = stage.Cast(Cast);
+ var galaxy = stage.Prelude(Cast);
galaxy.PlaceGate(galaxy.ResolveFaction(Cast.AntagonistFaction));
return galaxy;
}
diff --git a/Assets/Scripts/ServerShared/Scenarios/DjinniShakedown.cs b/Assets/Scripts/ServerShared/Scenarios/DjinniShakedown.cs
index 1b853571c..43d23d0b3 100644
--- a/Assets/Scripts/ServerShared/Scenarios/DjinniShakedown.cs
+++ b/Assets/Scripts/ServerShared/Scenarios/DjinniShakedown.cs
@@ -14,7 +14,7 @@ public sealed class DjinniShakedown : Scenario
// Where the targets sit: the ballistic mount faces +z, so Ahead is inside its arc and Abeam outside it.
public static readonly float2 Ahead = new float2(0, 400), Abeam = new float2(400, 0);
- public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
+ public override Galaxy Generate(GalaxyStage stage) => stage.Prelude();
public override void Stage(ScenarioStage stage)
{
diff --git a/Assets/Scripts/ServerShared/Scenarios/Duel.cs b/Assets/Scripts/ServerShared/Scenarios/Duel.cs
index 508277643..67bca118d 100644
--- a/Assets/Scripts/ServerShared/Scenarios/Duel.cs
+++ b/Assets/Scripts/ServerShared/Scenarios/Duel.cs
@@ -10,7 +10,7 @@ public sealed class Duel : Scenario
public override uint Seed => 104;
public override bool Ambient => false;
- public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
+ public override Galaxy Generate(GalaxyStage stage) => stage.Prelude();
public override void Stage(ScenarioStage stage)
{
diff --git a/Assets/Scripts/ServerShared/Scenarios/FusedRounds.cs b/Assets/Scripts/ServerShared/Scenarios/FusedRounds.cs
index 8f3fd024e..7498465c3 100644
--- a/Assets/Scripts/ServerShared/Scenarios/FusedRounds.cs
+++ b/Assets/Scripts/ServerShared/Scenarios/FusedRounds.cs
@@ -26,7 +26,7 @@ public sealed class FusedRounds : Scenario
// The shooter is staged at this quality, so the damage its Cluster Cannon deals does not ride the item stream.
public const float StagedQuality = .6f;
- public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
+ public override Galaxy Generate(GalaxyStage stage) => stage.Prelude(DemoTerminus.Cast);
public override void Stage(ScenarioStage stage)
{
diff --git a/Assets/Scripts/ServerShared/Scenarios/InfiniteFunLand.cs b/Assets/Scripts/ServerShared/Scenarios/InfiniteFunLand.cs
deleted file mode 100644
index 96b401457..000000000
--- a/Assets/Scripts/ServerShared/Scenarios/InfiniteFunLand.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-using static CultMath.math;
-
-// Nibu's private simulation (ruling terminus-boots-into-ifl): New Game boots it, nothing in it is saved, and its
-// wormhole asks to leave and starts a Terminus run (ruling ifl-wormhole-exit-standin). It stages the Longinus until
-// the Nibu stand-in hull exists (ruling nibu-demo-hull-agent-standin); swapping the hull is the one line below.
-public sealed class InfiniteFunLand : Scenario
-{
- public override string Name => "Infinite Fun Land";
- public override string Id => "infinite-fun-land";
- public override string Brief => "Nibu's private simulation. Nothing in it is saved; leaving it starts a Terminus run.";
- public override uint Seed => 7;
- public override bool Ambient => false;
- public override bool Saved => false;
-
- public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
-
- public override void Stage(ScenarioStage stage) => stage.Player(stage.Generated("Longinus"), float2(0, 0));
-}
diff --git a/Assets/Scripts/ServerShared/Scenarios/InfiniteFunLand.cs.meta b/Assets/Scripts/ServerShared/Scenarios/InfiniteFunLand.cs.meta
deleted file mode 100644
index edf080d2b..000000000
--- a/Assets/Scripts/ServerShared/Scenarios/InfiniteFunLand.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 5a68fbe628ad4a49b947a97d4118c703
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Scripts/ServerShared/Scenarios/LauncherAngles.cs b/Assets/Scripts/ServerShared/Scenarios/LauncherAngles.cs
index efd13e1aa..61a798b1c 100644
--- a/Assets/Scripts/ServerShared/Scenarios/LauncherAngles.cs
+++ b/Assets/Scripts/ServerShared/Scenarios/LauncherAngles.cs
@@ -10,7 +10,7 @@ public sealed class LauncherAngles : Scenario
public override uint Seed => 105;
public override bool Ambient => false;
- public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
+ public override Galaxy Generate(GalaxyStage stage) => stage.Prelude();
public override void Stage(ScenarioStage stage)
{
diff --git a/Assets/Scripts/ServerShared/Scenarios/LockOn.cs b/Assets/Scripts/ServerShared/Scenarios/LockOn.cs
index 8e14c3ff6..4f8c4dfa9 100644
--- a/Assets/Scripts/ServerShared/Scenarios/LockOn.cs
+++ b/Assets/Scripts/ServerShared/Scenarios/LockOn.cs
@@ -35,7 +35,7 @@ public sealed class LockOn : Scenario
_quality = quality;
}
- public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
+ public override Galaxy Generate(GalaxyStage stage) => stage.Prelude(DemoTerminus.Cast);
public override void Stage(ScenarioStage stage)
{
diff --git a/Assets/Scripts/ServerShared/Scenarios/LongHaul.cs b/Assets/Scripts/ServerShared/Scenarios/LongHaul.cs
index 692a5adbc..18e158247 100644
--- a/Assets/Scripts/ServerShared/Scenarios/LongHaul.cs
+++ b/Assets/Scripts/ServerShared/Scenarios/LongHaul.cs
@@ -8,7 +8,7 @@ public sealed class LongHaul : Scenario
"warp, quit and Continue keep items, tier and brand; death disables Continue.";
public override uint Seed => 106;
- public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
+ public override Galaxy Generate(GalaxyStage stage) => stage.Prelude();
public override void Stage(ScenarioStage stage) =>
stage.Player(stage.Generated(stage.StartingHull), float2.zero);
diff --git a/Assets/Scripts/ServerShared/Scenarios/MainGalaxy.cs b/Assets/Scripts/ServerShared/Scenarios/MainGalaxy.cs
index d8a484b7b..3e4482d3c 100644
--- a/Assets/Scripts/ServerShared/Scenarios/MainGalaxy.cs
+++ b/Assets/Scripts/ServerShared/Scenarios/MainGalaxy.cs
@@ -7,8 +7,6 @@ public sealed class MainGalaxy : Scenario
public override string Id => "main-galaxy";
public override string Brief => "The full galaxy: factions drawn at random, bosses guarding the road to the exit.";
- public override bool EntranceStation => false;
-
public override Galaxy Generate(GalaxyStage stage) => stage.Main();
public override void Stage(ScenarioStage stage) =>
diff --git a/Assets/Scripts/ServerShared/Scenarios/Pursuit.cs b/Assets/Scripts/ServerShared/Scenarios/Pursuit.cs
index 7bde23745..d6d630a88 100644
--- a/Assets/Scripts/ServerShared/Scenarios/Pursuit.cs
+++ b/Assets/Scripts/ServerShared/Scenarios/Pursuit.cs
@@ -1,4 +1,3 @@
-using System.Linq;
using static CultMath.math;
using static ItemRotation;
@@ -8,11 +7,6 @@ public sealed class Pursuit : Scenario
// cloud breaking a sensor's lock, and well outside the 40 at which AStrongCloseSensorBurnsThrough shows a close
// sensor burning through.
private const float Astern = 300;
- // Crates each shooter's hold is stocked with: the measured draw over a run (ScenarioAmmunitionRunTests: at most ten minutes of play, and in
- // practice the ~250-270 s a shooter holding every gun down lasts before it dies of heat; a pilot who vents heat is unmeasured) plus half again and one where the hold has room. The player laid four crates of Mines and drew
- // 33 Ammo; its hold takes 54 crates after five consumables and Mines, so its Ammo stops at 39. The pursuer drew 31 Ammo and one Missiles. A launcher
- // that drew under a reload carries the default three crates.
- public const int MineCrates = 7, PlayerAmmoCrates = 39, PlayerMissileCrates = 3, PursuerAmmoCrates = 47, PursuerMissileCrates = 3;
public override string Name => "Pursuit";
public override string Id => "pursuit";
@@ -22,7 +16,7 @@ public sealed class Pursuit : Scenario
public override uint Seed => 111;
public override bool Ambient => false;
- public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
+ public override Galaxy Generate(GalaxyStage stage) => stage.Prelude(DemoTerminus.Cast);
public override void Stage(ScenarioStage stage)
{
@@ -61,9 +55,7 @@ public sealed class Pursuit : Scenario
("Store-All Plus", int2(2, 8), None)); // Cargo Bay
var player = stage.Player(layer, float2(0, 0), facing: float2(0, 1));
- stage.Cargo(player, new[] { "Morning Fog", "Morning Fog", "Morning Fog", "send it", "send it" }
- .Concat(Enumerable.Repeat("Mines", MineCrates)).Concat(Enumerable.Repeat("Ammo", PlayerAmmoCrates)).Concat(Enumerable.Repeat("Missiles", PlayerMissileCrates)).ToArray());
- var hostile = stage.Place(pursuer, float2(0, -Astern), facing: float2(0, 1), stance: ScenarioStance.Hostile, piloted: true);
- stage.Cargo(hostile, Enumerable.Repeat("Ammo", PursuerAmmoCrates).Concat(Enumerable.Repeat("Missiles", PursuerMissileCrates)).ToArray());
+ stage.Cargo(player, "Morning Fog", "Morning Fog", "Morning Fog", "send it", "send it");
+ stage.Place(pursuer, float2(0, -Astern), facing: float2(0, 1), stance: ScenarioStance.Hostile, piloted: true);
}
}
diff --git a/Assets/Scripts/ServerShared/Scenarios/RefusedRounds.cs b/Assets/Scripts/ServerShared/Scenarios/RefusedRounds.cs
index 384a7f286..88cdd3fdb 100644
--- a/Assets/Scripts/ServerShared/Scenarios/RefusedRounds.cs
+++ b/Assets/Scripts/ServerShared/Scenarios/RefusedRounds.cs
@@ -15,7 +15,7 @@ public sealed class RefusedRounds : Scenario
// The one target, ahead of the nose: inside every forward mount's arc.
public static readonly CultMath.float2 Target = float2(0, 300);
- public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
+ public override Galaxy Generate(GalaxyStage stage) => stage.Prelude(DemoTerminus.Cast);
public override void Stage(ScenarioStage stage)
{
diff --git a/Assets/Scripts/ServerShared/Scenarios/Scenarios.cs b/Assets/Scripts/ServerShared/Scenarios/Scenarios.cs
index 615d6b139..752b33e28 100644
--- a/Assets/Scripts/ServerShared/Scenarios/Scenarios.cs
+++ b/Assets/Scripts/ServerShared/Scenarios/Scenarios.cs
@@ -3,14 +3,9 @@
// editor and development builds.
public static class Scenarios
{
- // New Game boots Nibu's simulation; Terminus is the run its exit launches (a development build lists it too).
- public static readonly Scenario Simulation = new InfiniteFunLand();
+ public static readonly Scenario[] Modes = { new DemoTerminus() };
- public static readonly Scenario Terminus = new DemoTerminus();
-
- public static readonly Scenario[] Modes = { Simulation };
-
- public static readonly Scenario[] Development = { new MainGalaxy(), Terminus };
+ public static readonly Scenario[] Development = { new TutorialGalaxy(), new MainGalaxy() };
public static readonly Scenario[] Tests =
{
diff --git a/Assets/Scripts/ServerShared/Scenarios/StarvedReactor.cs b/Assets/Scripts/ServerShared/Scenarios/StarvedReactor.cs
index ccef7e151..2f3dff97b 100644
--- a/Assets/Scripts/ServerShared/Scenarios/StarvedReactor.cs
+++ b/Assets/Scripts/ServerShared/Scenarios/StarvedReactor.cs
@@ -10,7 +10,7 @@ public sealed class StarvedReactor : Scenario
public override uint Seed => 102;
public override bool Ambient => false;
- public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
+ public override Galaxy Generate(GalaxyStage stage) => stage.Prelude();
public override void Stage(ScenarioStage stage)
{
diff --git a/Assets/Scripts/ServerShared/Scenarios/TutorialGalaxy.cs b/Assets/Scripts/ServerShared/Scenarios/TutorialGalaxy.cs
new file mode 100644
index 000000000..1ff521865
--- /dev/null
+++ b/Assets/Scripts/ServerShared/Scenarios/TutorialGalaxy.cs
@@ -0,0 +1,17 @@
+using float2 = CultMath.float2;
+
+// New Game as it has always been: a prelude galaxy, entered in the starting hull of the protagonist faction.
+public sealed class TutorialGalaxy : Scenario
+{
+ public override string Name => "Tutorial Galaxy";
+ public override string Id => "tutorial-galaxy";
+ public override string Brief => "A small galaxy of fixed factions, entered in a ship of the protagonist faction.";
+
+ public override Galaxy Generate(GalaxyStage stage) => stage.Prelude();
+
+ public override void Stage(ScenarioStage stage)
+ {
+ var protagonist = stage.Galaxy.ResolveFaction(stage.TutorialGenerationSettings.ProtagonistFaction);
+ stage.Player(stage.Generated(stage.StartingHull, protagonist), float2.zero);
+ }
+}
diff --git a/Assets/Scripts/ServerShared/DemoPressure.cs.meta b/Assets/Scripts/ServerShared/Scenarios/TutorialGalaxy.cs.meta
similarity index 83%
rename from Assets/Scripts/ServerShared/DemoPressure.cs.meta
rename to Assets/Scripts/ServerShared/Scenarios/TutorialGalaxy.cs.meta
index df1cf5708..3f7c8777a 100644
--- a/Assets/Scripts/ServerShared/DemoPressure.cs.meta
+++ b/Assets/Scripts/ServerShared/Scenarios/TutorialGalaxy.cs.meta
@@ -1,5 +1,5 @@
fileFormatVersion: 2
-guid: 7c1e9a40d3b84f26a5e08b19f6d2c371
+guid: 94d688b37c5044dd9b67865c706d8918
MonoImporter:
externalObjects: {}
serializedVersion: 2
diff --git a/Assets/Scripts/ServerShared/Scenarios/WeaponFeel.cs b/Assets/Scripts/ServerShared/Scenarios/WeaponFeel.cs
index f6f8eb337..0817cfa80 100644
--- a/Assets/Scripts/ServerShared/Scenarios/WeaponFeel.cs
+++ b/Assets/Scripts/ServerShared/Scenarios/WeaponFeel.cs
@@ -14,7 +14,7 @@ public sealed class WeaponFeel : Scenario
// The one target, ahead of the nose: inside every forward mount's arc.
public static readonly CultMath.float2 Target = float2(0, 400);
- public override Galaxy Generate(GalaxyStage stage) => stage.Cast(DemoTerminus.Cast);
+ public override Galaxy Generate(GalaxyStage stage) => stage.Prelude(DemoTerminus.Cast);
public override void Stage(ScenarioStage stage)
{
diff --git a/Assets/Scripts/ServerShared/Settings.cs b/Assets/Scripts/ServerShared/Settings.cs
index 37ada792d..8326f76da 100644
--- a/Assets/Scripts/ServerShared/Settings.cs
+++ b/Assets/Scripts/ServerShared/Settings.cs
@@ -29,11 +29,6 @@ public class PlanetSettings
public ExponentialLerp AsteroidSize;
public ExponentialLerp AsteroidHitpoints;
public ExponentialLerp AsteroidRespawnTime;
- // Units of ore a whole rock of normalized size s gives (FireControl.Extract), however many hits break it.
- public ExponentialLerp AsteroidYield;
- // How far a rock's mix of its belt's ores strays from the kind's ratio: each ore's weight is scaled by
- // exp(variance x g), g in [-1, 1) a stable hash of (rock, ore). Zero reads the kind's ratio.
- public float ChunkCompositionVariance;
public float SecureAreaRadiusMultiplier = .45f;
@@ -94,10 +89,8 @@ public class SectorGenerationSettings
public int BossCount;
}
-// The fixed cast of a galaxy a scenario generates through GalaxyStage.Cast: who plays which part, how big the galaxy is,
-// and how far the factions' authored influence reaches (Galaxy.InfluenceOf). Held by the scenario that casts it; no
-// asset or store holds one.
-public class GalaxyCast
+[Serializable, MessagePackObject(keyAsPropertyName:true), JsonObject]
+public class TutorialGenerationSettings
{
public string ProtagonistFaction;
public string AntagonistFaction;
@@ -108,8 +101,6 @@ public class GalaxyCast
public int ZoneCount = 32;
// Zones per resource province (Provinces.Partition): calibration, not a gate.
public int ProvinceZones = Provinces.DefaultZonesPerProvince;
- // Multiplies every faction's authored InfluenceDistance in this galaxy (rounding up); 1 leaves them as authored.
- public float InfluenceScale = 1;
}
[Serializable, MessagePackObject(keyAsPropertyName:true), JsonObject]
@@ -188,12 +179,7 @@ public class GameplaySettings
public float SellFraction = .5f;
// What a station charges to restore worn gear, as a fraction of the price of the wear.
public float RepairFraction = .25f;
- public int StartingCredits = 150000;
- // A tuning tolerance, not a price: `economy balance` flags a chain link whose implied wage falls outside [median / k, median x k].
- public float EconomyWageSpread = 2;
- // Tuning tolerances like it: the band `economy balance --loop` checks the width of an offered gear ladder against (dearest over
- // cheapest offered design in a category). 0 means unset: the widths are reported and no ladder is a fault.
- public float EconomyLadderMin = 0, EconomyLadderMax = 0;
+ public int StartingCredits = 15000000;
public float DurabilityQualityExponent = 2;
public float DurabilityQualityMin = 2;
public float DurabilityQualityMax = .25f;
diff --git a/Assets/Scripts/ServerShared/Ship.cs b/Assets/Scripts/ServerShared/Ship.cs
index 922ab91b5..1266f5c90 100644
--- a/Assets/Scripts/ServerShared/Ship.cs
+++ b/Assets/Scripts/ServerShared/Ship.cs
@@ -48,16 +48,6 @@ public class Ship : Entity
public bool WormholeAnimationInProgress => _enteringWormhole || _exitingWormhole;
- // How deep into the wormhole the ship is, 0..1: rising while entering, falling while exiting, 0 otherwise. Derived
- // from the animation; presenters read it (the screen warp) and nothing in the sim does.
- public float WormholeWarp => _enteringWormhole ? _wormholeAnimationProgress
- : _exitingWormhole ? 1 - _wormholeAnimationProgress
- : 0;
-
- // The wormhole the ship is at in the current half: the one it dives into, then the one it emerges from. Presenters
- // read it (the screen warp centres on it); it is the sim's own position, so it needs no copy elsewhere.
- public float2 WormholePosition => _wormholePosition;
-
public event Action OnExitedWormhole;
public event Action OnEnteredWormhole;
diff --git a/Assets/Scripts/ServerShared/ShipAuthoring.cs b/Assets/Scripts/ServerShared/ShipAuthoring.cs
index 04802a7c6..3962fa468 100644
--- a/Assets/Scripts/ServerShared/ShipAuthoring.cs
+++ b/Assets/Scripts/ServerShared/ShipAuthoring.cs
@@ -33,9 +33,6 @@ public sealed class ShipJoint
[Key(2)] public float[] Axes;
[Key(3)] public float[] Min;
[Key(4)] public float[] Max;
-
- // Element identity, derived from the bone id so it never changes across rewrites.
- [Key(5)] [CultElementId(nameof(Id))] public string ElementId = "";
}
[MessagePackObject]
@@ -53,9 +50,6 @@ public sealed class ShipAnchor
[Key(4)] public int Order;
// On a weapon-mount anchor: the id of the nearest joint above its node in the model; null or empty is a fixed mount.
[Key(5)] public string Joint;
-
- // Element identity, derived from the anchor id so it never changes across rewrites.
- [Key(6)] [CultElementId(nameof(Id))] public string ElementId = "";
}
// Evaluated or baked Grease Pencil stroke coordinates in Blender's right-handed Z-up
@@ -70,9 +64,6 @@ public sealed class ShipPolyline
[Key(4)] public float[] Opacities;
[Key(5)] public bool Cyclic;
[Key(6)] public float[] Color;
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(7)] [CultElementId] public string Id = "";
}
public static class ShipAuthoringStore
@@ -143,11 +134,8 @@ public static class ShipAuthoringStore
// its deterministic key, the hull naming that visual by its typed ref, and the hull's products, each at its maker's key.
public static (HullData Hull, ShipAuthoring Visual, FactionProductData[] Products) Load(string path)
{
- try
- {
- using var cache = Open(path);
- return Load(cache, path);
- }
+ RefuseLegacyEmbeddedHull(path);
+ try { return LoadRecords(path); }
catch (Exception error) when (error is InvalidDataException or MessagePackSerializationException)
{
throw new InvalidOperationException($"{path}: a record does not decode as its schema: {error.Message}", error);
@@ -158,14 +146,6 @@ public static class ShipAuthoringStore
}
}
- // The same structure over a cache the caller opened on path, so a writer commits through the cache it loaded from.
- // The records returned are the cache's own instances.
- public static (HullData Hull, ShipAuthoring Visual, FactionProductData[] Products) Load(CultCache cache, string path)
- {
- RefuseLegacyEmbeddedHull(path);
- return LoadRecords(cache, path);
- }
-
// Key 1 of ShipAuthoring held the whole hull before S1. The type no longer has that member, so a deserialized record
// shows nothing of it, and a file that still carries one would load as a ship silently ignoring its old hull. The
// raw payload is the only place the old shape is visible.
@@ -199,8 +179,9 @@ public static class ShipAuthoringStore
private const int RetiredHullKey = 1;
- private static (HullData Hull, ShipAuthoring Visual, FactionProductData[] Products) LoadRecords(CultCache cache, string path)
+ private static (HullData Hull, ShipAuthoring Visual, FactionProductData[] Products) LoadRecords(string path)
{
+ using var cache = Open(path);
var hulls = cache.GetAll().ToArray();
var visuals = cache.GetAll().ToArray();
if (visuals.Length != 1)
diff --git a/Assets/Scripts/ServerShared/ShipModCatalog.cs b/Assets/Scripts/ServerShared/ShipModCatalog.cs
index 7d5582269..e9ed613a2 100644
--- a/Assets/Scripts/ServerShared/ShipModCatalog.cs
+++ b/Assets/Scripts/ServerShared/ShipModCatalog.cs
@@ -4,7 +4,6 @@ using System.IO;
using System.Linq;
using GameCult.Caching;
using Newtonsoft.Json.Linq;
-using System.Numerics;
using System.Text;
// Builds the one catalog snapshot CultCache needs. Sources remain the shipped catalog and each
@@ -111,7 +110,6 @@ public static class ShipModCatalog
if (shipIds.Contains(ship.Id))
Exclude(directory, $"ship ID collides with an existing catalog ship authoring record.");
if (StationKinds.HullKindFault(cache, hull) is { } kindFault) Exclude(directory, kindFault);
- if (MarketFault(cache, ship, package.Products) is { } marketFault) Exclude(directory, marketFault);
foreach (var product in package.Products)
{
if (!factionKeys.Contains(product.Manufacturer.Key))
@@ -159,26 +157,6 @@ public static class ShipModCatalog
}
}
- // Why a package's products cannot join the catalog, or null; the one judgement Compose and `ship-authoring validate` share.
- // `items` is the shipped catalog. A product's bin may name only a product line the shipped catalog holds or one of the
- // package's own products (and that line must not be a bin itself): the catalog read refuses any other bin, and a line in
- // another package is no promise, since packages compose independently. With every bin resolved, a hull offered through any of its
- // products is drawn on the map and the schematic by its lines (ShipModVisual.BuildLineMesh builds nothing from none), so an
- // offered hull without any is refused; an unoffered stand-in is left alone. Offered is LoadoutGenerator.IsOffered, the one
- // reader of NotOffered (ruling off-market-is-unoffered-product), resolving a line among the package's own products too.
- public static string MarketFault(CultCache items, ShipAuthoring ship, FactionProductData[] products)
- {
- var own = new Dictionary();
- foreach (var product in products) own[ProductKey(ship.Id, product.Manufacturer.Key)] = product;
- FactionProductData LineOf(CultRecordRef line) => items.Get(line) ?? (own.TryGetValue(line.Key, out var found) ? found : null);
- foreach (var product in products.Where(product => product.Bin != null))
- if (LineOf(product.Bin.Line) is not { } line || line.Bin != null)
- return $"{ship.Id}: product '{product.Name}' bins a line that is neither an unbinned shipped product nor an unbinned product of this package.";
- if (ship.SchematicLines != null && ship.SchematicLines.Any(line => line?.Points != null && line.Points.Length > 0)) return null;
- return products.Any(product => LoadoutGenerator.IsOffered(product, LineOf))
- ? $"{ship.Id}: the hull is offered on the market but has no schematic lines." : null;
- }
-
public static Package ReadPackage(string shipPath)
{
var path = Path.GetFullPath(shipPath);
@@ -261,7 +239,7 @@ public static class ShipModCatalog
private static string RemovedRoot(string modsRoot) =>
Path.Combine(Path.GetDirectoryName(Path.GetFullPath(modsRoot).TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar)), "RemovedMods");
- internal static Package Bind(HullData hull, ShipAuthoring ship, FactionProductData[] products, string directory, string path)
+ private static Package Bind(HullData hull, ShipAuthoring ship, FactionProductData[] products, string directory, string path)
{
if (!string.Equals(Path.GetFileName(directory), ship.Id, StringComparison.Ordinal))
throw new InvalidOperationException($"{path}: ship ID must match its package directory name.");
@@ -273,19 +251,17 @@ public static class ShipModCatalog
foreach (var anchor in ship.Anchors)
if (!modelNodes.ContainsKey(anchor.ModelNodeId))
throw new InvalidOperationException($"{ship.Id}: model has no node with aetheria.id={anchor.ModelNodeId} for anchor {anchor.Id}.");
- // Assemble reads a renderer or collider mesh from these anchors' nodes, and the shield node's scale as three positive
- // radii (ruling thrusters-radiators-are-meshes). These refusals cover everything the package's files say about whether
- // the importer can build a node (skin, dangling or empty mesh, not only "names a mesh") and are Assemble's only judge,
- // so a package Compose includes is one the importer's assembler can build; the exhaust emission surface and the
- // glowing radiator are meshes by that same ruling. A weapon mount and a tractor may be empties.
+ // Assemble reads a renderer or collider mesh from these anchors' nodes and refuses without one, and reads the shield
+ // node's scale as three positive radii (ruling thrusters-radiators-are-meshes). These refusals stand in for Assemble's
+ // throws, so a package Compose includes is one the importer's assembler can build; the exhaust emission surface and
+ // the glowing radiator are meshes by that same ruling. A weapon mount and a tractor may be empties.
foreach (var anchor in ship.Anchors)
if ((anchor.Role == "thruster-emitter" || anchor.Role == "radiator-mesh" || anchor.Role == "map-icon" || anchor.Role == "hull-collider") &&
!modelNodes[anchor.ModelNodeId].HasMesh)
- throw new InvalidOperationException($"{ship.Id}: {anchor.Role} anchor {anchor.Id} needs a mesh, but model node {anchor.ModelNodeId} has none the importer can build.");
+ throw new InvalidOperationException($"{ship.Id}: {anchor.Role} anchor {anchor.Id} needs a mesh, but model node {anchor.ModelNodeId} has none.");
foreach (var anchor in ship.Anchors)
if (anchor.Role == "shield" && !modelNodes[anchor.ModelNodeId].PositiveScale)
throw new InvalidOperationException($"{ship.Id}: shield anchor {anchor.Id} needs three positive scale radii on model node {anchor.ModelNodeId}, with no matrix.");
- BindExhaust(hull, ship, modelNodes, modelPath);
BindRig(ship, modelNodes);
CultRecordRefs.Validate(hull);
return new Package
@@ -295,166 +271,6 @@ public static class ShipModCatalog
};
}
- // A thruster emitter's mesh is the surface its exhaust is born from, along each triangle's normal, so the mesh has to face
- // the way the exhaust goes. Every thruster is a directional thruster today: its Rotation faces its exhaust, the push
- // is the opposite way, and an emitter triangle whose normal has a non-negative dot with the push would fire exhaust
- // along it (a closed box fires both ways). A thruster of another class, a ring thruster whose exhaust leaves radially,
- // is not this rule's to judge: it would come with its own class on the hardpoint and its own rule beside this one.
- private static void BindExhaust(HullData hull, ShipAuthoring ship, Dictionary nodes, string modelPath)
- {
- var emitters = ship.Anchors.Where(anchor => anchor.Role == "thruster-emitter").ToArray();
- if (emitters.Length == 0) return;
- var model = GlbGeometry.Read(modelPath);
- foreach (var anchor in emitters)
- {
- var hardpoint = hull.Hardpoints.FirstOrDefault(candidate => candidate.Type == HardpointType.Thruster && candidate.Transform == anchor.Id);
- // An emitter anchor with no thruster hardpoint is already a package fault: ShipAuthoringStore.Validate (run by Read and
- // PackageOf before Bind) refuses a mount-role anchor that is not the mount of a hardpoint of its type.
- if (hardpoint == null) continue;
- var facing = hardpoint.Rotation.Direction();
- // The model's frame is glTF's, nose toward +Z and port toward +X (the Blender kit's nose at -Y and port at +X,
- // through the exporter's Y-up conversion): a hardpoint facing (x, y) in the grid faces (-x, 0, y) in the model.
- var push = -new Vector3(-facing.x, 0f, facing.y);
- var wrong = model.Normals((int)nodes[anchor.ModelNodeId].Index).Count(normal => Vector3.Dot(normal, push) >= 0f);
- if (wrong > 0)
- throw new InvalidOperationException($"{ship.Id}: thruster emitter {anchor.Id} has {wrong} face or vertex normal(s) that do not face its exhaust " +
- $"({hardpoint.Rotation}); a directional thruster's emitter fires only along its exhaust, so it must be one-sided, not a closed box.");
- }
- }
-
- // The triangles of a GLB as the node tree places them, read for the one question the emitter rule asks: which way each
- // face points. Float positions and normals, indices of 1, 2 or 4 bytes or none, no sparse, no compression: a model the
- // exporter writes. Anything else is refused as unreadable rather than guessed at.
- private sealed class GlbGeometry
- {
- private readonly JObject _json;
- private readonly byte[] _bin;
- private readonly string _path;
-
- private GlbGeometry(JObject json, byte[] bin, string path) { _json = json; _bin = bin; _path = path; }
-
- public static GlbGeometry Read(string path)
- {
- var bytes = File.ReadAllBytes(path);
- var jsonLength = (int)BitConverter.ToUInt32(bytes, 12);
- var json = JObject.Parse(Encoding.UTF8.GetString(bytes, 20, jsonLength));
- var at = 20 + jsonLength;
- var bin = at + 8 <= bytes.Length && BitConverter.ToUInt32(bytes, at + 4) == 0x004E4942u
- ? bytes.Skip(at + 8).Take((int)BitConverter.ToUInt32(bytes, at)).ToArray() : Array.Empty();
- return new GlbGeometry(json, bin, path);
- }
-
- // Unit normals in the model frame: each triangle's face normal (its winding, flipped when the node's world transform
- // mirrors, as glTF says) and each vertex normal the primitive carries.
- public IEnumerable Normals(int node)
- {
- var world = World(node);
- var mirrored = world.GetDeterminant() < 0f;
- var meshIndex = (int?)_json["nodes"][node]["mesh"];
- if (meshIndex == null) yield break;
- foreach (var primitive in (JArray)_json["meshes"][meshIndex.Value]["primitives"])
- {
- var attributes = (JObject)primitive["attributes"];
- if (primitive["extensions"] is JObject extensions && extensions.Properties().Any(p => HidesGeometry(p.Name)))
- throw Unreadable($"mesh {meshIndex} is compressed by {extensions.Properties().First(p => HidesGeometry(p.Name)).Name}");
- var normalMatrix = Matrix4x4.Invert(world, out var inverse) ? Matrix4x4.Transpose(inverse) : throw Unreadable($"node {node} has a transform that cannot be inverted");
- var positions = Vectors((int)attributes["POSITION"]).Select(point => Vector3.Transform(point, world)).ToArray();
- var indices = primitive["indices"] == null ? Enumerable.Range(0, positions.Length).ToArray() : Indices((int)primitive["indices"]);
- for (var i = 0; i + 2 < indices.Length; i += 3)
- {
- var face = Vector3.Cross(positions[indices[i + 1]] - positions[indices[i]], positions[indices[i + 2]] - positions[indices[i]]);
- if (face.LengthSquared() < 1e-12f) continue;
- yield return Vector3.Normalize(mirrored ? -face : face);
- }
- if (attributes["NORMAL"] != null)
- foreach (var normal in Vectors((int)attributes["NORMAL"]))
- if (normal.LengthSquared() > 1e-12f) yield return Vector3.Normalize(Vector3.TransformNormal(normal, normalMatrix));
- }
- }
-
- // Row-vector matrices, so a child's world is its local times its parent's world.
- private Matrix4x4 World(int node)
- {
- var parents = new Dictionary();
- var nodes = (JArray)_json["nodes"];
- for (var parent = 0; parent < nodes.Count; parent++)
- foreach (var child in nodes[parent]["children"]?.Select(token => (int)token) ?? Enumerable.Empty()) parents[child] = parent;
- var world = Matrix4x4.Identity;
- for (int at = node, steps = 0; steps <= nodes.Count; steps++)
- {
- world *= Local((JObject)nodes[at]);
- if (!parents.TryGetValue(at, out at)) break;
- }
- return world;
- }
-
- private static Matrix4x4 Local(JObject node)
- {
- if (node["matrix"] is JArray m)
- {
- var v = m.Select(token => (float)token).ToArray();
- return new Matrix4x4(v[0], v[1], v[2], v[3], v[4], v[5], v[6], v[7], v[8], v[9], v[10], v[11], v[12], v[13], v[14], v[15]);
- }
- float[] Of(string key, float[] fallback) => node[key] is JArray a ? a.Select(token => (float)token).ToArray() : fallback;
- var scale = Of("scale", new[] { 1f, 1f, 1f });
- var rotation = Of("rotation", new[] { 0f, 0f, 0f, 1f });
- var translation = Of("translation", new[] { 0f, 0f, 0f });
- return Matrix4x4.CreateScale(scale[0], scale[1], scale[2]) *
- Matrix4x4.CreateFromQuaternion(new Quaternion(rotation[0], rotation[1], rotation[2], rotation[3])) *
- Matrix4x4.CreateTranslation(translation[0], translation[1], translation[2]);
- }
-
- // The bytes an accessor reads from: its view's slice of the BIN chunk, at the view's stride.
- private (int Offset, int Stride, int Count, int Component, string Type) Locate(int accessor)
- {
- var a = (JObject)_json["accessors"][accessor];
- if (a["sparse"] != null || a["bufferView"] == null) throw Unreadable($"accessor {accessor} is sparse or has no buffer view");
- var view = (JObject)_json["bufferViews"][(int)a["bufferView"]];
- if (view["extensions"] is JObject viewExtensions && viewExtensions.Properties().Any(p => HidesGeometry(p.Name)))
- throw Unreadable($"accessor {accessor} is compressed by {viewExtensions.Properties().First(p => HidesGeometry(p.Name)).Name}");
- var component = (int)a["componentType"];
- var type = (string)a["type"];
- var width = (component == 5126 || component == 5125 ? 4 : component == 5123 ? 2 : 1) * (type == "VEC3" ? 3 : 1);
- var offset = ((int?)view["byteOffset"] ?? 0) + ((int?)a["byteOffset"] ?? 0);
- var stride = (int?)view["byteStride"] ?? width;
- var count = (int)a["count"];
- if (offset < 0 || count < 0 || (count > 0 && offset + (long)(count - 1) * stride + width > _bin.Length)) throw Unreadable($"accessor {accessor} reaches past the BIN chunk");
- return (offset, stride, count, component, type);
- }
-
- private Vector3[] Vectors(int accessor)
- {
- var (offset, stride, count, component, type) = Locate(accessor);
- if (component != 5126 || type != "VEC3") throw Unreadable($"accessor {accessor} is not float VEC3");
- var result = new Vector3[count];
- for (var i = 0; i < count; i++)
- {
- var at = offset + i * stride;
- result[i] = new Vector3(BitConverter.ToSingle(_bin, at), BitConverter.ToSingle(_bin, at + 4), BitConverter.ToSingle(_bin, at + 8));
- }
- return result;
- }
-
- private int[] Indices(int accessor)
- {
- var (offset, stride, count, component, type) = Locate(accessor);
- if (type != "SCALAR" || component != 5121 && component != 5123 && component != 5125) throw Unreadable($"accessor {accessor} is not an index accessor");
- var result = new int[count];
- for (var i = 0; i < count; i++)
- {
- var at = offset + i * stride;
- result[i] = component == 5121 ? _bin[at] : component == 5123 ? BitConverter.ToUInt16(_bin, at) : (int)BitConverter.ToUInt32(_bin, at);
- }
- return result;
- }
-
- // The extensions that store geometry in a form this reader does not decode; any other (materials, variants) leaves the
- // positions and normals where the accessors say.
- private static bool HidesGeometry(string extension) => extension == "KHR_draco_mesh_compression" || extension == "EXT_meshopt_compression";
-
- private InvalidOperationException Unreadable(string reason) => new InvalidOperationException($"{_path}: emitter geometry is unreadable: {reason}.");
- }
-
// The rig the record states must be the rig the model has: every joint is a node, each joint's Parent and each mount's
// Joint is the nearest joint above its node, ancestors without an id being walked through by ReadNodeIds, and a radiator
// mesh sits under no joint.
@@ -493,23 +309,7 @@ public static class ShipModCatalog
private static bool PositiveScale(JObject node) =>
node["matrix"] == null && (node["scale"] == null || node["scale"].Select(component => (double)component).All(component => component > 0));
- // A mesh the importer builds as a plain mesh node: no skin (glTFast makes a skinned node a SkinnedMeshRenderer, which
- // Assemble's MeshRenderer/MeshFilter reads cannot see), a mesh index inside meshes, at least one primitive, and every
- // primitive with POSITION and a mode absent or 4 (triangles). Geometry accessors and buffers are not read.
- private static bool BuildsMesh(JObject json, JObject node)
- {
- if (node["skin"] != null && node["skin"].Type != JTokenType.Null) return false;
- var meshes = json["meshes"] as JArray;
- if (node["mesh"] == null || node["mesh"].Type != JTokenType.Integer || meshes == null) return false;
- var index = (long)node["mesh"];
- if (index < 0 || index >= meshes.Count) return false;
- var primitives = (meshes[(int)index] as JObject)?["primitives"] as JArray;
- return primitives != null && primitives.Count > 0 && primitives.All(primitive =>
- primitive is JObject p && p["attributes"]?["POSITION"] != null &&
- (p["mode"] == null || (p["mode"].Type == JTokenType.Integer && (int)p["mode"] == 4)));
- }
-
- // GLB is the xenos asset boundary. Only its node extras, whether each node carries a mesh the importer builds as a plain mesh node, and its nearest identified ancestor's node index
+ // GLB is the xenos asset boundary. Only its node extras, whether each node names a mesh, and its nearest identified ancestor's node index
// (-1 for none) are read here, plus whether the node's scale is three positive radii with no matrix; geometry belongs to the runtime importer.
public static Dictionary ReadNodeIds(string path)
{
@@ -533,7 +333,7 @@ public static class ShipModCatalog
{
var id = (string)node["extras"]?["aetheria.id"];
if (string.IsNullOrEmpty(id)) { index++; continue; }
- if (!ids.TryAdd(id, (index, BuildsMesh(json, node), IdentifiedAncestor(parents, nodes, (int)index), PositiveScale(node))))
+ if (!ids.TryAdd(id, (index, node["mesh"] != null && node["mesh"].Type != JTokenType.Null, IdentifiedAncestor(parents, nodes, (int)index), PositiveScale(node))))
throw new InvalidOperationException($"{path}: duplicate GLB node aetheria.id={id}.");
index++;
}
diff --git a/Assets/Scripts/ServerShared/SimClock.cs b/Assets/Scripts/ServerShared/SimClock.cs
index ace4f9856..ee260a50b 100644
--- a/Assets/Scripts/ServerShared/SimClock.cs
+++ b/Assets/Scripts/ServerShared/SimClock.cs
@@ -53,28 +53,11 @@ public sealed class SimClock
_accumulator = 0;
}
- private float _rate = 1f;
-
- // Real-time dilation: how much sim time a real second buys, in (0, 1]. It scales the real seconds fed and never
- // changes Step, so every step and trajectory is the same and only the wall-clock pace differs. Its one writer is
- // ActionGameManager, from TacticalView.TimeRate.
- public float Rate
- {
- get => _rate;
- set
- {
- // NaN is no rate: it would poison the accumulator for good (only Reset clears it), so it is refused and the
- // last rate stands. Anything else is clamped into (0, 1]: the sim never runs faster than real time or backward.
- if (float.IsNaN(value)) return;
- _rate = Math.Min(Math.Max(value, float.Epsilon), 1f);
- }
- }
-
// Feeds real seconds (negative counts as none, one frame counts at most MaxFrameSeconds) and runs the whole
// steps they pay for. Returns how many ran.
public int Advance(float realSeconds, Action step)
{
- _accumulator += Math.Min(Math.Max(realSeconds, 0f), MaxFrameSeconds) * (double) Rate;
+ _accumulator += Math.Min(Math.Max(realSeconds, 0f), MaxFrameSeconds);
var ran = 0;
_advancing = true;
try
diff --git a/Assets/Scripts/ServerShared/SimulationDice.cs b/Assets/Scripts/ServerShared/SimulationDice.cs
index c8cb9e759..adc440299 100644
--- a/Assets/Scripts/ServerShared/SimulationDice.cs
+++ b/Assets/Scripts/ServerShared/SimulationDice.cs
@@ -18,9 +18,6 @@ public static class SimulationDice
// seed (CombatSeed): the run seed feeds drops and mines only (ruling run-seed-drops-only), and placement never rides
// ItemManager.Random.
public const uint ScatterStream = 5;
- // The ore a shot's wear of rocks pays, ordinal the shot's ShotId, on the zone's DropSeed (mined ore is a drop):
- // FireControl.Extract is the one reader.
- public const uint OreStream = 6;
// 9.1 (docs/fire-control-cut.md): fmix32, MurmurHash3's 32-bit finalizer -- xor-shift, multiply,
// xor-shift, multiply, xor-shift. Diffuses a structured seed (a zone seed XORed with a small,
diff --git a/Assets/Scripts/ServerShared/StationKinds.cs b/Assets/Scripts/ServerShared/StationKinds.cs
index eb2662eee..dad1ce2aa 100644
--- a/Assets/Scripts/ServerShared/StationKinds.cs
+++ b/Assets/Scripts/ServerShared/StationKinds.cs
@@ -35,9 +35,6 @@ public class StationKindStandIn
// The kind whose model this faction builds in place of the owning kind's.
[JsonProperty("kind"), Key(1)]
public CultRecordRef Kind;
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(2)] [CultElementId] public string Id = "";
}
// The one owner of which kinds a faction builds, which kind a station gets, and which hull kind stands in.
diff --git a/Assets/Scripts/ServerShared/StationServices.cs b/Assets/Scripts/ServerShared/StationServices.cs
index 515477092..153fc595d 100644
--- a/Assets/Scripts/ServerShared/StationServices.cs
+++ b/Assets/Scripts/ServerShared/StationServices.cs
@@ -8,14 +8,12 @@ using System.Linq;
// durabilities exactly as they were.
public static class StationServices
{
- // What the station charges for the item, or for `quantity` units of a commodity, simple or compound (a crafted item
- // is one unit). The number TradeMenu shows, checks against the run's credits and charges.
+ // What the station charges for the item, or for `quantity` units of a commodity (a crafted item is one unit). The
+ // number TradeMenu shows, checks against the run's credits and charges.
public static int BuyPrice(ItemManager items, ItemInstance item, int quantity = 1)
{
switch (item)
{
- case CompoundCommodity compound:
- return (int) Math.Min((long) items.GetPrice(compound) * quantity, int.MaxValue);
case CraftedItemInstance crafted:
return items.GetPrice(crafted);
case SimpleCommodity commodity:
@@ -26,14 +24,12 @@ public static class StationServices
}
// What the station pays for the item: its price, scaled by SellFraction and by its condition. A commodity has no
- // wear, so it sells at the fraction alone; a commodity's price, simple or compound, is per unit.
+ // wear, so it sells at the fraction alone; a simple commodity's price is per unit.
public static int SellPrice(ItemManager items, ItemInstance item)
{
var fraction = (double) items.GameplaySettings.SellFraction;
switch (item)
{
- case CompoundCommodity compound:
- return (int) Math.Floor((long) items.GetPrice(compound) * compound.Quantity * fraction);
case CraftedItemInstance crafted:
return SellValue(items.GetPrice(crafted), fraction, Condition(items, crafted));
case SimpleCommodity commodity:
@@ -87,91 +83,30 @@ public static class StationServices
// design's MaxStack, so a stack the station holds is a lot already; a stack above it comes from outside a bay and is
// refused, as is a purchase of more than the stack holds or of a stack that holds nothing. All of that is refused
// before anything moves, so `deliver` moves units the station has and the charge is for the units it delivered.
- public static BuyResult TryBuyLots(ItemManager items, ItemInstance stock, int quantity, ref int credits, Func deliver)
+ public static BuyResult TryBuyLots(ItemManager items, SimpleCommodity stock, int quantity, ref int credits, Func deliver)
{
- if (!(stock is ICommodityStack stack) || quantity < 1 || quantity > stack.Quantity || stack.Quantity > items.MaxStack(stock))
- return BuyResult.NoRoom;
+ if (quantity < 1 || quantity > stock.Quantity || stock.Quantity > items.GetData(stock).MaxStack) return BuyResult.NoRoom;
return TryBuy(items, stock, quantity, ref credits, () => deliver(quantity));
}
// The quantity a Buy Quantity field may hold: what was typed, at most what the credits cover and what the station
// has, and never below one unit (a price the credits do not cover is then refused as short of credits).
- public static int BuyableQuantity(ItemManager items, ItemInstance stock, int typed, int credits) =>
- Math.Max(1, Math.Min(Math.Min(typed, credits / BuyPrice(items, stock)), stock is ICommodityStack stack ? stack.Quantity : 1));
+ public static int BuyableQuantity(ItemManager items, SimpleCommodity stock, int typed, int credits) =>
+ Math.Max(1, Math.Min(Math.Min(typed, credits / BuyPrice(items, stock)), stock.Quantity));
- // The sale: the item leaves the bay and the station pays SellPrice. A crafted item goes to one of the station's
- // cargo bays; false, with the item in its bay and the credits unchanged, when no bay can take it. A simple
- // commodity always sells (aetheria-release:ruling:station-market-absorbs-sold-commodity, retired for every good by
- // aetheria-living-world:ruling:no-market-absorption; a separate station-outflow cut removes this path): the bays take
- // as much of the stack as fits and the market absorbs the rest, at the full price. A compound stack sells only
- // by TrySellPart: only what the bays take.
+ // The sale: the item leaves the bay for one of the station's cargo bays and the station pays SellPrice. False,
+ // with the item in its bay and the credits unchanged, when no station bay can take it.
public static bool TrySell(EquippedCargoBay from, Entity station, ItemInstance item, ref int credits)
{
- if (item is CompoundCommodity)
- throw new ArgumentException("A compound stack sells through TrySellPart, which says how many units sold.", nameof(item));
var price = SellPrice(station.ItemManager, item);
- if (item is SimpleCommodity commodity)
- {
- if (!from.Cargo.ContainsKey(item)) return false;
- var offered = commodity.Quantity;
- for (var quantity = offered; quantity >= 1; quantity--)
- if (station.CargoBays.Any(bay => from.TryTransferItem(bay, item, quantity))) break;
- if (from.Cargo.ContainsKey(item)) from.Remove(item, commodity.Quantity);
- }
- else if (!station.CargoBays.Any(bay => from.TryTransferItem(bay, item, 1))) return false;
+ var moved = item is SimpleCommodity commodity
+ ? station.CargoBays.Any(bay => from.TryTransferItem(bay, commodity, commodity.Quantity))
+ : station.CargoBays.Any(bay => from.TryTransferItem(bay, (CraftedItemInstance) item));
+ if (!moved) return false;
credits += price;
return true;
}
- // The sale of a compound stack (aetheria-living-world:ruling:no-market-absorption): the station's bays take what they
- // can hold, the station pays SellPrice for those units alone, and the rest stays in the seller's hold. Returns the
- // units sold; zero, with nothing moved and the credits unchanged, when no bay has room for one.
- public static int TrySellPart(EquippedCargoBay from, Entity station, CompoundCommodity stack, ref int credits)
- {
- if (!from.Cargo.ContainsKey(stack)) return 0;
- var sold = 0;
- var remaining = stack.Quantity;
- while (remaining > 0)
- {
- var moved = 0;
- for (var quantity = remaining; quantity >= 1 && moved == 0; quantity--)
- {
- var q = quantity;
- var part = stack.Split(q);
- if (station.CargoBays.Any(bay => from.TryTransferItem(bay, stack, q))) moved = q;
- credits += moved > 0 ? SellPrice(station.ItemManager, part) : 0;
- }
- if (moved == 0) break;
- sold += moved;
- remaining -= moved;
- }
- return sold;
- }
-
- // The ore stacks of the bays are the stacks of any design a field kind yields, mined, bought or looted alike (ruling
- // simple-commodities-fungible); ammunition and other simple goods no belt yields are not ore.
- private static ItemInstance[] OreStacks(ItemManager items, IEnumerable bays) =>
- bays.SelectMany(bay => bay.Cargo.Keys.OfType().Where(stack => FieldKinds.IsOre(items.ItemData, items.GetData(stack))).Select(stack => (ItemInstance) stack)).ToArray();
-
- // What the station pays for every ore stack of the bays: the sum of SellPrice over the stacks TrySellOre sells.
- public static int OreValue(ItemManager items, IEnumerable bays) =>
- (int) Math.Min(OreStacks(items, bays).Sum(stack => (long) SellPrice(items, stack)), int.MaxValue);
-
- // Sells every ore stack of the bays, each through TrySell, so the market's absorb rule and the price are the
- // single-stack path's. Returns the units sold.
- public static int TrySellOre(IEnumerable bays, Entity station, ref int credits)
- {
- var bayList = bays.ToArray();
- var units = 0;
- foreach (var stack in OreStacks(station.ItemManager, bayList))
- {
- var quantity = ((SimpleCommodity) stack).Quantity;
- var from = bayList.First(bay => bay.Cargo.ContainsKey(stack));
- if (TrySell(from, station, stack, ref credits)) units += quantity;
- }
- return units;
- }
-
// The repair: armour and every durability go back to design and the station charges RepairCost. False, with
// nothing restored, when the credits fall short.
public static bool TryRepair(Entity entity, ref int credits)
diff --git a/Assets/Scripts/ServerShared/TacticalInput.cs b/Assets/Scripts/ServerShared/TacticalInput.cs
deleted file mode 100644
index 73208da9f..000000000
--- a/Assets/Scripts/ServerShared/TacticalInput.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
-
-using System.Collections.Generic;
-
-// The one place that decides, per input action, whether it is ship input or view input (ruling tactical-input-hands-off).
-// Ship input drives the ship and pauses in the tactical view, which holds the ship's last commands; view input steers the
-// view and the interface and stays live. TacticalView.Direct is the only source of the mode. An action absent from the table
-// is not live (it fails closed), and a test requires every action of the Player and Global maps to be listed.
-public static class TacticalInput
-{
- private static readonly HashSet Ship = new HashSet
- {
- "Player/Move", "Player/Look", "Player/Turn", "Player/Face Aim", "Player/Toggle Face Aim", "Player/Tractor Beam",
- "Player/Target Reticle", "Player/Target Previous", "Player/Target Next", "Player/Target Nearest",
- "Player/Cycle Target Item", "Player/Toggle Heatsinks", "Player/Toggle Shield", "Player/Toggle Stance",
- "Player/Override Shutdown", "Player/Ping", "Global/Interact",
- };
-
- private static readonly HashSet View = new HashSet
- {
- "Player/Zoom", "Player/Pan", "Player/Point", "Player/Minimap Zoom", "Player/Hide UI",
- "Global/Zone Map", "Global/Galaxy Map", "Global/Inventory", "Global/Main Menu", "Global/Input Screen",
- };
-
- public static IEnumerable Classified
- {
- get
- {
- foreach (var a in Ship) yield return a;
- foreach (var a in View) yield return a;
- }
- }
-
- public static bool IsShip(string map, string action) => Ship.Contains(map + "/" + action);
-
- // Whether the action's input is taken now.
- public static bool Live(TacticalView view, string map, string action)
- {
- var key = map + "/" + action;
- return View.Contains(key) || (Ship.Contains(key) && view.Direct);
- }
-}
diff --git a/Assets/Scripts/ServerShared/TacticalInput.cs.meta b/Assets/Scripts/ServerShared/TacticalInput.cs.meta
deleted file mode 100644
index 32c124e65..000000000
--- a/Assets/Scripts/ServerShared/TacticalInput.cs.meta
+++ /dev/null
@@ -1,2 +0,0 @@
-fileFormatVersion: 2
-guid: b1a9c9c14cc8d834380ff8fc62592d92
\ No newline at end of file
diff --git a/Assets/Scripts/ServerShared/TacticalView.cs b/Assets/Scripts/ServerShared/TacticalView.cs
deleted file mode 100644
index 0ed4d5781..000000000
--- a/Assets/Scripts/ServerShared/TacticalView.cs
+++ /dev/null
@@ -1,148 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
-
-using CultMath;
-using static CultMath.math;
-
-// The one owner of the view (rulings tactical-view-distinct-mode, tactical-view-in-runs-slow-time). One scalar, the camera
-// distance in log space, is the view: flight owns [ln base, ln BlendStart], the tactical view owns [ln BlendEnd, ln max],
-// and the band between is a detent the player scrolls through with intent. Scroll moves a commanded position; an eased
-// position follows it on a critically damped spring and is what the camera is. Nothing stores a mode: Tactical is derived
-// from the commanded position against the band's crest, and Blend, TimeRate and the rig weight are derived from the
-// eased distance, by whoever draws or steps.
-// Every feel constant (notch step, detent resistance and relaxation, ease time, the band's edges) is a placeholder the
-// operator tunes by eye (GameSettings).
-public sealed class TacticalView
-{
- private readonly float _zoomStep, _blendStart, _blendEnd, _timeScale, _fitPerRadius;
- private readonly float _detentResistance, _detentRelaxTime, _easeTime;
- private readonly float _lnStart, _lnEnd, _crest;
- private float _lnBase, _lnMax, _zoneRadius;
-
- public TacticalView(float zoomStep, float blendStart, float blendEnd, float timeScale, float fitPerRadius,
- float detentResistance, float detentRelaxTime, float easeTime)
- {
- _zoomStep = zoomStep;
- _blendStart = blendStart;
- _blendEnd = blendEnd;
- _timeScale = timeScale;
- _fitPerRadius = fitPerRadius;
- _detentResistance = detentResistance;
- _detentRelaxTime = detentRelaxTime;
- _easeTime = easeTime;
- _lnStart = log(blendStart);
- _lnEnd = log(blendEnd);
- _crest = (_lnStart + _lnEnd) / 2;
- }
-
- // Commanded and eased positions and the ease velocity, in ln metres; the grid point the tactical camera looks at.
- public float Commanded { get; private set; }
- private float _eased, _velocity;
- private float2 _ship, _pan;
-
- // The grid point the camera looks at: the ship in flight, the panned grid point in tactical, eased between by the
- // rig's own weight (the blend of the eased distance), never by the commanded flip.
- public float2 Target => _ship + (_pan - _ship) * Blend(Distance);
-
- // Derived, never stored: the commanded position is past the detent's crest.
- public bool Tactical => Commanded > _crest;
-
- // Whether direct ship input is taken (ruling tactical-input-hands-off): in the tactical view every keyboard, mouse and
- // toggle input pauses and the ship holds its last commands. The one expression of that gate; nothing else stores it.
- public bool Direct => !Tactical;
-
- // What the camera is: the eased position.
- public float Distance => exp(_eased);
-
- // Back to the hull's own framing over the ship, in the zone the camera is now in.
- public void Reset(float zoneRadius, float baseDistance, float2 shipXZ)
- {
- _lnBase = log(baseDistance);
- _lnMax = max(log(max(zoneRadius * _fitPerRadius, _blendEnd)), _lnBase);
- _zoneRadius = zoneRadius;
- Commanded = _eased = _lnBase;
- _velocity = 0;
- _ship = _pan = shipXZ;
- }
-
- // Each notch (positive zooms out) moves the commanded position by ln ZoomStep. Inside a view it moves freely. A notch
- // that carries it deeper into the band moves it DetentResistance times as far there; one that carries it past the
- // crest commits, and the position jumps to the band's far edge. Symmetric from the tactical side.
- public void Scroll(float notches)
- {
- var step = log(_zoomStep);
- var count = (int) abs(notches);
- var sign = notches < 0 ? -1f : 1f;
- for (var i = 0; i < count; i++) Notch(sign * step);
- }
-
- private void Notch(float delta)
- {
- // Depth is how far into the band from the edge on the commanded side; negative is out in that view's free range.
- var side = Tactical ? -1f : 1f;
- var edge = Tactical ? _lnEnd : _lnStart;
- var depth = side * (Commanded - edge);
- var deeper = side * delta;
- if (deeper <= 0)
- {
- Commanded = clamp(Commanded + delta, _lnBase, _lnMax);
- return;
- }
- var free = min(deeper, max(-depth, 0f));
- var newDepth = depth + free + (deeper - free) * _detentResistance;
- if (newDepth > _crest - _lnStart)
- {
- Commanded = Tactical ? _lnStart : _lnEnd;
- return;
- }
- Commanded = clamp(edge + side * newDepth, _lnBase, _lnMax);
- }
-
- // Real seconds: the band's relaxation toward the edge on the commanded side of the crest (it never crosses the crest),
- // then the critically damped ease of the eased position toward the commanded one.
- public void Tick(float realSeconds)
- {
- if (realSeconds <= 0) return;
- if (Commanded > _lnStart && Commanded < _lnEnd)
- {
- var edge = Tactical ? _lnEnd : _lnStart;
- Commanded = edge + (Commanded - edge) * exp(-realSeconds / _detentRelaxTime);
- }
- // Exact solution of x'' = -2w(x' + w(x - c)) over dt: no overshoot from rest, stable at any dt.
- var w = 2 / _easeTime;
- var offset = _eased - Commanded;
- var carried = _velocity + w * offset;
- var decay = exp(-w * realSeconds);
- _eased = Commanded + (offset + carried * realSeconds) * decay;
- _velocity = (_velocity - w * carried * realSeconds) * decay;
- }
-
- // The ship's grid position, every frame. The panned point rides the ship while the eased camera is in flight (to within
- // float noise of the band's near edge, a weight of about a millionth), so a pan starts from the hull; once the camera
- // leaves flight it stays where the player put it, and the eased weight carries Target back to the ship on the way home.
- public void Track(float2 shipXZ)
- {
- _ship = shipXZ;
- if (!Tactical && Distance <= _blendStart * 1.001f) _pan = shipXZ;
- }
-
- // Move the target over the grid by a ground delta, never off the zone.
- public void Pan(float2 groundDelta)
- {
- if (!Tactical) return;
- var moved = _pan + groundDelta;
- var reach = length(moved);
- _pan = reach > _zoneRadius && reach > 0 ? moved * (_zoneRadius / reach) : moved;
- }
-
- // 0 at or below the band's near edge, 1 at or above its far edge, smooth in the logarithm of distance between.
- public float Blend(float distance)
- {
- var t = saturate((log(max(distance, 1e-6f)) - log(_blendStart)) / (log(_blendEnd) - log(_blendStart)));
- return t * t * (3 - 2 * t);
- }
-
- // Real seconds feed the sim clock at this rate: 1 in flight, TacticalTimeScale fully zoomed out.
- public float TimeRate(float blend) => pow(_timeScale, saturate(blend));
-}
diff --git a/Assets/Scripts/ServerShared/TacticalView.cs.meta b/Assets/Scripts/ServerShared/TacticalView.cs.meta
deleted file mode 100644
index c14ea0555..000000000
--- a/Assets/Scripts/ServerShared/TacticalView.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: c994fb45f71d4a7fa9ed80a9ab8b034d
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Scripts/ServerShared/Targeting/BeltTargets.cs b/Assets/Scripts/ServerShared/Targeting/BeltTargets.cs
index a64e0c624..3e12536c3 100644
--- a/Assets/Scripts/ServerShared/Targeting/BeltTargets.cs
+++ b/Assets/Scripts/ServerShared/Targeting/BeltTargets.cs
@@ -48,7 +48,8 @@ public sealed class BeltTargets : ITargetProvider
_zone = zone;
_field = field;
_data = data;
- _largestRadius = Zone.LargestChunkRadius(settings);
+ var size = settings.AsteroidSize;
+ _largestRadius = size.Exponent > 0 ? max(abs(size.Minimum), abs(size.Maximum)) : float.PositiveInfinity;
var count = data.Asteroids.Length;
_periods = new double[count];
diff --git a/Assets/Scripts/ServerShared/VerseGrammar.cs b/Assets/Scripts/ServerShared/VerseGrammar.cs
index 1219e70b6..00e24833d 100644
--- a/Assets/Scripts/ServerShared/VerseGrammar.cs
+++ b/Assets/Scripts/ServerShared/VerseGrammar.cs
@@ -40,9 +40,6 @@ public class VerseRole
{
[Key(1)] public string Name;
[Key(2)] public VerseReferentKind Binds;
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(3)] [CultElementId] public string Id = "";
}
// The actor is the invoking subject and is never a role.
diff --git a/Assets/Scripts/ServerShared/Zone.cs b/Assets/Scripts/ServerShared/Zone.cs
index 13672376b..6ba9ef7d7 100644
--- a/Assets/Scripts/ServerShared/Zone.cs
+++ b/Assets/Scripts/ServerShared/Zone.cs
@@ -62,9 +62,6 @@ public class Zone
// the entities, and one provider per belt. The reticle, cycling and any range query over rocks go through it;
// nothing else scans a belt.
public readonly TargetingIndex Targets = new TargetingIndex();
- // Mining cut 4a: the receiver of every rock impact FireControl.Detonate publishes. Notification only: a presenter
- // subscribes once per zone, and nothing in ServerShared reads it.
- public readonly CapabilityEvents ChunkCapabilities = new CapabilityEvents();
private readonly List _suns = new List();
private HashSet _updatedOrbits = new HashSet();
@@ -90,8 +87,6 @@ public class Zone
public Subject ShotResolved = new Subject();
// Contacts.Step publishes each hull-on-hull contact it resolves; presentations are the only readers.
public Subject Contacted = new Subject();
- // Published by FireControl.Extract and TryPickUp once ore or an item enters (or is offered to) a hold; read by presentations only.
- public Subject CargoGained = new Subject();
private int _nextShotId;
public int NextShotId() => ++_nextShotId;
@@ -201,7 +196,7 @@ public class Zone
case AsteroidBeltData belt:
// Mining Cut 3 (Q16 B): a belt from before field kinds existed gets its kind here, once, by
// the rule generation uses, and keeps it.
- FieldKinds.Ensure(belt.SiteOr(body.Key), belt, cache, GalaxyZone?.Province?.Type ?? default);
+ FieldKinds.Ensure(body.Key.Value, belt, cache, GalaxyZone?.Province?.Type ?? default);
AsteroidBelts[body.Key] = new AsteroidBelt(belt);
break;
case SunData sun:
@@ -443,16 +438,8 @@ public class Zone
{
var floating = FloatingItems.FirstOrDefault(f => f.Id.Equals(id));
if (floating == null || (floating.Holder != null && !ReferenceEquals(floating.Holder, taker))) return false;
- // The quantity is read before the store: a store that merges into a part-filled stack and spills the rest into a
- // new cell rewrites the item's Quantity.
- var stored = floating.Item is ICommodityStack stack ? stack.Quantity : 1;
if (!taker.CargoBays.Any(bay => bay.TryStore(floating.Item))) return false;
FloatingItems.Remove(floating);
- CargoGained.OnNext(new CargoGain
- {
- Taker = taker, Design = floating.Item.Data, Kind = GainKind.Collected,
- Stored = stored
- });
return true;
}
@@ -687,25 +674,16 @@ public class Zone
return belt.DamagedSize(chunk.Index, wear.Damage, Settings);
}
- // No rock of any belt, whole or worn, is wider than this (AsteroidSize's bound over every argument, so over the
- // Asteroid.Size range the generator writes). The index's visibility bound and a blast's query reach both use it.
- public static float LargestChunkRadius(PlanetSettings settings)
- {
- var size = settings.AsteroidSize;
- return size.Exponent > 0 ? max(abs(size.Minimum), abs(size.Maximum)) : float.PositiveInfinity;
- }
-
- // Cut 2: the only writer of chunk wear. Returns the damage the rock absorbed: the damage, or the hitpoints it had
- // left when the hit broke it; 0 on a chunk that is already broken. Whether it broke is ChunkExists. The break threshold is
+ // Cut 2: the only writer of chunk wear. Returns whether this hit broke the chunk. The break threshold is
// strictly greater-than, matching the deleted per-tick miner's own comparison against accumulated damage:
// damage exactly equal to hitpoints does not yet break the chunk, only damage that exceeds them does.
- // A chunk that is currently broken (zone time < BrokenUntil) absorbs nothing, and its wear stays zeroed until it
- // respawns and starts fresh.
- public float Wear(ChunkId chunk, float damage)
+ // A chunk that is currently broken (zone time < BrokenUntil) absorbs nothing: this hit did not break it
+ // (it was already broken), and its wear stays zeroed until it respawns and starts fresh.
+ public bool Wear(ChunkId chunk, float damage)
{
_wear.TryGetValue(chunk, out var wear);
if (wear.BrokenUntil.HasValue && wear.BrokenUntil.Value > _time)
- return 0f;
+ return false;
var beltData = (AsteroidBeltData) Planets[chunk.Field];
var size = beltData.Asteroids[chunk.Index].Size;
@@ -717,11 +695,11 @@ public class Zone
{
var respawnTime = Settings.AsteroidRespawnTime.Evaluate(size);
_wear[chunk] = new ChunkWear { Damage = 0f, BrokenUntil = _time + respawnTime };
- return max(hitpoints - wear.Damage, 0f);
+ return true;
}
_wear[chunk] = new ChunkWear { Damage = newDamage, BrokenUntil = null };
- return damage;
+ return false;
}
// Cut 1 (docs/mining-cut.md): a chunk's pose is a pure function of zone time, computed when asked. No stored
@@ -737,20 +715,6 @@ public class Zone
return AsteroidBelts[belt].Pose(index, time, parentPosition, size);
}
- // Mining Cut 4b: the one owner of a chunk's planar velocity, the central difference of the pose function at zone
- // time. Derived on every read, never stored: the intercept, the fire-time projection and the mount's sweep all
- // read it here.
- public float2 ChunkVelocity(ChunkId chunk)
- {
- const double h = .05;
- var ahead = ChunkPose(chunk.Field, chunk.Index, _time + h).xy;
- var behind = ChunkPose(chunk.Field, chunk.Index, _time - h).xy;
- return (ahead - behind) / (float) (2 * h);
- }
-
- // A chunk's radius in schematic cells: what visibility and a shot's silhouette both measure it in.
- public float ChunkCells(ChunkId chunk) => ChunkRadius(chunk) / SchematicCellSize;
-
// Mining Cut 3 (docs/mining-cut-refresh.md): how bright a chunk is -- Reflector's rule (cross-section × the light
// on it), with the field kind's reflectivity per schematic cell times the chunk's area in cells. Computed when
// asked; nothing about it is stored. A worn chunk shrinks and dims; a broken one, or one of a kindless belt, is dark.
@@ -759,7 +723,7 @@ public class Zone
if (!ChunkExists(chunk)) return 0f;
var kind = _itemManager.ItemData.Get(((AsteroidBeltData) Planets[chunk.Field]).Kind);
if (kind == null) return 0f;
- var cells = ChunkCells(chunk);
+ var cells = ChunkRadius(chunk) / _itemManager.GameplaySettings.SchematicCellSize;
return kind.CrossSection * PI * cells * cells * GetLight(ChunkPose(chunk.Field, chunk.Index).xy);
}
diff --git a/Assets/Scripts/ServerShared/ZoneData.cs b/Assets/Scripts/ServerShared/ZoneData.cs
index 4f8379c8d..a08895aaa 100644
--- a/Assets/Scripts/ServerShared/ZoneData.cs
+++ b/Assets/Scripts/ServerShared/ZoneData.cs
@@ -67,9 +67,6 @@ public class ChunkWearPack
[JsonProperty("brokenUntil"), Key(3)]
public double? BrokenUntil;
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(4)] [CultElementId] public string Id = "";
}
[JsonObject(MemberSerialization.OptIn)]
@@ -88,14 +85,6 @@ public abstract class BodyData
[JsonProperty("bodyRadiusMul")] [Key(5)]
public float BodyRadiusMultiplier = 1;
-
- // The body's generation coordinate: the zone seed, its kind and its place in the pack. Written once, by ZoneGenerator.
- // The key is identity and is minted by the cache; no content hash reads it when a Site exists (SiteOr).
- [JsonProperty("site"), Key(23)]
- public string Site;
-
- public string SiteOr(GameCult.Caching.CultRecordKey key) => string.IsNullOrEmpty(Site) ? key.Value : Site;
- public static string NameOf(string site) => site.StableHash().ToString("x8");
}
[CultDocument("aetheria.planetdata", "1"), MessagePackObject, JsonObject(MemberSerialization.OptIn)]
@@ -160,9 +149,6 @@ public class FieldYield
[JsonProperty("regional"), Key(2)]
public bool Regional;
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(3)] [CultElementId] public string Id = "";
}
// Ore geography (rulings provinces-within-regions, ores-are-regional): a kind of ground, authored. A region deals its
@@ -196,9 +182,6 @@ public class ProvinceKindWeight
[JsonProperty("weight"), Key(1)]
public float Weight = 1;
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(2)] [CultElementId] public string Id = "";
}
[MessagePackObject, JsonObject(MemberSerialization.OptIn)]
@@ -209,9 +192,6 @@ public class ProvinceOre
[JsonProperty("weight"), Key(1)]
public float Weight = 1;
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(2)] [CultElementId] public string Id = "";
}
// Mining Cut 3 (Q16 B): the one owner of which kind a belt is. Ore geography: and of what it yields.
@@ -292,14 +272,6 @@ public static class FieldKinds
.Where(yield => yield.Amount > 0f)
.ToArray();
}
-
- // Whether the design is raw ore: some field kind yields it. Ore is what a belt can put in a hold; derived on every
- // call, never stored. The one owner of the raw-ore kind.
- public static bool IsOre(CultCache catalog, ItemData design)
- {
- var key = catalog.RefOf(design).Key;
- return catalog.GetAll().Any(kind => kind.Yields.Any(yield => yield.Commodity.Key.Equals(key)));
- }
}
// Ore geography (rulings provinces-within-regions, boss-zone-is-near-side, province-partition-by-size, province-types-dealt-per-region).
@@ -513,9 +485,6 @@ public class Asteroid
[JsonProperty("rotationSpeed"), Key(3)]
public float RotationSpeed;
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(4)] [CultElementId] public string Id = "";
}
[CultDocument("aetheria.orbitdata", "1"), MessagePackObject, JsonObject(MemberSerialization.OptIn)]
diff --git a/Assets/Scripts/ServerShared/ZoneGenerator.cs b/Assets/Scripts/ServerShared/ZoneGenerator.cs
index ada967f1d..5b82a9a1a 100644
--- a/Assets/Scripts/ServerShared/ZoneGenerator.cs
+++ b/Assets/Scripts/ServerShared/ZoneGenerator.cs
@@ -43,7 +43,7 @@ public static class ZoneGenerator
PlanetSettings planetSettings,
Galaxy galaxy,
GalaxyZone galaxyZone,
- bool entranceStation = false,
+ bool isTutorial = false,
bool ambient = true)
{
var pack = new ZonePack();
@@ -209,11 +209,12 @@ public static class ZoneGenerator
gas.SecondOffsetDomainRotationSpeed = -25;
}
- planetData.Site = planetData is AsteroidBeltData ? $"{seed}:belt:{index}" : $"{seed}:body:{index}";
- planetData.Name = BodyData.NameOf(planetData.Site);
- var held = cache.Upsert(planetData);
- if (planetData is AsteroidBeltData generatedBelt) FieldKinds.Ensure(planetData.Site, generatedBelt, cache, galaxyZone.Province?.Type ?? default);
- return held;
+ // A body is named for the first eight characters of the key the cache mints for it
+ var bodyKey = cache.Upsert(planetData).Key;
+ planetData.Name = bodyKey.Value.Substring(0, 8);
+ // Mining Cut 3 (Q16 B): a belt's field kind is chosen here, at generation, and saved with it.
+ if (planetData is AsteroidBeltData generatedBelt) FieldKinds.Ensure($"{seed}:belt:{index}", generatedBelt, cache, galaxyZone.Province?.Type ?? default);
+ return cache.Upsert(planetData);
}).ToList();
// Trojan swarms (rulings trojans-first, trojans-ride-host-period-with-stations): a belt on a copy of its host's rail, its
@@ -236,10 +237,10 @@ public static class ZoneGenerator
Asteroids = TrojanRocks(zoneSettings, ref swarmRandom, rail.Distance, rail.Phase)
};
BodyData swarmBody = swarm;
- swarm.Site = $"{seed}:swarm:{swarmHosts.Count}";
- swarm.Name = BodyData.NameOf(swarm.Site);
+ var swarmKey = cache.Upsert(swarmBody).Key;
+ swarm.Name = swarmKey.Value.Substring(0, 8);
+ FieldKinds.Ensure($"{seed}:swarm:{swarmHosts.Count}", swarm, cache, galaxyZone.Province?.Type ?? default);
pack.Planets.Add(cache.Upsert(swarmBody));
- FieldKinds.Ensure(swarm.Site, swarm, cache, galaxyZone.Province?.Type ?? default);
}
// Laned belts (rulings belt-shapes-direction, lanes-two-sided-visual-margin): a belt candidate that kept its body carries
@@ -265,10 +266,10 @@ public static class ZoneGenerator
Asteroids = LaneRocks(zoneSettings, ref laneRandom, host.Mass, rail.Distance, lane, host.SlotInner, host.SlotOuter)
};
BodyData lanedBody = laned;
- laned.Site = $"{seed}:lane:{shaped.Count}";
- laned.Name = BodyData.NameOf(laned.Site);
+ var lanedKey = cache.Upsert(lanedBody).Key;
+ laned.Name = lanedKey.Value.Substring(0, 8);
+ FieldKinds.Ensure($"{seed}:lane:{shaped.Count}", laned, cache, galaxyZone.Province?.Type ?? default);
pack.Planets.Add(cache.Upsert(lanedBody));
- FieldKinds.Ensure(laned.Site, laned, cache, galaxyZone.Province?.Type ?? default);
}
// The generator's own well tree, for clearance only (the Zone builds its own): what a rail must stay out of is the body's
@@ -291,24 +292,17 @@ public static class ZoneGenerator
var nearestFactionHomeZone = galaxy.HomeZones[nearestFaction];
var factionPresence = galaxy.InfluenceOf(nearestFaction) - nearestFactionHomeZone.Distance[galaxyZone] + 1;
- // In a galaxy with a gate antagonist that faction raids by DemoPressure's curve (below); inside its grace its stations and
- // turrets are as absent as its ships, so the zone's structures belong to the nearest faction that is not the antagonist.
- var antagonist = galaxy.Antagonist;
- var structureFaction = antagonist != null && nearestFaction == antagonist && DemoPressure.InGrace(galaxy, galaxyZone)
- ? galaxy.Factions.Where(f => f != antagonist).MinBy(f => galaxy.HomeZones[f].Distance[galaxyZone])
- : nearestFaction;
-
var storyStations = galaxyZone.Locations.Where(story => story.Type == LocationType.Station).ToArray();
var stationCount = (int)(random.NextFloat() * (factionPresence + 1)) + storyStations.Length;
- // Enemy count below is based on this pre-override value, so the entrance station zone doesn't gain an enemy
+ // Enemy count below is based on this pre-override value, so the tutorial entrance doesn't gain an enemy
// just because its station got forced.
var baseStationCount = stationCount;
- // Operator ruling, 2026-09-25 (docs/locomotion-cut.md): a scenario that declares an entrance station
- // (Scenario.EntranceStation) gets a generated faction station with a docking bay in its entrance zone,
- // deterministically. A cast galaxy's halved influence and its lowest-influence unowned Entrance otherwise roll
- // stationCount 0 on every seed. galaxy.Entrance is reference-identity, not a name comparison.
- var isEntranceStation = entranceStation && galaxyZone == galaxy.Entrance;
- if (isEntranceStation && stationCount < 1) stationCount = 1;
+ // Operator ruling, 2026-09-25 (docs/locomotion-cut.md, "Tutorial station"): the entrance zone always
+ // gets a generated faction station with a docking bay, deterministically. Galaxy.cs halves influence and
+ // picks the lowest-influence unowned zone for Entrance, which otherwise rolls stationCount 0 on every
+ // seed. galaxy.Entrance is reference-identity, not a name comparison.
+ var isTutorialEntrance = isTutorial && galaxyZone == galaxy.Entrance;
+ if (isTutorialEntrance && stationCount < 1) stationCount = 1;
// A station's source is a well-bearing body alone on its ring whose rail clears every massive sibling's extent (the
// sibling's support, or its Roche margin if more) and the largest reach of any station or turret hull: whatever hull
// is built there, its Lagrange orbit then sits clear of any other body.
@@ -324,7 +318,7 @@ public static class ZoneGenerator
// (the rail, how far a body on it keeps others out, whether it is a station's own orbit rather than a base's)
var sources = candidates.Skip(candidates.Length / 2).Take(stationCount)
.Select(p => (orbit: orbitMap[p], extent: Extent(p), direct: false)).ToArray();
- if (isEntranceStation && candidates.Length == 0)
+ if (isTutorialEntrance && candidates.Length == 0)
{
// The entrance gets a station whatever its bodies: it orbits a root node beyond its ring group (or, for a body, its
// whole family), never at a ring member's distance, and sits there, not at a Lagrange point.
@@ -332,7 +326,7 @@ public static class ZoneGenerator
var rootNode = roots.FirstOrDefault(p => p.Children.Count > 0) ?? (roots.Count > 1 ? roots.OrderByDescending(p => p.Mass).First() : null);
if (rootNode == null)
throw new InvalidOperationException(
- "The entrance station zone must always get a station, but it has no candidate orbit at all -- every planet in the zone is a parentless root.");
+ "The tutorial entrance zone must always get a station, but it has no candidate orbit at all -- every planet in the zone is a parentless root.");
var distance = rootNode.Empty
? (1 + GravityField.RingReach) * GravityField.Beta * rootNode.Children.Where(Massive).Min(c => c.Distance)
: Extent(rootNode);
@@ -447,13 +441,13 @@ public static class ZoneGenerator
var security = (SecurityLevel) ((int) ((1f - pow(random.NextFloat(), factionPresence / 2f)) * 3f));
var lagrangeOrbit = CreateLagrangeOrbit(orbit);
- var station = GetLoadoutGenerator(structureFaction).GenerateStationLoadout(
- StationKinds.Choose(cache, structureFaction, $"{seed}:station:{i}", itemManager.Log));
+ var station = GetLoadoutGenerator(nearestFaction).GenerateStationLoadout(
+ StationKinds.Choose(cache, nearestFaction, $"{seed}:station:{i}", itemManager.Log));
if (station == null)
{
- if (isEntranceStation)
+ if (isTutorialEntrance)
throw new InvalidOperationException(
- $"The entrance station zone must always get a station, but {structureFaction?.Name} has no station loadout to generate.");
+ $"The tutorial entrance zone must always get a station, but {nearestFaction?.Name} has no station loadout to generate.");
continue;
}
station.Orbit = cache.RefOf(lagrangeOrbit);
@@ -461,7 +455,7 @@ public static class ZoneGenerator
station.SecurityRadius = pack.Radius;
pack.Entities.Add(station);
- if (ambient) PlaceTurrets(lagrangeOrbit, GetLoadoutGenerator(structureFaction), 2, StationReach(station), orbit);
+ if (ambient) PlaceTurrets(lagrangeOrbit, GetLoadoutGenerator(nearestFaction), 2, StationReach(station), orbit);
}
// A boss zone gets its faction's boss whether or not the zone is ambient: the boss is the run's goal, not
@@ -495,36 +489,18 @@ public static class ZoneGenerator
if (!ambient) return pack;
- // A galaxy with a gate antagonist is raided by it in proportion to depth toward the gate (DemoPressure owns the curve);
- // every other galaxy keeps the nearest faction's presence-sized patrol.
- if (antagonist != null)
+ var enemyCount = (int)(random.NextFloat() * factionPresence * 2) + baseStationCount;
+ for (int i = 0; i < enemyCount; i++)
{
- var pressure = DemoPressure.Of(galaxy, galaxyZone);
- var raiders = GetLoadoutGenerator(antagonist);
- var ceiling = pressure.Hostiles == 0 ? 0 : DemoPressure.PriceCeiling(raiders.OfferedShipHulls().Select(hull => hull.Price).ToArray(), pressure.Tier);
- for (int i = 0; i < pressure.Hostiles; i++)
- {
- var ship = raiders.GenerateShipLoadout(hull => hull.Price <= ceiling);
- if (ship == null) continue;
- pack.Entities.Add(ship);
- }
- }
- else
- {
- var enemyCount = (int)(random.NextFloat() * factionPresence * 2) + baseStationCount;
- for (int i = 0; i < enemyCount; i++)
- {
- var ship = GetLoadoutGenerator(nearestFaction).GenerateShipLoadout();
- if (ship == null) continue;
- pack.Entities.Add(ship);
- }
+ var ship = GetLoadoutGenerator(nearestFaction).GenerateShipLoadout();
+ if (ship == null) continue;
+ pack.Entities.Add(ship);
}
// Neutral wanderers: ships belonging to a faction that neither owns the zone nor is its
// nearest faction, so existing hostility rules leave them non-hostile to the player.
// Testing affordance for hand-testing combat/targeting; none spawn if no faction qualifies.
- // The antagonist is no wanderer where DemoPressure raids: its presence is the curve's alone, and it is hostile.
- var eligibleWandererFactions = EligibleWandererFactions(galaxy.Factions, galaxyZone.Owner, nearestFaction).Where(f => f != antagonist).ToArray();
+ var eligibleWandererFactions = EligibleWandererFactions(galaxy.Factions, galaxyZone.Owner, nearestFaction);
if (zoneSettings.NeutralWandererCount > 0 && eligibleWandererFactions.Length > 0)
{
var wandererFaction = eligibleWandererFactions[random.NextInt(eligibleWandererFactions.Length)];
diff --git a/Assets/Scripts/UI/HUD/SchematicDisplay.cs b/Assets/Scripts/UI/HUD/SchematicDisplay.cs
index 90b4271d3..526a83c80 100644
--- a/Assets/Scripts/UI/HUD/SchematicDisplay.cs
+++ b/Assets/Scripts/UI/HUD/SchematicDisplay.cs
@@ -132,8 +132,8 @@ public class SchematicDisplay : MonoBehaviour
//x.ListElement.Label.text = x.Item.EquippableItem.Name;
if (!_enemy)
{
- x.ListElement.InfiniteAmmoIcon.gameObject.SetActive(!x.Weapon.ShowsAmmoReadout);
- x.ListElement.AmmoLabel.gameObject.SetActive(x.Weapon.ShowsAmmoReadout);
+ x.ListElement.InfiniteAmmoIcon.gameObject.SetActive(!x.Weapon.WeaponData.AmmoType.IsSet());
+ x.ListElement.AmmoLabel.gameObject.SetActive(x.Weapon.WeaponData.AmmoType.IsSet());
}
}
}
@@ -233,8 +233,8 @@ public class SchematicDisplay : MonoBehaviour
if (x.Cooldown != null)
x.ListElement.CooldownFill.anchorMax = new Vector2(x.Cooldown.Progress, 1);
x.ListElement.DurabilityLabel.text = $"{(int)(x.Row.Item.EquippableItem.Durability / itemData.Durability * 100)}%";
- if (x.Weapon.ShowsAmmoReadout)
- x.ListElement.AmmoLabel.text = x.Weapon.AmmoReadout;
+ if (x.Weapon.WeaponData.AmmoType.IsSet())
+ x.ListElement.AmmoLabel.text = $"{x.Weapon.Ammo}/{x.Weapon.Reserve}";
}
if (x.ListElement.RangeLabel)
diff --git a/Assets/Scripts/UI/MainMenu.cs b/Assets/Scripts/UI/MainMenu.cs
index 0b333e83b..9eef387ca 100644
--- a/Assets/Scripts/UI/MainMenu.cs
+++ b/Assets/Scripts/UI/MainMenu.cs
@@ -7,9 +7,7 @@ using System.Threading;
using System.Threading.Tasks;
using TMPro;
using UniRx;
-using UniRx.Triggers;
using UnityEngine;
-using UnityEngine.EventSystems;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using static CultMath.math;
@@ -29,8 +27,6 @@ public class MainMenu : MonoBehaviour
private bool _fadeFromRight;
private float _fadeLerp;
private bool _fading;
- // True from the moment a run is being generated or entered until it fails; the scene reload ends it.
- public bool Launching { get; private set; }
private Vector3 _panelPosition;
//private Task _databaseLoad;
@@ -122,14 +118,9 @@ public class MainMenu : MonoBehaviour
Debug.Log("run store has no SavedGame; Continue disabled");
_nextMenu.panel.AddButton("Continue", saved == null ? (Action) null : () =>
{
- Galaxy galaxy;
- try
- {
- RunSave.RequireDesigns(cache, saved);
- galaxy = new Galaxy(cache, saved, Debug.Log);
- }
+ try { RunSave.RequireDesigns(cache, saved); }
catch (InvalidOperationException error) { Refuse("Cannot continue this run", error.Message); return; }
- ActionGameManager.CurrentGalaxy = galaxy;
+ ActionGameManager.CurrentGalaxy = new Galaxy(cache, saved, Debug.Log);
EnterGame();
});
}
@@ -145,79 +136,9 @@ public class MainMenu : MonoBehaviour
ShowSettings();
Fade(true);
});
- _nextMenu.panel.AddButton("Credits",
- () =>
- {
- if (ShowCredits()) Fade(true);
- });
_nextMenu.panel.AddButton("Quit", Application.Quit);
}
- // The third-party attributions the build must show, one button per entry; the selected entry's name, licence and one
- // row per notice line fill the detail pane. The list is Credits.All; this only renders it. The screen follows the
- // New Game screen: list rows are out of automatic navigation, the focused Back button takes Up and Down to step the
- // selection and Cancel to leave, and a click on empty space does not drop that focus.
- // False when the list could not be built and a dialog says why; the menu stays where it was.
- private bool ShowCredits()
- {
- var attribution = Resources.Load(Credits.NounProjectResource);
- if (attribution == null)
- {
- Refuse("Credits are unavailable", $"{Credits.NounProjectResource} is missing from this build.");
- return false;
- }
- IReadOnlyList credits;
- try { credits = Credits.All(attribution.text); }
- catch (InvalidOperationException error)
- {
- Refuse("Credits are unavailable", error.Message);
- return false;
- }
- Next("credits");
- var list = _nextMenu.panel;
- var detail = _nextMenu.detail;
- detail.gameObject.SetActive(true);
- var focus = new FocusHold();
- var selected = -1;
- Button back = null;
- void Leave()
- {
- FocusHold.Focus(null);
- focus.Release();
- ShowMain();
- Fade(false);
- }
- void Select(int index)
- {
- selected = Mathf.Clamp(index, 0, credits.Count - 1);
- var credit = credits[selected];
- detail.Clear();
- detail.Title.text = list.Title.text;
- detail.Title.color = Color.clear;
- detail.AddProperty(() => credit.Name);
- detail.AddProperty(() => credit.Licence);
- detail.AddSpacer();
- foreach (var line in credit.Notice.Split('\n')) detail.AddProperty(() => line);
- FocusHold.Focus(back.gameObject);
- }
- for (var i = 0; i < credits.Count; i++)
- {
- var index = i;
- list.AddButton(credits[i].Name, () => Select(index)).Button.navigation = new Navigation { mode = Navigation.Mode.None };
- }
- back = list.AddButton("Back", Leave).Button;
- back.navigation = new Navigation { mode = Navigation.Mode.None };
- back.OnMoveAsObservable().Subscribe(move =>
- {
- if (move.moveDir == MoveDirection.Up) Select(selected - 1);
- else if (move.moveDir == MoveDirection.Down) Select(selected + 1);
- });
- back.OnCancelAsObservable().Subscribe(_ => Leave());
- focus.Hold();
- Select(0);
- return true;
- }
-
// New Game: every way to set up a run, each with its brief. A release build lists only the modes; the other ways
// to set up a run and the test arenas are listed only in editor and development builds.
private void ShowScenarios()
@@ -239,11 +160,10 @@ public class MainMenu : MonoBehaviour
// The only way into a new run: generates the scenario's galaxy off the main thread and enters the game, where
// StartGame has RunStart stage it and only then replaces the saved run. A galaxy that cannot generate is refused
// here, with the saved run untouched.
- public void Launch(Scenario scenario)
+ private void Launch(Scenario scenario)
{
var generatorState = "Loading Database Contents";
- Launching = true;
Fade(true);
_nextMenu.panel.gameObject.SetActive(false);
Dialog.Clear();
@@ -254,8 +174,11 @@ public class MainMenu : MonoBehaviour
var stage = new GalaxyStage(
Settings.SectorGenerationSettings,
Settings.SectorBackgroundSettings,
- Settings.CastBackgroundSettings,
+ Settings.TutorialGenerationSettings,
+ Settings.TutorialBackgroundSettings,
ActionGameManager.CultCache,
+ ActionGameManager.PlayerSettings,
+ ActionGameManager.GameDataDirectory.CreateSubdirectory("Narrative"),
Debug.Log,
state => generatorState = state);
Task.Run(() => RunStart.Generate(scenario, stage)).ContinueWith(generation =>
@@ -264,7 +187,6 @@ public class MainMenu : MonoBehaviour
if (generation.IsFaulted)
{
Debug.LogException(generation.Exception);
- Launching = false;
ShowMain();
Fade(false);
Refuse($"{scenario.Name} could not generate its galaxy", generation.Exception.GetBaseException().Message);
@@ -278,11 +200,7 @@ public class MainMenu : MonoBehaviour
// The one way into the game scene. Mod ship prototypes import asynchronously at boot, so the scene waits for them,
// and a preload that could not run at all stops here with its reason rather than in the first zone.
- private void EnterGame()
- {
- Launching = true;
- StartCoroutine(EnterGameWhenModShipsAreReady());
- }
+ private void EnterGame() => StartCoroutine(EnterGameWhenModShipsAreReady());
private IEnumerator EnterGameWhenModShipsAreReady()
{
@@ -290,7 +208,6 @@ public class MainMenu : MonoBehaviour
while (!loading.IsCompleted) yield return null;
if (loading.IsFaulted)
{
- Launching = false;
if (loading.Exception.GetBaseException() is ShipModShips.ImportFault fault) RefuseMods("Mod ships failed to load", fault.Faults);
else Refuse("Mod ships failed to load", loading.Exception.GetBaseException().Message);
yield break;
diff --git a/Assets/Scripts/UI/Menu/InventoryPanel.cs b/Assets/Scripts/UI/Menu/InventoryPanel.cs
index eaa6212ac..2087a3870 100644
--- a/Assets/Scripts/UI/Menu/InventoryPanel.cs
+++ b/Assets/Scripts/UI/Menu/InventoryPanel.cs
@@ -386,11 +386,11 @@ public class InventoryPanel : MonoBehaviour, IPointerClickHandler
var itemData = GameManager.ItemManager.GetData(item);
if (!(item is EquippableItem equippableItem)) return;
var placementPosition = v + itemDragObject.OriginCellOffset;
- if (entity.ItemFits(equippableItem, placementPosition, out var seated))
+ if (entity.ItemFits(equippableItem, placementPosition))
{
//foreach (var cell in _dragCells) cell.gameObject.SetActive(false);
FakeItem = item;
- FakeOccupancy = hullData.Shape.Inset(itemData.Shape, placementPosition, seated);
+ FakeOccupancy = hullData.Shape.Inset(itemData.Shape, placementPosition, item.Rotation);
RefreshCells();
GameManager.RegisterDragTarget(drag =>
{
diff --git a/Assets/Scripts/UI/Menu/TradeMenu.cs b/Assets/Scripts/UI/Menu/TradeMenu.cs
index 42e56aa07..13345f88a 100644
--- a/Assets/Scripts/UI/Menu/TradeMenu.cs
+++ b/Assets/Scripts/UI/Menu/TradeMenu.cs
@@ -211,14 +211,18 @@ public class TradeMenu : MonoBehaviour
{
if (x.data is HullData)
return GameManager.DockedEntity.Children.Count(s => s.Hull.Data.Key.Equals(GameManager.ItemManager.ItemData.RefOf(x.data).Key) && s is Ship {IsPlayerShip: true}).ToString();
- return _targetCargo.Count(GameManager.ItemManager.ItemData.RefOf(x.data).Key).ToString();
+ if(x.data is SimpleCommodityData)
+ return (_targetCargo.ItemsOfType.ContainsKey(GameManager.ItemManager.ItemData.RefOf(x.data).Key) ? _targetCargo.ItemsOfType[GameManager.ItemManager.ItemData.RefOf(x.data).Key].Cast().Sum(s=>s.Quantity) : 0).ToString();
+ return (_targetCargo.ItemsOfType.ContainsKey(GameManager.ItemManager.ItemData.RefOf(x.data).Key) ? _targetCargo.ItemsOfType[GameManager.ItemManager.ItemData.RefOf(x.data).Key].Count : 0).ToString();
},
x =>
{
var data = x.data;
if (data is HullData)
return GameManager.DockedEntity.Children.Count(s => s.Hull.Data.Key.Equals(GameManager.ItemManager.ItemData.RefOf(data).Key) && s is Ship {IsPlayerShip: true});
- return _targetCargo.Count(GameManager.ItemManager.ItemData.RefOf(data).Key);
+ if(data is SimpleCommodityData)
+ return _targetCargo.ItemsOfType.ContainsKey(GameManager.ItemManager.ItemData.RefOf(data).Key) ? _targetCargo.ItemsOfType[GameManager.ItemManager.ItemData.RefOf(data).Key].Cast().Sum(s=>s.Quantity) : 0;
+ return _targetCargo.ItemsOfType.ContainsKey(GameManager.ItemManager.ItemData.RefOf(data).Key) ? _targetCargo.ItemsOfType[GameManager.ItemManager.ItemData.RefOf(data).Key].Count : 0;
}));
Spreadsheet.ShowData(
@@ -237,12 +241,12 @@ public class TradeMenu : MonoBehaviour
if (_selling) return;
switch (i.item)
{
- case ICommodityStack _:
- Buy(i.item, 1);
- break;
case CraftedItemInstance c:
Buy(c);
break;
+ case SimpleCommodity s:
+ Buy(s, 1);
+ break;
}
Populate();
@@ -252,11 +256,10 @@ public class TradeMenu : MonoBehaviour
if (_selling)
{
ContextMenu.Clear();
- // A compound stack sells only the units the station's bays take: its price is the most it can pay.
- ContextMenu.AddOption($"Sell ({(i.item is CompoundCommodity ? "up to " : "")}{StationServices.SellPrice(GameManager.ItemManager, i.item):N0})", () => Sell(i.item));
+ ContextMenu.AddOption($"Sell ({StationServices.SellPrice(GameManager.ItemManager, i.item):N0})", () => Sell(i.item));
ContextMenu.Show();
}
- else if (i.item is ICommodityStack)
+ else if (i.item is SimpleCommodity s)
{
ContextMenu.Clear();
ContextMenu.AddOption("Buy Quantity",
@@ -267,10 +270,10 @@ public class TradeMenu : MonoBehaviour
Dialog.Title.text = $"Buying {GameManager.ItemManager.Title(i.item)}";
Dialog.AddField("Quantity",
() => quantity,
- q => quantity = StationServices.BuyableQuantity(GameManager.ItemManager, i.item, q, GameManager.Credits));
+ q => quantity = StationServices.BuyableQuantity(GameManager.ItemManager, s, q, GameManager.Credits));
Dialog.Show(() =>
{
- Buy(i.item, quantity);
+ Buy(s,quantity);
Populate();
});
@@ -297,19 +300,6 @@ public class TradeMenu : MonoBehaviour
private void Sell(ItemInstance item)
{
- if (item is CompoundCommodity compound)
- {
- var offered = compound.Quantity;
- var sold = StationServices.TrySellPart(_targetCargo, GameManager.DockedEntity, compound, ref GameManager.Credits);
- UpdateCreditsLabel();
- Populate();
- if (sold == offered) return;
- Dialog.Clear();
- Dialog.Title.text = $"Sold {sold} of {offered}: Station Cargo Full!";
- Dialog.Show();
- Dialog.MoveToCursor();
- return;
- }
if (StationServices.TrySell(_targetCargo, GameManager.DockedEntity, item, ref GameManager.Credits))
{
UpdateCreditsLabel();
@@ -322,17 +312,6 @@ public class TradeMenu : MonoBehaviour
Dialog.MoveToCursor();
}
- // Sells every mined stack of the player's ships' bays in one step; the station pays through TrySell, so nothing refuses.
- private void SellOre()
- {
- StationServices.TrySellOre(PlayerBays(), GameManager.DockedEntity, ref GameManager.Credits);
- UpdateCreditsLabel();
- Populate();
- }
-
- private IEnumerable PlayerBays() =>
- GameManager.CurrentEntity.Parent.Children.Where(e => e is Ship {IsPlayerShip: true}).SelectMany(s => s.CargoBays);
-
private void Repair()
{
if (StationServices.TryRepair(GameManager.CurrentEntity, ref GameManager.Credits))
@@ -358,14 +337,14 @@ public class TradeMenu : MonoBehaviour
GameManager.CommissionShip(item as EquippableItem);
return true;
}
- return Inventory.TryTransferItem(_targetCargo, item, 1);
+ return Inventory.TryTransferItem(_targetCargo, item);
}));
}
- private void Buy(ItemInstance stock, int quantity)
+ private void Buy(SimpleCommodity simpleCommodity, int quantity)
{
- Bought(StationServices.TryBuyLots(GameManager.ItemManager, stock, quantity, ref GameManager.Credits,
- lot => Inventory.TryTransferItem(_targetCargo, stock, lot)));
+ Bought(StationServices.TryBuyLots(GameManager.ItemManager, simpleCommodity, quantity, ref GameManager.Credits,
+ lot => Inventory.TryTransferItem(_targetCargo, simpleCommodity, lot)));
}
// Refreshes the credits after a purchase, or tells the player why the station refused it.
@@ -419,8 +398,6 @@ public class TradeMenu : MonoBehaviour
});
var repairCost = StationServices.RepairCost(GameManager.ItemManager, GameManager.CurrentEntity);
if (repairCost > 0) ContextMenu.AddOption($"Repair ({repairCost:N0})", Repair);
- var oreValue = StationServices.OreValue(GameManager.ItemManager, PlayerBays());
- if (oreValue > 0) ContextMenu.AddOption($"Sell Ore ({oreValue:N0})", SellOre);
ContextMenu.Show();
});
}
diff --git a/Assets/Scripts/UI/Properties Panel/PropertiesPanel.cs b/Assets/Scripts/UI/Properties Panel/PropertiesPanel.cs
index e034acc01..053e148b8 100644
--- a/Assets/Scripts/UI/Properties Panel/PropertiesPanel.cs
+++ b/Assets/Scripts/UI/Properties Panel/PropertiesPanel.cs
@@ -364,12 +364,11 @@ public class PropertiesPanel : MonoBehaviour
AddProperty(data.Description);
- if (item is ICommodityStack stack)
- AddProperty("Quantity", () => stack.Quantity.ToString());
+ if (item is SimpleCommodity simpleCommodity)
+ AddProperty("Quantity", () => simpleCommodity.Quantity.ToString());
var sheet = AddStatSheet();
- // Branding is derived from provenance, not stored on the design: a simple commodity carries no lot and shows none,
- // a compound stack's brand reads its lot below.
+ // Branding is derived from provenance, not stored on the design; a SimpleCommodity carries no lot and shows none.
if (item is CraftedItemInstance crafted)
{
var (maker, product) = GameManager.ItemManager.Brand(crafted);
diff --git a/Assets/Scripts/UI/ScenarioPicker.cs b/Assets/Scripts/UI/ScenarioPicker.cs
index f5f3a1ca4..e0cd93134 100644
--- a/Assets/Scripts/UI/ScenarioPicker.cs
+++ b/Assets/Scripts/UI/ScenarioPicker.cs
@@ -30,7 +30,7 @@ public sealed class ScenarioPicker
private static readonly Color Accent = new Color(1, .4458f, .05f);
private int _selected;
private bool _launched;
- private readonly FocusHold _focus = new FocusHold();
+ private bool _restoreDeselect;
private ScenarioPicker(PropertiesPanel list, PropertiesPanel detail, Action launch, Action back)
{
@@ -115,7 +115,7 @@ public sealed class ScenarioPicker
picker._launchButton.OnCancelAsObservable().Subscribe(_ => picker.Back());
picker.StyleScrollbars();
- picker._focus.Hold();
+ picker.HoldFocus();
picker.Select(0);
// Layout is not live until the frame after Show; edit mode has no frames.
if (Application.isPlaying) Observable.NextFrame().Subscribe(_ => picker.FitViewport());
@@ -229,7 +229,7 @@ public sealed class ScenarioPicker
_rows[i].colors = colors;
_rows[i].targetGraphic.color = i == _selected ? Accent : _rowFills[i];
}
- FocusHold.Focus(_launchButton.gameObject);
+ Focus(_launchButton.gameObject);
Reveal((RectTransform) _rows[_selected].transform);
}
@@ -253,42 +253,36 @@ public sealed class ScenarioPicker
{
if (_launched) return;
_launched = true;
- FocusHold.Focus(null);
- _focus.Release();
+ Focus(null);
+ ReleaseFocus();
_launch(Selected);
}
// Leaves the screen; the same path for the Back button and Cancel.
private void Back()
{
- FocusHold.Focus(null);
- _focus.Release();
+ Focus(null);
+ ReleaseFocus();
_back();
}
-}
-// Keeps keyboard and gamepad focus on one control while a menu screen is up. While held, a click on empty space must
-// not drop focus, or the arrows and Enter go dead. The input module's flag is scene-wide, so the screen takes it for its
-// own lifetime and gives it back on leaving. The New Game and Credits screens both use it.
-public sealed class FocusHold
-{
- private bool _restoreDeselect;
-
- public void Hold()
+ // While the picker is up, a click on empty space must not drop focus from Launch, or the arrows and Enter go dead.
+ // The input module's flag is scene-wide, so the picker takes it for its own lifetime and gives it back on leaving.
+ private void HoldFocus()
{
if (EventSystem.current == null || !(EventSystem.current.currentInputModule is InputSystemUIInputModule module) || !module.deselectOnBackgroundClick) return;
module.deselectOnBackgroundClick = false;
_restoreDeselect = true;
}
- public void Release()
+ private void ReleaseFocus()
{
if (!_restoreDeselect) return;
_restoreDeselect = false;
if (EventSystem.current != null && EventSystem.current.currentInputModule is InputSystemUIInputModule module) module.deselectOnBackgroundClick = true;
}
- public static void Focus(GameObject target)
+ private static void Focus(GameObject target)
{
if (EventSystem.current != null) EventSystem.current.SetSelectedGameObject(target);
}
diff --git a/Assets/Scripts/Zone Display/MapPresenter.cs b/Assets/Scripts/Zone Display/MapPresenter.cs
index fecd875ab..71ffcc7e7 100644
--- a/Assets/Scripts/Zone Display/MapPresenter.cs
+++ b/Assets/Scripts/Zone Display/MapPresenter.cs
@@ -48,7 +48,7 @@ public class MapPresenter
private readonly Dictionary _entityIcons = new Dictionary();
private readonly Material[] _gravityMaterials;
private readonly int _layer = LayerMask.NameToLayer("Minimap");
- private float _minimapScale = 1, _mapScreenScale, _tacticalScale;
+ private float _minimapScale = 1, _mapScreenScale;
private bool _mapScreenOpen;
private readonly Material _asteroidMaterial;
private readonly Vector4 _spriteSheet;
@@ -63,10 +63,8 @@ public class MapPresenter
_asteroidSize = asteroidSize;
}
- // The icon size: the map screen's scale while it is open, else the tactical scale while the schematic shows, else
- // the minimap's zoom.
- public float IconSize => _mapScreenOpen ? _mapScreenScale : _tacticalScale > 0 ? _tacticalScale : _minimapScale;
- public void SetTacticalScale(float scale) => _tacticalScale = scale;
+ // The icon size: the map screen's scale while it is open, else the minimap's zoom.
+ public float IconSize => _mapScreenOpen ? _mapScreenScale : _minimapScale;
public void SetMinimapScale(float scale) => _minimapScale = scale;
public void OpenMapScreen(bool open) => _mapScreenOpen = open;
diff --git a/Assets/Scripts/Zone Display/TacticalFade.cs b/Assets/Scripts/Zone Display/TacticalFade.cs
deleted file mode 100644
index e35e1cc80..000000000
--- a/Assets/Scripts/Zone Display/TacticalFade.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
-
-using System;
-using UnityEngine;
-using UnityEngine.Rendering.PostProcessing;
-
-// The tactical view's fade (ruling tactical-view-is-zoom-out): after the post stack the scene colour lerps toward the
-// background by Strength. The volume's weight is the tactical blend, so Strength stays 1 and the fade is derived from
-// camera distance like everything else about the view.
-[Serializable]
-[PostProcess(typeof(TacticalFadeRenderer), PostProcessEvent.AfterStack, "Aetheria/Tactical Fade", false)]
-public sealed class TacticalFade : PostProcessEffectSettings
-{
- [Range(0, 1)] public FloatParameter Strength = new FloatParameter { value = 1 };
- public ColorParameter Background = new ColorParameter { value = Color.black };
-}
-
-public sealed class TacticalFadeRenderer : PostProcessEffectRenderer
-{
- private static readonly int StrengthId = Shader.PropertyToID("_Strength");
- private static readonly int BackgroundId = Shader.PropertyToID("_Background");
-
- public override void Render(PostProcessRenderContext context)
- {
- var sheet = context.propertySheets.Get(Shader.Find("Aetheria/PostProcessing/TacticalFade"));
- sheet.properties.SetFloat(StrengthId, settings.Strength);
- sheet.properties.SetColor(BackgroundId, settings.Background);
- context.command.BlitFullscreenTriangle(context.source, context.destination, sheet, 0);
- }
-}
diff --git a/Assets/Scripts/Zone Display/TacticalFade.cs.meta b/Assets/Scripts/Zone Display/TacticalFade.cs.meta
deleted file mode 100644
index 7c11eb8e5..000000000
--- a/Assets/Scripts/Zone Display/TacticalFade.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: edb50c44dcb243aeacbc04ec22a8d013
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Scripts/Zone Display/WormholeWarp.cs b/Assets/Scripts/Zone Display/WormholeWarp.cs
deleted file mode 100644
index 7646c1dfe..000000000
--- a/Assets/Scripts/Zone Display/WormholeWarp.cs
+++ /dev/null
@@ -1,88 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
-
-using System;
-using UnityEngine;
-using UnityEngine.Rendering.PostProcessing;
-
-// The screen-space effect of wormhole travel: lensing, swirl and a chromatic split toward the wormhole. Display only:
-// Ship.WormholeWarp is the one input and nothing here writes sim state.
-[Serializable]
-[PostProcess(typeof(WormholeWarpRenderer), PostProcessEvent.AfterStack, "Aetheria/Wormhole Warp")]
-public sealed class WormholeWarp : PostProcessEffectSettings
-{
- [Tooltip("Where the wormhole is on screen, in viewport uv.")]
- public Vector2Parameter Center = new Vector2Parameter { value = new Vector2(.5f, .5f) };
-
- [Range(0, 1), Tooltip("How far into the warp the screen is.")]
- public FloatParameter Strength = new FloatParameter { value = 0 };
-
- public override bool IsEnabledAndSupported(PostProcessRenderContext context) =>
- enabled.value && Strength.value > 0;
-}
-
-[UnityEngine.Scripting.Preserve]
-internal sealed class WormholeWarpRenderer : PostProcessEffectRenderer
-{
- // The shader sits under a Resources folder so a player build always carries it; Shader.Find finds it by name.
- private static bool _missingLogged;
-
- public override void Render(PostProcessRenderContext context)
- {
- var shader = Shader.Find("Hidden/Aetheria/WormholeWarp");
- if (shader == null)
- {
- if (!_missingLogged) Debug.LogError("WormholeWarp shader missing from the build");
- _missingLogged = true;
- context.command.BuiltinBlit(context.source, context.destination);
- return;
- }
- var sheet = context.propertySheets.Get(shader);
- sheet.properties.SetVector("_Center", settings.Center.value);
- sheet.properties.SetFloat("_Strength", settings.Strength.value);
- sheet.properties.SetFloat("_Aspect", (float)context.screenWidth / context.screenHeight);
- context.command.BlitFullscreenTriangle(context.source, context.destination, sheet, 0);
- }
-}
-
-// Holds the warp volume for one transition: from entering the wormhole through the exit animation on the same ship.
-// It reads the ship and the live camera and writes only the volume.
-public sealed class WormholeWarpPresenter : MonoBehaviour
-{
- private Ship _ship;
- private PostProcessVolume _volume;
- private WormholeWarp _settings;
- private bool _seenAnimation;
-
- public static void Begin(Ship ship, int layer, float priority)
- {
- var presenter = new GameObject("Wormhole Warp").AddComponent();
- presenter._ship = ship;
- presenter._settings = ScriptableObject.CreateInstance();
- presenter._settings.enabled.Override(true);
- presenter._volume = PostProcessManager.instance.QuickVolume(layer, priority, presenter._settings);
- }
-
- private void LateUpdate()
- {
- if (!_ship.WormholeAnimationInProgress)
- {
- if (_seenAnimation) Destroy(gameObject);
- return;
- }
- _seenAnimation = true;
- var camera = Camera.main;
- if (camera == null) return;
- // The wormhole the ship is at in this half, read from the ship each frame.
- var wormhole = _ship.WormholePosition;
- var viewport = camera.WorldToViewportPoint(new Vector3(wormhole.x, 0, wormhole.y));
- _settings.Center.value = new Vector2(viewport.x, viewport.y);
- _settings.Strength.value = _ship.WormholeWarp;
- }
-
- private void OnDestroy()
- {
- if (_volume != null) RuntimeUtilities.DestroyVolume(_volume, true, true);
- }
-}
diff --git a/Assets/Scripts/Zone Display/WormholeWarp.cs.meta b/Assets/Scripts/Zone Display/WormholeWarp.cs.meta
deleted file mode 100644
index dd979ab73..000000000
--- a/Assets/Scripts/Zone Display/WormholeWarp.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 4d6d1ab718884b94b70c511f1f126d91
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Scripts/Zone Display/ZoneRenderer.cs b/Assets/Scripts/Zone Display/ZoneRenderer.cs
index 216b5f0b1..f63f746bd 100644
--- a/Assets/Scripts/Zone Display/ZoneRenderer.cs
+++ b/Assets/Scripts/Zone Display/ZoneRenderer.cs
@@ -144,26 +144,10 @@ public class ZoneRenderer : MonoBehaviour
_viewDistance = value;
foreach (var camera in FogCameras)
camera.orthographicSize = value;
- ApplyFarClip();
+ SceneCamera.m_Lens.FarClipPlane = value * FarPlaneDistanceMultiplier;
}
}
- // How far the camera must see to take in the whole zone from where the follow camera sits (the tactical view's
- // reach). The view distance sets the floor; ApplyFarClip is the one writer of the scene camera's far clip.
- public float FarClipNeeded
- {
- set
- {
- _farClipNeeded = value;
- ApplyFarClip();
- }
- }
-
- private float _farClipNeeded;
-
- private void ApplyFarClip() =>
- SceneCamera.m_Lens.FarClipPlane = Mathf.Max(_viewDistance * FarPlaneDistanceMultiplier, _farClipNeeded);
-
public float MinimapDistance
{
set
@@ -346,9 +330,6 @@ public class ZoneRenderer : MonoBehaviour
{
var instance = Instantiate(WormholePrefab);
instance.position = new Vector3(wormhole.Position.x, 0, wormhole.Position.y);
- // Its local +z points away from the zone centre, so the beacon prefab child stands beyond the wormhole.
- if (wormhole.Position.x != 0 || wormhole.Position.y != 0)
- instance.rotation = Quaternion.LookRotation(new Vector3(wormhole.Position.x, 0, wormhole.Position.y));
var icon = CompassIconPrototype.Instantiate();
icon.Icon.sprite = WormholeIcon;
WormholeInstances.Add(wormhole, (instance.gameObject, icon));
@@ -527,7 +508,6 @@ public class ZoneRenderer : MonoBehaviour
void LateUpdate()
{
- if (!ActionGameManager.RunLive) return;
Map.Draw(Zone, ActionGameManager.Clock.Lead);
}
@@ -570,7 +550,6 @@ public class ZoneRenderer : MonoBehaviour
void Update()
{
- if (!ActionGameManager.RunLive) return;
var lead = ActionGameManager.Clock.Lead;
GravityLowering.Lower(Zone, lead, ref _gravityWells);
foreach (var loot in _floatingItems.Values)
diff --git a/Assets/Shaders/Brushes/SimplexBrush.shader b/Assets/Shaders/Brushes/SimplexBrush.shader
index af54035b2..3a6bf56e5 100644
--- a/Assets/Shaders/Brushes/SimplexBrush.shader
+++ b/Assets/Shaders/Brushes/SimplexBrush.shader
@@ -25,7 +25,7 @@ Category {
#pragma target 2.0
#include "UnityCG.cginc"
- #include "Packages/org.gamecult.cultmath/Shaders/CultMath.hlsl"
+ #include "Assets/Plugins/GPU Noise/SimplexNoise3D.cginc"
float _Depth;
float _Power;
@@ -68,7 +68,7 @@ Category {
fixed4 frag (v2f i) : SV_Target
{
float dist = length(i.texcoord - float2(.5,.5));
- return powerPulse(dist * 2,_Power) * (_Depth * abs(cultmath_snoise(float3(i.texcoord1.xy*_Frequency,_Time.y*_Speed)))+_Constant);
+ return powerPulse(dist * 2,_Power) * (_Depth * abs(snoise(float3(i.texcoord1.xy*_Frequency,_Time.y*_Speed)))+_Constant);
}
ENDCG
}
diff --git a/Assets/Shaders/Clouds.shader b/Assets/Shaders/Clouds.shader
index ccbda8835..11e3fe0a3 100644
--- a/Assets/Shaders/Clouds.shader
+++ b/Assets/Shaders/Clouds.shader
@@ -29,7 +29,7 @@
#pragma fragment frag
#include "UnityCG.cginc"
- #include "Packages/org.gamecult.cultmath/Shaders/CultMath.hlsl"
+ #include "Assets/Plugins/GPU Noise/SimplexNoise3D.cginc"
struct appdata
{
@@ -64,7 +64,7 @@
float sum = 0;
for(int i = 0; i < 6; i++)
{
- sum += cultmath_snoise(p * freq + Parallax * ParallaxDirection) * amp;
+ sum += snoise(p * freq + Parallax * ParallaxDirection) * amp;
parallax /= ParallaxLacunarity;
freq *= NoiseLacunarity;
amp *= NoiseGain;
@@ -83,7 +83,7 @@
fixed4 frag (v2f i) : SV_Target
{
float3 p = float3(i.uv,_Time.x*Speed);
- float noise = saturate((1-abs(cultmath_snoise(p*NoiseFrequency/2))) * fbm(p));
+ float noise = saturate((1-abs(snoise(p*NoiseFrequency/2))) * fbm(p));
return noise * _Color * (1-length(i.uv)/FadeDistance);
}
ENDCG
diff --git a/Assets/Shaders/Compute/Lightning/Lightning.compute b/Assets/Shaders/Compute/Lightning/Lightning.compute
index 7edd707d4..0750006b9 100644
--- a/Assets/Shaders/Compute/Lightning/Lightning.compute
+++ b/Assets/Shaders/Compute/Lightning/Lightning.compute
@@ -5,7 +5,7 @@
#define NUM_THREAD_X 64
#include "LightningVertex.cginc"
-#include "Packages/org.gamecult.cultmath/Shaders/CultMath.hlsl"
+#include "Assets/Plugins/GPU Noise/SimplexNoise2D.cginc"
struct Node
{
@@ -46,7 +46,7 @@ float fbm(float2 p)
float sum = 0;
for(int i = 0; i < 4; i++)
{
- sum += cultmath_snoise(p * freq) * amp;
+ sum += snoise(p * freq) * amp;
freq *= _NoiseLacunarity;
amp *= _NoiseGain;
}
diff --git a/Assets/Shaders/GalaxyMap.shader b/Assets/Shaders/GalaxyMap.shader
index 109cd96d0..567396a35 100644
--- a/Assets/Shaders/GalaxyMap.shader
+++ b/Assets/Shaders/GalaxyMap.shader
@@ -36,7 +36,7 @@ Shader "Unlit/GalaxyMap"
#pragma fragment frag
#include "UnityCG.cginc"
- #include "Packages/org.gamecult.cultmath/Shaders/CultMath.hlsl"
+ #include "Assets/Plugins/GPU Noise/SimplexNoise2D.cginc"
struct appdata
{
@@ -86,8 +86,8 @@ Shader "Unlit/GalaxyMap"
for(int i = 0; i < octaves; i++)
{
if(i<4)
- sum += (1-abs(cultmath_snoise(p * freq))) * amp;
- else sum += abs(cultmath_snoise(p * freq)) * amp;
+ sum += (1-abs(snoise(p * freq))) * amp;
+ else sum += abs(snoise(p * freq)) * amp;
freq *= NoiseLacunarity;
amp *= NoiseGain;
}
diff --git a/Assets/Shaders/Resources/TacticalFade.shader b/Assets/Shaders/Resources/TacticalFade.shader
deleted file mode 100644
index cd695e580..000000000
--- a/Assets/Shaders/Resources/TacticalFade.shader
+++ /dev/null
@@ -1,28 +0,0 @@
-Shader "Aetheria/PostProcessing/TacticalFade"
-{
- // Lerps the scene colour toward a flat background by Strength: the scene fades out as the tactical view comes in.
- // The schematic camera renders after the post stack, so this never dims it.
- SubShader
- {
- Cull Off ZWrite Off ZTest Always
-
- Pass
- {
- HLSLPROGRAM
- #pragma vertex VertDefault
- #pragma fragment Frag
- #include "Packages/com.unity.postprocessing/PostProcessing/Shaders/StdLib.hlsl"
-
- TEXTURE2D_SAMPLER2D(_MainTex, sampler_MainTex);
- float _Strength;
- float4 _Background;
-
- float4 Frag(VaryingsDefault i) : SV_Target
- {
- float4 scene = SAMPLE_TEXTURE2D(_MainTex, sampler_MainTex, i.texcoordStereo);
- return float4(lerp(scene.rgb, _Background.rgb, saturate(_Strength)), scene.a);
- }
- ENDHLSL
- }
- }
-}
diff --git a/Assets/Shaders/Resources/WormholeWarp.shader b/Assets/Shaders/Resources/WormholeWarp.shader
deleted file mode 100644
index 5e8edbbcf..000000000
--- a/Assets/Shaders/Resources/WormholeWarp.shader
+++ /dev/null
@@ -1,56 +0,0 @@
-// The screen-space transition into a wormhole: a radial lensing pull toward the wormhole, a swirl and a small chromatic
-// split, all scaled by one strength. Lives under Resources so the player build always carries it (WormholeWarp.cs finds
-// it with Shader.Find).
-Shader "Hidden/Aetheria/WormholeWarp"
-{
- SubShader
- {
- Cull Off ZWrite Off ZTest Always
-
- Pass
- {
- HLSLPROGRAM
- #pragma target 3.5
- #pragma vertex VertDefault
- #pragma fragment Frag
- #include "../CustomDoF/StdLib.hlsl"
-
- TEXTURE2D_SAMPLER2D(_MainTex, sampler_MainTex);
- float2 _Center; // viewport uv of the wormhole
- float _Strength; // 0..1
- float _Aspect; // width / height
-
- // The colour the pixel shows when the screen is pulled toward the centre by pull, turned by swirl.
- half3 Warp(float2 uv, float pull, float swirl)
- {
- float2 d = (uv - _Center) * float2(_Aspect, 1);
- float s, c;
- sincos(swirl, s, c);
- d = float2(c * d.x - s * d.y, s * d.x + c * d.y) * (1 + pull);
- float2 src = _Center + d / float2(_Aspect, 1);
- return SAMPLE_TEXTURE2D(_MainTex, sampler_MainTex, src).rgb;
- }
-
- float4 Frag(VaryingsDefault i) : SV_Target
- {
- float2 uv = UnityStereoTransformScreenSpaceTex(i.texcoordStereo);
- float2 d = (uv - _Center) * float2(_Aspect, 1);
- float r = length(d);
- float well = exp(-r * 2.2); // 1 at the wormhole, fading out across the screen
- float pull = _Strength * (0.35 + 1.4 * well);
- float swirl = _Strength * 2.4 * well * well;
- float split = 0.06 * _Strength * well;
-
- half3 col;
- col.r = Warp(uv, pull + split, swirl).r;
- col.g = Warp(uv, pull, swirl).g;
- col.b = Warp(uv, pull - split, swirl).b;
-
- // The throat darkens as the dive deepens.
- col *= 1 - saturate(_Strength * _Strength * well * 1.1);
- return float4(col, 1);
- }
- ENDHLSL
- }
- }
-}
diff --git a/Assets/Steel.mat b/Assets/Steel.mat
new file mode 100644
index 000000000..fc4d8d0ca
--- /dev/null
+++ b/Assets/Steel.mat
@@ -0,0 +1,83 @@
+%YAML 1.1
+%TAG !u! tag:unity3d.com,2011:
+--- !u!21 &2100000
+Material:
+ serializedVersion: 6
+ m_ObjectHideFlags: 0
+ m_CorrespondingSourceObject: {fileID: 0}
+ m_PrefabInstance: {fileID: 0}
+ m_PrefabAsset: {fileID: 0}
+ m_Name: Steel
+ m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+ m_ShaderKeywords: _MAINTEX _METALLICGLOSSMAP _NORMALMAP _OCCLUSIONMAP _PARALLAXMAP
+ m_LightmapFlags: 4
+ m_EnableInstancingVariants: 0
+ m_DoubleSidedGI: 0
+ m_CustomRenderQueue: -1
+ stringTagMap: {}
+ disabledShaderPasses: []
+ m_SavedProperties:
+ serializedVersion: 3
+ m_TexEnvs:
+ - _BumpMap:
+ m_Texture: {fileID: -3888315358723833787, guid: cbc61995a46604441ab9de4f1c68e290,
+ 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: 0}
+ m_Scale: {x: 4, y: 4}
+ m_Offset: {x: 0, y: 0}
+ - _MainTex:
+ m_Texture: {fileID: 108215966750249586, guid: cbc61995a46604441ab9de4f1c68e290,
+ type: 3}
+ m_Scale: {x: 4, y: 4}
+ m_Offset: {x: 0, y: 0}
+ - _MetallicGlossMap:
+ m_Texture: {fileID: 4793252353645218242, guid: cbc61995a46604441ab9de4f1c68e290,
+ type: 3}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _OcclusionMap:
+ m_Texture: {fileID: -4384182597330533215, guid: cbc61995a46604441ab9de4f1c68e290,
+ type: 3}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ - _ParallaxMap:
+ m_Texture: {fileID: 4600200897981803784, guid: cbc61995a46604441ab9de4f1c68e290,
+ type: 3}
+ m_Scale: {x: 1, y: 1}
+ m_Offset: {x: 0, y: 0}
+ m_Floats:
+ - _BumpScale: 1
+ - _Cutoff: 0.5
+ - _DetailNormalMapScale: 1
+ - _DstBlend: 0
+ - _GlossMapScale: 1
+ - _Glossiness: 0.5
+ - _GlossyReflections: 1
+ - _Metallic: 0
+ - _Mode: 0
+ - _OcclusionStrength: 1
+ - _Parallax: 0.02
+ - _SmoothnessTextureChannel: 0
+ - _SpecularHighlights: 1
+ - _SrcBlend: 1
+ - _UVSec: 0
+ - _ZWrite: 1
+ m_Colors:
+ - _Color: {r: 1, g: 1, b: 1, a: 1}
+ - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
+ m_BuildTextureStacks: []
diff --git a/Assets/Steel.mat.meta b/Assets/Steel.mat.meta
new file mode 100644
index 000000000..d645ba6a4
--- /dev/null
+++ b/Assets/Steel.mat.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 4c998decce894b4458e1bc667975aeea
+NativeFormatImporter:
+ externalObjects: {}
+ mainObjectFileID: 2100000
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/CHANGELOG.md b/CHANGELOG.md
deleted file mode 100644
index 168b0cefc..000000000
--- a/CHANGELOG.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# Changelog
-
-## 0.2.0 (2026-10-29)
-
-### Features
-
-- First test build since 2020, for Windows and Linux (x86-64), published to GitHub by hand. Flight under the weaker gravity field: thrust is a tenth of its authored push and drag applies only above top speed, so orbits coast instead of decaying. Keyboard turning ramps up and down, and thrusters join a turn in order of the yaw they give per unit of push. Weapons aim along your view's pitch and the crosshair follows; weapon groups bind to the mouse buttons and number row the first time you fly a ship. Stardust and dithered particles draw under the nebula fog. Undocking no longer flings the ship into the void. Console: `fly ` puts you in a freshly fitted ship of that hull. `ModTools/AetherDb` is the mod and data tool.
diff --git a/CLAUDE.md b/CLAUDE.md
index 2ed5ea4a4..16fe9b214 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -19,8 +19,3 @@
`Directory.Build.props` (`Directory.Build.targets` enforces it). When `F:\Projects\CultLib` is elsewhere, point
`CULTLIB_ROOT` and `CULTMATH_ROOT` at detached worktrees of those revisions; never move the shared checkout.
- CultCache Studio is the operator's GUI over the same files. It is not an agent path.
-
-## Releases
-
-- Player-visible means a player of the shipped game could notice it, or a modder using the shipped ModTools could. Needs a change file: gameplay or balance changes, new or changed content, UI or controls, fixes to bugs a player could hit, modding format changes. Needs none: tests, refactors, docs, editor-only tools, build and CI changes, internal data layout that players and modders never see.
-- A player-visible change lands with a `.changeset/` file (bump level and one player-facing line), written by whoever lands it, agents included. Change files decide the release's version bump and changelog; `docs/release-checklist.md` has the format.
diff --git a/Directory.Build.props b/Directory.Build.props
index 62160b34f..05d5e4d22 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -2,12 +2,12 @@
$(CULTLIB_ROOT)
$(MSBuildThisFileDirectory)..\CultLib
-
- 7225835d11fd08a3de2a2ef24742fc351b3b08fb
+
+ b8fc5eb07720a187a0421424ac2cb3aa2966ca1d
$(CULTMATH_ROOT)
$(CultLibRoot)
-
- f1edfa458dd8e7e107214e9d9884254359475b8c
+
+ 7a8933b085468e1fc6f9d3bce4a85e7d101aaca3
C:\Program Files\Git\cmd\git.exe
git
diff --git a/GameData/Aetheria.cc b/GameData/Aetheria.cc
index 906429ef8..553e6bcce 100644
--- a/GameData/Aetheria.cc
+++ b/GameData/Aetheria.cc
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:eec42867314a3af827290c06e02d8c3f47b9c8a9a462130783181c39b58460a2
-size 277763
+oid sha256:0f81d35d4cec8f57178220f20bca98ffaa6709783349efe3cc28aa64ea1f02b1
+size 220607
diff --git a/GameData/Mods/aetheria.nakovalnya/ship.cc b/GameData/Mods/aetheria.nakovalnya/ship.cc
index c0f3c416c..ebe05cd33 100644
--- a/GameData/Mods/aetheria.nakovalnya/ship.cc
+++ b/GameData/Mods/aetheria.nakovalnya/ship.cc
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:f941afb95cac379b22347ab9465b7d95bd6fd2969e23e97d1b63721a2d97f800
-size 30457
+oid sha256:87d8cbcca252460d1ec2bfeb895c1447ab185172a4a4449b237a297b83ea5057
+size 40059
diff --git a/GameData/Mods/aetheria.nakovalnya/ship.glb b/GameData/Mods/aetheria.nakovalnya/ship.glb
index af1e370e6..3dac76cc9 100644
--- a/GameData/Mods/aetheria.nakovalnya/ship.glb
+++ b/GameData/Mods/aetheria.nakovalnya/ship.glb
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:ab3fdd340bf27fc8c2a6149ce6be9159215cf26b3eabd290064ffe40b2e96512
-size 839556
+oid sha256:90a503473e3b12251c225b7fe283b2fc5b45a25e6e47839d1c3d78e3ac61b00c
+size 843452
diff --git a/GameData/Mods/aetheria.wren/ship.cc b/GameData/Mods/aetheria.wren/ship.cc
new file mode 100644
index 000000000..d81f9bba5
--- /dev/null
+++ b/GameData/Mods/aetheria.wren/ship.cc
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6b1744dfa7dd6c5325ca3bd04fba941408cdc1255c06d1fc0d52fa67c97dc100
+size 10514
diff --git a/GameData/Mods/aetheria.wren/ship.glb b/GameData/Mods/aetheria.wren/ship.glb
new file mode 100644
index 000000000..03b70b729
--- /dev/null
+++ b/GameData/Mods/aetheria.wren/ship.glb
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:98bf1b4a0e19e67568930ca79b9d61529c21c63dd74ee8df3d3f1d419d3a81cc
+size 6964
diff --git a/Packages/manifest.json b/Packages/manifest.json
index ef01307a8..7693bd94f 100644
--- a/Packages/manifest.json
+++ b/Packages/manifest.json
@@ -53,7 +53,7 @@
"com.unity.modules.wind": "1.0.0",
"com.unity.modules.xr": "1.0.0",
"org.gamecult.caching.unity": "https://github.com/GameCult/CultLib.git?path=/src/GameCult.Unity/Assets/Caching#caching-unity-v2.0.0",
- "org.gamecult.cultlib": "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v3.0.0",
- "org.gamecult.cultmath": "https://github.com/GameCult/CultLib.git?path=/packages/cultmath/unity/org.gamecult.cultmath#cultmath-unity-v0.5.1"
+ "org.gamecult.cultlib": "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v2.0.1",
+ "org.gamecult.cultmath": "https://github.com/GameCult/CultLib.git?path=/packages/cultmath/unity/org.gamecult.cultmath#cultmath-unity-v0.5.0"
}
}
diff --git a/Packages/packages-lock.json b/Packages/packages-lock.json
index 4db845c3b..919cf94d1 100644
--- a/Packages/packages-lock.json
+++ b/Packages/packages-lock.json
@@ -265,20 +265,20 @@
"hash": "42dce3611a81adc5c5fac54cadbaa5637d6022d3"
},
"org.gamecult.cultlib": {
- "version": "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v3.0.0",
+ "version": "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v2.0.1",
"depth": 0,
"source": "git",
"dependencies": {
- "org.gamecult.cultmath": "0.5.1"
+ "org.gamecult.cultmath": "0.5.0"
},
- "hash": "7225835d11fd08a3de2a2ef24742fc351b3b08fb"
+ "hash": "b8fc5eb07720a187a0421424ac2cb3aa2966ca1d"
},
"org.gamecult.cultmath": {
- "version": "https://github.com/GameCult/CultLib.git?path=/packages/cultmath/unity/org.gamecult.cultmath#cultmath-unity-v0.5.1",
+ "version": "https://github.com/GameCult/CultLib.git?path=/packages/cultmath/unity/org.gamecult.cultmath#cultmath-unity-v0.5.0",
"depth": 0,
"source": "git",
"dependencies": {},
- "hash": "f1edfa458dd8e7e107214e9d9884254359475b8c"
+ "hash": "7a8933b085468e1fc6f9d3bce4a85e7d101aaca3"
},
"com.unity.modules.accessibility": {
"version": "1.0.0",
diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset
index 76b6938ad..1b000cd89 100644
--- a/ProjectSettings/ProjectSettings.asset
+++ b/ProjectSettings/ProjectSettings.asset
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:900f257853e7bf436c28cb323c323f2ef43e8d0659253ca7545cd23255d8ea57
-size 24033
+oid sha256:1f95917a4ca95a4f6977be90d80185648b012099467fa2275b31b868aca88b6f
+size 24058
diff --git a/VERSION b/VERSION
deleted file mode 100644
index 0ea3a944b..000000000
--- a/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-0.2.0
diff --git a/docs/aetheria-fauna-map.md b/docs/aetheria-fauna-map.md
index 5276db97e..b698baf41 100644
--- a/docs/aetheria-fauna-map.md
+++ b/docs/aetheria-fauna-map.md
@@ -398,7 +398,7 @@ the lore branch `eureka/aetheria-fauna-lore` `74c7e212`, note `Open Water` (`OW`
| # | Question | Result |
|---|---|---|
| B28 | What does CultMath already give a node library? | Integer PCG hashes `pcg`, `pcg3d`, `pcg4d` (Jarzynski and Olano), "integer-only, so dxc and C# agree bit for bit" (`packages/cultmath/src/CultMath/math.cs:393-426`, `shaders/CultMath.hlsl:396-426`). `cellular(float3)`: Worley F1 and F2 - F1 with analytic gradients, jitter from `pcg3d` of the integer cell, 3D, unweighted (`math.cs:849-975`, `CultMath.hlsl:440-503`). `smin_grad` (`math.cs:831-847`, `CultMath.hlsl:428-437`). `distance_to_segment` in C# only (`math.cs:319`; no HLSL twin). No weighted cellular, no diagram over explicit weighted sites, no site-graph gate. |
-| B29 | How does CultMath own parity? | Two legs, one owner each (`packages/cultmath/docs/design.md:202-206`): HLSL against C# by the mirror test, which compiles the text of `CultMath.hlsl` as C# and compares float32 bit patterns (`design.md:118-124`), plus a clean `dxc -T lib_6_3` compile (`design.md:114-116`); GLSL against C# by golden fixtures run on a device. The mirror proves the composition in the text, not that a GPU agrees (`design.md:119-121`); device HLSL runs are consumers' today (Asura `gpu-snoise-parity`; Aetheria `FlowFieldParityVerify`). CultMath ships a Unity compute smoke (`packages/cultmath/scripts/unity-smoke/`). Aetheria pins `cultmath-unity-v0.5.1` (`Packages/manifest.json`). |
+| B29 | How does CultMath own parity? | Two legs, one owner each (`packages/cultmath/docs/design.md:202-206`): HLSL against C# by the mirror test, which compiles the text of `CultMath.hlsl` as C# and compares float32 bit patterns (`design.md:118-124`), plus a clean `dxc -T lib_6_3` compile (`design.md:114-116`); GLSL against C# by golden fixtures run on a device. The mirror proves the composition in the text, not that a GPU agrees (`design.md:119-121`); device HLSL runs are consumers' today (Asura `gpu-snoise-parity`; Aetheria `FlowFieldParityVerify`). CultMath ships a Unity compute smoke (`packages/cultmath/scripts/unity-smoke/`). Aetheria pins `cultmath-unity-v0.4.1` (`Packages/manifest.json`). |
| B30 | Does Aetheria already keep a math twin outside CultMath? | Yes. `FlowField` uses CultMath's `math`, but its `Tri`, `Tri3` and `Tri3D` are Aetheria functions (`FlowField.cs:66-72`) whose HLSL twin is `Volumetric.cginc`, pinned by Aetheria's own `FlowFieldParityVerify` (`RelativeTolerance` 1.5e-4). That is a second parity owner beside CultMath. |
| B31 | What is parked in CultMath that a DAG would use? | The tape: steps 2-5 (expression graph lowered to bytecode with C# evaluators, pruning, an HLSL interpreter, meshing) are parked until Asura is stable (`docs/cultmath-tape-target.md:3-8`, ruling `tape-target-unparks-when-asura-stable`). "Truth and lowerings" (`:84-92`): the field is a typed CultCache document, and the CPU evaluator and the HLSL interpreter are lowerings of it. Step 1 (intervals) and affine forms are on main. |
| B32 | Do the candidates make filaments? (`docs/research/2026-10-14-trophic-dag-probe/`, README there; wells orbit, slope terms on, t = 0) | `skein` draws strands between neighbouring wells, bent by the flow (`density_skein.png`); `lattice` draws a fine cellular web, dense on the shoulders, dim elsewhere, with no long links (`density_lattice.png`); `skein-web` draws both: strands from well to well with a web hanging off them (`density_skein-web.png`, `layer_L2-krill.png`). Correlation with the B20 Physarum map at 64x32 blocks (this measures the envelope, not filaments: a block is 62 u, wider than a strand): band .512, lattice .359, skein-web .296, krill .277, skein .225, slack .171. Hosted krill at 16 u: band 2,075, skein-web 1,475, skein 639, lattice 419. |
diff --git a/docs/aetheria-living-world-map.md b/docs/aetheria-living-world-map.md
index 1632cbf3a..6a98e8cec 100644
--- a/docs/aetheria-living-world-map.md
+++ b/docs/aetheria-living-world-map.md
@@ -82,49 +82,6 @@ Role slots per recipe (`RoleInputsOf`), fillers per role, `OfferedDesigns`, `Des
- needs tables (cut 7): the needs half of L-consumer-demand and the consumer-good sink in SourceSink.
- Open follow-up: `recipe-less-design-roles` (pre-existing, left alone by cut-economy-checks h2).
-## Body facts: player loop (nibu-imagination, 2026-11-27, at 305d9cde7)
-
-Probe: a throwaway env-gated test in a detached worktree (removed), on the shipped catalog through the RunStartTests fixture. Spec: `aetheria-living-world:cut_spec:cut-economy-balance-player-loop.r1`.
-
-- Mining sortie, DemoTerminus seeds 1 2 3 69 97: the driver holds the ship 40 units off each rock in index order and fires every weapon, with at most 60 s a rock and a 900 s cap. Seed 1 (2x Light Laser, Metallic belt) broke 32 rocks in 155 sim-s, filled the 16-cell hold, got 130 units, and sells for 1088 (about 420 credits a sim-minute). Seeds 2, 3, 69 and 97 (Cell Blaster fits) broke 1 to 6 rocks in 900 s and sell for 8 to 233. Follow-up `demo-starter-fit-cannot-mine`.
-- Cost, measured as two interleaved repetitions over the five seeds: a median 0.0625 wall-s per sim-second (eight 900 s runs took 51.5 to 61.1 s each). A launch takes a median 141 ms after a 455 ms first warm-up.
-- Determinism: one ItemManager shared across launches changes same-seed results (seed 97 sold for 233 then 63), so each sample needs its own ItemManager.
-- Offered-design ladders (dearest over cheapest offered design, authored prices): ExplosivelyPropelled 30x, Laser 3.6x, MicroMissile 3.3x, ParticleProjection 2.3x, Reactor 14.4x, Sensors 30x, Radiator 10x, Thruster 10x, Tool 6x, CargoBay 14x, Hull/Ship 1.3x. Nine offered designs have recipes. StartingCredits (150000) covers every offered design.
-- `economy balance` at head: median implied wage 0.00722 per worker-second, 70 links, 23 faults.
-
-## Body facts: zone body identity (nibu-imagination, 2026-11-27, at d3e51f22d and e32b04d5d)
-
-Probe: throwaway tests `ZzZoneKeyProbe` / `ZzZoneKeyOverlapProbe` in a detached worktree at e32b04d5d (the player-loop head), two processes each, shipped catalog. Spec: `aetheria-living-world:cut_spec:cut-zone-body-sites.r1`.
-
-- Identity now: `ZoneGenerator` writes each body and orbit with a keyless `cache.Upsert`; CultCache mints `Guid.NewGuid().ToString("N")` for a document it holds no handle for (`CultCache.CreateStoredDocument`). A body's `Name` ([CultName]) is the key's first eight characters. Nothing reads a body's `Name`; nothing calls `GetByName` on a body type. CultCache refuses shared index values, not shared names.
-- Three readers hash a body's key and so carry its randomness: `FireControl.Extract` (ore weights: StableHash of `field:index:ore`), `Entity.ByIndexThenField` (chunk tie-break on `CultRecordKey.GetHashCode`, which is .NET's process-randomized string hash, so the order differs between processes even for one key) and `DrawAhead.DrawListOf` (which rock meshes a belt draws). `FieldKinds.Ensure` already takes a seed-derived site (`{seed}:belt:{index}`, `:swarm:`, `:lane:`), except on first load of a kindless belt, where `Zone` passes the key.
-- Readers that keep keys as opaque identity: `ZonePack.Planets`/`Orbits`, `ChunkId.Field`, `ChunkWearPack.Field`, `Zone.Planets`/`AsteroidBelts`, `ZoneRenderer._beltDraw`, `WellNode`. No CultNet contract and nothing in `native/aetherlight` names a body.
-- The run store holds two runs at once: `RunSave.Replace` starts a new run with the saved run's records still stored and, on success, removes the saved keys; `RunSave.Beside` runs a simulation beside it. Every scenario but InfiniteFunLand is `Saved` with a fixed `Seed`, so replaying one while its save exists generates the same zone seed into the same keyspace. A key that is a pure function of the seed would be upserted over the saved run's body, and Replace would then delete the new run's body.
-- Baseline at e32b04d5d, DemoTerminus seed 1, cap 300 s, starter fit, two calls in each of two processes: rocks 32/32/32/31, units 131/133/131/129, hold full 160.42/160.42/160.42/148.28 s, sell 1255/3099/1261/1577. Seed 2: sell 16/16 in one process and 11/11 in the other.
-- Prototype (a persisted `BodyData.Site` that the generator writes, `SiteOr(key)` in Extract, tie-break and DrawAhead, names from `StableHash(Site)`): seed 1 rocks 32, units 131, hold full 160.42 s and sell 1734 in all four samples. Seed 2 sold 13 in all four.
-- Same seed generated twice into one store (the shape of Replace), prototype: 11 bodies, then 22. Keys are disjoint, both generations' sites and names are equal, the first generation's documents are still held at their keys, and the duplicate names are admitted.
-
-## Body facts: compound stacks (nibu-imagination, 2026-11-27, at 6702b01bf)
-
-Probe: throwaway test `ZzImagStackProbe` in the detached worktree `F:\aeth-wt\imag-compound-stacks` (CultLib 7225835d, CultMath f1edfa45), with `CompoundCommodity` given `[Key(13)] Quantity { get; set; } = 1`, `SimpleCommodity.Quantity` made a property and `CompoundCommodityData` given `[Key(12)] MaxStack = 10`; reverted after. Spec: `aetheria-living-world:cut_spec:cut-compound-commodity-stacks.r2`.
-
-- A pre-cut `CompoundCommodity` (union arm 1, 12 slots, lot in slot 11, hand-written bytes) reads with `Lot` 42 and `Quantity` 1: a missing trailing key keeps the property initializer. A new one round-trips `Lot` 7, `Quantity` 5 (22 bytes); its JSON gains `"quantity"`.
-- `SimpleCommodity.Quantity` as an auto-property writes the same three-slot array as the field (`92 00 93 A5 probe 00 09`), and all eight `FungibleCommodityTests` pass with it, the pre-ruling 3- and 12-slot reads included.
-- The shipped catalog loads with the extra `CompoundCommodityData` slot: 63 compound records, every `MaxStack` 10 (CultCache `CompatibleDrift` defaults the missing slot; precedent `HullData.Kind`, fba7bd1b4, added a slot with no catalog rewrite). Simple records: `MaxStack` 10 on 47, 5 on 3.
-- Keys taken on the item side: `ItemInstance` 0-1; `CraftedItemInstance` 2, 9, 10 retired, 11 `Lot`; `EquippableItem` 7, 8, 12; keys 3-6 held fields removed before 2026-09 (Ingredients, Name, Blueprint, SourceEntity). So `CompoundCommodity.Quantity` takes 13. On the design side `CraftedItemData` holds 9 (`Roles`) and `CompoundCommodityData` retired 10 and 11, so its `MaxStack` takes 12.
-- No live path mints more than one compound unit per lot today: `ItemManager.CreateInstance(int lot)` returns one unit, station stock draws only equippables (`LoadoutGenerator` 142-150), and the only other compound source is the debug console (`ActionGameManager` 606). Stacking matters once a producer mints a lot of N units; the cut builds the bay rule ahead of it, as ruling compound-commodities-stack-by-lot orders.
-- Bay entry points at base: `EquippedCargoBay` has typed public overloads for `SimpleCommodity` and `CraftedItemInstance` (Entity.cs 2477-2740). A `CompoundCommodity` binds statically to the crafted overloads, so any stack rule added beside them can be bypassed by a caller holding a typed compound; the cut makes the typed entries private behind the `ItemInstance` dispatchers.
-- Diamond: the only raw recipe with a compound output (Diamond, `station-kind:mining`, no inputs, workforce 12, cycle 1200); its record key is minted (`8776c2fd-...`), and a recipe key is `recipe: