diff --git a/.changeset/design-bills.md b/.changeset/design-bills.md
deleted file mode 100644
index 9dfd9da45..000000000
--- a/.changeset/design-bills.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-default: patch
----
-
-Ballistic guns and the mine launcher are priced from what they are built from, and the heavier guns need rarer metals: rifled barrels from titanium, lined barrels from tungsten, charged scatter barrels from niobium, rare earths and platinum; flak and point defence guns take a tracking feed.
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/recipe-facilities.md b/.changeset/recipe-facilities.md
deleted file mode 100644
index d947d2322..000000000
--- a/.changeset/recipe-facilities.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-default: patch
----
-
-Stations carry facility gear on a new Facility mount: every recipe names the facility that runs it, every station kind lists the facilities it is fitted with, and every station hull that serves a kind has the Facility row to take them (Zenith and the Arsenal Depot each have one). Nothing runs a recipe yet. Because the hardpoint tints spread across one more type, every hardpoint on the schematic turns a little around the colour wheel.
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/starting-purse.md b/.changeset/starting-purse.md
deleted file mode 100644
index 38d4ef0c0..000000000
--- a/.changeset/starting-purse.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-default: patch
----
-
-The starting purse is 4000 credits: one first upgrade, not the ladder.
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/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/Shaders/IsolineRender.compute.meta b/Assets/Materials/Radiators 1.mat.meta
similarity index 54%
rename from Assets/Shaders/IsolineRender.compute.meta
rename to Assets/Materials/Radiators 1.mat.meta
index cedb610fc..c562a84de 100644
--- a/Assets/Shaders/IsolineRender.compute.meta
+++ b/Assets/Materials/Radiators 1.mat.meta
@@ -1,7 +1,8 @@
fileFormatVersion: 2
-guid: 2ee6aee2e7c44b04596a297e59623668
-ComputeShaderImporter:
+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/Shaders/IsolineSegment.hlsl.meta b/Assets/Materials/Steel brushed.mat.meta
similarity index 54%
rename from Assets/Shaders/IsolineSegment.hlsl.meta
rename to Assets/Materials/Steel brushed.mat.meta
index bbe3b5f48..73afa8139 100644
--- a/Assets/Shaders/IsolineSegment.hlsl.meta
+++ b/Assets/Materials/Steel brushed.mat.meta
@@ -1,7 +1,8 @@
fileFormatVersion: 2
-guid: d6a28a833690bbb499b920e42d660688
-ShaderIncludeImporter:
+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/Shaders/IsolineExtract.compute.meta b/Assets/Materials/Substance/Metal.meta
similarity index 57%
rename from Assets/Shaders/IsolineExtract.compute.meta
rename to Assets/Materials/Substance/Metal.meta
index bbb17392a..e8c0226e7 100644
--- a/Assets/Shaders/IsolineExtract.compute.meta
+++ b/Assets/Materials/Substance/Metal.meta
@@ -1,6 +1,7 @@
fileFormatVersion: 2
-guid: 31ef7108234b45d4f8639d22197cea27
-ComputeShaderImporter:
+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/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 eff50285a..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: 0
---- !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: 0635cf2d392265944afa2b9ce2aab35f, 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: 0635cf2d392265944afa2b9ce2aab35f, 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: 0635cf2d392265944afa2b9ce2aab35f, 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: 0635cf2d392265944afa2b9ce2aab35f, 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: 0635cf2d392265944afa2b9ce2aab35f, 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 2da386267..c12d32c99 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:7981565178e096ee594ebce89bad849f017750051aaa72c7fd8f043e549bebcd
-size 12453
+oid sha256:711ded55b95c512e3803df7682e44f0a9bb83ad36a384432781dc12dc5dadf0a
+size 12630
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/IsolineExtractSmoke.cs b/Assets/Scripts/Editor/IsolineExtractSmoke.cs
deleted file mode 100644
index cfb9fb0d2..000000000
--- a/Assets/Scripts/Editor/IsolineExtractSmoke.cs
+++ /dev/null
@@ -1,779 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.IO;
-using System.Linq;
-using System.Runtime.InteropServices;
-using float2 = CultMath.float2;
-using UnityEditor;
-using UnityEditor.SceneManagement;
-using UnityEngine;
-using UnityEngine.Profiling;
-using UnityEngine.Rendering;
-using Debug = UnityEngine.Debug;
-
-namespace Aetheria.EditorTools
-{
- ///
- /// Batchmode check for campaign aetheria-release, cut isoline-extraction: IsolineExtract.compute writes the segments of
- /// a gravity field's contours and iso-angle rays into IsolineExtractor's buffer. Each check reads the buffer back (here
- /// only; the runtime never reads back) and compares it with what the field says: the real zone's own field, rendered as
- /// the Gravity Field pass renders it and judged by Zone.GetHeight, and synthetic fields whose answer is a formula.
- /// It also writes before.png and segments.png (the minimap field through today's line shader, and the extracted
- /// segments over the same frame) and reports the cost of an extraction; neither is gated.
- ///
- /// Renders and dispatches compute, so it needs a graphics device: run WITHOUT -nographics.
- /// Unity -batchmode -projectPath <repo> -executeMethod Aetheria.EditorTools.IsolineExtractSmoke.Run -logFile <path>
- /// Do not pass -quit: Run exits the Editor itself, 0 on success and 1 on any failure. Captures go to the directory in
- /// the environment variable ISOLINE_SMOKE_OUT when it is set, else to a fresh directory under the temp path; the path is logged.
- ///
- public static class IsolineExtractSmoke
- {
- const string Tag = "[IsolineExtractSmoke]";
- const float RhoMax = 500f;
- const float SlopeEpsilon = 1e-3f;
- const int Contours = 21;
-
- // Margin rule (lodur:ruling:deterministic-bound-margin): a bound sits at the geometric mean of the shipped worst and
- // the least claimed mutant's reading, and the two readings must be at least 1.2 apart. Each constant's comment
- // gives its two readings from the run that set it, and the mutant is emulated from the shipped output on the CPU.
- // Contour endpoint's |-GetHeight - level|, in level spacings, over the real zone: shipped worst 0.0705, least mutant
- // (crossing at the edge midpoint) 0.512, separation 7.25.
- const float LevelErrorBound = 0.19f;
- // Ring ratio sum|ds| / sum(length) minus 1, worst over a profile's rings: shipped worst 0.0100; least mutant
- // (rho = d / |grad d|, soft-core profile) 0.273, separation 27; the raw-theta mutant reads 0.99.
- const float ArcRatioBound = 0.0523f;
- // Ray endpoint |s / r - 1|: shipped worst 0.0112; least mutant (rho = d / |grad d|, soft-core profile) 0.287, separation 25.6.
- const float RayRhoBound = 0.0566f;
- // Ray endpoint's angle off its level, rad: shipped worst 0.00187; least mutant (levels half a step off) 0.263, separation 140.
- const float RayAngleBound = 0.0222f;
-
- // Endpoint depth |depth / d(r) - 1| on the radial wells: shipped worst 0.00064; least mutant (depth ends swapped, offset well)
- // 0.0373, separation 58. Slope |slope / |d'(r)| - 1|: shipped worst 0.0031; least mutant (slope not interpolated, offset well)
- // 0.0580, separation 18.9 (slope ends swapped reads 0.074).
- const float DepthBound = 0.0049f;
- const float SlopeBound = 0.0133f;
- // Share of the real zone's rays or contours carrying the rho-clamp bit at RhoMax = the zone's radius: shipped worst 3.3%;
- // the same zone at RhoMax 500 (a fixture-sized value) reads 49.6%, separation 15.
- const float ClampedBound = 0.13f;
- // Share of unclamped real-zone rays whose s rises with depth: shipped 5.4%; the mutant (s negated) 94.6%, separation 17.5.
- const float WrongWayBound = 0.226f;
- static float _zoneRhoMax;
-
- static bool _ok = true;
- static string _out;
-
- static void Fail(string check, string detail)
- {
- Debug.LogError($"{Tag} FAIL {check}: {detail}");
- _ok = false;
- }
-
- static void Info(string message) => Debug.Log($"{Tag} {message}");
-
- // ---- plumbing ----------------------------------------------------------------------------------------------------
-
- sealed class Result
- {
- public IsolineExtractor.IsoSegment[] Segments; // the written ones
- public IsolineExtractor.IsoSegment[] Backing; // the whole buffer
- public uint Written, Requested;
- }
-
- static ComputeShader Shader => AssetDatabase.LoadAssetAtPath("Assets/Shaders/IsolineExtract.compute")
- ?? throw new InvalidOperationException("No IsolineExtract.compute.");
-
- static Result Extract(RenderTexture field, Vector2 origin, Vector2 perTexel, IsolineExtractor.IsolineLevels levels,
- int capacity, int backing = 0)
- {
- var extractor = new IsolineExtractor(Shader, capacity, backing);
- var command = new CommandBuffer { name = "IsolineExtract" };
- try
- {
- var sentinel = new IsolineExtractor.IsoSegment[extractor.Segments.count];
- for (var i = 0; i < sentinel.Length; i++) sentinel[i] = Sentinel();
- extractor.Segments.SetData(sentinel);
- extractor.Extract(command, field, origin, perTexel, levels);
- Graphics.ExecuteCommandBuffer(command);
- var count = new uint[2];
- extractor.Count.GetData(count);
- var all = new IsolineExtractor.IsoSegment[extractor.Segments.count];
- extractor.Segments.GetData(all);
- return new Result { Segments = all.Take((int)count[0]).ToArray(), Backing = all, Written = count[0], Requested = count[1] };
- }
- finally
- {
- command.Release();
- extractor.Release();
- }
- }
-
- static IsolineExtractor.IsoSegment Sentinel() => new IsolineExtractor.IsoSegment
- {
- a = new Vector2(-7e7f, -7e7f), b = new Vector2(-7e7f, -7e7f), key = 0xDEADBEEF, cell = 0xFEEDFACE,
- sA = -7e7f, sB = -7e7f, slopeA = -7e7f, slopeB = -7e7f, depthA = -7e7f, depthB = -7e7f
- };
-
- static RenderTexture FieldFrom(float[] values, int width, int height)
- {
- var texture = new Texture2D(width, height, TextureFormat.RFloat, false);
- texture.SetPixelData(values, 0);
- texture.Apply(false);
- var target = new RenderTexture(width, height, 0, RenderTextureFormat.RFloat) { filterMode = FilterMode.Point };
- target.Create();
- Graphics.CopyTexture(texture, target);
- UnityEngine.Object.DestroyImmediate(texture);
- return target;
- }
-
- static bool IsRay(uint key) => ((key >> 8) & 1u) != 0;
- static int LevelOf(uint key) => (int)(key & 0xFFu);
- static bool Seam(uint key) => (key & (1u << 9)) != 0;
- static bool Clamped(uint key) => (key & (1u << 10)) != 0;
- static float Length(IsolineExtractor.IsoSegment s) => (s.b - s.a).magnitude;
-
- // ---- entry -------------------------------------------------------------------------------------------------------
-
- public static void Run()
- {
- if (SystemInfo.graphicsDeviceType == GraphicsDeviceType.Null)
- {
- Debug.LogError($"{Tag} FAIL: no graphics device in this session; rerun batchmode without -nographics.");
- EditorApplication.Exit(1);
- return;
- }
-
- _out = Environment.GetEnvironmentVariable("ISOLINE_SMOKE_OUT");
- if (string.IsNullOrEmpty(_out)) _out = Path.Combine(Path.GetTempPath(), "isoline-smoke-" + Guid.NewGuid().ToString("N"));
- Directory.CreateDirectory(_out);
- Info($"captures go to {_out}");
-
- var work = Path.Combine(Path.GetTempPath(), "isoline-smoke-work-" + Guid.NewGuid().ToString("N"));
- Directory.CreateDirectory(work);
- ComputeBuffer wells = null;
- GameObject field = null;
- try
- {
- Guarded("layout", Layout);
- Guarded("saddle", Saddle);
- Guarded("along-line", AlongLine);
- Guarded("ray window", RayWindow);
- Guarded("overflow", Overflow);
-
- EditorSceneManager.OpenScene("Assets/Scenes/ARPG.unity", OpenSceneMode.Single);
- var settings = AssetDatabase.LoadAssetAtPath("Assets/Resources/Settings.asset")
- ?? throw new InvalidOperationException("No Settings.asset.");
- var material = AssetDatabase.LoadAssetAtPath("Assets/Materials/Brushes/Gravity Field.mat")
- ?? throw new InvalidOperationException("No Gravity Field.mat.");
- var zone = GravityFieldParityVerify.BuildZone(settings, work, out var orbits, multiRoot: true);
- GravityLowering.Lower(zone, 0f, ref wells);
- field = GravityLowering.CreateField(material);
- Guarded("real zone", () => RealZone(zone, orbits));
- Guarded("captures and cost", () => CapturesAndCost(zone, orbits));
- Info(_ok ? "PASS" : "FAIL: see errors above");
- }
- catch (Exception e)
- {
- Debug.LogError($"{Tag} FAIL exception: {e}");
- _ok = false;
- }
- finally
- {
- if (field != null) UnityEngine.Object.DestroyImmediate(field);
- wells?.Release();
- try { Directory.Delete(work, true); } catch { }
- }
- EditorApplication.Exit(_ok ? 0 : 1);
- }
-
- static void Guarded(string name, Action check)
- {
- try { check(); }
- catch (Exception e) { Fail(name, e.ToString()); }
- }
-
- // ---- layout ------------------------------------------------------------------------------------------------------
-
- // A 2 x 2 field whose single cell holds exactly one contour segment, with every field of it known in advance: the
- // C# struct is 48 bytes and each field the shader wrote lands in the field the C# side reads.
- static void Layout()
- {
- var size = Marshal.SizeOf();
- if (size != 48) Fail("layout", $"IsoSegment is {size} bytes, not 48");
- var field = FieldFrom(new[] { .2f, .2f, .8f, .8f }, 2, 2);
- try
- {
- var levels = new IsolineExtractor.IsolineLevels(0f, 10f, RhoMax, SlopeEpsilon);
- var result = Extract(field, new Vector2(10f, 20f), new Vector2(2f, 3f), levels, 16);
- if (result.Written != 1 || result.Requested != 1) { Fail("layout", $"expected one segment, written {result.Written} requested {result.Requested}"); return; }
- var s = result.Segments[0];
- void Near(string what, float got, float want) { if (Math.Abs(got - want) > 1e-4f) Fail("layout", $"{what}: {got:G8}, expected {want:G8}"); }
- Near("a.x", s.a.x, 10f); Near("a.y", s.a.y, 21.5f); Near("b.x", s.b.x, 12f); Near("b.y", s.b.y, 21.5f);
- var sWant = -Mathf.PI / 2f * RhoMax; // the field is linear in y: kappa is 0, rho clamps to RhoMax, theta (the height gradient) is -pi/2
- Near("sA", s.sA, sWant); Near("sB", s.sB, sWant);
- Near("slopeA", s.slopeA, .2f); Near("slopeB", s.slopeB, .2f);
- Near("depthA", s.depthA, .5f); Near("depthB", s.depthB, .5f);
- if (s.key != (1u << 10)) Fail("layout", $"key {s.key:X}, expected level 0, contour, no seam, rho clamped (0x400)");
- if (s.cell != 0) Fail("layout", $"cell {s.cell}, expected 0");
- Info($"layout: {size} bytes, segment a={s.a} b={s.b} s={s.sA:G6}/{s.sB:G6} slope={s.slopeA:G4}/{s.slopeB:G4} depth={s.depthA:G4}/{s.depthB:G4} key={s.key:X} cell={s.cell}");
- }
- finally { field.Release(); UnityEngine.Object.DestroyImmediate(field); }
- }
-
- // ---- saddle ------------------------------------------------------------------------------------------------------
-
- // Two wells on a diagonal with the saddle between them inside one cell: that cell's corners alternate (the case 5
- // pattern). At a level just below the cell's centre value the high corners connect, so each segment cuts off a low
- // corner; just above, the high corners are cut off instead.
- static void Saddle()
- {
- const int n = 32;
- const int cx = 15;
- var values = new float[n * n];
- for (var y = 0; y < n; y++)
- for (var x = 0; x < n; x++)
- {
- double Well(double wx, double wy) => Math.Exp(-((x - wx) * (x - wx) + (y - wy) * (y - wy)) / 50.0);
- values[y * n + x] = (float)(10.0 * (Well(cx + .5 - 6, cx + .5 - 6) + Well(cx + .5 + 6, cx + .5 + 6)));
- }
- var corner = new[] { values[cx * n + cx], values[cx * n + cx + 1], values[(cx + 1) * n + cx + 1], values[(cx + 1) * n + cx] };
- var mean = .25f * (corner[0] + corner[1] + corner[2] + corner[3]);
- var high = Math.Min(corner[0], corner[2]);
- var low = Math.Max(corner[1], corner[3]);
- if (!(high > low + .05f)) { Fail("saddle", $"the fixture's cell does not alternate: corners {string.Join(", ", corner)}"); return; }
- var delta = .2f * (Math.Min(corner[0], corner[2]) - Math.Max(corner[1], corner[3]));
- var spacing = 2f * delta;
- var start = mean - 3.5f * spacing;
- var origin = new Vector2(-10f, 5f);
- var perTexel = new Vector2(2f, 2f);
- var field = FieldFrom(values, n, n);
- try
- {
- var result = Extract(field, origin, perTexel, new IsolineExtractor.IsolineLevels(start, 20f * spacing, RhoMax, SlopeEpsilon), 1 << 16);
- var cell = (uint)(cx * n + cx);
- // level index 2 is mean - delta (the centre is high), 3 is mean + delta (the centre is low)
- foreach (var (level, connected) in new[] { (2, true), (3, false) })
- {
- var here = result.Segments.Where(s => !IsRay(s.key) && s.cell == cell && LevelOf(s.key) == level).ToArray();
- if (here.Length != 2) { Fail("saddle", $"level {level}: {here.Length} segments in the saddle cell, expected 2"); continue; }
- var cutOff = new HashSet();
- foreach (var s in here)
- {
- var m = (s.a + s.b) * .5f;
- var tx = (m.x - origin.x) / perTexel.x - cx;
- var ty = (m.y - origin.y) / perTexel.y - cx;
- var nearest = tx < .5f ? (ty < .5f ? 0 : 3) : (ty < .5f ? 1 : 2);
- cutOff.Add(nearest);
- }
- var want = connected ? new HashSet { 1, 3 } : new HashSet { 0, 2 };
- if (!cutOff.SetEquals(want))
- Fail("saddle", $"level {level} ({(connected ? "centre high" : "centre low")}): segments cut off corners {{{string.Join(",", cutOff)}}}, expected {{{string.Join(",", want)}}}");
- }
- Info($"saddle: corners {string.Join(", ", corner.Select(c => c.ToString("G6")))} centre mean {mean:G6}");
- }
- finally { field.Release(); UnityEngine.Object.DestroyImmediate(field); }
- }
-
- // ---- along-line parameter, rays ----------------------------------------------------------------------------------
-
- sealed class Radial
- {
- public string Name;
- public Func D; // the profile, d(r)
- public Func Slope; // |d'(r)|
- }
-
- // Radial wells on a 128 x 128 field at 2 u per texel: d = K / (r + r0) (a reference offset) and
- // d = K / sqrt(r^2 + c^2) (a soft core). Either way the curvature radius of a contour is r, so the along-line
- // parameter is arclength on a contour and distance on a ray. The well centre sits inside a cell.
- static (RenderTexture field, Vector2 origin, Vector2 perTexel, Vector2 centre, float start, float range) RadialField(Radial profile)
- {
- const int n = 128;
- var origin = new Vector2(-127f, -127f);
- var perTexel = new Vector2(2f, 2f);
- var centre = new Vector2(3.3f, -7.1f);
- var values = new float[n * n];
- for (var y = 0; y < n; y++)
- for (var x = 0; x < n; x++)
- {
- var dx = origin.x + x * perTexel.x - (double)centre.x;
- var dy = origin.y + y * perTexel.y - (double)centre.y;
- values[y * n + x] = (float)profile.D(Math.Sqrt(dx * dx + dy * dy));
- }
- // the contour window: from the field's value at r = 150 (near the edge) up to its value at r = 30
- var start = (float)profile.D(150);
- var range = (float)(profile.D(30) - profile.D(150));
- return (FieldFrom(values, n, n), origin, perTexel, centre, start, range);
- }
-
- static readonly Radial[] Profiles =
- {
- new Radial { Name = "offset", D = r => 2000.0 / (r + 40.0), Slope = r => 2000.0 / ((r + 40.0) * (r + 40.0)) },
- new Radial { Name = "soft-core", D = r => 2000.0 / Math.Sqrt(r * r + 15.0 * 15.0), Slope = r => 2000.0 * r / Math.Pow(r * r + 15.0 * 15.0, 1.5) }
- };
-
- // The wells' radii the checks read: far enough from the centre to be off the core and from the field's edge to be off the
- // clamped one-sided differences (the field reaches 127 u from the origin; the well sits 3 u off centre).
- static bool InBand(Vector2 fromCentre) => fromCentre.magnitude >= 25f && fromCentre.magnitude <= 110f;
-
- static void AlongLine()
- {
- foreach (var profile in Profiles)
- {
- var (field, origin, perTexel, centre, start, range) = RadialField(profile);
- try
- {
- var result = Extract(field, origin, perTexel, new IsolineExtractor.IsolineLevels(start, range, RhoMax, SlopeEpsilon), 1 << 18);
- var contours = result.Segments.Where(s => !IsRay(s.key)).ToArray();
- var rays = result.Segments.Where(s => IsRay(s.key)).ToArray();
- if (contours.Length < 200 || rays.Length < 100) { Fail("along-line", $"{profile.Name}: {contours.Length} contour and {rays.Length} ray segments, the check would be vacuous"); continue; }
-
- // contours: summed over a level's ring, the change of s over segment length is 1 where s does not wrap (a single
- // short segment is dominated by the endpoint interpolation, so the ratio is taken over the ring)
- double arcWorst = 0, arcMutant = 0, arcMutantRho = 0;
- var arcLevels = 0;
- foreach (var ring in contours.Where(s => !Seam(s.key) && !Clamped(s.key) && InBand((s.a + s.b) * .5f - centre)).GroupBy(s => LevelOf(s.key)))
- {
- double ds = 0, length = 0, rawTheta = 0, dsRho = 0;
- foreach (var s in ring)
- {
- ds += Math.Abs(s.sB - s.sA);
- length += Length(s);
- // mutant: s = raw theta (the angle itself, no radius): it grows by 1 / r per unit of length
- // mutant: rho = d / |grad d|
- var thA = Math.Atan2(s.a.y - centre.y, s.a.x - centre.x);
- var thB = thA + Mathf.DeltaAngle((float)(thA * Mathf.Rad2Deg), Mathf.Atan2(s.b.y - centre.y, s.b.x - centre.x) * Mathf.Rad2Deg) * Mathf.Deg2Rad;
- dsRho += Math.Abs(thB * s.depthB / s.slopeB - thA * s.depthA / s.slopeA);
- rawTheta += Math.Abs(Mathf.DeltaAngle(Mathf.Atan2(s.a.y - centre.y, s.a.x - centre.x) * Mathf.Rad2Deg, Mathf.Atan2(s.b.y - centre.y, s.b.x - centre.x) * Mathf.Rad2Deg)) * Mathf.Deg2Rad;
- }
- arcWorst = Math.Max(arcWorst, Math.Abs(ds / length - 1.0));
- arcMutant = Math.Max(arcMutant, Math.Abs(rawTheta / length - 1.0));
- arcMutantRho = Math.Max(arcMutantRho, Math.Abs(dsRho / length - 1.0));
- arcLevels++;
- }
-
- // rays: s is the distance to the centre; the mutants take rho = d / |grad d|, and levels half a step off
- double rhoWorst = 0, rhoMutant = 0, angleWorst = 0, angleMutant = 0, worstAt = 0;
- var rayCount = 0;
- var step = 2 * Math.PI / 12;
- foreach (var s in rays)
- {
- if (Clamped(s.key)) continue;
- foreach (var (p, sv, slope, depth) in new[] { (s.a, s.sA, s.slopeA, s.depthA), (s.b, s.sB, s.slopeB, s.depthB) })
- {
- var r = (p - centre).magnitude;
- if (!InBand(p - centre)) continue;
- var error = Math.Abs(sv / r - 1.0);
- if (error > rhoWorst) { rhoWorst = error; worstAt = r; }
- rhoMutant = Math.Max(rhoMutant, Math.Abs(depth / slope / r - 1.0));
- var theta = Math.Atan2(p.y - centre.y, p.x - centre.x);
- double Off(double level) { var diff = Math.Abs(theta - level); return Math.Min(diff, 2 * Math.PI - diff); }
- angleWorst = Math.Max(angleWorst, Off((LevelOf(s.key) + .5) * step - Math.PI));
- angleMutant = Math.Max(angleMutant, Off(LevelOf(s.key) * step - Math.PI));
- rayCount++;
- }
- }
- // no ray in the cell that holds the centre
- var texel = new Vector2((centre.x - origin.x) / perTexel.x, (centre.y - origin.y) / perTexel.y);
- var holding = (uint)((int)texel.y * 128 + (int)texel.x);
- if (rays.Any(s => s.cell == holding)) Fail("rays", $"{profile.Name}: a ray segment lies in the cell holding the well centre");
-
- EndpointAttributes(profile, result.Segments, centre, origin, perTexel, 128);
- Continuity("radial " + profile.Name, contours, perTexel);
- Info($"ray segments per level, {profile.Name}: {string.Join(" ", Enumerable.Range(0, 12).Select(k => rays.Count(r => LevelOf(r.key) == k)))}");
- Info($"along-line {profile.Name}: {contours.Length} contour / {rays.Length} ray segments; arc ratio error worst over {arcLevels} rings {arcWorst:G4} (mutants: raw theta {arcMutant:G4}, rho = d/|g| {arcMutantRho:G4}); ray rho error worst {rhoWorst:G4} at r={worstAt:F1} (mutant d/|g| worst {rhoMutant:G4}, {rayCount} endpoints); ray angle error worst {angleWorst:G4} rad (mutant half-step levels {angleMutant:G4})");
- {
- if (arcWorst > ArcRatioBound) Fail("along-line", $"{profile.Name}: contour |ds|/length is off by {arcWorst:G4} > {ArcRatioBound:G4}");
- if (rhoWorst > RayRhoBound) Fail("along-line", $"{profile.Name}: ray s is off the distance by {rhoWorst:G4} > {RayRhoBound:G4}");
- if (angleWorst > RayAngleBound) Fail("rays", $"{profile.Name}: a ray endpoint's angle is off its level by {angleWorst:G4} rad > {RayAngleBound:G4}");
- }
- }
- finally { field.Release(); UnityEngine.Object.DestroyImmediate(field); }
- }
- }
-
- // ---- endpoint attributes, continuity, cell, ray window -----------------------------------------------------------------
-
- // Slope and depth at each endpoint, against the profile's own d(r) and |d'(r)|. A ray's depth runs along its edge, so an
- // end swap or a missing interpolation moves it by far more than the field's sampling error does. Bounds by the margin
- // rule, readings from the shader mutants M21 (depth ends swapped), M22 (slope ends swapped), M15 (slope not interpolated).
- static void EndpointAttributes(Radial profile, IsolineExtractor.IsoSegment[] segments, Vector2 centre, Vector2 origin, Vector2 perTexel, int width)
- {
- double depthWorst = 0, slopeWorst = 0;
- foreach (var s in segments)
- foreach (var (p, slope, depth) in new[] { (s.a, s.slopeA, s.depthA), (s.b, s.slopeB, s.depthB) })
- {
- if (!InBand(p - centre)) continue;
- var r = (p - centre).magnitude;
- depthWorst = Math.Max(depthWorst, Math.Abs(depth / profile.D(r) - 1.0));
- slopeWorst = Math.Max(slopeWorst, Math.Abs(slope / profile.Slope(r) - 1.0));
- }
- Info($"endpoint attributes {profile.Name}: depth error worst {depthWorst:G4}, slope error worst {slopeWorst:G4}");
- if (depthWorst > DepthBound) Fail("endpoint attributes", $"{profile.Name}: depth off its profile by {depthWorst:G4} > {DepthBound:G4}");
- if (slopeWorst > SlopeBound) Fail("endpoint attributes", $"{profile.Name}: slope off its profile by {slopeWorst:G4} > {SlopeBound:G4}");
- CellBoxes(profile.Name, segments, origin, perTexel, width);
- }
-
- // Each segment's cell holds both its endpoints: cell is y * width + x of the cell's first corner. A transposed index
- // passes on a fixture whose cell sits on the diagonal, so the boxes are read on whole fields.
- static void CellBoxes(string what, IsolineExtractor.IsoSegment[] segments, Vector2 origin, Vector2 perTexel, int width)
- {
- var outside = 0;
- foreach (var s in segments)
- {
- var cx = (int)(s.cell % (uint)width);
- var cy = (int)(s.cell / (uint)width);
- foreach (var p in new[] { s.a, s.b })
- {
- var tx = (p.x - origin.x) / perTexel.x;
- var ty = (p.y - origin.y) / perTexel.y;
- if (tx < cx - 1e-3 || tx > cx + 1 + 1e-3 || ty < cy - 1e-3 || ty > cy + 1 + 1e-3) { outside++; break; }
- }
- }
- if (outside != 0) Fail("cell", $"{what}: {outside} segments have an endpoint outside their cell");
- }
-
- // The seam bit says s jumps by a full turn between a straddling cell and its neighbour. At every pair of bitwise-equal
- // contour endpoints where s jumps, one side must carry the bit; and the field must have jumps (else the check is vacuous).
- static void Continuity(string what, IsolineExtractor.IsoSegment[] contours, Vector2 perTexel)
- {
- var jump = .5f * Math.Max(Math.Abs(perTexel.x), Math.Abs(perTexel.y));
- var seen = new Dictionary<(int, int, int), (float s, bool seam)>();
- int jumps = 0, unflagged = 0;
- foreach (var seg in contours)
- foreach (var (p, sv) in new[] { (seg.a, seg.sA), (seg.b, seg.sB) })
- {
- var key = (LevelOf(seg.key), BitConverter.SingleToInt32Bits(p.x), BitConverter.SingleToInt32Bits(p.y));
- if (seen.TryGetValue(key, out var other))
- {
- if (Math.Abs(other.s - sv) > jump)
- {
- jumps++;
- if (!other.seam && !Seam(seg.key)) unflagged++;
- }
- seen.Remove(key);
- }
- else seen[key] = (sv, Seam(seg.key));
- }
- Info($"continuity {what}: {jumps} jumps in s between shared endpoints, {unflagged} without a seam bit");
- if (jumps == 0) Fail("seam", $"{what}: no jump in s anywhere; the check is vacuous");
- if (unflagged != 0) Fail("seam", $"{what}: {unflagged} jumps in s have no seam-flagged side");
- }
-
- // s on the real zone: how much of it the rho clamp spoils, and whether it runs the way the flowing dashes need (a
- // ray's s falls as it descends toward a well). The mutant (s negated) reads the complement.
- static void RealZoneS(IsolineExtractor.IsoSegment[] segments)
- {
- var rays = segments.Where(s => IsRay(s.key)).ToArray();
- var contours = segments.Where(s => !IsRay(s.key)).ToArray();
- double rayClamped = rays.Count(s => Clamped(s.key)) / (double)rays.Length;
- double contourClamped = contours.Count(s => Clamped(s.key)) / (double)contours.Length;
- var live = rays.Where(s => !Clamped(s.key) && Math.Abs(s.depthB - s.depthA) > 1e-4f).ToArray();
- var wrong = live.Count(s => (s.sB - s.sA) * (s.depthB - s.depthA) > 0) / (double)live.Length;
- Info($"real zone s: rho clamped on {rayClamped:P1} of rays, {contourClamped:P1} of contours (RhoMax {_zoneRhoMax:G5}); {live.Length} unclamped rays, s rises with depth on {wrong:P1} (mutant s negated {1 - wrong:P1})");
- if (rayClamped > ClampedBound || contourClamped > ClampedBound) Fail("real zone s", $"rho is clamped on {rayClamped:P1} of rays, {contourClamped:P1} of contours > {ClampedBound:P0}");
- if (wrong > WrongWayBound) Fail("real zone s", $"s rises with depth on {wrong:P1} of unclamped rays > {WrongWayBound:P0}");
- }
-
- // Rays exist only where the cell reaches the contour window [Start, Start + Range] (IsolinesUI draws none outside it).
- // Window r 50..90 of the offset well: no ray beyond a cell's reach of it, and rays in the middle of it.
- static void RayWindow()
- {
- var profile = Profiles[0];
- var (field, origin, perTexel, centre, _, _) = RadialField(profile);
- try
- {
- var start = (float)profile.D(90);
- var range = (float)(profile.D(50) - profile.D(90));
- var result = Extract(field, origin, perTexel, new IsolineExtractor.IsolineLevels(start, range, RhoMax, SlopeEpsilon), 1 << 18);
- var rays = result.Segments.Where(s => IsRay(s.key)).ToArray();
- var outside = rays.Count(s => new[] { s.a, s.b }.Any(p => (p - centre).magnitude < 44f || (p - centre).magnitude > 96f));
- var inside = rays.Count(s => (((s.a + s.b) * .5f) - centre).magnitude is > 60f and < 80f);
- Info($"ray window: {rays.Length} rays, {outside} outside r 44..96, {inside} inside r 60..80");
- if (outside != 0) Fail("ray depth gate", $"{outside} ray segments lie outside the contour window");
- if (inside < 20) Fail("ray depth gate", $"only {inside} ray segments inside the contour window");
- }
- finally { field.Release(); UnityEngine.Object.DestroyImmediate(field); }
- }
-
- // ---- overflow ----------------------------------------------------------------------------------------------------
-
- static void Overflow()
- {
- var (field, origin, perTexel, _, start, range) = RadialField(Profiles[0]);
- try
- {
- var levels = new IsolineExtractor.IsolineLevels(start, range, RhoMax, SlopeEpsilon);
- var full = Extract(field, origin, perTexel, levels, 1 << 18);
- var needed = (int)full.Requested;
- var capacity = needed / 2;
- var guard = 32;
- var small = Extract(field, origin, perTexel, levels, capacity, backing: needed + guard);
- if (small.Written != capacity) Fail("overflow", $"written {small.Written}, expected the capacity {capacity}");
- if (small.Requested != needed) Fail("overflow", $"requested {small.Requested}, expected {needed}");
- var sentinel = Sentinel();
- for (var i = capacity; i < small.Backing.Length; i++)
- {
- var s = small.Backing[i];
- if (s.key != sentinel.key || s.cell != sentinel.cell || s.a != sentinel.a || s.sA != sentinel.sA)
- {
- Fail("overflow", $"slot {i} past the capacity {capacity} was written");
- break;
- }
- }
- Info($"overflow: needed {needed}, capacity {capacity}, written {small.Written}, requested {small.Requested}");
- }
- finally { field.Release(); UnityEngine.Object.DestroyImmediate(field); }
- }
-
- // ---- the real zone -----------------------------------------------------------------------------------------------
-
- static Vector2 At(Orbit orbit) => new Vector2(orbit.Position.x, orbit.Position.y);
-
- // Renders the field through a downward orthographic camera that culls layer 9 only; the world frame of the texels is
- // asked of the camera, as GravityFieldParityVerify does.
- static RenderTexture RenderField(Camera camera, int width, int height, out Vector2 origin, out Vector2 perTexel)
- {
- var target = new RenderTexture(width, height, 0, RenderTextureFormat.RFloat) { filterMode = FilterMode.Point };
- target.Create();
- var previousTarget = camera.targetTexture;
- var previousMask = camera.cullingMask;
- var previousClear = camera.clearFlags;
- var previousColor = camera.backgroundColor;
- camera.targetTexture = target;
- camera.cullingMask = 1 << GravityLowering.FieldLayer;
- camera.clearFlags = CameraClearFlags.SolidColor;
- camera.backgroundColor = Color.black;
- camera.allowHDR = false;
- camera.allowMSAA = false;
- camera.Render();
- Vector2 Texel(float x, float y)
- {
- var p = camera.ViewportToWorldPoint(new Vector3((x + .5f) / width, (y + .5f) / height, 100f));
- return new Vector2(p.x, p.z);
- }
- origin = Texel(0, 0);
- perTexel = new Vector2(Texel(1, 0).x - origin.x, Texel(0, 1).y - origin.y);
- camera.targetTexture = previousTarget;
- camera.cullingMask = previousMask;
- camera.clearFlags = previousClear;
- camera.backgroundColor = previousColor;
- return target;
- }
-
- static Camera TopCamera(Vector2 centre, float halfHeight, float aspect, out GameObject owner)
- {
- owner = new GameObject("Isoline Smoke Camera");
- var camera = owner.AddComponent();
- camera.orthographic = true;
- camera.orthographicSize = halfHeight;
- camera.aspect = aspect;
- camera.nearClipPlane = .3f;
- camera.farClipPlane = 1000f;
- owner.transform.SetPositionAndRotation(new Vector3(centre.x, 100f, centre.y), Quaternion.Euler(90f, 0f, 0f));
- return camera;
- }
-
- static float MaxOf(RenderTexture target)
- {
- var previous = RenderTexture.active;
- var read = new Texture2D(target.width, target.height, TextureFormat.RFloat, false);
- RenderTexture.active = target;
- read.ReadPixels(new Rect(0, 0, target.width, target.height), 0, 0);
- read.Apply();
- RenderTexture.active = previous;
- var max = read.GetPixelData(0).ToArray().Max();
- UnityEngine.Object.DestroyImmediate(read);
- return max;
- }
-
- // The planet's family: sun, planet and planetoid in one 256 x 256 window; contours from depth 0 to the deepest body's
- // depth, as MapPresenter.Draw sets the map's range.
- static readonly Vector2 ZoneCentre = new Vector2(300f, -50f);
- const float ZoneHalf = 1600f;
-
- static void RealZone(Zone zone, Orbit[] orbits)
- {
- var camera = TopCamera(ZoneCentre, ZoneHalf, 1f, out var owner);
- RenderTexture field = null;
- try
- {
- field = RenderField(camera, 256, 256, out var origin, out var perTexel);
- var range = Math.Max(1f, orbits.Max(o => -zone.GetHeight(new float2(o.Position.x, o.Position.y))));
- // RhoMax from the zone: its radius, the largest curvature radius a contour can have inside it.
- _zoneRhoMax = zone.Pack.Radius;
- var levels = new IsolineExtractor.IsolineLevels(0f, range, _zoneRhoMax, SlopeEpsilon);
- var result = Extract(field, origin, perTexel, levels, 1 << 20);
- var spacing = range / (Contours - 1);
- var contours = result.Segments.Where(s => !IsRay(s.key)).ToArray();
- if (result.Written != result.Requested) Fail("real zone", $"{result.Requested} requested, only {result.Written} written");
- if (contours.Length < 500) { Fail("real zone", $"only {contours.Length} contour segments: the check is vacuous"); return; }
-
- // contours lie on their level: judged by the sim's own height
- double shipped = 0, mutant = 0;
- foreach (var s in contours)
- {
- var level = (LevelOf(s.key) + 1) * spacing;
- foreach (var p in new[] { s.a, s.b })
- {
- shipped = Math.Max(shipped, Math.Abs(-zone.GetHeight(new float2(p.x, p.y)) - level) / spacing);
- var tx = (p.x - origin.x) / perTexel.x;
- var ty = (p.y - origin.y) / perTexel.y;
- var onX = Math.Abs(tx - Math.Round(tx)) < 1e-3; // on a vertical grid line: the edge runs in y
- var onY = Math.Abs(ty - Math.Round(ty)) < 1e-3;
- if (onX == onY) continue;
- // the mutant: the crossing at the edge's midpoint instead of interpolated
- var q = onX ? new Vector2(p.x, origin.y + (Mathf.Floor((float)ty) + .5f) * perTexel.y)
- : new Vector2(origin.x + (Mathf.Floor((float)tx) + .5f) * perTexel.x, p.y);
- mutant = Math.Max(mutant, Math.Abs(-zone.GetHeight(new float2(q.x, q.y)) - level) / spacing);
- }
- }
- Info($"ray segments per level, real zone: {string.Join(" ", Enumerable.Range(0, 12).Select(k => result.Segments.Count(r => IsRay(r.key) && LevelOf(r.key) == k)))}");
- Info($"real zone: {contours.Length} contours, {result.Segments.Length - contours.Length} rays; level error worst {shipped:G4} spacing (mutant midpoint {mutant:G4}, ratio {mutant / shipped:G3})");
- if (shipped > LevelErrorBound) Fail("contours lie on their level", $"worst {shipped:G4} spacings > {LevelErrorBound:G4}");
-
- // contours close: every endpoint off the field border is shared by exactly one other endpoint of its level
- var minX = Math.Min(origin.x, origin.x + 255 * perTexel.x);
- var maxX = Math.Max(origin.x, origin.x + 255 * perTexel.x);
- var minY = Math.Min(origin.y, origin.y + 255 * perTexel.y);
- var maxY = Math.Max(origin.y, origin.y + 255 * perTexel.y);
- var tolerance = Math.Abs(perTexel.x) * 1e-3f;
- bool Border(Vector2 p) => Math.Abs(p.x - minX) < tolerance || Math.Abs(p.x - maxX) < tolerance
- || Math.Abs(p.y - minY) < tolerance || Math.Abs(p.y - maxY) < tolerance;
- var seen = new Dictionary<(int, int, int), int>();
- foreach (var s in contours)
- foreach (var p in new[] { s.a, s.b })
- {
- var key = (LevelOf(s.key), BitConverter.SingleToInt32Bits(p.x), BitConverter.SingleToInt32Bits(p.y));
- seen[key] = seen.TryGetValue(key, out var c) ? c + 1 : 1;
- }
- var open = 0;
- foreach (var s in contours)
- foreach (var p in new[] { s.a, s.b })
- if (!Border(p) && seen[(LevelOf(s.key), BitConverter.SingleToInt32Bits(p.x), BitConverter.SingleToInt32Bits(p.y))] != 2)
- open++;
- Info($"real zone: {open} contour endpoints off the border without exactly one partner");
- Continuity("real zone", contours, perTexel);
- CellBoxes("real zone", result.Segments, origin, perTexel, 256);
- RealZoneS(result.Segments);
- if (open != 0) Fail("contours close", $"{open} endpoints are not shared with exactly one other endpoint");
- }
- finally
- {
- if (field != null) { field.Release(); UnityEngine.Object.DestroyImmediate(field); }
- UnityEngine.Object.DestroyImmediate(owner);
- }
- }
-
- // ---- captures and cost -------------------------------------------------------------------------------------------
-
- const int CaptureSize = 512;
-
- static void CapturesAndCost(Zone zone, Orbit[] orbits)
- {
- // before.png: the ARPG scene's own Map Gravity camera draws the minimap field (as authored, 128 x 128, here over
- // the fixture zone), and Minimap Gravity Lines.mat draws it as it does today.
- var mapCamera = UnityEngine.Object.FindObjectsByType(FindObjectsInactive.Include, FindObjectsSortMode.None)
- .FirstOrDefault(c => c.name == "Map Gravity") ?? throw new InvalidOperationException("No camera named Map Gravity in ARPG.unity.");
- var camera = mapCamera;
- camera.transform.position = new Vector3(ZoneCentre.x, camera.transform.position.y, ZoneCentre.y);
- var field = RenderField(camera, 128, 128, out var origin, out var perTexel);
- var linesAsset = AssetDatabase.LoadAssetAtPath("Assets/Materials/UI/Minimap Gravity Lines.mat")
- ?? throw new InvalidOperationException("No Minimap Gravity Lines.mat.");
- var range = Math.Max(1f, orbits.Max(o => -zone.GetHeight(new float2(o.Position.x, o.Position.y))));
- var lines = new Material(linesAsset);
- lines.SetTexture("_DetailTex", field);
- lines.SetFloat("_StartDepth", 0f);
- lines.SetFloat("_DepthRange", range);
- var picture = new RenderTexture(CaptureSize, CaptureSize, 0, RenderTextureFormat.ARGB32);
- var previous = RenderTexture.active;
- RenderTexture.active = picture;
- GL.Clear(true, true, Color.black);
- Graphics.Blit(Texture2D.whiteTexture, picture, lines);
- var before = new Texture2D(CaptureSize, CaptureSize, TextureFormat.RGBA32, false);
- before.ReadPixels(new Rect(0, 0, CaptureSize, CaptureSize), 0, 0);
- before.Apply();
- RenderTexture.active = previous;
- File.WriteAllBytes(Path.Combine(_out, "before.png"), before.EncodeToPNG());
-
- // segments.png: the extracted segments over the same frame, contours cyan and rays magenta.
- var levels = new IsolineExtractor.IsolineLevels(0f, range, zone.Pack.Radius, SlopeEpsilon);
- var result = Extract(field, origin, perTexel, levels, 1 << 18);
- var raster = new Texture2D(CaptureSize, CaptureSize, TextureFormat.RGBA32, false);
- raster.SetPixels32(Enumerable.Repeat(new Color32(0, 0, 0, 255), CaptureSize * CaptureSize).ToArray());
- Vector2 Pixel(Vector2 p) => new Vector2(((p.x - origin.x) / perTexel.x + .5f) / 128f * CaptureSize, ((p.y - origin.y) / perTexel.y + .5f) / 128f * CaptureSize);
- foreach (var s in result.Segments)
- Line(raster, Pixel(s.a), Pixel(s.b), IsRay(s.key) ? new Color32(255, 0, 220, 255) : new Color32(0, 170, 255, 255));
- raster.Apply();
- File.WriteAllBytes(Path.Combine(_out, "segments.png"), raster.EncodeToPNG());
- Info($"captures: {Path.Combine(_out, "before.png")}, {Path.Combine(_out, "segments.png")}; 128 x 128 field extracted {result.Written} segments (requested {result.Requested}), frame centre {ZoneCentre}, half {camera.orthographicSize}, range {range:G6}");
- UnityEngine.Object.DestroyImmediate(before);
- UnityEngine.Object.DestroyImmediate(raster);
- UnityEngine.Object.DestroyImmediate(lines);
- picture.Release();
- UnityEngine.Object.DestroyImmediate(picture);
-
- // cost: paired interleaved medians of one Extract at 128 x 128 and at 1920 x 1080, each timed to a fence (the
- // count read back). Wall clock around the recorded dispatches and the fence; the GPU recorder only advances
- // with a frame loop, which batchmode has none of, so its reading is reported as it comes.
- var bigOwner = default(GameObject);
- var bigCamera = TopCamera(ZoneCentre, ZoneHalf, 1920f / 1080f, out bigOwner);
- var big = RenderField(bigCamera, 1920, 1080, out var bigOrigin, out var bigPerTexel);
- var small = new IsolineExtractor(Shader, 1 << 18);
- var large = new IsolineExtractor(Shader, 1 << 20);
- var recorder = Recorder.Get("IsolineExtract");
- recorder.enabled = true;
- try
- {
- double Measure(IsolineExtractor extractor, RenderTexture target, Vector2 o, Vector2 p)
- {
- var command = new CommandBuffer { name = "IsolineExtract" };
- command.BeginSample("IsolineExtract");
- extractor.Extract(command, target, o, p, levels);
- command.EndSample("IsolineExtract");
- var clock = Stopwatch.StartNew();
- Graphics.ExecuteCommandBuffer(command);
- extractor.Count.GetData(new uint[2]);
- clock.Stop();
- command.Release();
- return clock.Elapsed.TotalMilliseconds;
- }
- Measure(small, field, origin, perTexel); Measure(large, big, bigOrigin, bigPerTexel); // warm up
- var a = new List();
- var b = new List();
- for (var i = 0; i < 21; i++)
- {
- a.Add(Measure(small, field, origin, perTexel));
- b.Add(Measure(large, big, bigOrigin, bigPerTexel));
- }
- a.Sort(); b.Sort();
- var counts = new uint[2];
- large.Count.GetData(counts);
- Info($"cost (wall clock to a fence, median of 21 interleaved pairs): 128 x 128 {a[10]:F3} ms; 1920 x 1080 {b[10]:F3} ms; 1920 x 1080 wrote {counts[0]} of {counts[1]} requested; GPU recorder {(recorder.isValid ? recorder.gpuElapsedNanoseconds / 1e6 + " ms" : "unmeasured (no frame loop)")}");
- }
- finally
- {
- recorder.enabled = false;
- small.Release();
- large.Release();
- big.Release();
- UnityEngine.Object.DestroyImmediate(big);
- UnityEngine.Object.DestroyImmediate(bigOwner);
- field.Release();
- UnityEngine.Object.DestroyImmediate(field);
- }
- }
-
- static void Line(Texture2D target, Vector2 from, Vector2 to, Color32 colour)
- {
- var steps = Mathf.CeilToInt(Mathf.Max(Mathf.Abs(to.x - from.x), Mathf.Abs(to.y - from.y)));
- for (var i = 0; i <= steps; i++)
- {
- var p = steps == 0 ? from : Vector2.Lerp(from, to, i / (float)steps);
- var x = Mathf.RoundToInt(p.x);
- var y = Mathf.RoundToInt(p.y);
- if (x >= 0 && y >= 0 && x < target.width && y < target.height) target.SetPixel(x, y, colour);
- }
- }
- }
-}
diff --git a/Assets/Scripts/Editor/IsolineExtractSmoke.cs.meta b/Assets/Scripts/Editor/IsolineExtractSmoke.cs.meta
deleted file mode 100644
index ad2cde366..000000000
--- a/Assets/Scripts/Editor/IsolineExtractSmoke.cs.meta
+++ /dev/null
@@ -1,2 +0,0 @@
-fileFormatVersion: 2
-guid: 961a55f8990ee804faf3edd6d76b3268
\ No newline at end of file
diff --git a/Assets/Scripts/Editor/IsolineRenderSmoke.cs b/Assets/Scripts/Editor/IsolineRenderSmoke.cs
deleted file mode 100644
index a5b6563e7..000000000
--- a/Assets/Scripts/Editor/IsolineRenderSmoke.cs
+++ /dev/null
@@ -1,1095 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.IO;
-using System.Linq;
-using float2 = CultMath.float2;
-using UnityEditor;
-using UnityEditor.SceneManagement;
-using UnityEngine;
-using UnityEngine.Profiling;
-using UnityEngine.Rendering;
-using Debug = UnityEngine.Debug;
-using Seg = IsolineExtractor.IsoSegment;
-
-namespace Aetheria.EditorTools
-{
- ///
- /// Batchmode check for campaign aetheria-release, cut isoline-renderer: IsolineRender.compute draws a segment buffer.
- /// Hand-made segments and orthographic or tactical views for the geometry checks (the smoke's raw variant writes
- /// float4(D, h, s, dir) of one family), the real zone for the flow check, captures for the operator and a cost report.
- ///
- /// Needs a graphics device: run WITHOUT -nographics.
- /// Unity -batchmode -projectPath <repo> -executeMethod Aetheria.EditorTools.IsolineRenderSmoke.Run -logFile <path>
- /// Do not pass -quit: Run exits the Editor itself, 0 on success and 1 on any failure. Captures go to ISOLINE_SMOKE_OUT when
- /// it is set, else to a fresh directory under the temp path; the paths are logged.
- ///
- public static class IsolineRenderSmoke
- {
- const string Tag = "[IsolineRenderSmoke]";
- const float RhoMax = 500f;
- const float SlopeEpsilon = 1e-3f;
- // The shipped sizes: segments the extractor and the screen scratch hold, and tile-list entries the pool holds.
- const int ShippedSegments = 1 << 20;
- const int ShippedPool = 1 << 22;
-
- // Margin rule (lodur:ruling:deterministic-bound-margin): a bound sits at the geometric mean of the shipped reading and
- // the least claimed mutant's reading, at least 1.2 apart on each side. Each constant's comment gives both readings
- // from the run that set it; mutants are emulated on the CPU from the same inputs.
- const float DistanceBound = 0.0049f;
- const float SplitBound = 0.0314f;
- const float SeamBound = 0.0278f;
- const float DensityBound = 0.0053f;
- const float PerspectiveHBound = 3.8f;
- const float PerspectiveSBound = 33.5f;
- const float WrongWayBound = 0.045f;
- const float FlowLagBound = 3.5f;
-
- static bool _ok = true;
- static string _out;
- static string _wrote = "";
-
- static void Fail(string check, string detail)
- {
- Debug.LogError($"{Tag} FAIL {check}: {detail}");
- _ok = false;
- }
-
- static void Info(string message) => Debug.Log($"{Tag} {message}");
-
- static ComputeShader Load(string name) => AssetDatabase.LoadAssetAtPath("Assets/Shaders/" + name)
- ?? throw new InvalidOperationException("No " + name);
-
- static ComputeShader ExtractShader => Load("IsolineExtract.compute");
- static ComputeShader RenderShader => Load("IsolineRender.compute");
-
- // ---- views and plumbing -------------------------------------------------------------------------------------------
-
- sealed class View
- {
- public Camera Camera;
- public GameObject Owner;
- public int W, H;
- public Matrix4x4 ViewProjection => GL.GetGPUProjectionMatrix(Camera.projectionMatrix, true) * Camera.worldToCameraMatrix;
- public void Dispose() => UnityEngine.Object.DestroyImmediate(Owner);
- }
-
- // A downward orthographic view: world (x, z) lands at pixel ((x - cx) / pp + W / 2, (z - cz) / pp + H / 2), row 0 at the bottom.
- static View Ortho(Vector2 centre, float halfHeight, int w, int h)
- {
- var owner = new GameObject("Isoline Render Smoke View") { hideFlags = HideFlags.HideAndDontSave };
- var camera = owner.AddComponent();
- camera.orthographic = true;
- camera.orthographicSize = halfHeight;
- camera.aspect = w / (float)h;
- camera.nearClipPlane = .3f;
- camera.farClipPlane = 1000f;
- owner.transform.SetPositionAndRotation(new Vector3(centre.x, 100f, centre.y), Quaternion.Euler(90f, 0f, 0f));
- return new View { Camera = camera, Owner = owner, W = w, H = h };
- }
-
- // The tactical pose (ActionGameManager.PoseTactical): pitch GameSettings.TacticalPitch, the chase camera's 60 degree lens.
- static View Tactical(Vector2 target, float distance, float pitch, float yaw, int w, int h)
- {
- var owner = new GameObject("Isoline Render Smoke Tactical") { hideFlags = HideFlags.HideAndDontSave };
- var camera = owner.AddComponent();
- camera.orthographic = false;
- camera.fieldOfView = 60f;
- camera.aspect = w / (float)h;
- camera.nearClipPlane = .3f;
- camera.farClipPlane = 6000f;
- var rotation = Quaternion.Euler(pitch, yaw, 0f);
- owner.transform.SetPositionAndRotation(new Vector3(target.x, 0f, target.y) - rotation * Vector3.forward * distance, rotation);
- return new View { Camera = camera, Owner = owner, W = w, H = h };
- }
-
- static Seg Segment(Vector2 a, Vector2 b, float sA, float sB, float depthA, float depthB, bool ray = false, uint level = 0, float slope = .32f) => new Seg
- {
- a = a, b = b, sA = sA, sB = sB, slopeA = slope, slopeB = slope, depthA = depthA, depthB = depthB,
- key = (level & 0xFFu) | (ray ? 1u << 8 : 0u), cell = 0
- };
-
- static Seg Contour(Vector2 a, Vector2 b) => Segment(a, b, 0f, (b - a).magnitude, .1f, .1f);
-
- static IsolineExtractor.IsolineLevels Levels => new IsolineExtractor.IsolineLevels(0f, 1f, RhoMax, SlopeEpsilon);
-
- sealed class Frame
- {
- public int W, H;
- public Vector4[] Px;
- public uint[] Stats;
- public Vector4 At(int x, int y) => Px[y * W + x];
- }
-
- // Draws hand-made segments through the renderer's own Draw: raw writes float4(D, h, s, dir) of one family into a float
- // target; otherwise the composite lands in an ARGBHalf target, as in the shipped path.
- static Frame Draw(View view, Seg[] segments, IsolineLook look, bool raw, int family = 0, float time = 0f, int count = -1,
- int pool = 1 << 20, float dilation = -1f, int bufferLength = 0, Action prepare = null, Action inspect = null)
- {
- var capacity = Math.Max(Math.Max(segments.Length, bufferLength), 16);
- var renderer = new IsolineRenderer(ExtractShader, RenderShader, capacity, pool) { DilationOverride = dilation };
- var buffer = new GraphicsBuffer(GraphicsBuffer.Target.Structured, capacity, 48);
- var counts = new GraphicsBuffer(GraphicsBuffer.Target.Structured, 2, sizeof(uint));
- var target = new RenderTexture(view.W, view.H, 0, raw ? RenderTextureFormat.ARGBFloat : RenderTextureFormat.ARGBHalf, RenderTextureReadWrite.Linear)
- { enableRandomWrite = true, filterMode = FilterMode.Point };
- target.Create();
- var command = new CommandBuffer { name = "IsolineRenderSmoke" };
- try
- {
- var padded = new Seg[capacity];
- Array.Copy(segments, padded, segments.Length);
- buffer.SetData(padded);
- var written = (uint)(count < 0 ? segments.Length : count);
- counts.SetData(new[] { written, written });
- prepare?.Invoke(renderer);
- renderer.Draw(command, buffer, counts, Levels, view.ViewProjection, target, look, time, raw, family);
- Graphics.ExecuteCommandBuffer(command);
- var frame = new Frame { W = view.W, H = view.H, Px = Read(target), Stats = new uint[6] };
- renderer.Stats.GetData(frame.Stats);
- inspect?.Invoke(renderer);
- return frame;
- }
- finally
- {
- command.Release();
- target.Release();
- UnityEngine.Object.DestroyImmediate(target);
- buffer.Release();
- counts.Release();
- renderer.Release();
- }
- }
-
- static Vector4[] Read(RenderTexture target)
- {
- var format = target.format == RenderTextureFormat.ARGBFloat ? TextureFormat.RGBAFloat : TextureFormat.RGBAHalf;
- var texture = new Texture2D(target.width, target.height, format, false, true);
- var previous = RenderTexture.active;
- RenderTexture.active = target;
- texture.ReadPixels(new Rect(0, 0, target.width, target.height), 0, 0);
- texture.Apply();
- RenderTexture.active = previous;
- var colours = texture.GetPixels();
- UnityEngine.Object.DestroyImmediate(texture);
- return colours.Select(c => new Vector4(c.r, c.g, c.b, c.a)).ToArray();
- }
-
- static double Median(List values)
- {
- values.Sort();
- return values[values.Count / 2];
- }
-
- // Straight alpha cannot be compared where alpha is near zero: ink over black.
- static Vector4 Premultiplied(Vector4 p) => new Vector4(p.x * p.w, p.y * p.w, p.z * p.w, p.w);
-
- static float Sgn(float v) => v > 0f ? 1f : v < 0f ? -1f : 0f;
-
- static float DistanceToSegment(Vector2 p, Vector2 a, Vector2 b)
- {
- var d = b - a;
- var l2 = Vector2.Dot(d, d);
- var u = l2 > 1e-12f ? Mathf.Clamp01(Vector2.Dot(p - a, d) / l2) : 0f;
- return (p - (a + d * u)).magnitude;
- }
-
- // The CPU projection the checks judge by: the camera's own view and projection matrices, the world segment clipped
- // to clip w >= IsolineRenderer.NearW, pixels with row 0 at the bottom. Independent of the shader's matrix handling.
- static bool Project(View view, Vector2 a, Vector2 b, out Vector2 pa, out Vector2 pb, out float t0, out float t1)
- {
- var viewM = view.Camera.worldToCameraMatrix;
- var projM = view.Camera.projectionMatrix;
- Vector4 Clip(Vector2 p) => projM * (viewM * new Vector4(p.x, 0f, p.y, 1f));
- var cA = Clip(a);
- var cB = Clip(b);
- var dA = cA.w - IsolineRenderer.NearW;
- var dB = cB.w - IsolineRenderer.NearW;
- t0 = 0f; t1 = 1f; pa = pb = default;
- if (dA < 0f && dB < 0f) return false;
- if (dA < 0f) t0 = dA / (dA - dB);
- else if (dB < 0f) t1 = dA / (dA - dB);
- Vector2 Pixel(Vector4 c) => new Vector2((c.x / c.w * .5f + .5f) * view.W, (c.y / c.w * .5f + .5f) * view.H);
- pa = Pixel(Vector4.Lerp(cA, cB, t0));
- pb = Pixel(Vector4.Lerp(cA, cB, t1));
- return true;
- }
-
- static (Vector2, Vector2) UnclippedPixels(View view, Vector2 a, Vector2 b)
- {
- var m = view.Camera.projectionMatrix * view.Camera.worldToCameraMatrix;
- Vector2 Pixel(Vector2 p)
- {
- var c = m * new Vector4(p.x, 0f, p.y, 1f);
- return new Vector2((c.x / c.w * .5f + .5f) * view.W, (c.y / c.w * .5f + .5f) * view.H);
- }
- return (Pixel(a), Pixel(b));
- }
-
- // The world point on the ground plane under a pixel (bottom-up, fractional), from the camera's matrices.
- static Vector2 Unproject(View view, Vector2 pixel)
- {
- var inverse = (view.Camera.projectionMatrix * view.Camera.worldToCameraMatrix).inverse;
- var ndc = new Vector2(pixel.x / view.W * 2f - 1f, pixel.y / view.H * 2f - 1f);
- var near = inverse.MultiplyPoint(new Vector3(ndc.x, ndc.y, -1f));
- var far = inverse.MultiplyPoint(new Vector3(ndc.x, ndc.y, 1f));
- var k = near.y / (near.y - far.y);
- var hit = Vector3.Lerp(near, far, k);
- return new Vector2(hit.x, hit.z);
- }
-
- // ---- entry -------------------------------------------------------------------------------------------------------
-
- public static void Run()
- {
- if (SystemInfo.graphicsDeviceType == GraphicsDeviceType.Null)
- {
- Debug.LogError($"{Tag} FAIL: no graphics device in this session; rerun batchmode without -nographics.");
- EditorApplication.Exit(1);
- return;
- }
- _out = Environment.GetEnvironmentVariable("ISOLINE_SMOKE_OUT");
- if (string.IsNullOrEmpty(_out)) _out = Path.Combine(Path.GetTempPath(), "isoline-render-" + Guid.NewGuid().ToString("N"));
- Directory.CreateDirectory(_out);
- Info($"captures go to {_out}; device {SystemInfo.graphicsDeviceName} ({SystemInfo.graphicsDeviceType})");
-
- var work = Path.Combine(Path.GetTempPath(), "isoline-render-work-" + Guid.NewGuid().ToString("N"));
- Directory.CreateDirectory(work);
- ComputeBuffer wells = null;
- GameObject field = null;
- try
- {
- Guarded("distance is exact", DistanceExact);
- Guarded("split invariance", SplitInvariance);
- Guarded("union, not sum", UnionNotSum);
- Guarded("density counts lines", DensityCountsLines);
- Guarded("tiles leave no seams", NoSeams);
- Guarded("perspective", Perspective);
- Guarded("composite moves the way raw dir says", CompositeFlow);
- Guarded("count guard", CountGuard);
- Guarded("pool guard", PoolGuard);
-
- EditorSceneManager.OpenScene("Assets/Scenes/ARPG.unity", OpenSceneMode.Single);
- var settings = AssetDatabase.LoadAssetAtPath("Assets/Resources/Settings.asset")
- ?? throw new InvalidOperationException("No Settings.asset.");
- var material = AssetDatabase.LoadAssetAtPath("Assets/Materials/Brushes/Gravity Field.mat")
- ?? throw new InvalidOperationException("No Gravity Field.mat.");
- var zone = GravityFieldParityVerify.BuildZone(settings, work, out var orbits, multiRoot: true);
- GravityLowering.Lower(zone, 0f, ref wells);
- field = GravityLowering.CreateField(material);
- Guarded("flow follows depth near the real-zone saddle", () => FlowOnRealZone(zone, orbits));
- Guarded("stress field and the shipped pool", () => StressAndPool(zone, orbits));
- Guarded("captures and cost", () => CapturesAndCost(zone, orbits));
- Info(_ok ? "PASS" : "FAIL: see errors above");
- }
- catch (Exception e)
- {
- Debug.LogError($"{Tag} FAIL exception: {e}");
- _ok = false;
- }
- finally
- {
- if (field != null) UnityEngine.Object.DestroyImmediate(field);
- wells?.Release();
- try { Directory.Delete(work, true); } catch { }
- }
- EditorApplication.Exit(_ok ? 0 : 1);
- }
-
- static void Guarded(string name, Action check)
- {
- try { check(); }
- catch (Exception e) { Fail(name, e.ToString()); }
- }
-
- // ---- geometry checks ---------------------------------------------------------------------------------------------
-
- static readonly Seg[] ExactSet =
- {
- Contour(new Vector2(20.3f, 30.7f), new Vector2(200.1f, 60.2f)),
- Contour(new Vector2(40f, 200f), new Vector2(41.5f, 120f)),
- Contour(new Vector2(100f, 100f), new Vector2(180f, 180f)),
- Contour(new Vector2(10f, 10f), new Vector2(246f, 12f)),
- Contour(new Vector2(128f, 128f), new Vector2(129f, 128.5f)),
- Contour(new Vector2(220f, 230f), new Vector2(150.7f, 210.3f)),
- };
-
- static IsolineLook PlainLook()
- {
- var look = IsolineLook.Default;
- look.Contour.Bloom = 0f;
- look.Ray.Bloom = 0f;
- return look;
- }
-
- // The view at one world unit per pixel: world (x, z) is pixel (x, z) up to the half-pixel centre.
- static View Unit256() => Ortho(new Vector2(128f, 128f), 128f, 256, 256);
-
- // Raw h at every pixel within R of a segment matches the CPU distance from the pixel centre to the projected segment.
- // Mutant: pixel positions without the half-pixel centre offset.
- static void DistanceExact()
- {
- var view = Unit256();
- try
- {
- var look = PlainLook();
- var frame = Draw(view, ExactSet, look, true);
- var r = look.Dilation;
- float shipped = 0f, mutant = 0f; var checkedPixels = 0;
- var pixels = ExactSet.Select(s => { Project(view, s.a, s.b, out var pa, out var pb, out _, out _); return (pa, pb); }).ToArray();
- for (var y = 0; y < view.H; y++)
- for (var x = 0; x < view.W; x++)
- {
- var p = new Vector2(x + .5f, y + .5f);
- var truth = pixels.Min(q => DistanceToSegment(p, q.pa, q.pb));
- if (truth > r) continue;
- checkedPixels++;
- shipped = Mathf.Max(shipped, Mathf.Abs(frame.At(x, y).y - truth));
- var wrong = pixels.Min(q => DistanceToSegment(new Vector2(x, y), q.pa, q.pb));
- mutant = Mathf.Max(mutant, Mathf.Abs(frame.At(x, y).y - wrong));
- }
- Info($"distance is exact: {checkedPixels} pixels within R {r:G3} px; worst |h - cpu| {shipped:G3} px (mutant without the half-pixel centre {mutant:G3}, ratio {mutant / Mathf.Max(shipped, 1e-9f):G3})");
- if (checkedPixels < 1000) Fail("distance is exact", $"only {checkedPixels} pixels checked");
- if (shipped > DistanceBound) Fail("distance is exact", $"worst {shipped:G4} px > {DistanceBound:G4}");
- }
- finally { view.Dispose(); }
- }
-
- // One straight line as 1 segment and as 64 collinear segments agree on raw D and raw h.
- static void SplitInvariance()
- {
- var view = Unit256();
- try
- {
- var a = new Vector2(20.2f, 40.4f);
- var b = new Vector2(220.6f, 200.2f);
- var whole = new[] { Contour(a, b) };
- var pieces = Enumerable.Range(0, 64).Select(i => Contour(Vector2.Lerp(a, b, i / 64f), Vector2.Lerp(a, b, (i + 1) / 64f))).ToArray();
- var look = PlainLook();
- var one = Draw(view, whole, look, true);
- var many = Draw(view, pieces, look, true);
- float dD = 0f, dH = 0f, mutantD = 0f; var counted = 0;
- var sigmaD = look.Contour.SigmaD;
- for (var y = 0; y < view.H; y++)
- for (var x = 0; x < view.W; x++)
- {
- var p = new Vector2(x + .5f, y + .5f);
- if (DistanceToSegment(p, a, b) > 4f) continue;
- counted++;
- dD = Mathf.Max(dD, Mathf.Abs(one.At(x, y).x - many.At(x, y).x));
- dH = Mathf.Max(dH, Mathf.Abs(one.At(x, y).y - many.At(x, y).y));
- // the mutant counts segments: each piece adds its own kernel with no share-of-line weight
- var sumPieces = 0f;
- for (var i = 0; i < 64; i++)
- {
- var h = DistanceToSegment(p, Vector2.Lerp(a, b, i / 64f), Vector2.Lerp(a, b, (i + 1) / 64f));
- sumPieces += Mathf.Exp(-h * h / (2f * sigmaD * sigmaD));
- }
- var single = Mathf.Exp(-DistanceToSegment(p, a, b) * DistanceToSegment(p, a, b) / (2f * sigmaD * sigmaD));
- mutantD = Mathf.Max(mutantD, Mathf.Abs(sumPieces - single));
- }
- Info($"split invariance: {counted} pixels; worst |D1 - D64| {dD:G3}, |h1 - h64| {dH:G3} (mutant counting segments {mutantD:G3}, ratio {mutantD / Mathf.Max(dD, 1e-9f):G3}); D on the line {one.At(120, 90).x:F4}");
- if (dD > SplitBound || dH > SplitBound) Fail("split invariance", $"D {dD:G4} h {dH:G4} > {SplitBound:G4}");
- }
- finally { view.Dispose(); }
- }
-
- // Every segment duplicated: raw h and the composite with Bloom 0 equal the single set.
- static void UnionNotSum()
- {
- var view = Unit256();
- try
- {
- var look = PlainLook();
- var set = ExactSet.Concat(new[]
- {
- Segment(new Vector2(60f, 60f), new Vector2(200f, 140f), 0f, 100f, .1f, .05f, true),
- Segment(new Vector2(60f, 220f), new Vector2(200f, 80f), 0f, 100f, .1f, .05f, true)
- }).ToArray();
- var doubled = set.Concat(set).ToArray();
- var rawOne = Draw(view, set, look, true);
- var rawTwo = Draw(view, doubled, look, true);
- var compOne = Draw(view, set, look, false);
- var compTwo = Draw(view, doubled, look, false);
- float dH = 0f, dC = 0f;
- for (var i = 0; i < rawOne.Px.Length; i++)
- {
- dH = Mathf.Max(dH, Mathf.Abs(rawOne.Px[i].y - rawTwo.Px[i].y));
- dC = Mathf.Max(dC, (compOne.Px[i] - compTwo.Px[i]).magnitude);
- }
- var peak = compOne.Px.Max(p => p.w);
- Info($"union, not sum: worst |h1 - h2| {dH:G3}; worst composite difference {dC:G3} (peak alpha {peak:G3}; an additive core or glow doubles the ink: ~{peak:G3})");
- if (dH > 1e-4f || dC > .01f * peak) Fail("union, not sum", $"h {dH:G4}, composite {dC:G4}");
- }
- finally { view.Dispose(); }
- }
-
- // One long line through a pixel gives raw D near 1; K parallel lines inside sigmaD give the kernel-weighted count.
- static void DensityCountsLines()
- {
- var view = Unit256();
- try
- {
- var look = PlainLook();
- var sigma = look.Contour.SigmaD;
- var single = Draw(view, new[] { Contour(new Vector2(10f, 128f), new Vector2(246f, 128f)) }, look, true);
- var ys = new[] { 100f, 102f, 104f };
- var parallel = Draw(view, ys.Select(y => Contour(new Vector2(10f, y), new Vector2(246f, y))).ToArray(), look, true);
- float worst = 0f, mutant = 0f;
- for (var x = 60; x < 190; x++)
- {
- float Truth(float py, float[] lines) => lines.Sum(y => Mathf.Exp(-(py - y) * (py - y) / (2f * sigma * sigma)));
- var d1 = Truth(128.5f, new[] { 128f });
- worst = Mathf.Max(worst, Mathf.Abs(single.At(x, 128).x - d1));
- var dK = Truth(101.5f, ys);
- worst = Mathf.Max(worst, Mathf.Abs(parallel.At(x, 101).x - dK));
- // the mutant: the kernel with its mass left in (unnormalised along the normal as well as the line)
- mutant = Mathf.Max(mutant, Mathf.Abs(parallel.At(x, 101).x * sigma * Mathf.Sqrt(2f * Mathf.PI) - dK));
- }
- Info($"density counts lines: long line D {single.At(128, 128).x:F4}, three lines at 2 px D {parallel.At(128, 101).x:F4}; worst |D - kernel sum| {worst:G3} (mutant unnormalised kernel {mutant:G3}, ratio {mutant / Mathf.Max(worst, 1e-9f):G3})");
- if (worst > DensityBound) Fail("density counts lines", $"worst {worst:G4} > {DensityBound:G4}");
- }
- finally { view.Dispose(); }
- }
-
- // A synthetic crowd: concentric polylines and spokes around a centre.
- static Seg[] Crowd(Vector2 centre)
- {
- var list = new List();
- for (var ring = 0; ring < 7; ring++)
- {
- var radius = 24f + ring * 13f;
- for (var i = 0; i < 72; i++)
- {
- var a0 = i / 72f * Mathf.PI * 2f;
- var a1 = (i + 1) / 72f * Mathf.PI * 2f;
- list.Add(Segment(centre + radius * new Vector2(Mathf.Cos(a0), Mathf.Sin(a0)), centre + radius * new Vector2(Mathf.Cos(a1), Mathf.Sin(a1)),
- radius * a0, radius * a1, .1f, .1f, false, (uint)ring));
- }
- }
- for (var spoke = 0; spoke < 12; spoke++)
- {
- var angle = (spoke + .5f) / 12f * Mathf.PI * 2f;
- var dir = new Vector2(Mathf.Cos(angle), Mathf.Sin(angle));
- for (var i = 0; i < 20; i++)
- list.Add(Segment(centre + dir * (20f + i * 5f), centre + dir * (25f + i * 5f), 20f + i * 5f, 25f + i * 5f, .15f, .05f, true, (uint)spoke));
- }
- return list.ToArray();
- }
-
- // The same field rendered with the view shifted by 4 pixels (half a tile) agrees with the unshifted one.
- // Mutant: binning dilation 0.
- static void NoSeams()
- {
- var set = Crowd(new Vector2(128f, 128f));
- var look = IsolineLook.Default;
- double Disagreement(float dilation)
- {
- var a = Ortho(new Vector2(128f, 128f), 128f, 256, 256);
- var b = Ortho(new Vector2(132f, 128f), 128f, 256, 256);
- try
- {
- var fa = Draw(a, set, look, false, dilation: dilation);
- var fb = Draw(b, set, look, false, dilation: dilation);
- var worst = 0f; var wx = 0; var wy = 0; var many = 0;
- for (var y = 0; y < 256; y++)
- for (var x = 8; x < 240; x++)
- {
- var d = (Premultiplied(fa.At(x + 4, y)) - Premultiplied(fb.At(x, y))).magnitude;
- if (d > .05f) many++;
- if (d > worst) { worst = d; wx = x; wy = y; }
- }
- Info($"seams probe (dilation {dilation}): worst at ({wx},{wy}) A {fa.At(wx + 4, wy)} B {fb.At(wx, wy)}; {many} pixels differ by more than .05 (premultiplied)");
- return worst;
- }
- finally { a.Dispose(); b.Dispose(); }
- }
- var shipped = Disagreement(-1f);
- var mutant = Disagreement(0f);
- Info($"tiles leave no seams: worst composite difference after a 4 px shift {shipped:G3} (mutant dilation 0 {mutant:G3}, ratio {mutant / Math.Max(shipped, 1e-9):G3}); R {look.Dilation:G3} px");
- if (shipped > SeamBound) Fail("tiles leave no seams", $"worst {shipped:G4} > {SeamBound:G4}");
- }
-
- // The tactical pose over a world line that runs behind the eye: no NaN or Inf, h as the CPU clipped projection says,
- // s as the unprojected pixel says. Mutant: s interpolated linearly in screen space.
- static void Perspective()
- {
- var view = Tactical(Vector2.zero, 600f, 55f, 0f, 640, 360);
- try
- {
- var a = new Vector2(0f, -1500f);
- var b = new Vector2(30f, 800f);
- var length = (b - a).magnitude;
- var line = Segment(a, b, 0f, length, .1f, .05f, true);
- var look = PlainLook();
- var raw = Draw(view, new[] { line }, look, true, 1);
- var composite = Draw(view, new[] { line, Contour(new Vector2(-300f, -1500f), new Vector2(200f, 600f)) }, look, false);
- var bad = raw.Px.Concat(composite.Px).Count(p => float.IsNaN(p.x + p.y + p.z + p.w) || float.IsInfinity(p.x + p.y + p.z + p.w));
- if (!Project(view, a, b, out var pa, out var pb, out var t0, out var t1)) { Fail("perspective", "the line is entirely behind the eye"); return; }
- if (t0 <= 0f && t1 >= 1f) { Fail("perspective", "the line does not cross the near plane: the fixture is vacuous"); return; }
- float worstH = 0f, worstS = 0f, mutantS = 0f, mutantH = 0f; var hPixels = 0; var sPixels = 0;
- var r = look.Dilation;
- // the mutant without the near clip: both ends projected as they are, the one behind the eye mirrored through the screen
- var unclipped = UnclippedPixels(view, a, b);
- var ua = unclipped.Item1; var ub = unclipped.Item2;
- for (var y = 0; y < view.H; y++)
- for (var x = 0; x < view.W; x++)
- {
- var p = new Vector2(x + .5f, y + .5f);
- var truth = DistanceToSegment(p, pa, pb);
- if (truth > r) continue;
- var px = raw.At(x, y);
- hPixels++;
- worstH = Mathf.Max(worstH, Mathf.Abs(px.y - truth));
- mutantH = Mathf.Max(mutantH, Mathf.Abs(DistanceToSegment(p, ua, ub) - truth));
- if (truth > 1.5f) continue;
- // s: the nearest screen point of the CPU segment, unprojected onto the ground, then onto the line
- var d = pb - pa;
- var u = Mathf.Clamp01(Vector2.Dot(p - pa, d) / Vector2.Dot(d, d));
- var world = Unproject(view, pa + d * u);
- var sTruth = Mathf.Clamp(Vector2.Dot(world - a, b - a) / length, 0f, length);
- var sLinear = Mathf.Lerp(t0, t1, u) * length;
- sPixels++;
- worstS = Mathf.Max(worstS, Mathf.Abs(px.z - sTruth));
- mutantS = Mathf.Max(mutantS, Mathf.Abs(sLinear - sTruth));
- }
- Info($"perspective: {bad} NaN/Inf values; clipped t range {t0:F4}..{t1:F4}; {hPixels} pixels, worst |h - cpu| {worstH:G3} px (mutant without the near clip {mutantH:G3}, ratio {mutantH / Mathf.Max(worstH, 1e-9f):G3}); {sPixels} pixels, worst |s - unprojected| {worstS:G3} u (mutant screen-linear s {mutantS:G3}, ratio {mutantS / Mathf.Max(worstS, 1e-9f):G3})");
- if (bad != 0) Fail("perspective", $"{bad} NaN or Inf values in the targets");
- if (hPixels < 100 || sPixels < 50) Fail("perspective", $"only {hPixels} h pixels and {sPixels} s pixels");
- if (worstH > PerspectiveHBound) Fail("perspective", $"h off by {worstH:G4} px > {PerspectiveHBound:G4}");
- if (worstS > PerspectiveSBound) Fail("perspective", $"s off by {worstS:G4} u > {PerspectiveSBound:G4}");
- }
- finally { view.Dispose(); }
- }
-
- // ---- flow --------------------------------------------------------------------------------------------------------
-
- // Six axis-aligned rays, each with the expected motion toward its deeper end: composite at time 0 and dt, the
- // along-segment shift of the intensity profile (cross-correlation) points toward greater depth on every ray.
- static void CompositeFlow()
- {
- var view = Unit256();
- try
- {
- var look = PlainLook();
- look.Contour.W = 0f;
- look.Ray.Base = Color.white; look.Ray.W = 3f; look.Ray.Sigma = .75f; look.Ray.G = 0f;
- look.Ray.Period = 24f; look.Ray.Duty = .5f; look.Ray.Speed = 1f;
- // (a, b, sA, sB, depthA, depthB); the deeper end is the one with the larger depth
- var rays = new (Vector2 a, Vector2 b, float sA, float sB, float dA, float dB)[]
- {
- (new Vector2(128f, 128.5f), new Vector2(228f, 128.5f), 0f, 100f, .15f, .05f), // s rises outward, deeper inward
- (new Vector2(128f, 148.5f), new Vector2(28f, 148.5f), 0f, 100f, .15f, .05f),
- (new Vector2(60.5f, 60f), new Vector2(60.5f, 160f), 0f, 100f, .15f, .05f),
- (new Vector2(30f, 40.5f), new Vector2(130f, 40.5f), 0f, 100f, .05f, .15f), // reversed: s rises toward the deeper end
- (new Vector2(130f, 200.5f), new Vector2(230f, 200.5f), 100f, 0f, .05f, .15f), // s falls toward the deeper end
- (new Vector2(200.5f, 40f), new Vector2(200.5f, 140f), 0f, 100f, .05f, .15f), // reversed, vertical
- };
- var segments = rays.Select(r => Segment(r.a, r.b, r.sA, r.sB, r.dA, r.dB, true)).ToArray();
- var shift = look.Ray.Speed * look.Ray.Period * .25f; // quarter of a second: 6 px
- var f0 = Draw(view, segments, look, false, time: 0f);
- var f1 = Draw(view, segments, look, false, time: .25f);
- var worstError = 0f;
- var line = new List();
- foreach (var r in rays)
- {
- var delta = r.b - r.a;
- var n = (int)delta.magnitude;
- var step = delta.normalized;
- float Intensity(Frame f, int i)
- {
- var p = r.a + step * (i + .5f);
- var px = f.At(Mathf.Clamp((int)p.x, 0, 255), Mathf.Clamp((int)p.y, 0, 255));
- return px.w * (px.x + px.y + px.z);
- }
- var best = 0; var bestScore = float.NegativeInfinity;
- for (var lag = -12; lag <= 12; lag++)
- {
- var score = 0f;
- for (var i = 14; i < n - 14; i++) score += Intensity(f0, i) * Intensity(f1, i + lag);
- if (score > bestScore) { bestScore = score; best = lag; }
- }
- // along the ray's own direction a to b the pattern moves toward its deeper end
- var expected = r.dB > r.dA ? shift : -shift;
- var error = Mathf.Abs(best - expected);
- worstError = Mathf.Max(worstError, error);
- line.Add($"{best:+0;-0;0}/{expected:+0;-0;0}");
- }
- Info($"the composite moves the way raw dir says: lag/expected px per ray [{string.Join(" ", line)}], worst error {worstError:G3} px (a flipped sign reads {2 * shift:G3})");
- if (worstError > FlowLagBound) Fail("composite flow", $"worst lag error {worstError:G4} px > {FlowLagBound:G4}");
- }
- finally { view.Dispose(); }
- }
-
- // ---- guards ------------------------------------------------------------------------------------------------------
-
- // A full-screen sentinel written past Count[0] is absent from raw h.
- static void CountGuard()
- {
- var view = Unit256();
- try
- {
- var real = new[] { Contour(new Vector2(20f, 30f), new Vector2(60f, 30f)) };
- var withSentinel = real.Concat(new[] { Contour(new Vector2(0f, 128f), new Vector2(256f, 128f)) }).ToArray();
- var frame = Draw(view, withSentinel, PlainLook(), true, count: 1);
- var onSentinel = frame.At(128, 128).y;
- var near = frame.At(40, 30).y;
- Info($"count guard: h on the sentinel's line {onSentinel:G3} (no hit reads 1e9), h on the real segment {near:G3}; drawn {frame.Stats[3]}");
- if (onSentinel < 1e8f) Fail("count guard", $"the sentinel past Count[0] was drawn: h {onSentinel}");
- if (near > 1f) Fail("count guard", "the real segment is missing");
- }
- finally { view.Dispose(); }
- }
-
- // A pool below need truncates and leaves the words past it alone.
- static void PoolGuard()
- {
- var view = Unit256();
- try
- {
- var rng = new System.Random(7);
- var set = Enumerable.Range(0, 4000).Select(_ =>
- {
- var a = new Vector2((float)rng.NextDouble() * 256f, (float)rng.NextDouble() * 256f);
- return Contour(a, a + new Vector2((float)rng.NextDouble() - .5f, (float)rng.NextDouble() - .5f) * 20f);
- }).ToArray();
- var guardWords = new uint[IsolineRenderer.PoolGuardWords];
- const uint Sentinel = 0xABCD1234u;
- const int Pool = 100;
- var frame = Draw(view, set, PlainLook(), true, pool: Pool,
- prepare: r => r.Pool.SetData(Enumerable.Repeat(Sentinel, Pool + guardWords.Length).ToArray()),
- inspect: r =>
- {
- var all = new uint[Pool + guardWords.Length];
- r.Pool.GetData(all);
- Array.Copy(all, Pool, guardWords, 0, guardWords.Length);
- });
- var touched = guardWords.Count(w => w != Sentinel);
- Info($"pool guard: pool {Pool}, requested {frame.Stats[0]}, written {frame.Stats[1]}, truncated {frame.Stats[2]}; guard words changed: {touched} of {guardWords.Length}");
- if (frame.Stats[2] == 0) Fail("pool guard", "nothing was truncated: the fixture is vacuous");
- if (frame.Stats[1] != Pool) Fail("pool guard", $"written {frame.Stats[1]}, expected the pool's {Pool}");
- if (frame.Stats[1] + frame.Stats[2] != frame.Stats[0]) Fail("pool guard", "written + truncated != requested");
- if (touched != 0) Fail("pool guard", "a scatter wrote past the pool");
- }
- finally { view.Dispose(); }
- }
-
- // ---- the real zone -----------------------------------------------------------------------------------------------
-
- static readonly Vector2 ZoneCentre = new Vector2(300f, -50f);
- const float ZoneHalf = 1600f;
- static readonly Vector2 Saddle = new Vector2(381f, -144f);
-
- static RenderTexture RenderField(Camera camera, int width, int height, out Vector2 origin, out Vector2 perTexel)
- {
- var target = new RenderTexture(width, height, 0, RenderTextureFormat.RFloat) { filterMode = FilterMode.Point };
- target.Create();
- var previousTarget = camera.targetTexture;
- var previousMask = camera.cullingMask;
- var previousClear = camera.clearFlags;
- var previousColor = camera.backgroundColor;
- camera.targetTexture = target;
- camera.cullingMask = 1 << GravityLowering.FieldLayer;
- camera.clearFlags = CameraClearFlags.SolidColor;
- camera.backgroundColor = Color.black;
- camera.allowHDR = false;
- camera.allowMSAA = false;
- camera.Render();
- Vector2 Texel(float x, float y)
- {
- var p = camera.ViewportToWorldPoint(new Vector3((x + .5f) / width, (y + .5f) / height, 100f));
- return new Vector2(p.x, p.z);
- }
- origin = Texel(0, 0);
- perTexel = new Vector2(Texel(1, 0).x - origin.x, Texel(0, 1).y - origin.y);
- camera.targetTexture = previousTarget;
- camera.cullingMask = previousMask;
- camera.clearFlags = previousClear;
- camera.backgroundColor = previousColor;
- return target;
- }
-
- static (Seg[] segments, uint[] counts) ReadExtraction(IsolineExtractor extractor)
- {
- var counts = new uint[2];
- extractor.Count.GetData(counts);
- var all = new Seg[extractor.Segments.count];
- extractor.Segments.GetData(all);
- return (all.Take((int)counts[0]).ToArray(), counts);
- }
-
- static float ContourRange(Zone zone, Orbit[] orbits) => Math.Max(1f, orbits.Max(o => -zone.GetHeight(new float2(o.Position.x, o.Position.y))));
-
- // Rays only, over the real zone's saddle: raw dir against the depth change along +s judged by Zone.GetHeight.
- static void FlowOnRealZone(Zone zone, Orbit[] orbits)
- {
- var fieldCamera = Ortho(ZoneCentre, ZoneHalf, 256, 256);
- RenderTexture field = null;
- var renderer = new IsolineRenderer(ExtractShader, RenderShader, ShippedSegments, ShippedPool);
- var view = Ortho(Saddle, 240f, 512, 512);
- var target = new RenderTexture(512, 512, 0, RenderTextureFormat.ARGBFloat, RenderTextureReadWrite.Linear) { enableRandomWrite = true, filterMode = FilterMode.Point };
- target.Create();
- var command = new CommandBuffer { name = "IsolineFlowProbe" };
- try
- {
- field = RenderField(fieldCamera.Camera, 256, 256, out var origin, out var perTexel);
- // the contour window is the zone's: from 0 to the deepest body's depth, as MapPresenter.Draw sets it
- var levels = new IsolineExtractor.IsolineLevels(0f, ContourRange(zone, orbits), zone.Pack.Radius, SlopeEpsilon);
- renderer.Extractor.Extract(command, field, origin, perTexel, levels);
- renderer.Draw(command, renderer.Extractor.Segments, renderer.Extractor.Count, levels, view.ViewProjection, target, IsolineLook.Default, 0f, true, 1);
- Graphics.ExecuteCommandBuffer(command);
- var (segments, _) = ReadExtraction(renderer.Extractor);
- var frame = new Frame { W = 512, H = 512, Px = Read(target) };
-
- var rays = segments.Where(s => ((s.key >> 8) & 1u) != 0).ToArray();
- var bestH = new float[512 * 512];
- var bestI = new int[512 * 512];
- for (var i = 0; i < bestH.Length; i++) { bestH[i] = float.MaxValue; bestI[i] = -1; }
- for (var i = 0; i < rays.Length; i++)
- {
- Project(view, rays[i].a, rays[i].b, out var pa, out var pb, out _, out _);
- var lo = Vector2.Min(pa, pb) - Vector2.one * 2f;
- var hi = Vector2.Max(pa, pb) + Vector2.one * 2f;
- for (var y = Mathf.Max(0, (int)lo.y); y <= Mathf.Min(511, (int)hi.y); y++)
- for (var x = Mathf.Max(0, (int)lo.x); x <= Mathf.Min(511, (int)hi.x); x++)
- {
- var h = DistanceToSegment(new Vector2(x + .5f, y + .5f), pa, pb);
- if (h < bestH[y * 512 + x]) { bestH[y * 512 + x] = h; bestI[y * 512 + x] = i; }
- }
- }
- float Depth(Vector2 p) => -zone.GetHeight(new float2(p.x, p.y));
- int judged = 0, wrong = 0, wrongMutant = 0;
- var covered = new HashSet();
- var reversed = new HashSet();
- for (var k = 0; k < bestH.Length; k++)
- {
- var i = bestI[k];
- if (i < 0 || bestH[k] > 1f) continue;
- var s = rays[i];
- if ((s.key & (1u << 10)) != 0) continue; // rho clamped: s is not trustworthy there
- if (((s.a + s.b) * .5f - Saddle).magnitude > 200f) continue;
- var dChange = Depth(s.b) - Depth(s.a);
- if (Mathf.Abs(dChange) < 1e-4f) continue;
- var alongS = Sgn(s.sB - s.sA) * Sgn(dChange); // the depth change along +s
- if (alongS == 0f) continue;
- judged++;
- covered.Add(i);
- if (alongS > 0f) reversed.Add(i); // s rises with depth: the reversed rays
- if (frame.Px[k].w * alongS <= 0f) wrong++;
- if (Sgn(s.sA - s.sB) * alongS <= 0f) wrongMutant++;
- }
- var shipped = judged == 0 ? 1f : wrong / (float)judged;
- var mutant = judged == 0 ? 0f : wrongMutant / (float)judged;
- Info($"flow near the saddle: {judged} pixels over {covered.Count} rays, {reversed.Count} reversed-s rays covered; wrong-way share {shipped:P2} (mutant dir = sign(sA - sB) {mutant:P2}, ratio {mutant / Mathf.Max(shipped, 1e-9f):G3})");
- if (reversed.Count == 0) Fail("flow", "no reversed-s ray is covered: the fixture drifted off the saddle");
- if (judged < 200) Fail("flow", $"only {judged} pixels judged");
- if (shipped > WrongWayBound) Fail("flow", $"wrong-way share {shipped:P2} > {WrongWayBound:P0}");
- }
- finally
- {
- command.Release();
- target.Release();
- UnityEngine.Object.DestroyImmediate(target);
- renderer.Release();
- if (field != null) { field.Release(); UnityEngine.Object.DestroyImmediate(field); }
- view.Dispose();
- fieldCamera.Dispose();
- }
- }
-
- // ---- stress, captures and cost ------------------------------------------------------------------------------------
-
- // 60 soft-core wells over 1920 x 1080 units at 1 u per texel, steep enough that the contour levels crowd below a pixel.
- static float[] StressValues(out float range)
- {
- const int W = 1920, H = 1080;
- var rng = new System.Random(11);
- var wells = Enumerable.Range(0, 60).Select(_ => (x: (float)rng.NextDouble() * W, y: (float)rng.NextDouble() * H,
- k: 800f + (float)rng.NextDouble() * 3200f, c: 6f + (float)rng.NextDouble() * 14f)).ToArray();
- var values = new float[W * H];
- for (var y = 0; y < H; y++)
- for (var x = 0; x < W; x++)
- {
- var d = 0f;
- foreach (var w in wells)
- {
- var dx = x + .5f - w.x; var dy = y + .5f - w.y;
- d += w.k / Mathf.Sqrt(dx * dx + dy * dy + w.c * w.c);
- }
- values[y * W + x] = d;
- }
- range = 900f;
- return values;
- }
-
- static RenderTexture FieldFrom(float[] values, int width, int height)
- {
- var texture = new Texture2D(width, height, TextureFormat.RFloat, false);
- texture.SetPixelData(values, 0);
- texture.Apply(false);
- var target = new RenderTexture(width, height, 0, RenderTextureFormat.RFloat) { filterMode = FilterMode.Point };
- target.Create();
- Graphics.CopyTexture(texture, target);
- UnityEngine.Object.DestroyImmediate(texture);
- return target;
- }
-
- static void StressAndPool(Zone zone, Orbit[] orbits)
- {
- var values = StressValues(out var range);
- var field = FieldFrom(values, 1920, 1080);
- var view = Ortho(new Vector2(960f, 540f), 540f, 1920, 1080);
- var renderer = new IsolineRenderer(ExtractShader, RenderShader, ShippedSegments, ShippedPool);
- var target = new RenderTexture(1920, 1080, 0, RenderTextureFormat.ARGBHalf, RenderTextureReadWrite.Linear) { enableRandomWrite = true };
- target.Create();
- var command = new CommandBuffer { name = "IsolineStress" };
- try
- {
- var levels = new IsolineExtractor.IsolineLevels(0f, range, 1000f, SlopeEpsilon);
- // texel (x, y) sits at world (x, y) + .5: origin (.5, .5), step 1
- renderer.Record(command, field, new Vector2(.5f, .5f), Vector2.one, levels, view.ViewProjection, target, IsolineLook.Default, 0f);
- Graphics.ExecuteCommandBuffer(command);
- var stats = new uint[6];
- renderer.Stats.GetData(stats);
- var (_, counts) = ReadExtraction(renderer.Extractor);
- Info($"stress 1920 x 1080: Stats [{string.Join(", ", stats)}], extraction Count [{counts[0]}, {counts[1]}] (capacity {ShippedSegments}), pool use {stats[1]} of {ShippedPool} ({stats[1] / (double)ShippedPool:P1})");
- if (stats[2] != 0) Fail("pool guard", $"the shipped pool truncated {stats[2]} entries at the stress field");
- if (stats[4] != counts[0] || stats[5] != counts[1]) Fail("pool guard", $"Stats[4..5] {stats[4]},{stats[5]} differ from the extractor's {counts[0]},{counts[1]}");
- if (counts[1] > ShippedSegments) Fail("pool guard", $"the stress field requests {counts[1]} segments > capacity {ShippedSegments}");
- Save("stress.png", target, 1920, 1080);
- }
- finally
- {
- command.Release();
- target.Release();
- UnityEngine.Object.DestroyImmediate(target);
- renderer.Release();
- field.Release();
- UnityEngine.Object.DestroyImmediate(field);
- view.Dispose();
- }
- }
-
- // The target as an sRGB PNG over black (straight alpha, linear colour).
- static void Save(string name, RenderTexture target, int w, int h)
- {
- var pixels = Read(target);
- var png = new Texture2D(w, h, TextureFormat.RGBA32, false, true);
- var colours = new Color32[w * h];
- for (var i = 0; i < colours.Length; i++)
- {
- var p = pixels[i];
- float E(float v) => Mathf.LinearToGammaSpace(Mathf.Clamp01(v * p.w));
- colours[i] = new Color(E(p.x), E(p.y), E(p.z), 1f);
- }
- png.SetPixels32(colours);
- png.Apply();
- var path = Path.Combine(_out, name);
- File.WriteAllBytes(path, png.EncodeToPNG());
- UnityEngine.Object.DestroyImmediate(png);
- _wrote += path + "\n";
- Info($"wrote {path}");
- }
-
- static void SaveBlit(string name, RenderTexture picture)
- {
- var read = new Texture2D(picture.width, picture.height, TextureFormat.RGBA32, false);
- var previous = RenderTexture.active;
- RenderTexture.active = picture;
- read.ReadPixels(new Rect(0, 0, picture.width, picture.height), 0, 0);
- read.Apply();
- RenderTexture.active = previous;
- var path = Path.Combine(_out, name);
- File.WriteAllBytes(path, read.EncodeToPNG());
- UnityEngine.Object.DestroyImmediate(read);
- _wrote += path + "\n";
- Info($"wrote {path}");
- }
-
- static RenderTexture HalfTarget(int w, int h)
- {
- var t = new RenderTexture(w, h, 0, RenderTextureFormat.ARGBHalf, RenderTextureReadWrite.Linear) { enableRandomWrite = true };
- t.Create();
- return t;
- }
-
- static void CapturesAndCost(Zone zone, Orbit[] orbits)
- {
- var range = ContourRange(zone, orbits);
- var levels = new IsolineExtractor.IsolineLevels(0f, range, zone.Pack.Radius, SlopeEpsilon);
- var look = IsolineLook.Default;
- var minimapMaterial = AssetDatabase.LoadAssetAtPath("Assets/Materials/UI/Minimap Gravity Lines.mat") ?? throw new InvalidOperationException("No Minimap Gravity Lines.mat.");
- var mapMaterial = AssetDatabase.LoadAssetAtPath("Assets/Materials/UI/Map Gravity Lines.mat") ?? throw new InvalidOperationException("No Map Gravity Lines.mat.");
-
- // minimap: the ARPG scene's own Map Gravity camera draws the 128 x 128 field over the fixture zone
- var sceneCamera = UnityEngine.Object.FindObjectsByType(FindObjectsInactive.Include, FindObjectsSortMode.None)
- .FirstOrDefault(c => c.name == "Map Gravity") ?? throw new InvalidOperationException("No camera named Map Gravity in ARPG.unity.");
- sceneCamera.transform.position = new Vector3(ZoneCentre.x, sceneCamera.transform.position.y, ZoneCentre.y);
- var minimapField = RenderField(sceneCamera, 128, 128, out var miniOrigin, out var miniPerTexel);
- sceneCamera.aspect = 1f; // the minimap camera renders into a square texture; its matrices must say so off-target too
- Blit(minimapMaterial, minimapField, 256, 256, range, 10f, "minimap-before.png");
- var miniRenderer = new IsolineRenderer(ExtractShader, RenderShader, ShippedSegments, ShippedPool);
- var miniTarget = HalfTarget(256, 256);
- var miniVp = GL.GetGPUProjectionMatrix(sceneCamera.projectionMatrix, true) * sceneCamera.worldToCameraMatrix;
- RecordAndSave(miniRenderer, minimapField, miniOrigin, miniPerTexel, levels, miniVp, miniTarget, look, "minimap-after.png");
-
- // map screen: a screen-sized field over the same zone, ortho size = height * Scale / 2, material _Scale = Scale / 2
- var mapView = Ortho(ZoneCentre, 1100f, 1920, 1080);
- var mapField = RenderField(mapView.Camera, 1920, 1080, out var mapOrigin, out var mapPerTexel);
- var mapScale = 2200f / 1080f;
- Blit(mapMaterial, mapField, 1920, 1080, range, mapScale / 2f, "map-before.png");
- var mapRenderer = new IsolineRenderer(ExtractShader, RenderShader, ShippedSegments, ShippedPool);
- var mapTarget = HalfTarget(1920, 1080);
- RecordAndSave(mapRenderer, mapField, mapOrigin, mapPerTexel, levels, mapView.ViewProjection, mapTarget, look, "map-after.png");
- var (mapSegments, mapCounts) = ReadExtraction(mapRenderer.Extractor);
- var mapStats = new uint[6];
- mapRenderer.Stats.GetData(mapStats);
- Info($"map 1920 x 1080 real zone: Stats [{string.Join(", ", mapStats)}], extraction Count [{mapCounts[0]}, {mapCounts[1]}] (capacity {ShippedSegments}); pool use {mapStats[1]} of {ShippedPool}");
- if (mapStats[2] != 0 || mapCounts[1] > ShippedSegments) Fail("pool guard", $"map: truncated {mapStats[2]}, requested {mapCounts[1]}");
- if (mapStats[4] != mapCounts[0] || mapStats[5] != mapCounts[1]) Fail("pool guard", "map: Stats[4..5] differ from the extractor's Count");
-
- // tactical: the follow lens at pitch 55 over the zone, from a 1024 x 1024 field of it
- var tacticalCamera = Ortho(ZoneCentre, ZoneHalf, 1024, 1024);
- var tacticalField = RenderField(tacticalCamera.Camera, 1024, 1024, out var tOrigin, out var tPerTexel);
- var tacticalView = Tactical(new Vector2(380f, -100f), 900f, 55f, 20f, 1280, 720);
- var tacticalTarget = HalfTarget(1280, 720);
- RecordAndSave(mapRenderer, tacticalField, tOrigin, tPerTexel, levels, tacticalView.ViewProjection, tacticalTarget, look, "tactical.png");
-
- // flowing rays: six phases of one dash period around the saddle, from a 512 x 512 field
- var flowView = Ortho(Saddle, 300f, 512, 512);
- var flowField = RenderField(flowView.Camera, 512, 512, out var fOrigin, out var fPerTexel);
- var flowLook = look;
- flowLook.Ray.Period = 60f;
- flowLook.Ray.Speed = 1f;
- var flowTarget = HalfTarget(512, 512);
- var flowRenderer = new IsolineRenderer(ExtractShader, RenderShader, ShippedSegments, ShippedPool);
- for (var phase = 0; phase < 6; phase++)
- RecordAndSave(flowRenderer, flowField, fOrigin, fPerTexel, levels, flowView.ViewProjection, flowTarget, flowLook, $"flow-{phase}.png", phase / 6f);
-
- Cost("256 x 256 (minimap)", miniRenderer, minimapField, miniOrigin, miniPerTexel, levels, miniVp, miniTarget, look, minimapMaterial, 10f, range);
- Cost("1920 x 1080 (map)", mapRenderer, mapField, mapOrigin, mapPerTexel, levels, mapView.ViewProjection, mapTarget, look, mapMaterial, mapScale / 2f, range);
- var stressValues = StressValues(out var stressRange);
- var stressField = FieldFrom(stressValues, 1920, 1080);
- var stressView = Ortho(new Vector2(960f, 540f), 540f, 1920, 1080);
- Cost("1920 x 1080 (stress)", mapRenderer, stressField, new Vector2(.5f, .5f), Vector2.one,
- new IsolineExtractor.IsolineLevels(0f, stressRange, 1000f, SlopeEpsilon), stressView.ViewProjection, mapTarget, look, mapMaterial, mapScale / 2f, stressRange);
- Info("captures:\n" + _wrote);
-
- foreach (var r in new[] { miniRenderer, mapRenderer, flowRenderer }) r.Release();
- foreach (var t in new[] { miniTarget, mapTarget, tacticalTarget, flowTarget, minimapField, mapField, tacticalField, flowField, stressField })
- {
- t.Release();
- UnityEngine.Object.DestroyImmediate(t);
- }
- mapView.Dispose(); tacticalCamera.Dispose(); tacticalView.Dispose(); flowView.Dispose(); stressView.Dispose();
- }
-
- // Today's look: the field through a gravity-lines material into an ARGB32 target.
- static void Blit(Material asset, RenderTexture field, int w, int h, float range, float scale, string name)
- {
- var lines = new Material(asset);
- lines.SetTexture("_DetailTex", field);
- lines.SetFloat("_StartDepth", 0f);
- lines.SetFloat("_DepthRange", range);
- lines.SetFloat("_Scale", scale);
- var picture = new RenderTexture(w, h, 0, RenderTextureFormat.ARGB32);
- var previous = RenderTexture.active;
- RenderTexture.active = picture;
- GL.Clear(true, true, Color.black);
- Graphics.Blit(Texture2D.whiteTexture, picture, lines);
- RenderTexture.active = previous;
- SaveBlit(name, picture);
- picture.Release();
- UnityEngine.Object.DestroyImmediate(picture);
- UnityEngine.Object.DestroyImmediate(lines);
- }
-
- static void RecordAndSave(IsolineRenderer renderer, RenderTexture field, Vector2 origin, Vector2 perTexel,
- IsolineExtractor.IsolineLevels levels, Matrix4x4 viewProjection, RenderTexture target, IsolineLook look, string name, float time = 0f)
- {
- var command = new CommandBuffer { name = "IsolineCapture" };
- renderer.Record(command, field, origin, perTexel, levels, viewProjection, target, look, time);
- Graphics.ExecuteCommandBuffer(command);
- command.Release();
- Save(name, target, target.width, target.height);
- }
-
- // GPU time per kernel and Extract. The recorder reads 0 in batchmode (no frame loop), so each pass is timed to a fence
- // (a Stats readback) on the wall clock: the kernels are recorded as prefixes (0..6 of Args Clear Bin Scan Scatter Shade),
- // each prefix repeated Reps times in one command buffer, and a kernel's cost is the paired difference of two
- // neighbouring prefixes in the same iteration. Median of 31 interleaved iterations, ms per pass; the old material blit
- // at the same size is timed beside them through a 1 pixel readback.
- static void Cost(string label, IsolineRenderer renderer, RenderTexture field, Vector2 origin, Vector2 perTexel,
- IsolineExtractor.IsolineLevels levels, Matrix4x4 viewProjection, RenderTexture target, IsolineLook look,
- Material oldMaterial, float oldScale, float oldRange)
- {
- const int Reps = 8, Iterations = 31;
- var blitTarget = new RenderTexture(target.width, target.height, 0, RenderTextureFormat.ARGB32);
- var lines = new Material(oldMaterial);
- lines.SetTexture("_DetailTex", field);
- lines.SetFloat("_StartDepth", 0f);
- lines.SetFloat("_DepthRange", oldRange);
- lines.SetFloat("_Scale", oldScale);
- var one = new Texture2D(1, 1, TextureFormat.RGBA32, false);
- var recorder = Recorder.Get("IsolineRender");
- recorder.enabled = true;
- var scratch = new uint[6];
- // fill the buffers once so the kernel prefixes have segments
- var fill = new CommandBuffer();
- renderer.Extractor.Extract(fill, field, origin, perTexel, levels);
- Graphics.ExecuteCommandBuffer(fill);
- fill.Release();
-
- double Time(Action record, Action fence)
- {
- var command = new CommandBuffer { name = "IsolineRender" };
- for (var i = 0; i < Reps; i++) record(command);
- var clock = Stopwatch.StartNew();
- Graphics.ExecuteCommandBuffer(command);
- fence();
- clock.Stop();
- command.Release();
- return clock.Elapsed.TotalMilliseconds / Reps;
- }
- void StatsFence() => renderer.Stats.GetData(scratch);
- void PixelFence()
- {
- var previous = RenderTexture.active;
- RenderTexture.active = blitTarget;
- one.ReadPixels(new Rect(0, 0, 1, 1), 0, 0);
- RenderTexture.active = previous;
- }
- var prefixes = Enumerable.Range(0, 7).Select(_ => new List()).ToArray();
- var extract = new List();
- var blit = new List();
- for (var iteration = -2; iteration < Iterations; iteration++)
- {
- for (var k = 0; k <= 6; k++)
- {
- var stop = k;
- var t = Time(c => renderer.Draw(c, renderer.Extractor.Segments, renderer.Extractor.Count, levels, viewProjection, target, look, 0f, false, 0, stop), StatsFence);
- if (iteration >= 0) prefixes[k].Add(t);
- }
- var e = Time(c => renderer.Extractor.Extract(c, field, origin, perTexel, levels), () => renderer.Extractor.Count.GetData(new uint[2]));
- var b = Time(c => c.Blit(Texture2D.whiteTexture, blitTarget, lines), PixelFence);
- if (iteration >= 0) { extract.Add(e); blit.Add(b); }
- }
- var names = new[] { "Args", "Clear", "Bin", "Scan", "Scatter", "Shade" };
- var parts = new List();
- double sum = 0;
- for (var k = 1; k <= 6; k++)
- {
- var deltas = prefixes[k].Select((v, i) => v - prefixes[k - 1][i]).ToList();
- var m = Median(deltas);
- sum += m;
- parts.Add($"{names[k - 1]} {m:F3}");
- }
- var total = Median(prefixes[6].Select((v, i) => v - prefixes[0][i]).ToList());
- Info($"cost {label}: ms per pass, median of {Iterations} interleaved iterations x {Reps} reps, wall clock to a fence, kernel = paired difference of prefixes: {string.Join(", ", parts)}; renderer total {total:F3} (kernel sum {sum:F3}); Extract {Median(extract):F3}; old material blit {Median(blit):F3}; fence alone {Median(prefixes[0]):F3}; recorder {(recorder.isValid ? recorder.gpuElapsedNanoseconds / 1e6 + " ms" : "unmeasured (no frame loop)")}");
- recorder.enabled = false;
- blitTarget.Release();
- UnityEngine.Object.DestroyImmediate(blitTarget);
- UnityEngine.Object.DestroyImmediate(lines);
- UnityEngine.Object.DestroyImmediate(one);
- }
- }
-}
diff --git a/Assets/Scripts/Editor/IsolineRenderSmoke.cs.meta b/Assets/Scripts/Editor/IsolineRenderSmoke.cs.meta
deleted file mode 100644
index 8c2a249d1..000000000
--- a/Assets/Scripts/Editor/IsolineRenderSmoke.cs.meta
+++ /dev/null
@@ -1,2 +0,0 @@
-fileFormatVersion: 2
-guid: 87b6207c8e82c354b878bc6c6c6aee5d
\ No newline at end of file
diff --git a/Assets/Scripts/Editor/ShipModPlaySmoke.cs b/Assets/Scripts/Editor/ShipModPlaySmoke.cs
index 0aa678d40..b453162fb 100644
--- a/Assets/Scripts/Editor/ShipModPlaySmoke.cs
+++ b/Assets/Scripts/Editor/ShipModPlaySmoke.cs
@@ -15,9 +15,6 @@ using UnityEngine;
// accepts it, so it composes, and the importer cannot build it, so Preload faults Loading with ImportFault naming it.
// RemovePackage then moves it aside and the next Compose leaves it out.
//
-// A Station package takes the same path to an EntityInstance with no ShipInstance (a station does not fly), checked without
-// thruster or weapon asserts; its .broken sibling swaps the map-icon anchor with the shield anchor, which has no mesh.
-//
// Unity -batchmode -nographics -projectPath -executeMethod ShipModPlaySmoke.Run
// -shipModPath //ship.cc [-shippedCatalog GameData/Aetheria.cc] -logFile
//
@@ -42,12 +39,11 @@ public static class ShipModPlaySmoke
if (packagePath == null) throw new InvalidOperationException("-shipModPath is required");
var package = ShipModCatalog.ReadPackage(packagePath);
Install(package.Visual.Id, package, modsRoot, Path.GetFullPath(packagePath));
- var station = package.Hull.HullType == HullType.Station;
var broken = InstallSibling(package, modsRoot, ".broken", ship =>
{
var mapIcon = ship.Anchors.Single(anchor => anchor.Role == "map-icon");
- var meshless = station ? ship.Anchors.Single(anchor => anchor.Role == "shield") : ship.Anchors.First(anchor => anchor.Role == "weapon-muzzle");
- (mapIcon.ModelNodeId, meshless.ModelNodeId) = (meshless.ModelNodeId, mapIcon.ModelNodeId);
+ var muzzle = ship.Anchors.First(anchor => anchor.Role == "weapon-muzzle");
+ (mapIcon.ModelNodeId, muzzle.ModelNodeId) = (muzzle.ModelNodeId, mapIcon.ModelNodeId);
}, null);
var shipped = Path.GetFullPath(Option("-shippedCatalog", "GameData/Aetheria.cc"));
var composition = ShipModCatalog.Compose(shipped, derived, modsRoot);
@@ -64,23 +60,13 @@ public static class ShipModPlaySmoke
var hull = Hull(package.Hull.Name);
zone = new GameObject("Play Smoke Zone");
- var body = ShipModShips.Instantiate(hull, zone.transform);
- var ship = body.GetComponent();
- if (ship == null) throw new InvalidOperationException("The mod hull's body has no EntityInstance.");
+ var ship = ShipModShips.Instantiate(hull, zone.transform).GetComponent();
+ if (ship == null) throw new InvalidOperationException("The mod ship body has no ShipInstance.");
var thrusters = ship.ThrusterHardpoints?.Length ?? 0;
var weapons = ship.WeaponHardpoints?.Length ?? 0;
- if (station)
- {
- // A station renders as an EntityInstance: a ShipInstance would throw in Update (SetEntity returns before _thrusters).
- if (body.GetComponent() != null) throw new InvalidOperationException("A station body must not carry a ShipInstance.");
- }
- else
- {
- if (ship is not ShipInstance) throw new InvalidOperationException("The mod ship body has no ShipInstance.");
- if (thrusters == 0) throw new InvalidOperationException("ThrusterHardpoints is empty.");
- if (weapons == 0 || ship.WeaponHardpoints.Any(node => node.FiringPoint == null || node.FiringPoint.Length == 0))
- throw new InvalidOperationException("WeaponHardpoints is empty or a weapon has no muzzle.");
- }
+ if (thrusters == 0) throw new InvalidOperationException("ThrusterHardpoints is empty.");
+ if (weapons == 0 || ship.WeaponHardpoints.Any(node => node.FiringPoint == null || node.FiringPoint.Length == 0))
+ throw new InvalidOperationException("WeaponHardpoints is empty or a weapon has no muzzle.");
if (ship.HullColliders == null || ship.HullColliders.Length != 1)
throw new InvalidOperationException("The ship needs exactly one hull collider.");
var collider = ship.HullColliders[0].GetComponent();
diff --git a/Assets/Scripts/Editor/ShipModPreview.cs b/Assets/Scripts/Editor/ShipModPreview.cs
index c5b7c9a70..9ed4fcec4 100644
--- a/Assets/Scripts/Editor/ShipModPreview.cs
+++ b/Assets/Scripts/Editor/ShipModPreview.cs
@@ -47,24 +47,17 @@ public static class ShipModPreview
if (template == null) throw new InvalidOperationException($"{TemplatePath} is missing or has no ShipModTemplate.");
var plan = ShipModPlan.Build(package.Hull, package.Visual);
var ship = ShipModShips.Assemble(visual, package.Hull, package.Visual, template);
- // A station is a plain EntityInstance: ShipInstance flies, and SetEntity would read thrusters it does not have.
- if ((package.Hull.HullType == HullType.Ship) != (ship is ShipInstance))
- throw new InvalidOperationException($"assembled: a {package.Hull.HullType} hull got {ship.GetType().Name}; only a Ship gets a ShipInstance.");
CheckShip(ship, plan, "assembled");
// Instantiate clones the assembled root, and Unity must remap every array reference into the clone.
- var clone = UnityEngine.Object.Instantiate(ship.gameObject).GetComponent();
- try
- {
- CheckShip(clone, plan, "clone");
- if (clone is ShipInstance flier) CheckExhaust(flier);
- }
+ var clone = UnityEngine.Object.Instantiate(ship.gameObject).GetComponent();
+ try { CheckShip(clone, plan, "clone"); CheckExhaust(clone); }
finally { UnityEngine.Object.DestroyImmediate(clone.gameObject); }
Debug.Log($"SHIP_MOD_ASSEMBLY_SMOKE thrusters={plan.Thrusters.Length} exhaust=ok collider=hidden " +
$"weapons={plan.Weapons.Length} radiators={plan.Radiators.Length}");
}
- private static void CheckShip(EntityInstance ship, ShipModPlan plan, string what)
+ private static void CheckShip(ShipInstance ship, ShipModPlan plan, string what)
{
void Require(bool ok, string claim) { if (!ok) throw new InvalidOperationException($"{what}: {claim}"); }
bool Inside(Component part) => part != null && part.transform.IsChildOf(ship.transform);
@@ -73,8 +66,7 @@ public static class ShipModPreview
Require(ship.HullColliders[0].GetComponentsInChildren(true).All(renderer =>
renderer.sharedMaterials.All(material => material == ship.InvisibleMaterial)),
"a hull collider that draws nothing");
- Require(Inside(ship.MapIcon) && Inside(ship.Shield) && (ship is not ShipInstance flier || Inside(flier.TractorBeam)),
- "map icon, shield and tractor inside the ship");
+ Require(Inside(ship.MapIcon) && Inside(ship.Shield) && Inside(ship.TractorBeam), "map icon, shield and tractor inside the ship");
Require(ship.ThrusterHardpoints.Select(node => node.name).SequenceEqual(plan.Thrusters) &&
ship.ThrusterHardpoints.All(node => Inside(node) && Inside(node.Emitter) &&
node.Emitter.sharedMaterials.All(material => material == ship.InvisibleMaterial)),
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/Gameplay/ActionGameManager.cs b/Assets/Scripts/Gameplay/ActionGameManager.cs
index 3bcc6b2a4..8c2b38345 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,26 +726,23 @@ 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));
- // RunStart.Materialize owns every zone's existence; RegionClock.Enter settles the zone entered, records the sighting
- // of the zone left and writes the visit. The traveller leaves first, so the sighting holds no player.
- var leaving = Zone;
- if (CurrentEntity != null)
+ if (galaxyZone.Contents == null)
{
- CurrentEntity.Deactivate();
- CurrentEntity.Zone.Remove(CurrentEntity);
+ galaxyZone.PackedContents ??= ZoneGenerator.GenerateZone(
+ ItemManager,
+ Settings.ZoneSettings,
+ Settings.PlanetSettings,
+ CurrentGalaxy,
+ galaxyZone,
+ CurrentGalaxy.IsPrelude
+ );
+ galaxyZone.Contents = new Zone(ItemManager, Settings.PlanetSettings, galaxyZone.PackedContents, galaxyZone, CurrentGalaxy);
}
- Zone = RegionClock.Enter(CurrentGalaxy, leaving, galaxyZone);
+ Zone = galaxyZone.Contents;
_zoneEntered = true; // the clock forgets its lead between frames, never inside a step
PlayMusic(MusicType.Overworld);
_music = MusicType.Overworld;
@@ -866,6 +751,8 @@ public class ActionGameManager : MonoBehaviour
if (CurrentEntity != null)
{
+ CurrentEntity.Deactivate();
+ CurrentEntity.Zone.Remove(CurrentEntity);
CurrentEntity.Zone = Zone;
Zone.Admit(CurrentEntity, piloted: false);
}
@@ -929,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();
@@ -940,7 +826,6 @@ public class ActionGameManager : MonoBehaviour
foreach(var group in CurrentGalaxy.DiscoveredZones
.GroupBy(dz=>dz.Distance[CurrentGalaxy.Entrance]))
SectorMap.QueueZoneReveal(group);
- RunStart.Materialize(ItemManager, Settings.ZoneSettings, Settings.PlanetSettings, CurrentGalaxy);
PopulateLevel(CurrentGalaxy.Zones[saved.CurrentZone]);
var targetEntity = Zone.Entities[saved.CurrentZoneEntity];
if (targetEntity is OrbitalEntity orbitalEntity)
@@ -962,26 +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
{
- return RunStart.Begin(ItemManager, Settings.ZoneSettings, Settings.PlanetSettings, CurrentGalaxy, scenario,
- Settings.StartingHullName, failures, () => PopulateLevel(CurrentGalaxy.Entrance));
- };
- 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)
{
@@ -990,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);
@@ -1036,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;
@@ -1138,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();
@@ -1177,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!");
@@ -1186,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;
@@ -1194,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);
@@ -1214,7 +1099,8 @@ public class ActionGameManager : MonoBehaviour
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]
@@ -1322,85 +1208,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);
@@ -1427,8 +1234,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();
}
@@ -1450,7 +1256,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;
@@ -1473,11 +1279,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()
@@ -1546,18 +1348,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;
@@ -1578,13 +1368,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));
@@ -1593,14 +1380,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));
}
@@ -1616,7 +1402,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.
@@ -1624,11 +1410,10 @@ 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;
- RegionClock.Step(steppedZone, delta);
+ steppedZone.Update(delta);
// A warning lives one tick, so sweeps are collected per tick, never read per frame.
if (CurrentEntity != null && CurrentEntity.Zone == steppedZone)
foreach (var warning in CurrentEntity.IncomingPaints)
@@ -1714,11 +1499,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 b63a8154e..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;
@@ -69,16 +43,7 @@ public class GameSettings : ScriptableObject
[HideInInspector] public Sprite[] WeaponFireTypeIcons;
[HideInInspector] public Sprite[] WeaponModifierIcons;
- // Every HardpointType has an entry in the asset's ItemIcons; a missing one is named, never an IndexOutOfRange.
- public Sprite GetIcon(HardpointType type) => IconOf(ItemIcons, type);
-
- public static Sprite IconOf(Sprite[] icons, HardpointType type)
- {
- var index = (int) type;
- if (icons == null || index < 0 || index >= icons.Length || icons[index] == null)
- throw new InvalidOperationException($"GameSettings.ItemIcons has no sprite for HardpointType.{type} (index {index}, {icons?.Length ?? 0} entries); set it in the Settings asset.");
- return icons[index];
- }
+ public Sprite GetIcon(HardpointType type) => ItemIcons[(int) type];
public Sprite GetIcon(WeaponType type) => WeaponTypeIcons[(int) type];
public Sprite GetIcon(WeaponRange range) => WeaponRangeIcons[(int) range];
public Sprite GetIcon(WeaponCaliber caliber) => WeaponCaliberIcons[(int) caliber];
diff --git a/Assets/Scripts/Gameplay/ShipModShips.cs b/Assets/Scripts/Gameplay/ShipModShips.cs
index 15e9205bb..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
{
@@ -85,11 +84,10 @@ public static class ShipModShips
return body;
}
- // Fills an instance on the visual's root from its anchors, as ShipModPlan says; the shared effects come from the
+ // Fills a ShipInstance on the visual's root from its anchors, as ShipModPlan says; the shared effects come from the
// template. Nothing here decides a slot: the plan does. The schematic lines stay in the prototype but are hidden in
- // world; the in-world ship is the GLB. A Ship hull gets a ShipInstance and a tractor beam; any other hull (a station)
- // gets a plain EntityInstance, because ShipInstance flies (SetEntity and Update read its thrusters) and a station does not.
- public static EntityInstance Assemble(ShipModVisual.Instance visual, HullData hull, ShipAuthoring ship, ShipModTemplate template)
+ // world; the in-world ship is the GLB.
+ public static ShipInstance Assemble(ShipModVisual.Instance visual, HullData hull, ShipAuthoring ship, ShipModTemplate template)
{
var plan = ShipModPlan.Build(hull, ship);
var minimap = LayerMask.NameToLayer("Minimap");
@@ -103,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);
@@ -133,17 +130,14 @@ 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);
- var isShip = hull.HullType == HullType.Ship;
- // The tractor anchor stays required by the plan; a station leaves it unused.
- TractorBeam tractor = null;
- if (isShip)
- {
- tractor = Object.Instantiate(template.TractorBeam.GetComponent(), Node(plan.Tractor), false);
- Reset(tractor.transform);
- }
+ var tractor = Object.Instantiate(template.TractorBeam.GetComponent(), Node(plan.Tractor), false);
+ Reset(tractor.transform);
var thrusters = plan.Thrusters.Select(id =>
{
@@ -171,7 +165,7 @@ public static class ShipModShips
var lines = visual.Root.transform.Find("Schematic Lines");
if (lines != null) lines.gameObject.SetActive(false);
- EntityInstance instance = isShip ? AddOrGet(visual.Root) : AddOrGet(visual.Root);
+ var instance = AddOrGet(visual.Root);
instance.MapIcon = mapIcon;
instance.InfluencePrefab = null;
instance.PingPrefab = template.Ping.transform;
@@ -183,7 +177,7 @@ public static class ShipModShips
instance.RadiatorHardpoints = radiators;
instance.ArticulationPoints = Array.Empty();
instance.DestroyEffect = template.DestroyEffect;
- if (instance is ShipInstance flier) flier.TractorBeam = tractor;
+ instance.TractorBeam = tractor;
return instance;
}
diff --git a/Assets/Scripts/ServerShared/AetheriaStores.cs b/Assets/Scripts/ServerShared/AetheriaStores.cs
index 664c188fb..7c93ba979 100644
--- a/Assets/Scripts/ServerShared/AetheriaStores.cs
+++ b/Assets/Scripts/ServerShared/AetheriaStores.cs
@@ -7,8 +7,8 @@ using GameCult.Caching.MessagePack;
// Aetheria's stores: one home store per type, composed here and nowhere else.
public static class AetheriaStores
{
- public static readonly Type[] CatalogTypes = { typeof(ItemData), typeof(ShipAuthoring), typeof(Faction), typeof(FactionProductData), typeof(PersonalityAttribute), typeof(InputLayout), typeof(Loadout), typeof(FieldKindData), typeof(ProvinceData), typeof(VerseGrammar), typeof(VerseVerb), typeof(StationKindData), typeof(RecipeData), typeof(OutsideMarketData), typeof(AtmosphereData) };
- public static readonly Type[] RunTypes = { typeof(OrbitData), typeof(BodyData), typeof(SavedZone), typeof(SavedGame), typeof(ProvenanceLedger), typeof(HaulOrderData) };
+ public static readonly Type[] CatalogTypes = { typeof(ItemData), typeof(ShipAuthoring), typeof(Faction), typeof(FactionProductData), typeof(PersonalityAttribute), typeof(InputLayout), typeof(Loadout), typeof(FieldKindData), typeof(ProvinceData), typeof(VerseGrammar), typeof(VerseVerb), typeof(StationKindData), typeof(RecipeData), typeof(OutsideMarketData) };
+ public static readonly Type[] RunTypes = { typeof(OrbitData), typeof(BodyData), typeof(SavedZone), typeof(SavedGame), typeof(ProvenanceLedger) };
public static readonly Type[] PlayerTypes = { typeof(PlayerSettings) };
// Attaches (hydrates) the catalog read-only unless catalogWritable, then the run and player stores when given.
diff --git a/Assets/Scripts/ServerShared/Agents/Minion.cs b/Assets/Scripts/ServerShared/Agents/Minion.cs
index 5f89892ef..c95b7cfbb 100644
--- a/Assets/Scripts/ServerShared/Agents/Minion.cs
+++ b/Assets/Scripts/ServerShared/Agents/Minion.cs
@@ -20,14 +20,6 @@ public class Minion : Agent
followState.AddTransition(patrolState, () => Task is PatrolOrbitsTask, Patrol);
followState.AddTransition(_rootState, () => !(Task is FollowTask));
- // The hauler's task (HaulRun.TaskOf): the same switch as patrol's, ignoring the other task states each walk could reach.
- var haulState = new HaulState(this);
- _rootState.AddTransition(haulState, () => Task is HaulingTask);
- haulState.AddTransition(followState, () => Task is FollowTask, null, true, _rootState);
- haulState.AddTransition(_rootState, () => !(Task is HaulingTask), null, true, _rootState, followState);
- followState.AddTransition(haulState, () => Task is HaulingTask);
- patrolState.AddTransition(haulState, () => Task is HaulingTask, null, true, _rootState, followState);
-
var combatState = new CombatState(this);
_rootState.AddTransition(combatState,
() => View.TargetOf(Ship) != null, null, true, _rootState);
diff --git a/Assets/Scripts/ServerShared/Agents/States/Haul.cs b/Assets/Scripts/ServerShared/Agents/States/Haul.cs
deleted file mode 100644
index 30ff78b6d..000000000
--- a/Assets/Scripts/ServerShared/Agents/States/Haul.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-// A hauler's pilot: it flies to the orbit of HaulRun.Leg and, within docking distance of a station where the call would move a unit,
-// commands the call (HaulRun.Call docks, moves the goods and undocks it, which gives it a fresh pilot on the same task). No field
-// but its child: the leg is derived from the hold on every update, so a hand-emptied hold changes it at once.
-public class HaulState : BaseState
-{
- public HaulState(Agent agent) : base(agent)
- {
- var move = new MoveToOrbitState(agent);
- HaulOrderData Order() => _agent.Task is HaulingTask task ? HaulRun.OrderOf(_agent.ItemManager, task.Order) : null;
- OrbitalEntity Station() => HaulRun.Station(_agent.Ship.Zone, move.Orbit);
- bool Callable()
- {
- var order = Order();
- var station = order == null ? null : Station();
- return station != null && move.Distance < _agent.Settings.DockingDistance && HaulRun.CanCall(_agent.Ship, station, order);
- }
-
- Transitions.Add(new StateTransition(move, () => Order() != null, () => move.Orbit = HaulRun.Leg(_agent.Ship, Order())));
- // A changed leg re-enters this state, which points the child at it; a callable station commands the call.
- move.Transitions.Add(new StateTransition(this, () => Order() is HaulOrderData order && !HaulRun.Leg(_agent.Ship, order).Equals(move.Orbit), null));
- move.Transitions.Add(new StateTransition(this, Callable, () => _agent.Ship.Command.Call(Station())));
- }
-}
diff --git a/Assets/Scripts/ServerShared/Agents/States/Haul.cs.meta b/Assets/Scripts/ServerShared/Agents/States/Haul.cs.meta
deleted file mode 100644
index 434438a7a..000000000
--- a/Assets/Scripts/ServerShared/Agents/States/Haul.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: c8eaf78200fa454292cd86bdde3f4903
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Scripts/ServerShared/Agents/Tasks/HaulingTask.cs b/Assets/Scripts/ServerShared/Agents/Tasks/HaulingTask.cs
index 2dad82b3a..e657ef0aa 100644
--- a/Assets/Scripts/ServerShared/Agents/Tasks/HaulingTask.cs
+++ b/Assets/Scripts/ServerShared/Agents/Tasks/HaulingTask.cs
@@ -1,16 +1,27 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
+/* 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 GameCult.Caching;
+using System;
+using System.Collections;
+using System.Collections.Generic;
using MessagePack;
using Newtonsoft.Json;
-// The order key alone: the leg is HaulRun.Leg's, derived from the hold and the order every update, never stored here.
public class HaulingTask : AgentTask
{
public override TaskType Type => TaskType.Haul;
-
- [JsonProperty("order"), Key(4)]
- public CultRecordKey Order;
+
+ [JsonProperty("origin"), Key(4)]
+ public Entity Origin;
+
+ [JsonProperty("target"), Key(5)]
+ public Entity Target;
+
+ [JsonProperty("itemType"), Key(6)]
+ public CultRecordKey ItemType;
+
+ [JsonProperty("quantity"), Key(7)]
+ public int Quantity;
}
diff --git a/Assets/Scripts/ServerShared/Behaviors/Behaviors.cs b/Assets/Scripts/ServerShared/Behaviors/Behaviors.cs
index ad8f6dbef..300229d3f 100644
--- a/Assets/Scripts/ServerShared/Behaviors/Behaviors.cs
+++ b/Assets/Scripts/ServerShared/Behaviors/Behaviors.cs
@@ -124,6 +124,11 @@ public interface IProgressBehavior
float Progress { get; }
}
+public interface IPopulationAssignment
+{
+ int AssignedPopulation { get; set; }
+}
+
// Cut 3 (docs/stats-and-power-cut.md §1.2): a behaviour that wants to draw from its entity's PowerBus declares a
// request instead of spending energy itself. PowerBus.Step calls this on every consumer once per tick, before
// any behaviour's Execute runs, so PowerRequest must be computable from state that is already current at that
@@ -195,8 +200,6 @@ public interface IPowerConsumer
Union(50, typeof(ListenerData)),
Union(51, typeof(ScannerData)),
Union(52, typeof(LockWeaponData)),
- Union(53, typeof(FacilityData)),
- Union(54, typeof(HabitationData)),
JsonObject(MemberSerialization.OptIn)]
public abstract class BehaviorData
{
diff --git a/Assets/Scripts/ServerShared/Behaviors/Facility.cs b/Assets/Scripts/ServerShared/Behaviors/Facility.cs
deleted file mode 100644
index 8d0ff459a..000000000
--- a/Assets/Scripts/ServerShared/Behaviors/Facility.cs
+++ /dev/null
@@ -1,160 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using GameCult.Caching;
-using MessagePack;
-using Newtonsoft.Json;
-
-// The facility gear a station carries to run recipes: a GearData of HardpointType Facility whose Behaviors hold one of these. The type
-// says where it mounts (a hull's Facility rows), this says it runs recipes. It holds no field of its own: which recipes a facility
-// runs is derived from RecipeData.Facility, so no list is stored here. A facility is installed gear, never a consumable's effect.
-[Inspectable, MessagePackObject, JsonObject(MemberSerialization.OptIn)]
-public class FacilityData : BehaviorData
-{
- public override Behavior CreateInstance(EquippedItem item)
- {
- return new Facility(this, item);
- }
- public override Behavior CreateInstance(ConsumableItemEffect item)
- {
- throw new System.InvalidOperationException($"{item.Data.Name} cannot carry a facility: a facility is installed gear, never a consumable effect.");
- }
-}
-
-// The installed facility (ruling demand-consumed-inputs-processed-by-facilities). It ticks once per zone step, from EquippedItem.Update
-// while the item is active, on screen; off screen RegionClock.AdvanceInstalled calls Span with the span the zone missed. Its recipes are
-// the run list of its design, fixed for a run because the catalog is.
-//
-// Two paths, by where the zone is (ruling auto-mining-is-off-screen-only). Off screen every facility advances by Production.Advance:
-// an ore rig's raw recipes start by Production.Pick. On screen the raw ore entries of the list work the zone's rocks instead (Work),
-// through Zone.Wear and FireControl.Extract, the player's own mining, an ore at a time as Production.Pick names it, at the recipe's own
-// cycle and count, so the units of each ore come as the pick has them off screen; the player sees the rocks break, and the unit's
-// FacilityRun is left as the off-screen path last wrote it. Every other entry, a skimmer's volatiles included (ruling
-// skimmers-run-their-recipe-on-screen-for-now), runs Advance in both.
-public class Facility : Behavior
-{
- private IReadOnlyList _runList;
- private IReadOnlyList _ores;
- private IReadOnlyList _others;
- private EntityHold _hold;
-
- // Why the facility advanced no further this step: derived by Advance every step, never stored on the unit.
- public Stall Stall { get; private set; }
-
- // The hold's Revision when an idle facility last failed to take a cycle's inputs. A failed take reads nothing but the hold, so
- // until the hold changes a retry fails the same way and is skipped. Not persisted: a restored facility tries once on its first step.
- private long _failedAt;
-
- // How many steps tried to take a cycle's inputs: a diagnostic of the skip above, derived and not persisted.
- public int Attempts { get; private set; }
-
- // The rig's on-screen cycle, derived and not persisted: how many it has worked (the pick's count, begun from the unit's own count
- // when first worked), the recipe and rock of the one under way, and the sim seconds into it.
- private long _worked = -1;
- private RecipeData _working;
- private ChunkId _rock;
- private bool _rocked;
- private double _into;
-
- public Facility(FacilityData data, EquippedItem item) : base(data, item)
- {
- SetRunList();
- }
-
- // The run list as the catalog holds it, split into the raw ore entries that work rocks on screen and the rest.
- private void SetRunList()
- {
- var catalog = ItemManager.ItemData;
- _runList = Production.RunList(catalog, Item.EquippableItem.Data.Key);
- bool Ore(RecipeData recipe) => Recipes.IsRaw(catalog, recipe) && catalog.Get(recipe.Output) is SimpleCommodityData output && FieldKinds.IsOre(catalog, output);
- _ores = _runList.Where(Ore).ToArray();
- _others = _runList.Where(recipe => !Ore(recipe)).ToArray();
- }
-
- // The on-screen step: one zone step.
- public override bool Execute(float dt)
- {
- if (_ores.Count > 0) Work(dt);
- if (_others.Count > 0 || _ores.Count == 0) Advance(dt, _others);
- return true;
- }
-
- // The off-screen step: the span the zone missed, always the recipe rule.
- public void Span(double seconds) => Advance(seconds, _runList);
-
- // Whether the station's output bays have a cell for one unit of the good and its share of the silo has room: the landing Advance's
- // put takes, asked before any rock is worn.
- private bool Lands(CultRecordKey good) =>
- StationWants.Room(Entity, good) >= 1 && StationWants.OutputBays(Entity, good).Any(bay =>
- bay.TryFindSpace(new SimpleCommodity { Data = new CultRecordRef(good), Quantity = 1 }));
-
- // The rock an ore rig works, in sim time dt. A cycle begins at Production.Pick on the cycles worked (then the next recipe the ground
- // holds and the station has room for, as Advance goes on), picks a whole rock whose belt holds that ore, by a stable hash of the cycle
- // (so rocks take turns), and for the recipe's Cycle seconds wears it by what OutputCount units of it owe (what FireControl.Extract
- // pays for the damage it absorbs); a rock that breaks gives way to the next. Extract pays that ore only, into the output bays, by dice
- // of its own stream. Barren with no ore the ground holds or no whole rock of it; Room, with nothing worn, when the ore has no landing.
- private void Work(double dt)
- {
- _hold ??= new EntityHold(Entity);
- var catalog = ItemManager.ItemData;
- var zone = Entity.Zone;
- if (zone == null) { Stall = Stall.Barren; return; }
- if (_worked < 0) _worked = Item.EquippableItem.Run?.Cycles ?? 0;
- if (_working == null)
- {
- var pick = Production.Pick(_ores, _worked, _hold);
- if (pick < 0) { Stall = Stall.Barren; return; }
- for (var step = 0; step < _ores.Count && _working == null; step++)
- {
- var candidate = _ores[(pick + step) % _ores.Count];
- if (_hold.Deposit(candidate.Output.Key) > 0f && Lands(candidate.Output.Key)) _working = candidate;
- }
- if (_working == null) { Stall = Stall.Room; return; }
- _into = 0;
- _rocked = false;
- }
- var ore = _working.Output.Key;
- if (!Lands(ore)) { Stall = Stall.Room; return; }
- if (!_rocked || !zone.ChunkExists(_rock))
- {
- var province = zone.GalaxyZone?.Province?.Type ?? default;
- var whole = new List();
- foreach (var belt in zone.AsteroidBelts.OrderBy(entry => entry.Value.Data.SiteOr(entry.Key), StringComparer.Ordinal))
- {
- if (!FieldKinds.Yield(belt.Value.Data.Kind, province, catalog).Any(yield => yield.Commodity.Key.Equals(ore))) continue;
- for (var index = 0; index < belt.Value.Data.Asteroids.Length; index++)
- if (zone.ChunkExists(new ChunkId(belt.Key, index))) whole.Add(new ChunkId(belt.Key, index));
- }
- if (whole.Count == 0) { _rocked = false; Stall = Stall.Barren; return; }
- _rock = whole[(int) ($"rock:{_worked}:{ore.Value}".StableHash() % (uint) whole.Count)];
- _rocked = true;
- }
-
- var settings = zone.Settings;
- var size = ((AsteroidBeltData) zone.Planets[_rock.Field]).Asteroids[_rock.Index].Size;
- var damage = (float) (_working.OutputCount / (double) _working.Cycle * dt / settings.AsteroidYield.Evaluate(size) * settings.AsteroidHitpoints.Evaluate(size));
- var place = Entity.Equipment.IndexOf(Item);
- var ordinal = SimulationDice.Mix(unchecked((uint) (long) Math.Floor(zone.ExactTime * 1000))) ^ (uint) place;
- FireControl.Extract(zone, _rock, zone.Wear(_rock, damage), Entity, SimulationDice.For(zone.DropSeed, SimulationDice.RigStream, ordinal),
- ore, StationWants.OutputBays(Entity, ore));
- Stall = Stall.None;
- _into += dt;
- if (_into >= _working.Cycle) { _worked++; _working = null; _rocked = false; }
- }
-
- private void Advance(double seconds, IReadOnlyList list)
- {
- _hold ??= new EntityHold(Entity);
- var idle = Item.EquippableItem.Run == null || Item.EquippableItem.Run.Progress <= 0;
- if (idle && Stall == Stall.Inputs && _hold.Revision == _failedAt) return;
- Attempts++;
- // A running cycle whose recipe left the catalog or stopped running here is dropped by Advance: the list it was built from is
- // stale, so it is rebuilt from the catalog before that step.
- if (!idle && Production.Live(ItemManager.ItemData, Item.EquippableItem.Run.Recipe) == null)
- SetRunList();
- var (run, stall) = Production.Advance(ItemManager.ItemData, list, Item.EquippableItem.Run, seconds, _hold);
- Item.EquippableItem.Run = run;
- Stall = stall;
- if (idle && stall == Stall.Inputs) _failedAt = _hold.Revision;
- }
-}
diff --git a/Assets/Scripts/ServerShared/Behaviors/Facility.cs.meta b/Assets/Scripts/ServerShared/Behaviors/Facility.cs.meta
deleted file mode 100644
index f3f429e8c..000000000
--- a/Assets/Scripts/ServerShared/Behaviors/Facility.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: a65a21b40f2a4daba2b058018ba5e8d7
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Scripts/ServerShared/Behaviors/Habitation.cs b/Assets/Scripts/ServerShared/Behaviors/Habitation.cs
deleted file mode 100644
index d184e2858..000000000
--- a/Assets/Scripts/ServerShared/Behaviors/Habitation.cs
+++ /dev/null
@@ -1,119 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using GameCult.Caching;
-using MessagePack;
-using Newtonsoft.Json;
-
-// The habitation gear a station carries to house a population: a GearData whose Behaviors hold one of these. The design says how many
-// it houses and what each occupant consumes, so a population is installed gear like a facility is (rulings
-// installed-gear-decides-what-a-station-buys, mass-populations-live-in-blooms): there is no population record and no needs table
-// outside the module design. A station's Crew Quarters and a habitat's Housing Districts are designs of it. Installed gear, never a
-// consumable's effect.
-[Inspectable, MessagePackObject, JsonObject(MemberSerialization.OptIn)]
-public class HabitationData : BehaviorData
-{
- // The occupants the unit houses when full: what a unit with no recorded population holds, and, until population dynamics moves
- // it, what it holds always.
- [Inspectable, JsonProperty("capacity"), Key(1)]
- public int Capacity;
-
- // What each occupant consumes: one row per commodity.
- [Inspectable, JsonProperty("table"), Key(2)]
- public List Table = new List();
-
- public override Behavior CreateInstance(EquippedItem item)
- {
- return new Habitation(this, item);
- }
- public override Behavior CreateInstance(ConsumableItemEffect item)
- {
- throw new InvalidOperationException($"{item.Data.Name} cannot carry a habitation module: a habitation module is installed gear, never a consumable effect.");
- }
-}
-
-// One commodity a population eats: units per occupant per sim hour, and whether the occupants cannot do without it (Basic) or it is
-// a lifestyle good. Basic is recorded for the follow-up that makes a shortfall matter; this cut reads it nowhere.
-[MessagePackObject, JsonObject(MemberSerialization.OptIn)]
-public class HabitationRow
-{
- [JsonProperty("commodity"), Key(0)] public CultRecordRef Commodity;
- [JsonProperty("perOccupantHour"), Key(1)] public float PerOccupantHour;
- [JsonProperty("basic"), Key(2)] public bool Basic;
-
- // Element identity: minted by the cache on write; "" means unset.
- [Key(3)] [CultElementId] public string Id = "";
-}
-
-// The population an installed habitation unit houses, on the unit (EquippableItem.Habitants): its size and, per table row, the
-// fraction of a unit its occupants have consumed and not yet taken. Written only by Habitation.Execute from Upkeep.Advance's result.
-[MessagePackObject, JsonObject(MemberSerialization.OptIn)]
-public class Habitants
-{
- [JsonProperty("size"), Key(0)] public double Size;
- // By table row. Always a fraction below one between steps: whole units are taken, or dropped when the hold lacks them.
- [JsonProperty("owed"), Key(1)] public double[] Owed = Array.Empty();
-}
-
-// The one rule for what a population consumes: the occupants of a unit accrue Size x rate x seconds / 3600 of each row, the hold is
-// asked for the whole units, and a unit the hold cannot give is dropped, never carried as a debt (idea planets-blooms-map.rejected-carry-unmet-debt).
-// On screen its one caller is Habitation.Execute with one zone step; off screen RegionClock.AdvanceInstalled calls that with the span
-// the zone missed. It reads no random, no clock and no crew.
-public static class Upkeep
-{
- // The population after `seconds`, and the rows of the table that went short (a row whose hold gave fewer whole units than the
- // occupants owed). A null state is a unit that has not stepped yet: full capacity, nothing owed. Pure over its arguments but for the
- // hold it takes from.
- public static (Habitants state, IReadOnlyList shortfall) Advance(HabitationData data, Habitants state, double seconds, IProductionHold hold)
- {
- var size = state?.Size ?? data.Capacity;
- if (!(seconds > 0)) seconds = 0;
- var owed = new double[data.Table.Count];
- var shortfall = new List();
- for (var at = 0; at < owed.Length; at++)
- {
- var row = data.Table[at];
- // A row that names no commodity consumes nothing and owes nothing: its Owed stays zero, so Owed is a fraction below one always.
- if (!row.Commodity.IsSet()) continue;
- var was = state?.Owed != null && at < state.Owed.Length ? state.Owed[at] : 0;
- owed[at] = was + size * row.PerOccupantHour * seconds / 3600;
- var whole = (int) Math.Floor(owed[at]);
- if (whole <= 0) continue;
- var key = row.Commodity.Key;
- var taken = whole;
- if (!hold.TryTake(new[] { (key, whole) }))
- {
- taken = Math.Min(whole, hold.Held(key));
- if (taken > 0 && !hold.TryTake(new[] { (key, taken) })) taken = 0;
- shortfall.Add(key);
- }
- owed[at] -= whole;
- }
- return (new Habitants { Size = size, Owed = owed }, shortfall);
- }
-}
-
-// The installed habitation unit. It ticks once per zone step, from EquippedItem.Update while the item is active, on screen; off screen
-// RegionClock.AdvanceInstalled calls Execute with the span the zone missed. It takes from the same hold a facility does.
-public class Habitation : Behavior
-{
- private readonly HabitationData _data;
- private EntityHold _hold;
-
- // The commodities the last step could not fully take: derived by Execute every step, never stored on the unit.
- public IReadOnlyList Shortfall { get; private set; } = Array.Empty();
-
- public Habitation(HabitationData data, EquippedItem item) : base(data, item)
- {
- _data = data;
- }
-
- public override bool Execute(float dt)
- {
- _hold ??= new EntityHold(Entity);
- var (state, shortfall) = Upkeep.Advance(_data, Item.EquippableItem.Habitants, dt, _hold);
- Item.EquippableItem.Habitants = state;
- Shortfall = shortfall;
- return true;
- }
-}
diff --git a/Assets/Scripts/ServerShared/Behaviors/Habitation.cs.meta b/Assets/Scripts/ServerShared/Behaviors/Habitation.cs.meta
deleted file mode 100644
index caff50143..000000000
--- a/Assets/Scripts/ServerShared/Behaviors/Habitation.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 4066805b976ae8b493827f0cefb1a1d0
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
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/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..080f42aac 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;
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/Deposits.cs b/Assets/Scripts/ServerShared/Deposits.cs
deleted file mode 100644
index d3d67114c..000000000
--- a/Assets/Scripts/ServerShared/Deposits.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using GameCult.Caching;
-using MessagePack;
-using Newtonsoft.Json;
-
-// What a gas giant's atmosphere holds before its province weights it: a catalog record, keyed atmosphere:. Its yields are
-// read by Deposits through FieldKinds.Yield, as a field kind's are. Volatiles are not ore: FieldKinds.IsOre never reads this.
-[CultDocument("aetheria.atmospheredata", "1"), MessagePackObject, JsonObject(MemberSerialization.OptIn)]
-public class AtmosphereData
-{
- [CultName, JsonProperty("name"), Key(0)]
- public string Name = "";
-
- [JsonProperty("yields"), Key(1)]
- public List Yields = new List();
-
- public static CultRecordKey KeyOf(string id) => new CultRecordKey("atmosphere:" + id);
-}
-
-// The one owner of what a zone's ground holds (ruling auto-mining-is-off-screen-only): the goods an ore rig mines or a skimmer
-// skims, in units, derived from the zone's bodies and never stored. Production.Advance picks its raw recipes by it off screen,
-// and an ore rig on screen works the rocks of the ore Production.Pick names from it.
-public static class Deposits
-{
- // The atmosphere every gas giant draws on, until a giant authors its own.
- public const string GasGiantAtmosphere = "gas-giant";
-
- // Each good's amount, in design-key order, zero dropped; empty for a null zone. A belt adds its kind's yields in this
- // province (FieldKinds.Yield) as shares of one, times what its rocks pay a miner once fully worn (the sum of
- // Settings.AsteroidYield over their sizes, the units FireControl.Extract splits by the same yields). A gas giant that is not
- // a sun adds the atmosphere's yields the same way, as shares of one times one.
- public static (CultRecordKey design, float amount)[] Of(Zone zone, CultCache catalog)
- {
- if (zone == null) return Array.Empty<(CultRecordKey, float)>();
- var province = zone.GalaxyZone?.Province?.Type ?? default;
- var held = new Dictionary(StringComparer.Ordinal);
-
- void Add((CultRecordRef Commodity, float Amount)[] yields, double scale)
- {
- var total = yields.Sum(yield => (double) yield.Amount);
- if (!(total > 0) || !(scale > 0)) return;
- foreach (var yield in yields)
- {
- var key = yield.Commodity.Key;
- held.TryGetValue(key.Value, out var before);
- held[key.Value] = (key, before.amount + yield.Amount / total * scale);
- }
- }
-
- foreach (var belt in zone.AsteroidBelts.OrderBy(entry => entry.Value.Data.SiteOr(entry.Key), StringComparer.Ordinal))
- {
- var rocks = belt.Value.Data.Asteroids.Sum(rock => (double) zone.Settings.AsteroidYield.Evaluate(rock.Size));
- Add(FieldKinds.Yield(belt.Value.Data.Kind, province, catalog), rocks);
- }
-
- var giants = zone.Planets.Values.Count(body => body is GasGiantData && !(body is SunData));
- var atmosphere = catalog.Get(AtmosphereData.KeyOf(GasGiantAtmosphere));
- if (giants > 0 && atmosphere != null) Add(FieldKinds.Yield(atmosphere.Yields, province, catalog), giants);
-
- return held.Values.Where(entry => entry.amount > 0).OrderBy(entry => entry.design.Value, StringComparer.Ordinal)
- .Select(entry => (entry.design, (float) entry.amount)).ToArray();
- }
-}
diff --git a/Assets/Scripts/ServerShared/Deposits.cs.meta b/Assets/Scripts/ServerShared/Deposits.cs.meta
deleted file mode 100644
index 51088a4a4..000000000
--- a/Assets/Scripts/ServerShared/Deposits.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 1fddcfe8170c46949a77a09bcbc69082
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
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 0b513dd04..000000000
--- a/Assets/Scripts/ServerShared/EconomyBalance.cs
+++ /dev/null
@@ -1,193 +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 good 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 good (an output 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. A design with a recipe is a made good
- // priced like a commodity; raw goods and designs with no recipe keep their authored price. 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.
- public static Dictionary Prices(CultCache catalog, out List unsettled)
- {
- 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 => !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/EconomyBalance.cs.meta b/Assets/Scripts/ServerShared/EconomyBalance.cs.meta
deleted file mode 100644
index 31f29eaf2..000000000
--- a/Assets/Scripts/ServerShared/EconomyBalance.cs.meta
+++ /dev/null
@@ -1,2 +0,0 @@
-fileFormatVersion: 2
-guid: 8f6fa275e57694a48b223fb633e42c1e
\ No newline at end of file
diff --git a/Assets/Scripts/ServerShared/EconomyChecks.cs b/Assets/Scripts/ServerShared/EconomyChecks.cs
index 78b2d391d..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", LFacility = "L-facility";
+ 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));
@@ -88,7 +85,7 @@ public static class EconomyChecks
: new RecipeData
{
Output = recipe.Output, OutputCount = recipe.OutputCount, Cycle = recipe.Cycle, Workforce = recipe.Workforce,
- StationKind = recipe.StationKind, Facility = recipe.Facility, LoreHook = recipe.LoreHook,
+ StationKind = recipe.StationKind, LoreHook = recipe.LoreHook,
Inputs = (recipe.Inputs ?? new List()).Where(c => c != null).ToList(),
Upkeep = (recipe.Upkeep ?? new List()).Where(c => c != null).ToList(),
Fills = (recipe.Fills ?? new List()).Where(f => f != null).ToList(),
@@ -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 good's Price (a commodity, or a design with a recipe) 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, $"'{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)
{
@@ -203,9 +131,6 @@ public static class EconomyChecks
else if (market.Rows.Contains(null)) Add(marketKey, "Rows holds a null entry.");
}
var kindsPlaced = new HashSet(catalog.GetAll().SelectMany(f => StationKinds.KindsOf(catalog, f)).Select(k => k.Key.Value), StringComparer.Ordinal);
- var kindsInOrder = catalog.GetAll().Select(kind => (Key: catalog.RefOf(kind).Key.Value, Kind: kind)).OrderBy(pair => pair.Key, StringComparer.Ordinal).ToList();
- var facilitiesListed = new HashSet(kindsInOrder.SelectMany(pair => pair.Kind.Facilities ?? new List>()).Select(f => f.Key.Value), StringComparer.Ordinal);
- void NoFacility(string record, string message) => faults.Add(new EconomyFault(LFacility, record, message));
foreach (var (key, stored) in StoredRecipes(catalog))
{
var recipe = Sound(stored);
@@ -233,16 +158,6 @@ public static class EconomyChecks
if (kind == null) Add(key, "StationKind names no station kind this catalog holds.");
else if (!kindsPlaced.Contains(recipe.StationKind.Key.Value))
faults.Add(new EconomyFault(LOneKindList, key, $"No faction places station kind '{kind.Name}', so nothing can run this recipe."));
- var facility = catalog.Get(recipe.Facility);
- if (!recipe.Facility.IsSet()) NoFacility(key, "Facility is unset; a recipe names the facility gear that runs it.");
- else if (facility == null) NoFacility(key, $"Facility '{recipe.Facility.Key.Value}' names no item this catalog holds.");
- else if (!StationKinds.IsRecipeFacility(facility)) NoFacility(key, $"Facility '{facility.Name}' is not a recipe facility (gear of hardpoint type Facility holding a FacilityData).");
- else
- {
- if (!facilitiesListed.Contains(recipe.Facility.Key.Value)) NoFacility(key, $"No station kind lists facility '{facility.Name}' in its Facilities, so no station is fitted to run this recipe.");
- if (kind != null && !(kind.Facilities ?? new List>()).Any(listed => listed.Key.Equals(recipe.Facility.Key)))
- NoFacility(key, $"Station kind '{kind.Name}' does not list facility '{facility.Name}' in its Facilities; the recipe's kind and facility must agree.");
- }
var roles = Recipes.RolesOf(output);
if (!Recipes.IsCommodity(output))
{
@@ -258,19 +173,6 @@ public static class EconomyChecks
if (Recipes.Fillers(catalog, role.Name).Length == 0) Add(key, $"Role '{role.Name}' has no commodity whose recipe fills it.");
}
}
- foreach (var (kindKey, kind) in kindsInOrder)
- for (var i = 0; i < (kind.Facilities?.Count ?? 0); i++)
- {
- var listed = kind.Facilities[i];
- var item = catalog.Get(listed);
- if (!listed.IsSet()) NoFacility(kindKey, $"Station kind '{kind.Name}' Facilities[{i}] is unset.");
- else if (item == null) NoFacility(kindKey, $"Station kind '{kind.Name}' Facilities[{i}] names no item this catalog holds.");
- else if (!StationKinds.IsRecipeFacility(item) && !(item is SiloData)) NoFacility(kindKey, $"Station kind '{kind.Name}' Facilities[{i}] '{item.Name}' is not a recipe facility or a silo.");
- }
- foreach (var gear in catalog.GetAll().Select(gear => (Key: catalog.RefOf(gear).Key.Value, Gear: gear)).OrderBy(pair => pair.Key, StringComparer.Ordinal))
- if (gear.Gear.Behaviors != null && gear.Gear.Behaviors.Any(behavior => behavior is FacilityData) && gear.Gear.HardpointType != HardpointType.Facility)
- NoFacility(gear.Key, $"'{gear.Gear.Name}' holds a FacilityData but is hardpoint type {gear.Gear.HardpointType}; a recipe facility mounts on a Facility row.");
- foreach (var line in StationKinds.FacilityRoomFaults(catalog)) NoFacility("station-facilities", line);
return faults;
}
@@ -294,8 +196,8 @@ public static class EconomyChecks
.Select(weapon => weapon.AmmoType.Key.Value), StringComparer.Ordinal);
// Every commodity has a source (a grounded chain, or a gate that sells it) and a sink (a recipe takes it or a role it fills, a role
- // some design (offered, or made by a recipe) names, a weapon some offered design carries draws it, a habitation module of any
- // design names it in its table, or a gate that buys it). A consumer good is judged as every good is: it has a sink only when a module table names it.
+ // some design (offered, or made by a recipe) names, a weapon some offered design carries draws it, or a gate that buys it). A consumer good's sink is judged once needs
+ // tables exist.
public static List SourceSink(CultCache catalog)
{
var faults = new List();
@@ -304,8 +206,6 @@ public static class EconomyChecks
var grounded = Depths(catalog, sells);
var recipes = AllRecipes(catalog).ToList();
var used = new HashSet(recipes.SelectMany(p => p.Recipe.Inputs.Concat(p.Recipe.Upkeep)).Select(c => c.Commodity.Key.Value), StringComparer.Ordinal);
- used.UnionWith(catalog.GetAll().Where(design => design.Behaviors != null).SelectMany(design => design.Behaviors.OfType())
- .SelectMany(habitation => habitation.Table).Where(row => row.Commodity.IsSet()).Select(row => row.Commodity.Key.Value));
var rolesNamed = DesignRoles(catalog);
rolesNamed.UnionWith(recipes.SelectMany(p => Recipes.RoleInputsOf(catalog, p.Recipe)).Select(r => r.Name));
foreach (var (key, recipe) in recipes)
@@ -315,6 +215,7 @@ public static class EconomyChecks
var outputKey = recipe.Output.Key.Value;
if (!grounded.TryGetValue(outputKey, out var depth) || depth == null)
faults.Add(new EconomyFault(LSource, key, $"'{output.Name}' has no source: no chain of recipes reaches raw goods and no gate sells it."));
+ if (Recipes.IsConsumerGood(catalog, recipe)) continue;
if (!used.Contains(outputKey) && !recipe.Fills.Any(rolesNamed.Contains) && !drawn.Contains(outputKey) && !buys.Contains(outputKey))
faults.Add(new EconomyFault(LSource, key, $"'{output.Name}' has no sink: no recipe takes it or a role it fills, no design names a role it fills, no weapon draws it, no gate buys it."));
}
@@ -371,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.
@@ -408,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;
@@ -418,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 e51f7aae8..b520db17d 100644
--- a/Assets/Scripts/ServerShared/Entity.cs
+++ b/Assets/Scripts/ServerShared/Entity.cs
@@ -22,10 +22,6 @@ public abstract class Entity
public Faction Faction;
// The mark of a zone's boss, written only by ZoneGenerator and restored from the pack. RunGoal reads it.
public bool IsBoss;
- // The standing haul order this ship carries for (aetheria-living-world:ruling:transit-depots-buy-for-onward-haul): its task is derived from
- // it at admission (HaulRun.TaskOf). Interim actor state (target r3, L-actors), deleted with EntityPack Key 24 when offices
- // issue haul acts (follow-up haul-run-to-offices).
- public CultRecordRef Haul;
public EquippableItem Hull;
public EquippedItem EquippedHull;
@@ -55,11 +51,6 @@ public abstract class Entity
public readonly ReactiveCollection Equipment = new ReactiveCollection();
public readonly ReactiveCollection CargoBays = new ReactiveCollection();
- // The one counter of what the entity's bays hold: it moves on every change to any bay's contents and on every bay seated or removed,
- // and never returns to a value it had. Not persisted. A holder that remembers the value it last read learns whether anything it could
- // hold changed since, without comparing the contents.
- public long CargoRevision { get; private set; }
- internal void CargoChanged() => CargoRevision++;
public readonly ReactiveCollection DockingBays = new ReactiveCollection();
public readonly ReactiveCollection VisibleEntities = new ReactiveCollection();
// The cache of IsHostileTo for each zone entity: written only by RefreshStance, refreshed each Update.
@@ -153,6 +144,8 @@ public abstract class Entity
public (List weapons, List items)[] WeaponGroups;
+ public List PopulationAssignments = new List();
+
// Cut 2 (docs/stats-and-power-cut.md): the sole owner of every resolved (item, stat) value for this entity.
// Constructed with the entity and reachable only from it -- nothing on the catalog side ever points back --
// so it is collected with the entity instead of surviving it for the life of the process (§0.3, §1.1).
@@ -225,6 +218,7 @@ public abstract class Entity
public float MaxTemp { get; private set; }
public float MinTemp { get; private set; }
public ItemManager ItemManager { get; }
+ public int AssignedPopulation => PopulationAssignments.Sum(pa => pa.AssignedPopulation);
public float Mass { get; private set; }
public float Visibility => VisibilitySources.Values.Sum(s => s.Strength);
@@ -557,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
@@ -743,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
@@ -1271,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));
@@ -1312,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) =>
@@ -1419,8 +1394,6 @@ public abstract class Entity
}
}
var cellCount = hullData.Shape.Coordinates.Length;
- // A hull conducts heat on every edge from construction; the player insulates an edge, a saved ship's edges overwrite this.
- foreach (var v in hullData.Shape.Coordinates) HullConductivity[v.x, v.y] = true;
foreach (var v in hullData.Shape.Coordinates)
{
Armor[v.x, v.y] = hullData.Armor;
@@ -1456,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)
{
@@ -1470,10 +1455,8 @@ public abstract class Entity
var emptyShape = new Shape(HullData.Shape.Width, HullData.Shape.Height);
foreach (var v in HullData.Shape.Coordinates)
{
- // Empty hardpoint cells count as free: general gear may use them until hardpoint gear claims them. A Facility row
- // is the exception: it is the hull's stated facility capacity (ruling station-facilities-on-typed-mounts), so a row
- // no facility fills stays empty rather than taking a docking bay or a heater.
- if (HullData.InteriorCells[v] && GearOccupancy[v.x, v.y] == null && !OnFacilityRow(v.x, v.y))
+ // Empty hardpoint cells count as free: general gear may use them until hardpoint gear claims them
+ if (HullData.InteriorCells[v] && GearOccupancy[v.x, v.y] == null)
emptyShape[v] = true;
}
@@ -1501,7 +1484,6 @@ public abstract class Entity
}
CargoBays.Remove(cargoBay);
- CargoChanged();
}
Equipment.Remove(item);
@@ -1557,21 +1539,20 @@ 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) || OnFacilityRow(itemCoord.x, itemCoord.y))
+ if (!hullData.InteriorCells[itemCoord] || !IsFree(itemCoord.x, itemCoord.y, moving))
return false;
}
}
else
{
- hardpoint = HardpointAt(itemData, hullData, hullCoord, item.Rotation, moving);
+ hardpoint = HardpointAt(itemData, hullData, hullCoord, moving);
if (hardpoint == null) return false;
+ item.Rotation = hardpoint.Rotation;
}
return true;
}
- private bool OnFacilityRow(int x, int y) => Hardpoints[x, y]?.Type == HardpointType.Facility;
-
// 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;
@@ -1579,12 +1560,10 @@ public abstract class Entity
// 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, EquippedItem moving)
{
- 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
@@ -1601,22 +1580,14 @@ public abstract class Entity
// 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)
+ 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 _, Equipment.FirstOrDefault(e => e.EquippableItem == item));
}
public bool TryFindSpace(EquippableItem item, out int2 hullCoord)
@@ -1689,31 +1660,29 @@ 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;
-
- // A bay is decided by its type before its hardpoint: a docking bay or cargo bay, a silo among them, is a bay whether it
- // sits free (Tool) or on a row (a silo on its Facility row); then Tool gear, then hardpoint gear.
+
EquippedItem equippedItem;
- if (itemData is CargoBayData)
+ if (itemData.HardpointType == HardpointType.Tool)
{
- if (itemData is DockingBayData)
+ if(itemData is CargoBayData)
{
- equippedItem = new EquippedDockingBay(ItemManager, item, hullCoord, this, $"{Name} Docking Bay {DockingBays.Count + 1}");
- DockingBays.Add((EquippedDockingBay) equippedItem);
+ if (itemData is DockingBayData)
+ {
+ equippedItem = new EquippedDockingBay(ItemManager, item, hullCoord, this, $"{Name} Docking Bay {DockingBays.Count + 1}");
+ DockingBays.Add((EquippedDockingBay) equippedItem);
+ }
+ else
+ {
+ equippedItem = new EquippedCargoBay(ItemManager, item, hullCoord, this, $"{Name} Cargo Bay {CargoBays.Count + 1}");
+ CargoBays.Add((EquippedCargoBay) equippedItem);
+ }
}
else
{
- equippedItem = new EquippedCargoBay(ItemManager, item, hullCoord, this, $"{Name} Cargo Bay {CargoBays.Count + 1}", hardpoint);
- CargoBays.Add((EquippedCargoBay) equippedItem);
- CargoChanged();
+ equippedItem = new EquippedItem(ItemManager, item, hullCoord, this, null);
+ Equipment.Add(equippedItem);
}
}
- else if (itemData.HardpointType == HardpointType.Tool)
- {
- equippedItem = new EquippedItem(ItemManager, item, hullCoord, this, null);
- Equipment.Add(equippedItem);
- }
else
{
equippedItem = new EquippedItem(ItemManager, item, hullCoord, this, hardpoint);
@@ -1768,7 +1737,7 @@ public abstract class Entity
return bay;
}
- public bool TryUndock(Ship ship, bool piloted = false)
+ public bool TryUndock(Ship ship)
{
var bay = DockingBays.FirstOrDefault(x => x.DockedShip == ship);
if (bay == null)
@@ -1782,7 +1751,7 @@ public abstract class Entity
bay.DockedShip = null;
ship.RemoveParent();
- Zone.Admit(ship, piloted);
+ Zone.Admit(ship, piloted: false);
return true;
}
@@ -2240,6 +2209,12 @@ public class EquippedItem : IStatContext
Behaviors = g.ToArray()
});
+ foreach (var behavior in Behaviors)
+ {
+ if(behavior is IPopulationAssignment populationAssignment)
+ entity.PopulationAssignments.Add(populationAssignment);
+ }
+
// Cut 5 (docs/stats-and-power-cut.md §1.3, Q5 "defaulted per behaviour kind"): seed the stored tier
// exactly once, the first time this unit is ever equipped. A unit the player has already assigned a
// tier to (or one seeded on an earlier equip) keeps it -- this never runs again for that unit.
@@ -2443,7 +2418,7 @@ public class EquippedCargoBay : EquippedItem
}
}
- public EquippedCargoBay(ItemManager itemManager, EquippableItem item, int2 position, Entity entity, string name, HardpointData hardpoint = null) : base(itemManager, item, position, entity, hardpoint)
+ public EquippedCargoBay(ItemManager itemManager, EquippableItem item, int2 position, Entity entity, string name) : base(itemManager, item, position, entity, null)
{
Data = ItemManager.GetData(EquippableItem) as CargoBayData;
Name = name;
@@ -2457,8 +2432,6 @@ public class EquippedCargoBay : EquippedItem
// Check whether the given item will fit when its origin is placed at the given coordinate
public bool ItemFits(ItemInstance item, int2 cargoCoord)
{
- // A silo holds bulk only: gear, consumables and crafted sales never land in it.
- if (Data is SiloData && !(item is ICommodityStack)) return false;
var itemData = ItemManager.GetData(item);
// Check every cell of the item's shape
foreach (var i in itemData.Shape.Coordinates)
@@ -2473,39 +2446,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) || item.Lot != cargoItem.Lot) 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)
@@ -2521,7 +2493,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)
@@ -2536,50 +2508,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)
@@ -2588,45 +2558,43 @@ public class EquippedCargoBay : EquippedItem
Occupancy[pos.x, pos.y] = item;
}
Cargo[item] = cargoCoord;
- Entity.CargoChanged();
-
+
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) && cargoCommodity.Lot == item.Lot)
{
- Entity.CargoChanged();
- 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)
{
@@ -2634,55 +2602,19 @@ public class EquippedCargoBay : EquippedItem
Occupancy[pos.x, pos.y] = item;
}
Cargo[item] = cargoCoord;
- Entity.CargoChanged();
-
+
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))
@@ -2690,48 +2622,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);
- Entity.CargoChanged();
- 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, Lot = item.Lot, Quantity = quantity, Rotation = item.Rotation};
}
- public void Remove(ItemInstance item)
+ public void Remove(CraftedItemInstance 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)
- {
- Entity.CargoChanged();
+ 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))
@@ -2740,15 +2684,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 46b0794d9..73656b87e 100644
--- a/Assets/Scripts/ServerShared/EntitySerializer.cs
+++ b/Assets/Scripts/ServerShared/EntitySerializer.cs
@@ -3,18 +3,11 @@ using System.Collections;
using System.Collections.Generic;
using System.Linq;
using GameCult.Caching;
-using GameCult.Caching.MessagePack;
using MessagePack;
using CultMath;
public static class EntitySerializer
{
- private static readonly MessagePackSerializerOptions Wire = CultDocumentMessagePackSerialization.OptionsFor(typeof(HullData).Assembly);
-
- // A value as the bytes a save would hold, read back: nothing of the copy is the original's. Pack alone shares the live
- // stack objects (a live stack's Quantity is seen through a pack), so a sighting or a save takes this copy instead.
- public static T Copy(T value) => MessagePackSerializer.Deserialize(MessagePackSerializer.Serialize(value, Wire), Wire);
-
public static EntityPack Pack(Entity entity)
{
EntityPack pack;
@@ -37,7 +30,6 @@ public static class EntitySerializer
pack.Settings = entity.Settings;
pack.Boss = entity.IsBoss;
- pack.Haul = entity.Haul;
pack.Hull = entity.Hull;
pack.Name = entity.Name;
@@ -62,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, Lot = commodity.Lot, Rotation = commodity.Rotation, Quantity = maxStack };
+ var rest = new SimpleCommodity { Data = commodity.Data, Lot = commodity.Lot, 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, Lot = rest.Lot, 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;
@@ -138,7 +130,6 @@ public static class EntitySerializer
{
entity.Name = pack.Name;
entity.IsBoss = pack.Boss;
- entity.Haul = pack.Haul;
entity.Faction = itemManager.ItemData.Get(pack.Faction);
entity.Children = pack.Children.Select(c =>
{
@@ -156,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])
@@ -167,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;
@@ -252,9 +240,8 @@ public abstract class EntityPack
[Key(14)] public EntitySettings Settings;
[Key(15)] public CultRecordRef Faction;
[Key(16)] public int[][] WeaponGroups;
- // Keys 17-20 belong to the subclasses; the base's next free key is 25 (Id is 23, Haul is 24, Boss is 21, the orbital pack's Kind is 22).
+ // Keys 17-20 belong to the subclasses; the base's next free key is 23 (Boss is 21, the orbital pack's Kind is 22).
[Key(21)] public bool Boss;
- [Key(24)] public CultRecordRef Haul;
private int _price;
@@ -286,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;
}
}
@@ -295,7 +285,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;
}
}
diff --git a/Assets/Scripts/ServerShared/Enums.cs b/Assets/Scripts/ServerShared/Enums.cs
index e42e956a5..0a6449dc1 100644
--- a/Assets/Scripts/ServerShared/Enums.cs
+++ b/Assets/Scripts/ServerShared/Enums.cs
@@ -49,10 +49,7 @@ public enum HardpointType
Energy,
Ballistic,
Launcher,
- ControlModule,
- // A station facility mount: only a station hull carries one (StationKinds.HullKindFault). Internal: no anchor, nothing on the
- // model. Filled only by a kind's Facilities; the random hardpoint fill never touches it. Appended: stored types keep their values.
- Facility
+ ControlModule
}
public enum WeaponType
diff --git a/Assets/Scripts/ServerShared/FireControl.cs b/Assets/Scripts/ServerShared/FireControl.cs
index 80ca9df2b..9102b16eb 100644
--- a/Assets/Scripts/ServerShared/FireControl.cs
+++ b/Assets/Scripts/ServerShared/FireControl.cs
@@ -1830,18 +1830,14 @@ public static class FireControl
// 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).
- // `only` restricts the rock to paying one ore (a rig working the rocks of the ore its pick named: Facility.Work), and `landing` is
- // the bays the units go to instead of all of the shooter's (the station's output bays); the player's mining passes neither.
// Draw order: the Bernoulli, then one draw per unit.
- public static void Extract(Zone zone, ChunkId chunk, float absorbed, Entity shooter, Random dice, CultRecordKey? only = null,
- IEnumerable landing = null)
+ 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 (only != null) ores = ores.Where(ore => ore.Commodity.Key.Equals(only.Value)).ToArray();
if (ores.Length == 0) return;
var size = belt.Data.Asteroids[chunk.Index].Size;
@@ -1854,7 +1850,7 @@ public static class FireControl
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;
+ var g = $"{chunk.Field.Value}:{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];
@@ -1868,19 +1864,21 @@ public static class FireControl
var at = zone.ChunkPose(chunk.Field, chunk.Index).xy;
var velocity = zone.ChunkVelocity(chunk);
+ var zoneIndex = zone.Galaxy?.Zones == null ? -1 : Array.IndexOf(zone.Galaxy.Zones, zone.GalaxyZone);
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 lot = counts[i] > 0 ? shooter.ItemManager.ExtractedLot(zoneIndex, chunk.Field, commodity) : 0;
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) };
+ var stack = new SimpleCommodity { Data = new CultRecordRef(key), Lot = lot, 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 landing ?? shooter.CargoBays) if (stored = bay.TryStore(stack)) break;
+ if (present) foreach (var bay in shooter.CargoBays) if (stored = bay.TryStore(stack)) break;
if (!stored)
{
adrift += stack.Quantity;
@@ -1890,7 +1888,7 @@ public static class FireControl
if (counts[i] > 0)
zone.CargoGained.OnNext(new CargoGain
{
- Taker = shooter, Design = new CultRecordRef(key), Stored = counts[i] - adrift, Adrift = adrift, Kind = GainKind.Mined
+ Taker = shooter, Design = new CultRecordRef(key), Lot = lot, Stored = counts[i] - adrift, Adrift = adrift, Kind = GainKind.Mined
});
}
}
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 600413c8b..797e77764 100644
--- a/Assets/Scripts/ServerShared/Galaxy.cs
+++ b/Assets/Scripts/ServerShared/Galaxy.cs
@@ -18,14 +18,6 @@ public class Galaxy
public Dictionary HomeZones = new Dictionary();
public Dictionary BossZones = new Dictionary();
public HashSet DiscoveredZones = new HashSet();
-
- // The zones the player has entered: what the player knows of a zone's contents (the sector map shows them for these
- // and for no other). Every zone has contents from the start of a run, so contents say nothing of a visit.
- // The run's progress sink, the one generation reports to. RunStart.Begin reports the run's last steps through it and
- // ends with "Done!", so the loading screen's last word comes after every zone exists. Null for a restored galaxy.
- public Action Progress { get; }
-
- public HashSet VisitedZones = new HashSet();
public SectorBackgroundSettings Background { get; }
public Faction[] Factions { get; }
@@ -34,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).
@@ -67,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;
@@ -92,23 +74,10 @@ public class Galaxy
{
Name = zone.Name,
Position = zone.Position,
- // The cache's record is the save: the Zone built from this pack must not be able to change it, so a Continue
- // after play in the same process reads the save as it was written.
- PackedContents = zone.Contents == null ? null : EntitySerializer.Copy(zone.Contents),
- LastSeen = zone.LastSeen
+ PackedContents = zone.Contents
};
}).ToArray();
foreach (var i in savedGame.DiscoveredZones) DiscoveredZones.Add(Zones[i]);
- // A save from before visits were recorded generated a zone only on entering it: its packs are its visits.
- if (savedGame.VisitedZones != null)
- foreach (var i in savedGame.VisitedZones) VisitedZones.Add(Zones[i]);
- else
- foreach (var zone in Zones.Where(zone => zone.PackedContents != null)) VisitedZones.Add(zone);
- // A save from before sightings froze every zone but the player's, so a visited zone it holds is exactly as the
- // player left it.
- for (var i = 0; i < Zones.Length; i++)
- if (i != savedGame.CurrentZone && Zones[i].LastSeen == null && savedZones[i].Contents != null && VisitedZones.Contains(Zones[i]))
- Zones[i].LastSeen = EntitySerializer.Copy(savedZones[i].Contents);
for (var i = 0; i < Zones.Length; i++)
{
Zones[i].AdjacentZones = savedZones[i].AdjacentZones.Select(azi => Zones[azi]).ToList();
@@ -128,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);
@@ -148,10 +112,9 @@ public class Galaxy
uint seed)
{
_cache = cache;
- InfluenceScale = 1;
+ IsPrelude = false;
Background = background;
Log = log;
- Progress = progressCallback;
var factions = cache.GetAll();
Seed = seed != 0 ? seed : throw new ArgumentOutOfRangeException(nameof(seed), "a generated galaxy takes its run's seed from GalaxyStage, never zero");
var random = new Random(Seed);
@@ -181,6 +144,8 @@ public class Galaxy
NamePlaces(ref random, progressCallback);
+ progressCallback?.Invoke("Done!");
+ if(progressCallback!=null) Thread.Sleep(500); // Inserting Delay to make it seem like it's doing more work lmao
}
// Each zone's index and the links as indices: the graph Provinces reads.
@@ -208,7 +173,7 @@ public class Galaxy
for (var place = 0; place < seeds.Length; place++)
{
var type = types != null && types.TryGetValue(seeds[place], out var saved) && _cache.Get(saved) != null ? saved : hand[place];
- var province = new GalaxyProvince {Seed = Zones[seeds[place]], Type = type, Region = region.Key, Zones = region.Where(zone => seedOf[zone] == seeds[place]).Select(zone => Zones[zone]).ToArray()};
+ var province = new GalaxyProvince {Seed = Zones[seeds[place]], Type = type, Zones = region.Where(zone => seedOf[zone] == seeds[place]).Select(zone => Zones[zone]).ToArray()};
foreach (var zone in province.Zones) zone.Province = province;
provinces.Add(province);
}
@@ -221,72 +186,69 @@ 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;
- Progress = progressCallback;
Seed = seed != 0 ? seed : throw new ArgumentOutOfRangeException(nameof(seed), "a generated galaxy takes its run's seed from GalaxyStage, never zero");
var random = new Random(Seed);
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);
@@ -340,11 +302,17 @@ 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
}
private GalaxyZone[] GenerateZones(int zoneCount, ref Random random, Action progressCallback = null)
@@ -481,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");
@@ -505,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
@@ -686,12 +638,7 @@ public class GalaxyZone
public Faction[] Factions;
public Faction Owner;
public Zone Contents;
- // A zone's construction input: RunStart.Materialize generates it or the save supplies it, and the Zone built from it
- // clears it. Nothing reads it in play.
public ZonePack PackedContents;
- // What the player saw of this zone when he last left it: a copy no later step touches, display-only (the sector map).
- // Written only by RegionClock.Enter and Galaxy's save constructor; read by RegionClock.Seen and RunSave.Capture.
- public ZonePack LastSeen;
public GalaxyProvince Province;
public bool NamedZone;
public List Locations = new List();
@@ -703,9 +650,6 @@ public class GalaxyProvince
{
public GalaxyZone Seed;
public CultRecordRef Type;
- // The region index Provinces.Regions gives this province's zones: derived by BuildProvinces on generation and on save, never
- // persisted. StationDeck deals a faction's stations per region.
- public int Region;
public GalaxyZone[] Zones;
}
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
index 838c28198..b6f4055c8 100644
--- a/Assets/Scripts/ServerShared/HaulFeed.cs
+++ b/Assets/Scripts/ServerShared/HaulFeed.cs
@@ -10,6 +10,7 @@ public struct CargoGain
{
public Entity Taker;
public CultRecordRef Design;
+ public int Lot;
public int Stored;
public int Adrift;
public GainKind Kind;
diff --git a/Assets/Scripts/ServerShared/HaulRun.cs b/Assets/Scripts/ServerShared/HaulRun.cs
deleted file mode 100644
index 1240fa62e..000000000
--- a/Assets/Scripts/ServerShared/HaulRun.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-using System.Collections.Generic;
-using System.Linq;
-using GameCult.Caching;
-
-// The interim haul (aetheria-living-world:ruling:transit-depots-buy-for-onward-haul, demo-zenith-ore-depot): which ship carries for which
-// standing order (Entity.Haul), where it flies (the leg, derived from its hold every update), and the one dock call that moves goods:
-// the hauler docks (ruling docking-is-enclosed-bays), the From station's silo loads it or the To station takes its cargo through
-// StationServices.TryStorePart, and it undocks piloted. No payment moves: both ends are in one comms cell and no station holds an account
-// (ruling comms-cells-are-zones). The ship's task, orders and cargo are the ship's own; nothing here is stored.
-public static class HaulRun
-{
- public static HaulOrderData OrderOf(ItemManager items, CultRecordKey order) =>
- order.IsSet() ? items.ItemData.Get(order) : null;
-
- // The task a ship carrying a haul order starts on, derived at every admission; null for a ship with no order or whose order is gone.
- public static HaulingTask TaskOf(Ship ship) =>
- ship.Haul.Key.IsSet() && OrderOf(ship.ItemManager, ship.Haul.Key) != null ? new HaulingTask { Order = ship.Haul.Key } : null;
-
- // The orbit to steer for: the To station's while the hold holds any good of the order, the From station's otherwise.
- public static CultRecordKey Leg(Ship ship, HaulOrderData order) =>
- Carried(ship, order).Any() ? order.To.Key : order.From.Key;
-
- public static OrbitalEntity Station(Zone zone, CultRecordKey orbit) =>
- zone.Entities.OfType().FirstOrDefault(station => station.OrbitData.Equals(orbit));
-
- // Whether a call at this station would move a unit: read-only, stored nowhere. At the From station the silo holds a good of the order the
- // hold has room for; at the To station the station wants a carried good and has room for a unit of it. Either needs a free docking bay.
- public static bool CanCall(Ship ship, OrbitalEntity station, HaulOrderData order)
- {
- if (station.DockingBays.All(bay => bay.DockedShip != null)) return false;
- var orbit = station.OrbitData;
- if (orbit.Equals(order.From.Key))
- return station.CargoBays.Where(bay => bay.Data is SiloData).SelectMany(bay => bay.Cargo.Keys).OfType()
- .Any(stack => Goods(order).Contains(((ItemInstance) stack).Data.Key) && ship.CargoBays.Any(bay => bay.TryFindSpace(stack.Split(1))));
- if (orbit.Equals(order.To.Key))
- return Carried(ship, order).Any(stack => StationWants.Landing(station, ((ItemInstance) stack).Data.Key).Any(landing => landing.Room > 0 && landing.Bays.Any(bay => bay.TryFindSpace(stack.Split(1)))));
- return false;
- }
-
- // Docks at the station, loads at the From station or delivers at the To station, and undocks piloted: a ship that cannot
- // move a unit does not dock. The pilot's Call verb is the only caller (PilotApplier).
- public static void Call(Ship ship, Entity station)
- {
- var order = OrderOf(ship.ItemManager, ship.Haul.Key);
- if (order == null || !(station is OrbitalEntity depot) || !CanCall(ship, depot, order) || depot.TryDock(ship) == null) return;
- if (depot.OrbitData.Equals(order.From.Key)) StationServices.Load(depot, Goods(order), ship);
- else
- foreach (var bay in ship.CargoBays.ToArray())
- foreach (var stack in bay.Cargo.Keys.OfType