diff --git a/.changeset/design-bills.md b/.changeset/design-bills.md new file mode 100644 index 000000000..9dfd9da45 --- /dev/null +++ b/.changeset/design-bills.md @@ -0,0 +1,5 @@ +--- +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 new file mode 100644 index 000000000..adab3b927 --- /dev/null +++ b/.changeset/ore-batch-rescale.md @@ -0,0 +1,5 @@ +--- +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 new file mode 100644 index 000000000..d947d2322 --- /dev/null +++ b/.changeset/recipe-facilities.md @@ -0,0 +1,5 @@ +--- +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 new file mode 100644 index 000000000..f73efa641 --- /dev/null +++ b/.changeset/release-pipeline.md @@ -0,0 +1,5 @@ +--- +default: patch +--- + +Releases are built and published by a pipeline. diff --git a/.changeset/shields.md b/.changeset/shields.md new file mode 100644 index 000000000..1bc06d016 --- /dev/null +++ b/.changeset/shields.md @@ -0,0 +1,5 @@ +--- +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 new file mode 100644 index 000000000..38d4ef0c0 --- /dev/null +++ b/.changeset/starting-purse.md @@ -0,0 +1,5 @@ +--- +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 new file mode 100644 index 000000000..260337812 --- /dev/null +++ b/.changeset/tactical-view.md @@ -0,0 +1,5 @@ +--- +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 new file mode 100644 index 000000000..d3025c59a --- /dev/null +++ b/.forgejo/workflows/release.yml @@ -0,0 +1,117 @@ +# 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 d530ed421..87c9db929 100644 --- a/.gitattributes +++ b/.gitattributes @@ -51,11 +51,12 @@ *.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 811814afa..8f15133d1 100644 --- a/.gitignore +++ b/.gitignore @@ -94,7 +94,7 @@ crashlytics-build.properties Packages/packages-lock.json GameData/run.cc GameData/player.cc -Vault/Aetheria/.obsidian/plugins/copilot/data.json +GameData/RemovedMods/ # Agent scratch, sandboxed toolchain caches, and throwaway checkouts. These had # grown to 47 untracked entries; the worktree must stay legible, so they never @@ -113,3 +113,4 @@ tests/_scratch_* # Stryker.NET mutation reports (regenerated per run) StrykerOutput/ +native/aetherlight/target/ diff --git a/.lfsconfig b/.lfsconfig new file mode 100644 index 000000000..d9ce439fc --- /dev/null +++ b/.lfsconfig @@ -0,0 +1,2 @@ +[lfs] + url = https://eureka.gamecult.org/forge/GameCult/Aetheria.git/info/lfs diff --git a/Aetheria.Shared/Aetheria.Shared.csproj b/Aetheria.Shared/Aetheria.Shared.csproj index a8a4c97bc..591e1f42c 100644 --- a/Aetheria.Shared/Aetheria.Shared.csproj +++ b/Aetheria.Shared/Aetheria.Shared.csproj @@ -26,6 +26,8 @@ + + diff --git a/Assets/Content/Prefabs/Mine.prefab b/Assets/Content/Prefabs/Mine.prefab index dbc1e0915..912986ee7 100644 --- a/Assets/Content/Prefabs/Mine.prefab +++ b/Assets/Content/Prefabs/Mine.prefab @@ -146,6 +146,5 @@ MonoBehaviour: ActiveEmission: 100 ArmedEmission: 1000 RotationSpeed: 1 - GridOffset: 0 HitEffect: {fileID: 1121192042590650, guid: e1b08032bec16ba4eb1ae23cbd572664, type: 3} HitEffectScale: 10 diff --git a/Assets/Content/Prefabs/Turrets/Turret.prefab b/Assets/Content/Prefabs/Turrets/Turret.prefab index 748ca8a29..2df968941 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: 3720744386649352057, guid: 504c7bfe0d50ff64a88b8eac2ceb46f8, type: 3} - - {fileID: 3720744386649352057, guid: b2bec4b400153d745b2915f1c43e5c96, type: 3} + - {fileID: 2100000, guid: 38f8ba6b169127249b6532be2b3926ee, type: 2} + - {fileID: 2100000, guid: 5e43f48908cce2949a41677ec48affe5, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 diff --git a/Assets/Editor/AetheriaBuild.cs b/Assets/Editor/AetheriaBuild.cs index 7d3c891d2..3cf434ee4 100644 --- a/Assets/Editor/AetheriaBuild.cs +++ b/Assets/Editor/AetheriaBuild.cs @@ -8,12 +8,12 @@ using UnityEditor.AddressableAssets.Settings; using UnityEditor.Build.Reporting; using Debug = UnityEngine.Debug; -// The one way to make a Win64 player directory. Owns what the directory contains: Aetheria.exe and its data, +// The one way to make a player directory, for Windows or Linux. Owns what the directory contains: the player and its data, // GameData/Aetheria.cc, GameData/Narrative/**, GameData/Mods/** and ModTools/AetherDb. Manual builds, smokes and // release cuts all call this and stage nothing themselves. // // Unity -batchmode -quit -projectPath -executeMethod AetheriaBuild.Build -// -aetheriaVersion -aetheriaOut -logFile +// -aetheriaVersion -aetheriaOut [-aetheriaTarget win64|linux64] -logFile // // AetherDb is published from tools/AetherDb, so the headless build's CULTLIB_ROOT / CULTMATH_ROOT (Directory.Build.props) // must be set for dotnet when the defaults do not hold the pinned revisions. @@ -22,6 +22,14 @@ public static class AetheriaBuild { private static readonly Regex SemVer = new Regex(@"^\d+\.\d+\.\d+([-+][0-9A-Za-z.-]+)?$"); + // A target: the player Unity builds, its executable, and the runtime AetherDb is published for. + private static (BuildTarget target, string player, string runtime, string aetherDb) Target(string name) => name switch + { + "win64" => (BuildTarget.StandaloneWindows64, "Aetheria.exe", "win-x64", "AetherDb.exe"), + "linux64" => (BuildTarget.StandaloneLinux64, "Aetheria.x86_64", "linux-x64", "AetherDb"), + _ => throw new InvalidOperationException($"-aetheriaTarget {name}: expected win64 or linux64"), + }; + public static void Build() { var step = "arguments"; @@ -30,6 +38,7 @@ public static class AetheriaBuild var version = Argument("-aetheriaVersion"); if (!SemVer.IsMatch(version)) throw new InvalidOperationException("-aetheriaVersion is not a semver"); var output = Path.GetFullPath(Argument("-aetheriaOut")); + var target = Target(Argument("-aetheriaTarget", "win64")); var repoRoot = Directory.GetParent(UnityEngine.Application.dataPath).FullName; step = "version"; @@ -46,8 +55,8 @@ public static class AetheriaBuild var report = BuildPipeline.BuildPlayer(new BuildPlayerOptions { scenes = scenes, - locationPathName = Path.Combine(output, "Aetheria.exe"), - target = BuildTarget.StandaloneWindows64, + locationPathName = Path.Combine(output, target.player), + target = target.target, options = BuildOptions.None, }); if (report.summary.result != BuildResult.Succeeded || report.summary.totalErrors != 0) @@ -57,7 +66,7 @@ public static class AetheriaBuild PlayerStaging.Stage(repoRoot, output); step = "aetherdb"; - Publish(repoRoot, Path.Combine(output, "ModTools")); + Publish(repoRoot, Path.Combine(output, "ModTools"), target.runtime, target.aetherDb); step = "burst"; var burst = Path.Combine(output, "Aetheria_BurstDebugInformation_DoNotShip"); @@ -74,11 +83,11 @@ public static class AetheriaBuild EditorApplication.Exit(0); } - private static void Publish(string repoRoot, string modTools) + private static void Publish(string repoRoot, string modTools, string runtime, string aetherDb) { var info = new ProcessStartInfo("dotnet") { - Arguments = $"publish tools/AetherDb -c Release -r win-x64 --self-contained -p:PublishSingleFile=true -o \"{modTools}\"", + Arguments = $"publish tools/AetherDb -c Release -r {runtime} --self-contained -p:PublishSingleFile=true -o \"{modTools}\"", WorkingDirectory = repoRoot, UseShellExecute = false, RedirectStandardOutput = true, @@ -92,15 +101,16 @@ public static class AetheriaBuild if (process.ExitCode != 0) throw new InvalidOperationException($"dotnet publish exited {process.ExitCode}:\n{text}\n{errors.Result}"); } - if (!File.Exists(Path.Combine(modTools, "AetherDb.exe"))) - throw new InvalidOperationException("dotnet publish produced no ModTools/AetherDb.exe"); + if (!File.Exists(Path.Combine(modTools, aetherDb))) + throw new InvalidOperationException($"dotnet publish produced no ModTools/{aetherDb}"); } - private static string Argument(string name) + private static string Argument(string name, string fallback = null) { var args = Environment.GetCommandLineArgs(); var at = Array.IndexOf(args, name); - if (at < 0 || at + 1 >= args.Length) throw new InvalidOperationException(name + " is required"); + if (at < 0 || at + 1 >= args.Length) + return fallback ?? throw new InvalidOperationException(name + " is required"); return args[at + 1]; } } diff --git a/Assets/Editor/PlayerStaging.cs b/Assets/Editor/PlayerStaging.cs index 4698130f6..6f48daaa0 100644 --- a/Assets/Editor/PlayerStaging.cs +++ b/Assets/Editor/PlayerStaging.cs @@ -2,9 +2,8 @@ using System; using System.IO; // What a player directory holds beside the executable's data: GameData/Aetheria.cc, GameData/Narrative/** and, when -// the repo has one, GameData/Mods/**. Nothing else under GameData ships (run.cc and player.cc are the player's own; -// SoundbanksInfo.json is read by no code). Unity-free so the headless suite can prove the rules; AetheriaBuild is the -// only caller. +// the repo has one, GameData/Mods/**. Nothing else under GameData ships (run.cc and player.cc are the player's own). +// Unity-free so the headless suite can prove the rules; AetheriaBuild is the only caller. internal static class PlayerStaging { public const string Catalog = "Aetheria.cc"; diff --git a/Assets/Fonts/Ubuntu/Montserrat-OFL-1.1.txt b/Assets/Fonts/Ubuntu/Montserrat-OFL-1.1.txt new file mode 100644 index 000000000..d2fcdf3eb --- /dev/null +++ b/Assets/Fonts/Ubuntu/Montserrat-OFL-1.1.txt @@ -0,0 +1,93 @@ +Copyright(c) 2014 by Julieta Ulanovsky + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://openfontlicense.org + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. \ No newline at end of file diff --git a/Assets/Resources/Geonames/Australia.csv.meta b/Assets/Fonts/Ubuntu/Montserrat-OFL-1.1.txt.meta similarity index 75% rename from Assets/Resources/Geonames/Australia.csv.meta rename to Assets/Fonts/Ubuntu/Montserrat-OFL-1.1.txt.meta index 33d8c7dbe..c2ea6a451 100644 --- a/Assets/Resources/Geonames/Australia.csv.meta +++ b/Assets/Fonts/Ubuntu/Montserrat-OFL-1.1.txt.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 8ba25d5d0ecee31408c7ce7460b4e015 +guid: dc84a6b2454445f9be69af26e86eb90c TextScriptImporter: externalObjects: {} userData: diff --git a/Assets/Fonts/Ubuntu/UFL-1.0.txt b/Assets/Fonts/Ubuntu/UFL-1.0.txt new file mode 100644 index 000000000..ae78a8f94 --- /dev/null +++ b/Assets/Fonts/Ubuntu/UFL-1.0.txt @@ -0,0 +1,96 @@ +------------------------------- +UBUNTU FONT LICENCE Version 1.0 +------------------------------- + +PREAMBLE +This licence allows the licensed fonts to be used, studied, modified and +redistributed freely. The fonts, including any derivative works, can be +bundled, embedded, and redistributed provided the terms of this licence +are met. The fonts and derivatives, however, cannot be released under +any other licence. The requirement for fonts to remain under this +licence does not require any document created using the fonts or their +derivatives to be published under this licence, as long as the primary +purpose of the document is not to be a vehicle for the distribution of +the fonts. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this licence and clearly marked as such. This may +include source files, build scripts and documentation. + +"Original Version" refers to the collection of Font Software components +as received under this licence. + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to +a new environment. + +"Copyright Holder(s)" refers to all individuals and companies who have a +copyright ownership of the Font Software. + +"Substantially Changed" refers to Modified Versions which can be easily +identified as dissimilar to the Font Software by users of the Font +Software comparing the Original Version with the Modified Version. + +To "Propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification and with or without charging +a redistribution fee), making available to the public, and in some +countries other activities as well. + +PERMISSION & CONDITIONS +This licence does not grant any rights under trademark law and all such +rights are reserved. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of the Font Software, to propagate the Font Software, subject to +the below conditions: + +1) Each copy of the Font Software must contain the above copyright +notice and this licence. These can be included either as stand-alone +text files, human-readable headers or in the appropriate machine- +readable metadata fields within text or binary files as long as those +fields can be easily viewed by the user. + +2) The font name complies with the following: +(a) The Original Version must retain its name, unmodified. +(b) Modified Versions which are Substantially Changed must be renamed to +avoid use of the name of the Original Version or similar names entirely. +(c) Modified Versions which are not Substantially Changed must be +renamed to both (i) retain the name of the Original Version and (ii) add +additional naming elements to distinguish the Modified Version from the +Original Version. The name of such Modified Versions must be the name of +the Original Version, with "derivative X" where X represents the name of +the new work, appended to that name. + +3) The name(s) of the Copyright Holder(s) and any contributor to the +Font Software shall not be used to promote, endorse or advertise any +Modified Version, except (i) as required by this licence, (ii) to +acknowledge the contribution(s) of the Copyright Holder(s) or (iii) with +their explicit written permission. + +4) The Font Software, modified or unmodified, in part or in whole, must +be distributed entirely under this licence, and must not be distributed +under any other licence. The requirement for fonts to remain under this +licence does not affect any document created using the Font Software, +except any version of the Font Software extracted from a document +created using the Font Software may only be distributed under this +licence. + +TERMINATION +This licence becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF +COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER +DEALINGS IN THE FONT SOFTWARE. diff --git a/Assets/Resources/Geonames/Congo.csv.meta b/Assets/Fonts/Ubuntu/UFL-1.0.txt.meta similarity index 75% rename from Assets/Resources/Geonames/Congo.csv.meta rename to Assets/Fonts/Ubuntu/UFL-1.0.txt.meta index 6147d0a96..33790c1ab 100644 --- a/Assets/Resources/Geonames/Congo.csv.meta +++ b/Assets/Fonts/Ubuntu/UFL-1.0.txt.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 1e43b383bf860524986a6947496776d0 +guid: 331370618a0a473fb6a6837985b38a35 TextScriptImporter: externalObjects: {} userData: diff --git a/Assets/Materials/Aluminium brushed.mat b/Assets/Materials/Aluminium brushed.mat index b8ade999f..a624f95e1 100644 --- a/Assets/Materials/Aluminium brushed.mat +++ b/Assets/Materials/Aluminium brushed.mat @@ -20,8 +20,7 @@ Material: serializedVersion: 3 m_TexEnvs: - _BumpMap: - m_Texture: {fileID: 4730978449518085612, guid: 06d6a565d43fba5409712ce9a10bfbef, - type: 3} + m_Texture: {fileID: 2800000, guid: c3ef09438e3e46d18a4c267810aeb285, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailAlbedoMap: @@ -45,23 +44,19 @@ Material: m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MainTex: - m_Texture: {fileID: 7556082237344091230, guid: 06d6a565d43fba5409712ce9a10bfbef, - type: 3} + m_Texture: {fileID: 2800000, guid: f70b6df0395b4752b4ec80cb7bfd8f42, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MetallicGlossMap: - m_Texture: {fileID: 6373266012617290493, guid: 06d6a565d43fba5409712ce9a10bfbef, - type: 3} + m_Texture: {fileID: 2800000, guid: 40f5e915d2734d43bc01f984772e9d29, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _OcclusionMap: - m_Texture: {fileID: 342959783478273704, guid: 06d6a565d43fba5409712ce9a10bfbef, - type: 3} + m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _ParallaxMap: - m_Texture: {fileID: -9132138291289375396, guid: 06d6a565d43fba5409712ce9a10bfbef, - type: 3} + m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} m_Floats: @@ -85,7 +80,7 @@ Material: - _UVSec: 0 - _ZWrite: 1 m_Colors: - - _Color: {r: 1, g: 1, b: 1, a: 1} + - _Color: {r: 0.951, g: 0.951, b: 0.951, 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/Brushes/Sector Tint.mat b/Assets/Materials/Brushes/Sector Tint.mat index 3e5e00f24..84e252ad3 100644 --- a/Assets/Materials/Brushes/Sector Tint.mat +++ b/Assets/Materials/Brushes/Sector Tint.mat @@ -8,7 +8,7 @@ Material: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_Name: Sector Tint - m_Shader: {fileID: 4800000, guid: 268da230635cfb34ab4ed6ad39503fa0, type: 3} + m_Shader: {fileID: 4800000, guid: 782740c1a3d7455ea75dc87fafdc8432, type: 3} m_ValidKeywords: [] m_InvalidKeywords: [] m_LightmapFlags: 4 @@ -59,8 +59,8 @@ Material: m_Ints: [] m_Floats: - _BumpScale: 1 - - _Cutoff: 1 - _Depth: 0.025 + - _EdgeBrightness: 0.12 - _DetailNormalMapScale: 1 - _DstBlend: 0 - _Frequency: 6.2832 @@ -72,7 +72,6 @@ Material: - _OcclusionStrength: 1 - _Parallax: 0.02 - _Phase: 0 - - _Power: 2 - _SinePower: 1.25 - _SmoothnessTextureChannel: 0 - _SpecularHighlights: 1 diff --git a/Assets/Materials/Car Paint Magenta.mat b/Assets/Materials/Car Paint Magenta.mat index dbe95bd62..bff25331a 100644 --- a/Assets/Materials/Car Paint Magenta.mat +++ b/Assets/Materials/Car Paint Magenta.mat @@ -26,8 +26,7 @@ Material: serializedVersion: 3 m_TexEnvs: - _BumpMap: - m_Texture: {fileID: 3068890721646206586, guid: a1d39ea984432bf44b4a0686afe2bf1a, - type: 3} + m_Texture: {fileID: 2800000, guid: 4ce3c2cc69304068b4a2ddc833b748b9, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _FadeTex: @@ -35,18 +34,15 @@ Material: m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MainTex: - m_Texture: {fileID: 5917659159057834157, guid: a1d39ea984432bf44b4a0686afe2bf1a, - type: 3} + m_Texture: {fileID: 2800000, guid: 73568a0c02bd4184bcb398c9e3dd7ab6, type: 3} m_Scale: {x: 2, y: 2} m_Offset: {x: 0, y: 0} - _MetallicGlossMap: - m_Texture: {fileID: -3552914696322007609, guid: a1d39ea984432bf44b4a0686afe2bf1a, - type: 3} + m_Texture: {fileID: 2800000, guid: d9cd336372c244e398532512e3f8f3be, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _OcclusionMap: - m_Texture: {fileID: -1242281561028671816, guid: a1d39ea984432bf44b4a0686afe2bf1a, - type: 3} + m_Texture: {fileID: 2800000, guid: 73e117729c3447e5aa0eb1a30fad7c75, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} m_Ints: [] @@ -59,6 +55,6 @@ Material: - _Metallic: 1 - _OcclusionStrength: 1 m_Colors: - - _Color: {r: 1, g: 1, b: 1, a: 1} + - _Color: {r: 0.5, g: 0, b: 0.228113, 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 8a7ffa46f..063e9367c 100644 --- a/Assets/Materials/Car Paint Red.mat +++ b/Assets/Materials/Car Paint Red.mat @@ -20,8 +20,7 @@ Material: serializedVersion: 3 m_TexEnvs: - _BumpMap: - m_Texture: {fileID: 3068890721646206586, guid: 504c7bfe0d50ff64a88b8eac2ceb46f8, - type: 3} + m_Texture: {fileID: 2800000, guid: 4ce3c2cc69304068b4a2ddc833b748b9, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailAlbedoMap: @@ -45,23 +44,19 @@ Material: m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MainTex: - m_Texture: {fileID: 5917659159057834157, guid: 504c7bfe0d50ff64a88b8eac2ceb46f8, - type: 3} + m_Texture: {fileID: 2800000, guid: 73568a0c02bd4184bcb398c9e3dd7ab6, type: 3} m_Scale: {x: 2, y: 2} m_Offset: {x: 0, y: 0} - _MetallicGlossMap: - m_Texture: {fileID: -3552914696322007609, guid: 504c7bfe0d50ff64a88b8eac2ceb46f8, - type: 3} + m_Texture: {fileID: 2800000, guid: d9cd336372c244e398532512e3f8f3be, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _OcclusionMap: - m_Texture: {fileID: -1242281561028671816, guid: 504c7bfe0d50ff64a88b8eac2ceb46f8, - type: 3} + m_Texture: {fileID: 2800000, guid: 73e117729c3447e5aa0eb1a30fad7c75, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _ParallaxMap: - m_Texture: {fileID: -1652887728991447519, guid: 504c7bfe0d50ff64a88b8eac2ceb46f8, - type: 3} + m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} m_Floats: @@ -85,7 +80,7 @@ Material: - _UVSec: 0 - _ZWrite: 1 m_Colors: - - _Color: {r: 1, g: 1, b: 1, a: 1} + - _Color: {r: 1, g: 0.15685, b: 0, 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 aab8a3663..cca6010f3 100644 --- a/Assets/Materials/Car Paint White Small.mat +++ b/Assets/Materials/Car Paint White Small.mat @@ -29,8 +29,7 @@ Material: serializedVersion: 3 m_TexEnvs: - _BumpMap: - m_Texture: {fileID: 3068890721646206586, guid: 1c858fec5b74c7c46b1712494192b6b5, - type: 3} + m_Texture: {fileID: 2800000, guid: 4ce3c2cc69304068b4a2ddc833b748b9, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailAlbedoMap: @@ -54,23 +53,19 @@ Material: m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MainTex: - m_Texture: {fileID: 5917659159057834157, guid: 1c858fec5b74c7c46b1712494192b6b5, - type: 3} + m_Texture: {fileID: 2800000, guid: 73568a0c02bd4184bcb398c9e3dd7ab6, type: 3} m_Scale: {x: 16, y: 16} m_Offset: {x: 0, y: 0} - _MetallicGlossMap: - m_Texture: {fileID: -3552914696322007609, guid: 1c858fec5b74c7c46b1712494192b6b5, - type: 3} + m_Texture: {fileID: 2800000, guid: d9cd336372c244e398532512e3f8f3be, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _OcclusionMap: - m_Texture: {fileID: -1242281561028671816, guid: 1c858fec5b74c7c46b1712494192b6b5, - type: 3} + m_Texture: {fileID: 2800000, guid: 73e117729c3447e5aa0eb1a30fad7c75, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _ParallaxMap: - m_Texture: {fileID: -1652887728991447519, guid: 1c858fec5b74c7c46b1712494192b6b5, - type: 3} + m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} m_Ints: [] @@ -95,7 +90,7 @@ Material: - _UVSec: 0 - _ZWrite: 1 m_Colors: - - _Color: {r: 1, g: 1, b: 1, a: 1} + - _Color: {r: 1, g: 0.891509, b: 0.946396, 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 ba32280af..ad0af17d2 100644 --- a/Assets/Materials/Car Paint White.mat +++ b/Assets/Materials/Car Paint White.mat @@ -26,8 +26,7 @@ Material: serializedVersion: 3 m_TexEnvs: - _BumpMap: - m_Texture: {fileID: 3068890721646206586, guid: b2bec4b400153d745b2915f1c43e5c96, - type: 3} + m_Texture: {fileID: 2800000, guid: 4ce3c2cc69304068b4a2ddc833b748b9, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _FadeTex: @@ -35,18 +34,15 @@ Material: m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MainTex: - m_Texture: {fileID: 5917659159057834157, guid: b2bec4b400153d745b2915f1c43e5c96, - type: 3} + m_Texture: {fileID: 2800000, guid: 73568a0c02bd4184bcb398c9e3dd7ab6, type: 3} m_Scale: {x: 2, y: 2} m_Offset: {x: 0, y: 0} - _MetallicGlossMap: - m_Texture: {fileID: -3552914696322007609, guid: b2bec4b400153d745b2915f1c43e5c96, - type: 3} + m_Texture: {fileID: 2800000, guid: d9cd336372c244e398532512e3f8f3be, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _OcclusionMap: - m_Texture: {fileID: -1242281561028671816, guid: b2bec4b400153d745b2915f1c43e5c96, - type: 3} + m_Texture: {fileID: 2800000, guid: 73e117729c3447e5aa0eb1a30fad7c75, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} m_Ints: [] @@ -59,6 +55,6 @@ Material: - _Metallic: 1 - _OcclusionStrength: 1 m_Colors: - - _Color: {r: 1, g: 1, b: 1, a: 1} + - _Color: {r: 1, g: 0.891509, b: 0.946396, 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 543d0d608..fb19e541a 100644 --- a/Assets/Materials/Cockpit.mat +++ b/Assets/Materials/Cockpit.mat @@ -26,8 +26,7 @@ Material: serializedVersion: 3 m_TexEnvs: - _BumpMap: - m_Texture: {fileID: -3419035557588562233, guid: 9fc901afb8a434e46b9405eaec2df5a4, - type: 3} + m_Texture: {fileID: 2800000, guid: 3a10044baac4438f9fc0930783eccdf7, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailAlbedoMap: @@ -51,23 +50,19 @@ Material: m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MainTex: - m_Texture: {fileID: -1863473678134789185, guid: 9fc901afb8a434e46b9405eaec2df5a4, - type: 3} + m_Texture: {fileID: 2800000, guid: 5a9cee903a2d48718aaf6b224126f279, type: 3} m_Scale: {x: 2, y: 2} m_Offset: {x: 0, y: 0} - _MetallicGlossMap: - m_Texture: {fileID: 6214616473909614744, guid: 9fc901afb8a434e46b9405eaec2df5a4, - type: 3} + m_Texture: {fileID: 2800000, guid: 8b24d7ea11c341408a146fa39f59b7b0, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _OcclusionMap: - m_Texture: {fileID: -3436886866959827803, guid: 9fc901afb8a434e46b9405eaec2df5a4, - type: 3} + m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _ParallaxMap: - m_Texture: {fileID: 7009887839391554354, guid: 9fc901afb8a434e46b9405eaec2df5a4, - type: 3} + m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} m_Ints: [] @@ -92,7 +87,7 @@ Material: - _UVSec: 0 - _ZWrite: 1 m_Colors: - - _Color: {r: 1, g: 1, b: 1, a: 1} + - _Color: {r: 0.85, g: 0.65, b: 0.30, 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/Fog Marching 1.mat b/Assets/Materials/Fog Marching 1.mat deleted file mode 100644 index 20290c785..000000000 --- a/Assets/Materials/Fog Marching 1.mat +++ /dev/null @@ -1,73 +0,0 @@ -%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: Fog Marching 1 - m_Shader: {fileID: 4800000, guid: 7a890b6ceccf53c44bfc54b18b5daa58, type: 3} - m_ShaderKeywords: - m_LightmapFlags: 4 - m_EnableInstancingVariants: 0 - m_DoubleSidedGI: 0 - m_CustomRenderQueue: -1 - stringTagMap: {} - disabledShaderPasses: [] - m_SavedProperties: - serializedVersion: 3 - m_TexEnvs: - - _Displacement: - m_Texture: {fileID: 8400000, guid: 06ec5ef8a5830fc44b1ac1a6e123add5, type: 2} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _MainTex: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _Patch: - m_Texture: {fileID: 8400000, guid: c618a6b20b3c7394590c59a9fa467e86, type: 2} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _Surface: - m_Texture: {fileID: 8400000, guid: 2fc21a9d3e9647948b56e384cd9378b3, type: 2} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _TintTexture: - m_Texture: {fileID: 8400000, guid: d196505464047f04a97f28689041209b, type: 2} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - m_Floats: - - _AlphaFloor: 0.01 - - _DepthBlend: 512 - - _DepthCeiling: 4096 - - _FlowSpeed: 2 - - _Gamma: 0.5 - - _GridCeilingBlend: -300 - - _GridCeilingDensity: 0.01 - - _GridCeilingFollow: 0 - - _GridCeilingOffset: 0 - - _GridFillDensity: 0.001 - - _GridFloorBlend: 100 - - _GridFloorDensity: 2 - - _GridFloorOffset: 20 - - _GridPatchBlend: 50 - - _GridPatchDensity: 2 - - _NoiseExponent: 2.25 - - _NoiseFrequency: 0.015 - - _NoiseSpeed: 0 - - _NoiseStrength: 500 - - _SafetyDistance: 20 - - _Scattering: 0 - - _ScatteringDensityExponent: 0.5 - - _ScatteringDistExponent: 0.5 - - _ScatteringMinDist: 500 - - _StepExponent: 2 - - _TintExponent: 0.1 - - _TurbulenceAmplitude: 100 - - _TurbulenceScale: 100 - m_Colors: - - _Tint: {r: 0.0627451, g: 0.0627451, b: 0.0627451, a: 1} - m_BuildTextureStacks: [] diff --git a/Assets/Materials/Fog Marching Main Menu.mat b/Assets/Materials/Fog Marching Main Menu.mat deleted file mode 100644 index b22522a2d..000000000 --- a/Assets/Materials/Fog Marching Main Menu.mat +++ /dev/null @@ -1,99 +0,0 @@ -%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: Fog Marching Main Menu - m_Shader: {fileID: 4800000, guid: 7a890b6ceccf53c44bfc54b18b5daa58, type: 3} - m_ShaderKeywords: - m_LightmapFlags: 4 - m_EnableInstancingVariants: 0 - m_DoubleSidedGI: 0 - m_CustomRenderQueue: -1 - stringTagMap: {} - disabledShaderPasses: [] - m_SavedProperties: - serializedVersion: 3 - m_TexEnvs: - - _Displacement: - m_Texture: {fileID: 8400000, guid: 06ec5ef8a5830fc44b1ac1a6e123add5, type: 2} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _MainTex: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _NebulaPatch: - m_Texture: {fileID: 8400000, guid: c618a6b20b3c7394590c59a9fa467e86, type: 2} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _NebulaPatchHeight: - m_Texture: {fileID: 8400000, guid: 06ec5ef8a5830fc44b1ac1a6e123add5, type: 2} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _NebulaSurfaceHeight: - m_Texture: {fileID: 8400000, guid: 2fc21a9d3e9647948b56e384cd9378b3, type: 2} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _NebulaTint: - m_Texture: {fileID: 8400000, guid: d196505464047f04a97f28689041209b, type: 2} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _Patch: - m_Texture: {fileID: 8400000, guid: c618a6b20b3c7394590c59a9fa467e86, type: 2} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _Surface: - m_Texture: {fileID: 8400000, guid: 2fc21a9d3e9647948b56e384cd9378b3, type: 2} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _TintTexture: - m_Texture: {fileID: 8400000, guid: d196505464047f04a97f28689041209b, type: 2} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - m_Floats: - - _AlphaFloor: 0 - - _DepthBlend: 512 - - _DepthCeiling: 1024 - - _Exposure: 100 - - _FlowAmplitude: 1 - - _FlowScale: 1 - - _FlowScroll: 1 - - _FlowSpeed: 5 - - _Gamma: 0.3 - - _GridCeilingBlend: -300 - - _GridCeilingDensity: 0.01 - - _GridCeilingFollow: 0 - - _GridCeilingOffset: 0 - - _GridFillDensity: 0.001 - - _GridFloorBlend: 50 - - _GridFloorDensity: 1 - - _GridFloorOffset: 100 - - _GridPatchBlend: 50 - - _GridPatchDensity: 1 - - _NebulaFillDensity: 0.00075 - - _NebulaFloorBlend: 50 - - _NebulaFloorDensity: 1 - - _NebulaFloorOffset: 80 - - _NebulaPatchBlend: 25 - - _NebulaPatchDensity: 0.1 - - _NoiseExponent: 2 - - _NoiseFrequency: 0.02 - - _NoiseSpeed: 0.00001 - - _NoiseStrength: 200 - - _SafetyDistance: 50 - - _Scattering: 0 - - _ScatteringDensityExponent: 8 - - _ScatteringDistExponent: 0.5 - - _ScatteringMinDist: 1 - - _StepExponent: 2 - - _TintExponent: 1.2 - - _TurbulenceAmplitude: 20 - - _TurbulenceScale: 30 - m_Colors: - - _Tint: {r: 0.09411765, g: 0.09411765, b: 0.09411765, a: 1} - m_BuildTextureStacks: [] diff --git a/Assets/Materials/Fog Marching Main Menu.mat.meta b/Assets/Materials/Fog Marching Main Menu.mat.meta deleted file mode 100644 index 6a5cdb35e..000000000 --- a/Assets/Materials/Fog Marching Main Menu.mat.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: e21702a5e6e98b7409d6913663ceab7e -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Materials/Fog Marching Test.mat b/Assets/Materials/Fog Marching Test.mat deleted file mode 100644 index 91b56761e..000000000 --- a/Assets/Materials/Fog Marching Test.mat +++ /dev/null @@ -1,65 +0,0 @@ -%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: Fog Marching Test - m_Shader: {fileID: 4800000, guid: 7a890b6ceccf53c44bfc54b18b5daa58, type: 3} - m_ShaderKeywords: - m_LightmapFlags: 4 - m_EnableInstancingVariants: 0 - m_DoubleSidedGI: 0 - m_CustomRenderQueue: -1 - stringTagMap: {} - disabledShaderPasses: [] - m_SavedProperties: - serializedVersion: 3 - m_TexEnvs: - - _Displacement: - m_Texture: {fileID: 8400000, guid: 06ec5ef8a5830fc44b1ac1a6e123add5, type: 2} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _MainTex: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _Patch: - m_Texture: {fileID: 8400000, guid: c618a6b20b3c7394590c59a9fa467e86, type: 2} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _Surface: - m_Texture: {fileID: 8400000, guid: 2fc21a9d3e9647948b56e384cd9378b3, type: 2} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _TintTexture: - m_Texture: {fileID: 8400000, guid: d196505464047f04a97f28689041209b, type: 2} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - m_Floats: - - _AlphaFloor: 0 - - _DepthBlend: 512 - - _DepthCeiling: 4096 - - _Gamma: 0.66 - - _GridCeilingBlend: -300 - - _GridCeilingDensity: 0.01 - - _GridCeilingFollow: 0 - - _GridCeilingOffset: 0 - - _GridFillDensity: 0.000025 - - _GridFloorBlend: 100 - - _GridFloorDensity: 4 - - _GridFloorOffset: 0 - - _GridPatchBlend: 5 - - _GridPatchDensity: 0.1 - - _NoiseFrequency: 0.01 - - _NoiseSpeed: 0.02 - - _NoiseStrength: 50 - - _SafetyDistance: 0 - - _StepExponent: 2 - - _TintExponent: 8 - m_Colors: - - _Tint: {r: 2.0078435, g: 2.0078435, b: 2.0078435, a: 1} - m_BuildTextureStacks: [] diff --git a/Assets/Materials/Fog Marching Test.mat.meta b/Assets/Materials/Fog Marching Test.mat.meta deleted file mode 100644 index 9f0e3d586..000000000 --- a/Assets/Materials/Fog Marching Test.mat.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: ad63650ae6d6cc542a5aad16694b3c46 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Materials/Fog Marching.mat b/Assets/Materials/Fog Marching.mat deleted file mode 100644 index 52dc13c19..000000000 --- a/Assets/Materials/Fog Marching.mat +++ /dev/null @@ -1,99 +0,0 @@ -%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: Fog Marching - m_Shader: {fileID: 4800000, guid: 7a890b6ceccf53c44bfc54b18b5daa58, type: 3} - m_ShaderKeywords: - m_LightmapFlags: 4 - m_EnableInstancingVariants: 0 - m_DoubleSidedGI: 0 - m_CustomRenderQueue: -1 - stringTagMap: {} - disabledShaderPasses: [] - m_SavedProperties: - serializedVersion: 3 - m_TexEnvs: - - _Displacement: - m_Texture: {fileID: 8400000, guid: 06ec5ef8a5830fc44b1ac1a6e123add5, type: 2} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _MainTex: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _NebulaPatch: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _NebulaPatchHeight: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _NebulaSurfaceHeight: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _NebulaTint: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _Patch: - m_Texture: {fileID: 8400000, guid: c618a6b20b3c7394590c59a9fa467e86, type: 2} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _Surface: - m_Texture: {fileID: 8400000, guid: 2fc21a9d3e9647948b56e384cd9378b3, type: 2} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _TintTexture: - m_Texture: {fileID: 8400000, guid: d196505464047f04a97f28689041209b, type: 2} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - m_Floats: - - _AlphaFloor: 0.01 - - _DepthBlend: 512 - - _DepthCeiling: 4096 - - _Exposure: 10 - - _FlowAmplitude: 512 - - _FlowScale: 1024 - - _FlowScroll: 0 - - _FlowSpeed: 1 - - _Gamma: 0.3 - - _GridCeilingBlend: -300 - - _GridCeilingDensity: 0.01 - - _GridCeilingFollow: 0 - - _GridCeilingOffset: 0 - - _GridFillDensity: 0.0005 - - _GridFloorBlend: 50 - - _GridFloorDensity: 1 - - _GridFloorOffset: 10 - - _GridPatchBlend: 150 - - _GridPatchDensity: 1 - - _NebulaFillDensity: 0.00075 - - _NebulaFloorBlend: 150 - - _NebulaFloorDensity: 1 - - _NebulaFloorOffset: 0 - - _NebulaPatchBlend: 51.47 - - _NebulaPatchDensity: 0.25 - - _NoiseExponent: 3 - - _NoiseFrequency: 0.005 - - _NoiseSpeed: 0 - - _NoiseStrength: -400 - - _SafetyDistance: 200 - - _Scattering: 50 - - _ScatteringDensityExponent: 1 - - _ScatteringDistExponent: 1.5 - - _ScatteringMinDist: 10 - - _StepExponent: 2 - - _TintExponent: 2 - - _TurbulenceAmplitude: 20 - - _TurbulenceScale: 60 - m_Colors: - - _Tint: {r: 0.01, g: 0.01, b: 0.01, a: 1} - m_BuildTextureStacks: [] diff --git a/Assets/Materials/Fog Marching.mat.meta b/Assets/Materials/Fog Marching.mat.meta deleted file mode 100644 index 04c6076f8..000000000 --- a/Assets/Materials/Fog Marching.mat.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 2ff39f5d101241043ba1dcde19d92f77 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Materials/Metal 003.mat b/Assets/Materials/Metal 003.mat index 4d07d4c1a..09330e338 100644 --- a/Assets/Materials/Metal 003.mat +++ b/Assets/Materials/Metal 003.mat @@ -20,8 +20,7 @@ Material: serializedVersion: 3 m_TexEnvs: - _BumpMap: - m_Texture: {fileID: -2508943184622041221, guid: 885e680924fc12c439a842a2142d4b78, - type: 3} + m_Texture: {fileID: 2800000, guid: 3a10044baac4438f9fc0930783eccdf7, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailAlbedoMap: @@ -41,23 +40,19 @@ Material: m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MainTex: - m_Texture: {fileID: -1236254257114565538, guid: 885e680924fc12c439a842a2142d4b78, - type: 3} + m_Texture: {fileID: 2800000, guid: 5a9cee903a2d48718aaf6b224126f279, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MetallicGlossMap: - m_Texture: {fileID: 4019402794555593307, guid: 885e680924fc12c439a842a2142d4b78, - type: 3} + m_Texture: {fileID: 2800000, guid: 8b24d7ea11c341408a146fa39f59b7b0, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _OcclusionMap: - m_Texture: {fileID: -1475328947160444094, guid: 885e680924fc12c439a842a2142d4b78, - type: 3} + m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _ParallaxMap: - m_Texture: {fileID: 7523010977671448217, guid: 885e680924fc12c439a842a2142d4b78, - type: 3} + m_Texture: {fileID: 0} 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 e1627f2d9..7d6d630e7 100644 --- a/Assets/Materials/Mine Glow.mat +++ b/Assets/Materials/Mine Glow.mat @@ -20,8 +20,7 @@ Material: serializedVersion: 3 m_TexEnvs: - _BumpMap: - m_Texture: {fileID: -812895718602229137, guid: b7e648471e9dfc44490bd41973711541, - type: 3} + m_Texture: {fileID: 2800000, guid: 8bc10cfce8a64defaf9f67d156003f09, type: 3} m_Scale: {x: 2, y: 2} m_Offset: {x: 0, y: 0} - _DetailAlbedoMap: @@ -41,13 +40,11 @@ Material: m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MainTex: - m_Texture: {fileID: -6057190860509678031, guid: 2b42584452fe0cc4fa4e8a115230b156, - type: 3} + m_Texture: {fileID: 2800000, guid: 2195885db9e846999fd10aa7f5c629b1, type: 3} m_Scale: {x: 2, y: 2} m_Offset: {x: 0, y: 0} - _MetallicGlossMap: - m_Texture: {fileID: -894214952450941493, guid: 2b42584452fe0cc4fa4e8a115230b156, - type: 3} + m_Texture: {fileID: 2800000, guid: d91bff887b764847a484d0a9bedce9e9, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _OcclusionMap: diff --git a/Assets/Models/Discobolus/Discobolus Bronze.mat b/Assets/Materials/Pickup Trim.mat similarity index 64% rename from Assets/Models/Discobolus/Discobolus Bronze.mat rename to Assets/Materials/Pickup Trim.mat index 30697d42a..0cea43f4f 100644 --- a/Assets/Models/Discobolus/Discobolus Bronze.mat +++ b/Assets/Materials/Pickup Trim.mat @@ -2,25 +2,34 @@ %TAG !u! tag:unity3d.com,2011: --- !u!21 &2100000 Material: - serializedVersion: 6 + serializedVersion: 8 m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_Name: Discobolus Bronze - m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} - m_ShaderKeywords: _METALLICGLOSSMAP _NORMALMAP + 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_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: 2800000, guid: 9863db663524d9a4eab030a666b1f2da, type: 3} + m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailAlbedoMap: @@ -37,35 +46,41 @@ 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: -1863473678134789185, guid: 9fc901afb8a434e46b9405eaec2df5a4, - type: 3} - m_Scale: {x: 1, y: 1} + m_Texture: {fileID: 0} + m_Scale: {x: 16, y: 16} m_Offset: {x: 0, y: 0} - _MetallicGlossMap: - m_Texture: {fileID: 6214616473909614744, guid: 9fc901afb8a434e46b9405eaec2df5a4, - type: 3} + m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _OcclusionMap: - m_Texture: {fileID: 2800000, guid: d60207b632e464d4b884dded41db5b9b, type: 3} + 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_Ints: [] m_Floats: - _BumpScale: 1 - _Cutoff: 0.5 - _DetailNormalMapScale: 1 - _DstBlend: 0 + - _Fade: 1 + - _FadeEdge: 0.1 + - _FadeSharpness: 16 - _GlossMapScale: 1 - - _Glossiness: 0.5 + - _Glossiness: 0.7 - _GlossyReflections: 1 - - _Metallic: 0 + - _Metallic: 0.6 - _Mode: 0 - _OcclusionStrength: 1 - _Parallax: 0.005 @@ -75,6 +90,8 @@ Material: - _UVSec: 0 - _ZWrite: 1 m_Colors: - - _Color: {r: 1, g: 1, b: 1, a: 1} + - _Color: {r: 0, g: 0.605881, 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: [] + m_AllowLocking: 1 diff --git a/Assets/Models/Discobolus/Discobolus Bronze.mat.meta b/Assets/Materials/Pickup Trim.mat.meta similarity index 79% rename from Assets/Models/Discobolus/Discobolus Bronze.mat.meta rename to Assets/Materials/Pickup Trim.mat.meta index 4ca3a3b46..d57d829c2 100644 --- a/Assets/Models/Discobolus/Discobolus Bronze.mat.meta +++ b/Assets/Materials/Pickup Trim.mat.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 45f1ac126982c314a8471da3d264210b +guid: bebc82079e5d4e578a73c3ab48d2c2da NativeFormatImporter: externalObjects: {} mainObjectFileID: 2100000 diff --git a/Assets/Materials/Radiators 1.mat b/Assets/Materials/Radiators 1.mat deleted file mode 100644 index a6219fe9d..000000000 --- a/Assets/Materials/Radiators 1.mat +++ /dev/null @@ -1,87 +0,0 @@ -%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/Materials/Radiators 1.mat.meta b/Assets/Materials/Radiators 1.mat.meta deleted file mode 100644 index c562a84de..000000000 --- a/Assets/Materials/Radiators 1.mat.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: f396635dc77c59c44ac85ae278a2e909 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Materials/Radiators.mat b/Assets/Materials/Radiators.mat index aa7eaf0fb..1e5c52a54 100644 --- a/Assets/Materials/Radiators.mat +++ b/Assets/Materials/Radiators.mat @@ -21,8 +21,7 @@ Material: serializedVersion: 3 m_TexEnvs: - _BumpMap: - m_Texture: {fileID: -812895718602229137, guid: b7e648471e9dfc44490bd41973711541, - type: 3} + m_Texture: {fileID: 2800000, guid: 8bc10cfce8a64defaf9f67d156003f09, type: 3} m_Scale: {x: 2, y: 2} m_Offset: {x: 0, y: 0} - _DetailAlbedoMap: @@ -46,13 +45,11 @@ Material: m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MainTex: - m_Texture: {fileID: -6057190860509678031, guid: 2b42584452fe0cc4fa4e8a115230b156, - type: 3} + m_Texture: {fileID: 2800000, guid: 2195885db9e846999fd10aa7f5c629b1, type: 3} m_Scale: {x: 2, y: 2} m_Offset: {x: 0, y: 0} - _MetallicGlossMap: - m_Texture: {fileID: -894214952450941493, guid: 2b42584452fe0cc4fa4e8a115230b156, - type: 3} + m_Texture: {fileID: 2800000, guid: d91bff887b764847a484d0a9bedce9e9, 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 e02d24f97..0bb79d6a1 100644 --- a/Assets/Materials/Silver.mat +++ b/Assets/Materials/Silver.mat @@ -26,8 +26,7 @@ Material: serializedVersion: 3 m_TexEnvs: - _BumpMap: - m_Texture: {fileID: 8947980237086559854, guid: 0be5fb1df83ac8e499a3f6a060041e49, - type: 3} + m_Texture: {fileID: 2800000, guid: c3ef09438e3e46d18a4c267810aeb285, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailAlbedoMap: @@ -51,23 +50,19 @@ Material: m_Scale: {x: 2, y: 2} m_Offset: {x: 0, y: 0} - _MainTex: - m_Texture: {fileID: -1383037052668628532, guid: 0be5fb1df83ac8e499a3f6a060041e49, - type: 3} + m_Texture: {fileID: 2800000, guid: f70b6df0395b4752b4ec80cb7bfd8f42, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MetallicGlossMap: - m_Texture: {fileID: 6429125567479694453, guid: 0be5fb1df83ac8e499a3f6a060041e49, - type: 3} + m_Texture: {fileID: 2800000, guid: 40f5e915d2734d43bc01f984772e9d29, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _OcclusionMap: - m_Texture: {fileID: -9097439929179392311, guid: 0be5fb1df83ac8e499a3f6a060041e49, - type: 3} + m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _ParallaxMap: - m_Texture: {fileID: 425190381137097012, guid: 0be5fb1df83ac8e499a3f6a060041e49, - type: 3} + m_Texture: {fileID: 0} 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 f863306a1..2aac54ac7 100644 --- a/Assets/Materials/Station Lights.mat +++ b/Assets/Materials/Station Lights.mat @@ -24,8 +24,7 @@ Material: serializedVersion: 3 m_TexEnvs: - _BumpMap: - m_Texture: {fileID: -812895718602229137, guid: b7e648471e9dfc44490bd41973711541, - type: 3} + m_Texture: {fileID: 2800000, guid: 8bc10cfce8a64defaf9f67d156003f09, type: 3} m_Scale: {x: 8, y: 8} m_Offset: {x: 0, y: 0} - _DetailAlbedoMap: @@ -49,13 +48,11 @@ Material: m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MainTex: - m_Texture: {fileID: -6057190860509678031, guid: 2b42584452fe0cc4fa4e8a115230b156, - type: 3} + m_Texture: {fileID: 2800000, guid: 2195885db9e846999fd10aa7f5c629b1, type: 3} m_Scale: {x: 16, y: 16} m_Offset: {x: 0, y: 0} - _MetallicGlossMap: - m_Texture: {fileID: -894214952450941493, guid: 2b42584452fe0cc4fa4e8a115230b156, - type: 3} + m_Texture: {fileID: 2800000, guid: d91bff887b764847a484d0a9bedce9e9, 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 deleted file mode 100644 index dba1bd074..000000000 --- a/Assets/Materials/Steel brushed.mat +++ /dev/null @@ -1,83 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!21 &2100000 -Material: - serializedVersion: 6 - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_Name: Steel brushed - m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} - m_ShaderKeywords: _MAINTEX _METALLICGLOSSMAP _NORMALMAP _OCCLUSIONMAP _PARALLAXMAP - m_LightmapFlags: 4 - m_EnableInstancingVariants: 0 - m_DoubleSidedGI: 0 - m_CustomRenderQueue: -1 - stringTagMap: {} - disabledShaderPasses: [] - m_SavedProperties: - serializedVersion: 3 - m_TexEnvs: - - _BumpMap: - m_Texture: {fileID: -4471413742775304797, guid: ea7457b9a4f0bcb43becaa33de541cbd, - type: 3} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _DetailAlbedoMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _DetailMask: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _DetailNormalMap: - m_Texture: {fileID: 0} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _EmissionMap: - m_Texture: {fileID: 0} - m_Scale: {x: 8, y: 8} - m_Offset: {x: 0, y: 0} - - _MainTex: - m_Texture: {fileID: -4638397344074346932, guid: ea7457b9a4f0bcb43becaa33de541cbd, - type: 3} - m_Scale: {x: 8, y: 8} - m_Offset: {x: 0, y: 0} - - _MetallicGlossMap: - m_Texture: {fileID: 5049811794194361025, guid: ea7457b9a4f0bcb43becaa33de541cbd, - type: 3} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _OcclusionMap: - m_Texture: {fileID: 1753668427856518731, guid: ea7457b9a4f0bcb43becaa33de541cbd, - type: 3} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - - _ParallaxMap: - m_Texture: {fileID: -3498708498072814504, guid: ea7457b9a4f0bcb43becaa33de541cbd, - type: 3} - m_Scale: {x: 1, y: 1} - m_Offset: {x: 0, y: 0} - m_Floats: - - _BumpScale: 1 - - _Cutoff: 0.5 - - _DetailNormalMapScale: 1 - - _DstBlend: 0 - - _GlossMapScale: 1 - - _Glossiness: 0.5 - - _GlossyReflections: 1 - - _Metallic: 0 - - _Mode: 0 - - _OcclusionStrength: 1 - - _Parallax: 0.02 - - _SmoothnessTextureChannel: 0 - - _SpecularHighlights: 1 - - _SrcBlend: 1 - - _UVSec: 0 - - _ZWrite: 1 - m_Colors: - - _Color: {r: 1, g: 1, b: 1, a: 1} - - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - m_BuildTextureStacks: [] diff --git a/Assets/Materials/Steel brushed.mat.meta b/Assets/Materials/Steel brushed.mat.meta deleted file mode 100644 index 73afa8139..000000000 --- a/Assets/Materials/Steel brushed.mat.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: df3e704fc59794a45b8e14a78d96cca3 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Materials/Steel parkerized.mat b/Assets/Materials/Steel parkerized.mat index b4194ab66..ba47afb87 100644 --- a/Assets/Materials/Steel parkerized.mat +++ b/Assets/Materials/Steel parkerized.mat @@ -29,8 +29,7 @@ Material: serializedVersion: 3 m_TexEnvs: - _BumpMap: - m_Texture: {fileID: 885599758852769373, guid: e7758cad28ae98f478940e55222419a6, - type: 3} + m_Texture: {fileID: 2800000, guid: dc71e34b4a1f4de7aa826d18b67b5852, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailAlbedoMap: @@ -54,23 +53,19 @@ Material: m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MainTex: - m_Texture: {fileID: -4474525002722929857, guid: e7758cad28ae98f478940e55222419a6, - type: 3} + m_Texture: {fileID: 2800000, guid: 1ed06708491744fe944217d19e450157, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MetallicGlossMap: - m_Texture: {fileID: -2334804936223627746, guid: e7758cad28ae98f478940e55222419a6, - type: 3} + m_Texture: {fileID: 2800000, guid: 31e7d642ff8a49a28390c82626c4b6b9, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _OcclusionMap: - m_Texture: {fileID: -8380876848358870972, guid: e7758cad28ae98f478940e55222419a6, - type: 3} + m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _ParallaxMap: - m_Texture: {fileID: 172713863077875830, guid: e7758cad28ae98f478940e55222419a6, - type: 3} + m_Texture: {fileID: 0} 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 37420bfd4..6eeb29385 100644 --- a/Assets/Materials/Steel.mat +++ b/Assets/Materials/Steel.mat @@ -26,8 +26,7 @@ Material: serializedVersion: 3 m_TexEnvs: - _BumpMap: - m_Texture: {fileID: -3888315358723833787, guid: cbc61995a46604441ab9de4f1c68e290, - type: 3} + m_Texture: {fileID: 2800000, guid: c3ef09438e3e46d18a4c267810aeb285, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _DetailAlbedoMap: @@ -51,23 +50,19 @@ Material: m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MainTex: - m_Texture: {fileID: 108215966750249586, guid: cbc61995a46604441ab9de4f1c68e290, - type: 3} + m_Texture: {fileID: 2800000, guid: f70b6df0395b4752b4ec80cb7bfd8f42, type: 3} m_Scale: {x: 4, y: 4} m_Offset: {x: 0, y: 0} - _MetallicGlossMap: - m_Texture: {fileID: 4793252353645218242, guid: cbc61995a46604441ab9de4f1c68e290, - type: 3} + m_Texture: {fileID: 2800000, guid: 40f5e915d2734d43bc01f984772e9d29, type: 3} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _OcclusionMap: - m_Texture: {fileID: -4384182597330533215, guid: cbc61995a46604441ab9de4f1c68e290, - type: 3} + m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _ParallaxMap: - m_Texture: {fileID: 4600200897981803784, guid: cbc61995a46604441ab9de4f1c68e290, - type: 3} + m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} m_Ints: [] diff --git a/Assets/Materials/Substance/Metal.meta b/Assets/Materials/Substance/Metal.meta deleted file mode 100644 index e8c0226e7..000000000 --- a/Assets/Materials/Substance/Metal.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 09aee558716a08d4c9806b9b4273a209 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Materials/Substance/Metal/Pickup Base.sbsar b/Assets/Materials/Substance/Metal/Pickup Base.sbsar deleted file mode 100644 index 963310406..000000000 --- a/Assets/Materials/Substance/Metal/Pickup Base.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 2966159bc..000000000 --- a/Assets/Materials/Substance/Metal/Pickup Base.sbsar.meta +++ /dev/null @@ -1,382 +0,0 @@ -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 deleted file mode 100644 index 963310406..000000000 --- a/Assets/Materials/Substance/Metal/Pickup Trim.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 302e453b5..000000000 --- a/Assets/Materials/Substance/Metal/Pickup Trim.sbsar.meta +++ /dev/null @@ -1,381 +0,0 @@ -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 deleted file mode 100644 index 5d6237210..000000000 --- a/Assets/Materials/Substance/Metal/galvanized_001.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 9815351c0..000000000 --- a/Assets/Materials/Substance/Metal/galvanized_001.sbsar.meta +++ /dev/null @@ -1,369 +0,0 @@ -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 deleted file mode 100644 index cb09572e5..000000000 --- a/Assets/Materials/Substance/Metal/iron_damaged.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index d7a4d07d7..000000000 --- a/Assets/Materials/Substance/Metal/iron_damaged.sbsar.meta +++ /dev/null @@ -1,293 +0,0 @@ -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 deleted file mode 100644 index d211f88ad..000000000 --- a/Assets/Materials/Substance/Metal/iron_rugged.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 4d3540662..000000000 --- a/Assets/Materials/Substance/Metal/iron_rugged.sbsar.meta +++ /dev/null @@ -1,293 +0,0 @@ -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 deleted file mode 100644 index 97dcc5ffe..000000000 --- a/Assets/Materials/Substance/Metal/metal_002.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 725363c0a..000000000 --- a/Assets/Materials/Substance/Metal/metal_002.sbsar.meta +++ /dev/null @@ -1,372 +0,0 @@ -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 deleted file mode 100644 index bbc118a2d..000000000 --- a/Assets/Materials/Substance/Metal/metal_003.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index f3ab67932..000000000 --- a/Assets/Materials/Substance/Metal/metal_003.sbsar.meta +++ /dev/null @@ -1,372 +0,0 @@ -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 deleted file mode 100644 index ac614998f..000000000 --- a/Assets/Materials/Substance/Metal/metal_006.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index f304dd2c0..000000000 --- a/Assets/Materials/Substance/Metal/metal_006.sbsar.meta +++ /dev/null @@ -1,369 +0,0 @@ -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 deleted file mode 100644 index 088b73bee..000000000 --- a/Assets/Materials/Substance/Metal/metal_aluminium.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 95addd8d7..000000000 --- a/Assets/Materials/Substance/Metal/metal_aluminium.sbsar.meta +++ /dev/null @@ -1,373 +0,0 @@ -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 deleted file mode 100644 index 7f2ec6e98..000000000 --- a/Assets/Materials/Substance/Metal/metal_aluminium_brushed.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index cafdf3d25..000000000 --- a/Assets/Materials/Substance/Metal/metal_aluminium_brushed.sbsar.meta +++ /dev/null @@ -1,373 +0,0 @@ -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 deleted file mode 100644 index 8db7e53b4..000000000 --- a/Assets/Materials/Substance/Metal/metal_brass.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index dad220291..000000000 --- a/Assets/Materials/Substance/Metal/metal_brass.sbsar.meta +++ /dev/null @@ -1,375 +0,0 @@ -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 deleted file mode 100644 index 963310406..000000000 --- a/Assets/Materials/Substance/Metal/metal_car_paint 1.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index d6786ba5e..000000000 --- a/Assets/Materials/Substance/Metal/metal_car_paint 1.sbsar.meta +++ /dev/null @@ -1,379 +0,0 @@ -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 deleted file mode 100644 index 963310406..000000000 --- a/Assets/Materials/Substance/Metal/metal_car_paint Magenta.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index c839a27b8..000000000 --- a/Assets/Materials/Substance/Metal/metal_car_paint Magenta.sbsar.meta +++ /dev/null @@ -1,381 +0,0 @@ -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 deleted file mode 100644 index 963310406..000000000 --- a/Assets/Materials/Substance/Metal/metal_car_paint red.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index ded098ca6..000000000 --- a/Assets/Materials/Substance/Metal/metal_car_paint red.sbsar.meta +++ /dev/null @@ -1,381 +0,0 @@ -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 deleted file mode 100644 index 963310406..000000000 --- a/Assets/Materials/Substance/Metal/metal_car_paint white.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 98f20f5ea..000000000 --- a/Assets/Materials/Substance/Metal/metal_car_paint white.sbsar.meta +++ /dev/null @@ -1,382 +0,0 @@ -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 deleted file mode 100644 index b9eaa9f10..000000000 --- a/Assets/Materials/Substance/Metal/metal_copper.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index d1afb9abd..000000000 --- a/Assets/Materials/Substance/Metal/metal_copper.sbsar.meta +++ /dev/null @@ -1,369 +0,0 @@ -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 deleted file mode 100644 index 24237719c..000000000 --- a/Assets/Materials/Substance/Metal/metal_corrugated_002.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 3de9c9e1e..000000000 --- a/Assets/Materials/Substance/Metal/metal_corrugated_002.sbsar.meta +++ /dev/null @@ -1,369 +0,0 @@ -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 deleted file mode 100644 index af4adc50c..000000000 --- a/Assets/Materials/Substance/Metal/metal_floor_002.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index c100570af..000000000 --- a/Assets/Materials/Substance/Metal/metal_floor_002.sbsar.meta +++ /dev/null @@ -1,369 +0,0 @@ -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 deleted file mode 100644 index f7136c15b..000000000 --- a/Assets/Materials/Substance/Metal/metal_floor_004.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 031cbe6c4..000000000 --- a/Assets/Materials/Substance/Metal/metal_floor_004.sbsar.meta +++ /dev/null @@ -1,369 +0,0 @@ -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 deleted file mode 100644 index 81ce60800..000000000 --- a/Assets/Materials/Substance/Metal/metal_floor_006.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 91f291c9d..000000000 --- a/Assets/Materials/Substance/Metal/metal_floor_006.sbsar.meta +++ /dev/null @@ -1,369 +0,0 @@ -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 deleted file mode 100644 index 5aa377680..000000000 --- a/Assets/Materials/Substance/Metal/metal_gold.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index c4e7f4644..000000000 --- a/Assets/Materials/Substance/Metal/metal_gold.sbsar.meta +++ /dev/null @@ -1,373 +0,0 @@ -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 deleted file mode 100644 index e7cf69c6b..000000000 --- a/Assets/Materials/Substance/Metal/metal_nickel.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 65531754c..000000000 --- a/Assets/Materials/Substance/Metal/metal_nickel.sbsar.meta +++ /dev/null @@ -1,369 +0,0 @@ -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 deleted file mode 100644 index d764cd35f..000000000 --- a/Assets/Materials/Substance/Metal/metal_painted_steel.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 467fa07bd..000000000 --- a/Assets/Materials/Substance/Metal/metal_painted_steel.sbsar.meta +++ /dev/null @@ -1,376 +0,0 @@ -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 deleted file mode 100644 index 2ee3b87ea..000000000 --- a/Assets/Materials/Substance/Metal/metal_panels_001.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index a423b3b51..000000000 --- a/Assets/Materials/Substance/Metal/metal_panels_001.sbsar.meta +++ /dev/null @@ -1,369 +0,0 @@ -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 deleted file mode 100644 index 2cf3cd0b5..000000000 --- a/Assets/Materials/Substance/Metal/metal_panels_002.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index fe8ecd2b6..000000000 --- a/Assets/Materials/Substance/Metal/metal_panels_002.sbsar.meta +++ /dev/null @@ -1,369 +0,0 @@ -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 deleted file mode 100644 index 3d06effb9..000000000 --- a/Assets/Materials/Substance/Metal/metal_plate_001.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 9a0327632..000000000 --- a/Assets/Materials/Substance/Metal/metal_plate_001.sbsar.meta +++ /dev/null @@ -1,369 +0,0 @@ -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 deleted file mode 100644 index dc0474e13..000000000 --- a/Assets/Materials/Substance/Metal/metal_plate_004.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index fd4373932..000000000 --- a/Assets/Materials/Substance/Metal/metal_plate_004.sbsar.meta +++ /dev/null @@ -1,369 +0,0 @@ -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 deleted file mode 100644 index c1e0a3922..000000000 --- a/Assets/Materials/Substance/Metal/metal_plate_011.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 55c1cd50c..000000000 --- a/Assets/Materials/Substance/Metal/metal_plate_011.sbsar.meta +++ /dev/null @@ -1,369 +0,0 @@ -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 deleted file mode 100644 index ffaec19de..000000000 --- a/Assets/Materials/Substance/Metal/metal_platinum.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index f39efaf0d..000000000 --- a/Assets/Materials/Substance/Metal/metal_platinum.sbsar.meta +++ /dev/null @@ -1,372 +0,0 @@ -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 deleted file mode 100644 index db99f183e..000000000 --- a/Assets/Materials/Substance/Metal/metal_roll_up.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 3d93351e8..000000000 --- a/Assets/Materials/Substance/Metal/metal_roll_up.sbsar.meta +++ /dev/null @@ -1,369 +0,0 @@ -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 deleted file mode 100644 index 08b0ac146..000000000 --- a/Assets/Materials/Substance/Metal/metal_silver.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 326559316..000000000 --- a/Assets/Materials/Substance/Metal/metal_silver.sbsar.meta +++ /dev/null @@ -1,369 +0,0 @@ -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 deleted file mode 100644 index 31ec34fd3..000000000 --- a/Assets/Materials/Substance/Metal/metal_steel.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 172d4668b..000000000 --- a/Assets/Materials/Substance/Metal/metal_steel.sbsar.meta +++ /dev/null @@ -1,375 +0,0 @@ -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 deleted file mode 100644 index 45c0b10b3..000000000 --- a/Assets/Materials/Substance/Metal/metal_steel_brushed.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index d08c0d290..000000000 --- a/Assets/Materials/Substance/Metal/metal_steel_brushed.sbsar.meta +++ /dev/null @@ -1,370 +0,0 @@ -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 deleted file mode 100644 index 6580295bb..000000000 --- a/Assets/Materials/Substance/Metal/metal_steel_bumped.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 1dd652796..000000000 --- a/Assets/Materials/Substance/Metal/metal_steel_bumped.sbsar.meta +++ /dev/null @@ -1,369 +0,0 @@ -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 deleted file mode 100644 index 92bee293c..000000000 --- a/Assets/Materials/Substance/Metal/metal_steel_parkerized.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index a7cabf9ff..000000000 --- a/Assets/Materials/Substance/Metal/metal_steel_parkerized.sbsar.meta +++ /dev/null @@ -1,369 +0,0 @@ -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 deleted file mode 100644 index ede9cde4d..000000000 --- a/Assets/Materials/Substance/Metal/metal_titanium.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index e4ece6915..000000000 --- a/Assets/Materials/Substance/Metal/metal_titanium.sbsar.meta +++ /dev/null @@ -1,369 +0,0 @@ -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 deleted file mode 100644 index 5a8b87d9c..000000000 --- a/Assets/Materials/Substance/Metal/metal_used.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 37fcc6a20..000000000 --- a/Assets/Materials/Substance/Metal/metal_used.sbsar.meta +++ /dev/null @@ -1,371 +0,0 @@ -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 deleted file mode 100644 index d96236940..000000000 --- a/Assets/Materials/Substance/Metal/metal_weapon.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 05d1fcf4b..000000000 --- a/Assets/Materials/Substance/Metal/metal_weapon.sbsar.meta +++ /dev/null @@ -1,373 +0,0 @@ -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 deleted file mode 100644 index 576f8c4a5..000000000 --- a/Assets/Materials/Substance/Metal/metal_woven.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 27d8bfafe..000000000 --- a/Assets/Materials/Substance/Metal/metal_woven.sbsar.meta +++ /dev/null @@ -1,369 +0,0 @@ -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 deleted file mode 100644 index 35980ce5c..000000000 --- a/Assets/Materials/Substance/Metal/snatched_metal.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 3da7ab6e7..000000000 --- a/Assets/Materials/Substance/Metal/snatched_metal.sbsar.meta +++ /dev/null @@ -1,311 +0,0 @@ -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 deleted file mode 100644 index 728270967..000000000 --- a/Assets/Materials/Substance/marble_002.sbsar +++ /dev/null @@ -1,3 +0,0 @@ -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 deleted file mode 100644 index 624e0d1a6..000000000 --- a/Assets/Materials/Substance/marble_002.sbsar.meta +++ /dev/null @@ -1,296 +0,0 @@ -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 deleted file mode 100644 index f9b21ae83..000000000 --- a/Assets/Materials/Thrusters.mat +++ /dev/null @@ -1,87 +0,0 @@ -%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 deleted file mode 100644 index 5fd79a1be..000000000 --- a/Assets/Materials/Thrusters.mat.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 616adaf59c64a444f8249cc7cf13c527 -NativeFormatImporter: - externalObjects: {} - mainObjectFileID: 0 - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Materials/UI/MapAsteroid.mat b/Assets/Materials/UI/MapAsteroid.mat new file mode 100644 index 000000000..a0dbbdb1f --- /dev/null +++ b/Assets/Materials/UI/MapAsteroid.mat @@ -0,0 +1,31 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: MapAsteroid + m_Shader: {fileID: 4800000, guid: 22e2fc798f044a3aa2f6cd71f1df09a7, type: 3} + m_ValidKeywords: [] + m_InvalidKeywords: [] + m_LightmapFlags: 0 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: 3000 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _MainTex: + m_Texture: {fileID: 2800000, guid: 060aefd5a3d5ced4dabd9190a140e76e, type: 3} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: [] + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + m_BuildTextureStacks: [] diff --git a/Assets/Materials/Fog Marching 1.mat.meta b/Assets/Materials/UI/MapAsteroid.mat.meta similarity index 79% rename from Assets/Materials/Fog Marching 1.mat.meta rename to Assets/Materials/UI/MapAsteroid.mat.meta index 00e039020..2c044e9e9 100644 --- a/Assets/Materials/Fog Marching 1.mat.meta +++ b/Assets/Materials/UI/MapAsteroid.mat.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: a72896cb7097bfa46a1a8f4092e47c72 +guid: c1012d5466454651b7279be93ef9af88 NativeFormatImporter: externalObjects: {} mainObjectFileID: 2100000 diff --git a/Assets/Models/Discobolus/Discobolus Marble.mat b/Assets/Models/Discobolus/Discobolus Marble.mat index 3c862a22c..f4331ed09 100644 --- a/Assets/Models/Discobolus/Discobolus Marble.mat +++ b/Assets/Models/Discobolus/Discobolus Marble.mat @@ -40,13 +40,11 @@ Material: m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MainTex: - m_Texture: {fileID: -5564000130503291907, guid: ef9a54b8dacea9f44be70da43472f701, - type: 3} + m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _MetallicGlossMap: - m_Texture: {fileID: -3258750942226492355, guid: ef9a54b8dacea9f44be70da43472f701, - type: 3} + m_Texture: {fileID: 0} m_Scale: {x: 1, y: 1} m_Offset: {x: 0, y: 0} - _OcclusionMap: @@ -63,7 +61,7 @@ Material: - _DetailNormalMapScale: 1 - _DstBlend: 0 - _GlossMapScale: 1 - - _Glossiness: 0.5 + - _Glossiness: 0.45 - _GlossyReflections: 1 - _Metallic: 0 - _Mode: 0 @@ -75,6 +73,6 @@ Material: - _UVSec: 0 - _ZWrite: 1 m_Colors: - - _Color: {r: 1, g: 1, b: 1, a: 1} + - _Color: {r: 0.7, g: 0.654348, b: 0.525, 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 2094752dc..6f719ce83 100644 --- a/Assets/Models/Zenith_Blender.fbx.meta +++ b/Assets/Models/Zenith_Blender.fbx.meta @@ -8,8 +8,7 @@ ModelImporter: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: Black - second: {fileID: 3720744386649352057, guid: 1c858fec5b74c7c46b1712494192b6b5, - type: 3} + second: {fileID: 2100000, guid: b9f65861b71050b4a84fe0007bedbba9, type: 2} - first: type: UnityEngine:Material assembly: UnityEngine.CoreModule @@ -19,8 +18,7 @@ ModelImporter: type: UnityEngine:Material assembly: UnityEngine.CoreModule name: White - second: {fileID: -741235592913766832, guid: 885e680924fc12c439a842a2142d4b78, - type: 3} + second: {fileID: 2100000, guid: 39af4e3978df92f40a55e2a114aa242a, type: 2} materials: materialImportMode: 1 materialName: 0 diff --git a/Assets/Plugins/GPU Noise/ClassicNoise2D.cginc b/Assets/Plugins/GPU Noise/ClassicNoise2D.cginc deleted file mode 100644 index ef6b2e96c..000000000 --- a/Assets/Plugins/GPU Noise/ClassicNoise2D.cginc +++ /dev/null @@ -1,129 +0,0 @@ -// -// Noise Shader Library for Unity - https://github.com/keijiro/NoiseShader -// -// Original work (webgl-noise) Copyright (C) 2011 Stefan Gustavson -// Translation and modification was made by Keijiro Takahashi. -// -// This shader is based on the webgl-noise GLSL shader. For further details -// of the original shader, please see the following description from the -// original source code. -// - -// -// GLSL textureless classic 2D noise "cnoise", -// with an RSL-style periodic variant "pnoise". -// Author: Stefan Gustavson (stefan.gustavson@liu.se) -// Version: 2011-08-22 -// -// Many thanks to Ian McEwan of Ashima Arts for the -// ideas for permutation and gradient selection. -// -// Copyright (c) 2011 Stefan Gustavson. All rights reserved. -// Distributed under the MIT license. See LICENSE file. -// https://github.com/ashima/webgl-noise -// - -float4 mod(float4 x, float4 y) -{ - return x - y * floor(x / y); -} - -float4 mod289(float4 x) -{ - return x - floor(x / 289.0) * 289.0; -} - -float4 permute(float4 x) -{ - return mod289(((x*34.0)+1.0)*x); -} - -float4 taylorInvSqrt(float4 r) -{ - return (float4)1.79284291400159 - r * 0.85373472095314; -} - -float2 fade(float2 t) { - return t*t*t*(t*(t*6.0-15.0)+10.0); -} - -// Classic Perlin noise -float cnoise(float2 P) -{ - float4 Pi = floor(P.xyxy) + float4(0.0, 0.0, 1.0, 1.0); - float4 Pf = frac (P.xyxy) - float4(0.0, 0.0, 1.0, 1.0); - Pi = mod289(Pi); // To avoid truncation effects in permutation - float4 ix = Pi.xzxz; - float4 iy = Pi.yyww; - float4 fx = Pf.xzxz; - float4 fy = Pf.yyww; - - float4 i = permute(permute(ix) + iy); - - float4 gx = frac(i / 41.0) * 2.0 - 1.0 ; - float4 gy = abs(gx) - 0.5 ; - float4 tx = floor(gx + 0.5); - gx = gx - tx; - - float2 g00 = float2(gx.x,gy.x); - float2 g10 = float2(gx.y,gy.y); - float2 g01 = float2(gx.z,gy.z); - float2 g11 = float2(gx.w,gy.w); - - float4 norm = taylorInvSqrt(float4(dot(g00, g00), dot(g01, g01), dot(g10, g10), dot(g11, g11))); - g00 *= norm.x; - g01 *= norm.y; - g10 *= norm.z; - g11 *= norm.w; - - float n00 = dot(g00, float2(fx.x, fy.x)); - float n10 = dot(g10, float2(fx.y, fy.y)); - float n01 = dot(g01, float2(fx.z, fy.z)); - float n11 = dot(g11, float2(fx.w, fy.w)); - - float2 fade_xy = fade(Pf.xy); - float2 n_x = lerp(float2(n00, n01), float2(n10, n11), fade_xy.x); - float n_xy = lerp(n_x.x, n_x.y, fade_xy.y); - return 2.3 * n_xy; -} - -// Classic Perlin noise, periodic variant -float pnoise(float2 P, float2 rep) -{ - float4 Pi = floor(P.xyxy) + float4(0.0, 0.0, 1.0, 1.0); - float4 Pf = frac (P.xyxy) - float4(0.0, 0.0, 1.0, 1.0); - Pi = mod(Pi, rep.xyxy); // To create noise with explicit period - Pi = mod289(Pi); // To avoid truncation effects in permutation - float4 ix = Pi.xzxz; - float4 iy = Pi.yyww; - float4 fx = Pf.xzxz; - float4 fy = Pf.yyww; - - float4 i = permute(permute(ix) + iy); - - float4 gx = frac(i / 41.0) * 2.0 - 1.0 ; - float4 gy = abs(gx) - 0.5 ; - float4 tx = floor(gx + 0.5); - gx = gx - tx; - - float2 g00 = float2(gx.x,gy.x); - float2 g10 = float2(gx.y,gy.y); - float2 g01 = float2(gx.z,gy.z); - float2 g11 = float2(gx.w,gy.w); - - float4 norm = taylorInvSqrt(float4(dot(g00, g00), dot(g01, g01), dot(g10, g10), dot(g11, g11))); - g00 *= norm.x; - g01 *= norm.y; - g10 *= norm.z; - g11 *= norm.w; - - float n00 = dot(g00, float2(fx.x, fy.x)); - float n10 = dot(g10, float2(fx.y, fy.y)); - float n01 = dot(g01, float2(fx.z, fy.z)); - float n11 = dot(g11, float2(fx.w, fy.w)); - - float2 fade_xy = fade(Pf.xy); - float2 n_x = lerp(float2(n00, n01), float2(n10, n11), fade_xy.x); - float n_xy = lerp(n_x.x, n_x.y, fade_xy.y); - return 2.3 * n_xy; -} diff --git a/Assets/Plugins/GPU Noise/ClassicNoise2D.cginc.meta b/Assets/Plugins/GPU Noise/ClassicNoise2D.cginc.meta deleted file mode 100644 index ff437e70a..000000000 --- a/Assets/Plugins/GPU Noise/ClassicNoise2D.cginc.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: e1b0b5fd6a4e44923b40d856017562e1 -ShaderImporter: - defaultTextures: [] - userData: diff --git a/Assets/Plugins/GPU Noise/ClassicNoise3D.cginc b/Assets/Plugins/GPU Noise/ClassicNoise3D.cginc deleted file mode 100644 index 738f6d12a..000000000 --- a/Assets/Plugins/GPU Noise/ClassicNoise3D.cginc +++ /dev/null @@ -1,194 +0,0 @@ -// -// Noise Shader Library for Unity - https://github.com/keijiro/NoiseShader -// -// Original work (webgl-noise) Copyright (C) 2011 Stefan Gustavson -// Translation and modification was made by Keijiro Takahashi. -// -// This shader is based on the webgl-noise GLSL shader. For further details -// of the original shader, please see the following description from the -// original source code. -// - -// -// GLSL textureless classic 3D noise "cnoise", -// with an RSL-style periodic variant "pnoise". -// Author: Stefan Gustavson (stefan.gustavson@liu.se) -// Version: 2011-10-11 -// -// Many thanks to Ian McEwan of Ashima Arts for the -// ideas for permutation and gradient selection. -// -// Copyright (c) 2011 Stefan Gustavson. All rights reserved. -// Distributed under the MIT license. See LICENSE file. -// https://github.com/ashima/webgl-noise -// - -float3 mod(float3 x, float3 y) -{ - return x - y * floor(x / y); -} - -float3 mod289(float3 x) -{ - return x - floor(x / 289.0) * 289.0; -} - -float4 mod289(float4 x) -{ - return x - floor(x / 289.0) * 289.0; -} - -float4 permute(float4 x) -{ - return mod289(((x*34.0)+1.0)*x); -} - -float4 taylorInvSqrt(float4 r) -{ - return (float4)1.79284291400159 - r * 0.85373472095314; -} - -float3 fade(float3 t) { - return t*t*t*(t*(t*6.0-15.0)+10.0); -} - -// Classic Perlin noise -float cnoise(float3 P) -{ - float3 Pi0 = floor(P); // Integer part for indexing - float3 Pi1 = Pi0 + (float3)1.0; // Integer part + 1 - Pi0 = mod289(Pi0); - Pi1 = mod289(Pi1); - float3 Pf0 = frac(P); // Fractional part for interpolation - float3 Pf1 = Pf0 - (float3)1.0; // Fractional part - 1.0 - float4 ix = float4(Pi0.x, Pi1.x, Pi0.x, Pi1.x); - float4 iy = float4(Pi0.y, Pi0.y, Pi1.y, Pi1.y); - float4 iz0 = (float4)Pi0.z; - float4 iz1 = (float4)Pi1.z; - - float4 ixy = permute(permute(ix) + iy); - float4 ixy0 = permute(ixy + iz0); - float4 ixy1 = permute(ixy + iz1); - - float4 gx0 = ixy0 / 7.0; - float4 gy0 = frac(floor(gx0) / 7.0) - 0.5; - gx0 = frac(gx0); - float4 gz0 = (float4)0.5 - abs(gx0) - abs(gy0); - float4 sz0 = step(gz0, (float4)0.0); - gx0 -= sz0 * (step((float4)0.0, gx0) - 0.5); - gy0 -= sz0 * (step((float4)0.0, gy0) - 0.5); - - float4 gx1 = ixy1 / 7.0; - float4 gy1 = frac(floor(gx1) / 7.0) - 0.5; - gx1 = frac(gx1); - float4 gz1 = (float4)0.5 - abs(gx1) - abs(gy1); - float4 sz1 = step(gz1, (float4)0.0); - gx1 -= sz1 * (step((float4)0.0, gx1) - 0.5); - gy1 -= sz1 * (step((float4)0.0, gy1) - 0.5); - - float3 g000 = float3(gx0.x,gy0.x,gz0.x); - float3 g100 = float3(gx0.y,gy0.y,gz0.y); - float3 g010 = float3(gx0.z,gy0.z,gz0.z); - float3 g110 = float3(gx0.w,gy0.w,gz0.w); - float3 g001 = float3(gx1.x,gy1.x,gz1.x); - float3 g101 = float3(gx1.y,gy1.y,gz1.y); - float3 g011 = float3(gx1.z,gy1.z,gz1.z); - float3 g111 = float3(gx1.w,gy1.w,gz1.w); - - float4 norm0 = taylorInvSqrt(float4(dot(g000, g000), dot(g010, g010), dot(g100, g100), dot(g110, g110))); - g000 *= norm0.x; - g010 *= norm0.y; - g100 *= norm0.z; - g110 *= norm0.w; - - float4 norm1 = taylorInvSqrt(float4(dot(g001, g001), dot(g011, g011), dot(g101, g101), dot(g111, g111))); - g001 *= norm1.x; - g011 *= norm1.y; - g101 *= norm1.z; - g111 *= norm1.w; - - float n000 = dot(g000, Pf0); - float n100 = dot(g100, float3(Pf1.x, Pf0.y, Pf0.z)); - float n010 = dot(g010, float3(Pf0.x, Pf1.y, Pf0.z)); - float n110 = dot(g110, float3(Pf1.x, Pf1.y, Pf0.z)); - float n001 = dot(g001, float3(Pf0.x, Pf0.y, Pf1.z)); - float n101 = dot(g101, float3(Pf1.x, Pf0.y, Pf1.z)); - float n011 = dot(g011, float3(Pf0.x, Pf1.y, Pf1.z)); - float n111 = dot(g111, Pf1); - - float3 fade_xyz = fade(Pf0); - float4 n_z = lerp(float4(n000, n100, n010, n110), float4(n001, n101, n011, n111), fade_xyz.z); - float2 n_yz = lerp(n_z.xy, n_z.zw, fade_xyz.y); - float n_xyz = lerp(n_yz.x, n_yz.y, fade_xyz.x); - return 2.2 * n_xyz; -} - -// Classic Perlin noise, periodic variant -float pnoise(float3 P, float3 rep) -{ - float3 Pi0 = mod(floor(P), rep); // Integer part, modulo period - float3 Pi1 = mod(Pi0 + (float3)1.0, rep); // Integer part + 1, mod period - Pi0 = mod289(Pi0); - Pi1 = mod289(Pi1); - float3 Pf0 = frac(P); // Fractional part for interpolation - float3 Pf1 = Pf0 - (float3)1.0; // Fractional part - 1.0 - float4 ix = float4(Pi0.x, Pi1.x, Pi0.x, Pi1.x); - float4 iy = float4(Pi0.y, Pi0.y, Pi1.y, Pi1.y); - float4 iz0 = (float4)Pi0.z; - float4 iz1 = (float4)Pi1.z; - - float4 ixy = permute(permute(ix) + iy); - float4 ixy0 = permute(ixy + iz0); - float4 ixy1 = permute(ixy + iz1); - - float4 gx0 = ixy0 / 7.0; - float4 gy0 = frac(floor(gx0) / 7.0) - 0.5; - gx0 = frac(gx0); - float4 gz0 = (float4)0.5 - abs(gx0) - abs(gy0); - float4 sz0 = step(gz0, (float4)0.0); - gx0 -= sz0 * (step((float4)0.0, gx0) - 0.5); - gy0 -= sz0 * (step((float4)0.0, gy0) - 0.5); - - float4 gx1 = ixy1 / 7.0; - float4 gy1 = frac(floor(gx1) / 7.0) - 0.5; - gx1 = frac(gx1); - float4 gz1 = (float4)0.5 - abs(gx1) - abs(gy1); - float4 sz1 = step(gz1, (float4)0.0); - gx1 -= sz1 * (step((float4)0.0, gx1) - 0.5); - gy1 -= sz1 * (step((float4)0.0, gy1) - 0.5); - - float3 g000 = float3(gx0.x,gy0.x,gz0.x); - float3 g100 = float3(gx0.y,gy0.y,gz0.y); - float3 g010 = float3(gx0.z,gy0.z,gz0.z); - float3 g110 = float3(gx0.w,gy0.w,gz0.w); - float3 g001 = float3(gx1.x,gy1.x,gz1.x); - float3 g101 = float3(gx1.y,gy1.y,gz1.y); - float3 g011 = float3(gx1.z,gy1.z,gz1.z); - float3 g111 = float3(gx1.w,gy1.w,gz1.w); - - float4 norm0 = taylorInvSqrt(float4(dot(g000, g000), dot(g010, g010), dot(g100, g100), dot(g110, g110))); - g000 *= norm0.x; - g010 *= norm0.y; - g100 *= norm0.z; - g110 *= norm0.w; - float4 norm1 = taylorInvSqrt(float4(dot(g001, g001), dot(g011, g011), dot(g101, g101), dot(g111, g111))); - g001 *= norm1.x; - g011 *= norm1.y; - g101 *= norm1.z; - g111 *= norm1.w; - - float n000 = dot(g000, Pf0); - float n100 = dot(g100, float3(Pf1.x, Pf0.y, Pf0.z)); - float n010 = dot(g010, float3(Pf0.x, Pf1.y, Pf0.z)); - float n110 = dot(g110, float3(Pf1.x, Pf1.y, Pf0.z)); - float n001 = dot(g001, float3(Pf0.x, Pf0.y, Pf1.z)); - float n101 = dot(g101, float3(Pf1.x, Pf0.y, Pf1.z)); - float n011 = dot(g011, float3(Pf0.x, Pf1.y, Pf1.z)); - float n111 = dot(g111, Pf1); - - float3 fade_xyz = fade(Pf0); - float4 n_z = lerp(float4(n000, n100, n010, n110), float4(n001, n101, n011, n111), fade_xyz.z); - float2 n_yz = lerp(n_z.xy, n_z.zw, fade_xyz.y); - float n_xyz = lerp(n_yz.x, n_yz.y, fade_xyz.x); - return 2.2 * n_xyz; -} diff --git a/Assets/Plugins/GPU Noise/ClassicNoise3D.cginc.meta b/Assets/Plugins/GPU Noise/ClassicNoise3D.cginc.meta deleted file mode 100644 index b4dd551ab..000000000 --- a/Assets/Plugins/GPU Noise/ClassicNoise3D.cginc.meta +++ /dev/null @@ -1,5 +0,0 @@ -fileFormatVersion: 2 -guid: 3ba1abd1cb44c47b68fbb577c6c4ba3e -ShaderImporter: - defaultTextures: [] - userData: diff --git a/Assets/Plugins/GPU Noise/SimplexNoise3D.cginc b/Assets/Plugins/GPU Noise/SimplexNoise3D.cginc deleted file mode 100644 index 0b7add240..000000000 --- a/Assets/Plugins/GPU Noise/SimplexNoise3D.cginc +++ /dev/null @@ -1,114 +0,0 @@ -// -// Noise Shader Library for Unity - https://github.com/keijiro/NoiseShader -// -// Original work (webgl-noise) Copyright (C) 2011 Ashima Arts. -// Translation and modification was made by Keijiro Takahashi. -// -// This shader is based on the webgl-noise GLSL shader. For further details -// of the original shader, please see the following description from the -// original source code. -// - -// -// Description : Array and textureless GLSL 2D/3D/4D simplex -// noise functions. -// Author : Ian McEwan, Ashima Arts. -// Maintainer : ijm -// Lastmod : 20110822 (ijm) -// License : Copyright (C) 2011 Ashima Arts. All rights reserved. -// Distributed under the MIT License. See LICENSE file. -// https://github.com/ashima/webgl-noise -// - -float3 mod289(float3 x) -{ - return x - floor(x / 289.0) * 289.0; -} - -float4 mod289(float4 x) -{ - return x - floor(x / 289.0) * 289.0; -} - -float4 permute(float4 x) -{ - return mod289((x * 34.0 + 1.0) * x); -} - -float4 taylorInvSqrt(float4 r) -{ - return 1.79284291400159 - r * 0.85373472095314; -} - -float snoise(float3 v) -{ - const float2 C = float2(1.0 / 6.0, 1.0 / 3.0); - - // First corner - float3 i = floor(v + dot(v, C.yyy)); - float3 x0 = v - i + dot(i, C.xxx); - - // Other corners - float3 g = step(x0.yzx, x0.xyz); - float3 l = 1.0 - g; - float3 i1 = min(g.xyz, l.zxy); - float3 i2 = max(g.xyz, l.zxy); - - // x1 = x0 - i1 + 1.0 * C.xxx; - // x2 = x0 - i2 + 2.0 * C.xxx; - // x3 = x0 - 1.0 + 3.0 * C.xxx; - float3 x1 = x0 - i1 + C.xxx; - float3 x2 = x0 - i2 + C.yyy; - float3 x3 = x0 - 0.5; - - // Permutations - i = mod289(i); // Avoid truncation effects in permutation - float4 p = - permute(permute(permute(i.z + float4(0.0, i1.z, i2.z, 1.0)) - + i.y + float4(0.0, i1.y, i2.y, 1.0)) - + i.x + float4(0.0, i1.x, i2.x, 1.0)); - - // Gradients: 7x7 points over a square, mapped onto an octahedron. - // The ring size 17*17 = 289 is close to a multiple of 49 (49*6 = 294) - float4 j = p - 49.0 * floor(p / 49.0); // mod(p,7*7) - - float4 x_ = floor(j / 7.0); - float4 y_ = floor(j - 7.0 * x_); // mod(j,N) - - float4 x = (x_ * 2.0 + 0.5) / 7.0 - 1.0; - float4 y = (y_ * 2.0 + 0.5) / 7.0 - 1.0; - - float4 h = 1.0 - abs(x) - abs(y); - - float4 b0 = float4(x.xy, y.xy); - float4 b1 = float4(x.zw, y.zw); - - //float4 s0 = float4(lessThan(b0, 0.0)) * 2.0 - 1.0; - //float4 s1 = float4(lessThan(b1, 0.0)) * 2.0 - 1.0; - float4 s0 = floor(b0) * 2.0 + 1.0; - float4 s1 = floor(b1) * 2.0 + 1.0; - float4 sh = -step(h, 0.0); - - float4 a0 = b0.xzyw + s0.xzyw * sh.xxyy; - float4 a1 = b1.xzyw + s1.xzyw * sh.zzww; - - float3 g0 = float3(a0.xy, h.x); - float3 g1 = float3(a0.zw, h.y); - float3 g2 = float3(a1.xy, h.z); - float3 g3 = float3(a1.zw, h.w); - - // Normalise gradients - float4 norm = taylorInvSqrt(float4(dot(g0, g0), dot(g1, g1), dot(g2, g2), dot(g3, g3))); - g0 *= norm.x; - g1 *= norm.y; - g2 *= norm.z; - g3 *= norm.w; - - // Mix final noise value - float4 m = max(0.6 - float4(dot(x0, x0), dot(x1, x1), dot(x2, x2), dot(x3, x3)), 0.0); - m = m * m; - m = m * m; - - float4 px = float4(dot(x0, g0), dot(x1, g1), dot(x2, g2), dot(x3, g3)); - return 42.0 * dot(m, px); -} diff --git a/Assets/Plugins/GPU Noise/SimplexNoiseGrad3D.cginc b/Assets/Plugins/GPU Noise/SimplexNoiseGrad3D.cginc deleted file mode 100644 index 4cfef835a..000000000 --- a/Assets/Plugins/GPU Noise/SimplexNoiseGrad3D.cginc +++ /dev/null @@ -1,118 +0,0 @@ -// -// Noise Shader Library for Unity - https://github.com/keijiro/NoiseShader -// -// Original work (webgl-noise) Copyright (C) 2011 Ashima Arts. -// Translation and modification was made by Keijiro Takahashi. -// -// This shader is based on the webgl-noise GLSL shader. For further details -// of the original shader, please see the following description from the -// original source code. -// - -// -// Description : Array and textureless GLSL 2D/3D/4D simplex -// noise functions. -// Author : Ian McEwan, Ashima Arts. -// Maintainer : ijm -// Lastmod : 20110822 (ijm) -// License : Copyright (C) 2011 Ashima Arts. All rights reserved. -// Distributed under the MIT License. See LICENSE file. -// https://github.com/ashima/webgl-noise -// - -float3 mod289(float3 x) -{ - return x - floor(x / 289.0) * 289.0; -} - -float4 mod289(float4 x) -{ - return x - floor(x / 289.0) * 289.0; -} - -float4 permute(float4 x) -{ - return mod289((x * 34.0 + 1.0) * x); -} - -float4 taylorInvSqrt(float4 r) -{ - return 1.79284291400159 - r * 0.85373472095314; -} - -float3 snoise_grad(float3 v) -{ - const float2 C = float2(1.0 / 6.0, 1.0 / 3.0); - - // First corner - float3 i = floor(v + dot(v, C.yyy)); - float3 x0 = v - i + dot(i, C.xxx); - - // Other corners - float3 g = step(x0.yzx, x0.xyz); - float3 l = 1.0 - g; - float3 i1 = min(g.xyz, l.zxy); - float3 i2 = max(g.xyz, l.zxy); - - // x1 = x0 - i1 + 1.0 * C.xxx; - // x2 = x0 - i2 + 2.0 * C.xxx; - // x3 = x0 - 1.0 + 3.0 * C.xxx; - float3 x1 = x0 - i1 + C.xxx; - float3 x2 = x0 - i2 + C.yyy; - float3 x3 = x0 - 0.5; - - // Permutations - i = mod289(i); // Avoid truncation effects in permutation - float4 p = - permute(permute(permute(i.z + float4(0.0, i1.z, i2.z, 1.0)) - + i.y + float4(0.0, i1.y, i2.y, 1.0)) - + i.x + float4(0.0, i1.x, i2.x, 1.0)); - - // Gradients: 7x7 points over a square, mapped onto an octahedron. - // The ring size 17*17 = 289 is close to a multiple of 49 (49*6 = 294) - float4 j = p - 49.0 * floor(p / 49.0); // mod(p,7*7) - - float4 x_ = floor(j / 7.0); - float4 y_ = floor(j - 7.0 * x_); // mod(j,N) - - float4 x = (x_ * 2.0 + 0.5) / 7.0 - 1.0; - float4 y = (y_ * 2.0 + 0.5) / 7.0 - 1.0; - - float4 h = 1.0 - abs(x) - abs(y); - - float4 b0 = float4(x.xy, y.xy); - float4 b1 = float4(x.zw, y.zw); - - //float4 s0 = float4(lessThan(b0, 0.0)) * 2.0 - 1.0; - //float4 s1 = float4(lessThan(b1, 0.0)) * 2.0 - 1.0; - float4 s0 = floor(b0) * 2.0 + 1.0; - float4 s1 = floor(b1) * 2.0 + 1.0; - float4 sh = -step(h, 0.0); - - float4 a0 = b0.xzyw + s0.xzyw * sh.xxyy; - float4 a1 = b1.xzyw + s1.xzyw * sh.zzww; - - float3 g0 = float3(a0.xy, h.x); - float3 g1 = float3(a0.zw, h.y); - float3 g2 = float3(a1.xy, h.z); - float3 g3 = float3(a1.zw, h.w); - - // Normalise gradients - float4 norm = taylorInvSqrt(float4(dot(g0, g0), dot(g1, g1), dot(g2, g2), dot(g3, g3))); - g0 *= norm.x; - g1 *= norm.y; - g2 *= norm.z; - g3 *= norm.w; - - // Compute gradient of noise function at P - float4 m = max(0.6 - float4(dot(x0, x0), dot(x1, x1), dot(x2, x2), dot(x3, x3)), 0.0); - float4 m2 = m * m; - float4 m3 = m2 * m; - float4 m4 = m2 * m2; - float3 grad = - -6.0 * m3.x * x0 * dot(x0, g0) + m4.x * g0 + - -6.0 * m3.y * x1 * dot(x1, g1) + m4.y * g1 + - -6.0 * m3.z * x2 * dot(x2, g2) + m4.z * g2 + - -6.0 * m3.w * x3 * dot(x3, g3) + m4.w * g3; - return 42.0 * grad; -} diff --git a/Assets/Prefabs/RPG/Pickups/Dodecahedron.prefab b/Assets/Prefabs/RPG/Pickups/Dodecahedron.prefab index 5d4f837d1..7be70840f 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: 3720744386649352057, guid: c00b5a4f1e4743a4ca59b8030251f900, type: 3} - - {fileID: 3720744386649352057, guid: 26a894e543f3ed44893b1620707ca62c, type: 3} + - {fileID: 2100000, guid: bebc82079e5d4e578a73c3ab48d2c2da, type: 2} + - {fileID: 2100000, guid: b9f65861b71050b4a84fe0007bedbba9, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 @@ -189,7 +189,6 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: RotationSpeed: 1 - GridOffset: 0 LabelFadeDuration: 0.5 LabelPersistDuration: 3 LabelDisplayAngle: 15 diff --git a/Assets/Prefabs/RPG/Pickups/Hexahedron.prefab b/Assets/Prefabs/RPG/Pickups/Hexahedron.prefab index 91f1c2ad3..4a8609c7c 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: 3720744386649352057, guid: c00b5a4f1e4743a4ca59b8030251f900, type: 3} - - {fileID: 3720744386649352057, guid: 26a894e543f3ed44893b1620707ca62c, type: 3} + - {fileID: 2100000, guid: bebc82079e5d4e578a73c3ab48d2c2da, type: 2} + - {fileID: 2100000, guid: b9f65861b71050b4a84fe0007bedbba9, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 @@ -162,7 +162,6 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: RotationSpeed: 1 - GridOffset: 0 LabelFadeDuration: 0.5 LabelPersistDuration: 3 LabelDisplayAngle: 15 diff --git a/Assets/Prefabs/RPG/Pickups/Icosahedron.prefab b/Assets/Prefabs/RPG/Pickups/Icosahedron.prefab index 95973ba56..b80967c41 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: 3720744386649352057, guid: c00b5a4f1e4743a4ca59b8030251f900, type: 3} - - {fileID: 3720744386649352057, guid: 26a894e543f3ed44893b1620707ca62c, type: 3} + - {fileID: 2100000, guid: bebc82079e5d4e578a73c3ab48d2c2da, type: 2} + - {fileID: 2100000, guid: b9f65861b71050b4a84fe0007bedbba9, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 @@ -162,7 +162,6 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: RotationSpeed: 1 - GridOffset: 0 LabelFadeDuration: 0.5 LabelPersistDuration: 3 LabelDisplayAngle: 15 diff --git a/Assets/Prefabs/RPG/Pickups/Octahedron.prefab b/Assets/Prefabs/RPG/Pickups/Octahedron.prefab index 5957a7295..9cabd7b79 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: 3720744386649352057, guid: c00b5a4f1e4743a4ca59b8030251f900, type: 3} - - {fileID: 3720744386649352057, guid: 26a894e543f3ed44893b1620707ca62c, type: 3} + - {fileID: 2100000, guid: bebc82079e5d4e578a73c3ab48d2c2da, type: 2} + - {fileID: 2100000, guid: b9f65861b71050b4a84fe0007bedbba9, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 @@ -162,7 +162,6 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: RotationSpeed: 1 - GridOffset: 0 LabelFadeDuration: 0.5 LabelPersistDuration: 3 LabelDisplayAngle: 15 diff --git a/Assets/Prefabs/RPG/Pickups/Tetrahedron.prefab b/Assets/Prefabs/RPG/Pickups/Tetrahedron.prefab index 8688b6a3b..20f8073a7 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: 3720744386649352057, guid: c00b5a4f1e4743a4ca59b8030251f900, type: 3} - - {fileID: 3720744386649352057, guid: 26a894e543f3ed44893b1620707ca62c, type: 3} + - {fileID: 2100000, guid: bebc82079e5d4e578a73c3ab48d2c2da, type: 2} + - {fileID: 2100000, guid: b9f65861b71050b4a84fe0007bedbba9, type: 2} m_StaticBatchInfo: firstSubMesh: 0 subMeshCount: 0 @@ -162,7 +162,6 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: RotationSpeed: 1 - GridOffset: 0 LabelFadeDuration: 0.5 LabelPersistDuration: 3 LabelDisplayAngle: 15 diff --git a/Assets/Prefabs/RPG/Wormhole 1.prefab b/Assets/Prefabs/RPG/Wormhole 1.prefab index e1ca93be7..eff50285a 100644 --- a/Assets/Prefabs/RPG/Wormhole 1.prefab +++ b/Assets/Prefabs/RPG/Wormhole 1.prefab @@ -28,6 +28,7 @@ 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} @@ -112,3 +113,443 @@ 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/Prefabs/RTS/Asteroid Belt.prefab b/Assets/Prefabs/RTS/Asteroid Belt.prefab deleted file mode 100644 index 38df4e9e3..000000000 --- a/Assets/Prefabs/RTS/Asteroid Belt.prefab +++ /dev/null @@ -1,111 +0,0 @@ -%YAML 1.1 -%TAG !u! tag:unity3d.com,2011: ---- !u!1 &992254348637625916 -GameObject: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - serializedVersion: 6 - m_Component: - - component: {fileID: 1779911639310264026} - - component: {fileID: 349597964696402918} - - component: {fileID: 2844878085845264008} - - component: {fileID: 917803079556930035} - - component: {fileID: 4397878771830533054} - m_Layer: 14 - m_Name: Asteroid Belt - m_TagString: Untagged - m_Icon: {fileID: 0} - m_NavMeshLayer: 0 - m_StaticEditorFlags: 0 - m_IsActive: 1 ---- !u!4 &1779911639310264026 -Transform: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 992254348637625916} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} - m_LocalScale: {x: 1, y: 1, z: 1} - m_Children: [] - m_Father: {fileID: 0} - m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!33 &349597964696402918 -MeshFilter: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 992254348637625916} - m_Mesh: {fileID: 0} ---- !u!23 &2844878085845264008 -MeshRenderer: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 992254348637625916} - 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: c018d99199afeca448c64b9022ac7270, type: 2} - m_StaticBatchInfo: - firstSubMesh: 0 - subMeshCount: 0 - m_StaticBatchRoot: {fileID: 0} - m_ProbeAnchor: {fileID: 0} - m_LightProbeVolumeOverride: {fileID: 0} - m_ScaleInLightmap: 1 - m_ReceiveGI: 1 - m_PreserveUVs: 0 - m_IgnoreNormalsForChartDetection: 0 - m_ImportantGI: 0 - m_StitchLightmapSeams: 0 - m_SelectedEditorRenderState: 3 - m_MinimumChartSize: 4 - m_AutoUVMaxDistance: 0.5 - m_AutoUVMaxAngle: 89 - m_LightmapParameters: {fileID: 0} - m_SortingLayerID: 0 - m_SortingLayer: 0 - m_SortingOrder: 0 - m_AdditionalVertexStreams: {fileID: 0} ---- !u!64 &917803079556930035 -MeshCollider: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 992254348637625916} - m_Material: {fileID: 0} - m_IsTrigger: 0 - m_Enabled: 1 - serializedVersion: 4 - m_Convex: 0 - m_CookingOptions: 30 - m_Mesh: {fileID: 0} ---- !u!114 &4397878771830533054 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 992254348637625916} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 52538a3309c36fc4583c964a1c0b705f, type: 3} - m_Name: - m_EditorClassIdentifier: diff --git a/Assets/Resources/Aetheria.inputactions b/Assets/Resources/Aetheria.inputactions index fe1ef6086..8201c8471 100644 --- a/Assets/Resources/Aetheria.inputactions +++ b/Assets/Resources/Aetheria.inputactions @@ -36,6 +36,36 @@ "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", @@ -353,6 +383,50 @@ "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/Geonames.meta b/Assets/Resources/Geonames.meta deleted file mode 100644 index 64c8c9a19..000000000 --- a/Assets/Resources/Geonames.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 0f3e518a4c9bcc2469abe6cebdcb3691 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Resources/Geonames/Australia.csv b/Assets/Resources/Geonames/Australia.csv deleted file mode 100644 index 05587efaa..000000000 --- a/Assets/Resources/Geonames/Australia.csv +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:01bb478f4433dc42d5533e5030ef103ad163deca6bc40fb412025acd12e35c73 -size 442795 diff --git a/Assets/Resources/Geonames/Congo.csv b/Assets/Resources/Geonames/Congo.csv deleted file mode 100644 index 5d0f0b66e..000000000 --- a/Assets/Resources/Geonames/Congo.csv +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c84ff44083e4f0d9d9314e7b7095ed4ce2955905f26e7926faa09ed222655729 -size 506722 diff --git a/Assets/Resources/Geonames/Germany.csv b/Assets/Resources/Geonames/Germany.csv deleted file mode 100644 index beb35d1d0..000000000 --- a/Assets/Resources/Geonames/Germany.csv +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:73e4e7231d448879d0a6d8524b3200be75fc8f5011a70cfd670b0897d07eca10 -size 1284208 diff --git a/Assets/Resources/Geonames/India.csv b/Assets/Resources/Geonames/India.csv deleted file mode 100644 index 6b4eab5c6..000000000 --- a/Assets/Resources/Geonames/India.csv +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:96c66414822c43a5451ce1910c1e545dedb224b0f3e79bc54f945dd484afc6a2 -size 3229324 diff --git a/Assets/Resources/Geonames/India.csv.meta b/Assets/Resources/Geonames/India.csv.meta deleted file mode 100644 index 3f8c176b4..000000000 --- a/Assets/Resources/Geonames/India.csv.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: ca62f6d649360184aaa975c2716dfb27 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Resources/Geonames/Iran.csv b/Assets/Resources/Geonames/Iran.csv deleted file mode 100644 index 8d2754642..000000000 --- a/Assets/Resources/Geonames/Iran.csv +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b70fbbe6b4832eb1a3f35844bd87c0eb479fc77b6e59d6600b64cbbe7cc1bf16 -size 1073119 diff --git a/Assets/Resources/Geonames/Iran.csv.meta b/Assets/Resources/Geonames/Iran.csv.meta deleted file mode 100644 index 507664280..000000000 --- a/Assets/Resources/Geonames/Iran.csv.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: e2d60c7158f6a01418d78e46c5845729 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Resources/Geonames/Japan.csv b/Assets/Resources/Geonames/Japan.csv deleted file mode 100644 index d106ec364..000000000 --- a/Assets/Resources/Geonames/Japan.csv +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d58dc0227cc6e3b7622726c155031467b6d7314623c7e3a33aad8ce1462b2c5b -size 1031132 diff --git a/Assets/Resources/Geonames/Japan.csv.meta b/Assets/Resources/Geonames/Japan.csv.meta deleted file mode 100644 index f46c1022d..000000000 --- a/Assets/Resources/Geonames/Japan.csv.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 5dd450a6f5ec92d49871674b33509135 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Resources/Geonames/Mexico.csv b/Assets/Resources/Geonames/Mexico.csv deleted file mode 100644 index 517228e8f..000000000 --- a/Assets/Resources/Geonames/Mexico.csv +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9a654b8451a08a0c769712f4fb1d96c3c661457a88bb57ec4288eab36eab7ec1 -size 633432 diff --git a/Assets/Resources/Geonames/Mexico.csv.meta b/Assets/Resources/Geonames/Mexico.csv.meta deleted file mode 100644 index 2b0283e78..000000000 --- a/Assets/Resources/Geonames/Mexico.csv.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: b75e17ea31f6a62488628bf9605bd48c -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Resources/Geonames/Russia.csv b/Assets/Resources/Geonames/Russia.csv deleted file mode 100644 index 6344ff571..000000000 --- a/Assets/Resources/Geonames/Russia.csv +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f4ed581eef681e5357a14efe4e6a1fc52370def7ada6565f4b953e410fa7f39e -size 2375319 diff --git a/Assets/Resources/Geonames/Russia.csv.meta b/Assets/Resources/Geonames/Russia.csv.meta deleted file mode 100644 index 7794294e9..000000000 --- a/Assets/Resources/Geonames/Russia.csv.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 5c1aee30ccf3a1e44bddeb4d550edbf0 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Resources/Geonames/Swahili.csv b/Assets/Resources/Geonames/Swahili.csv deleted file mode 100644 index 678065eed..000000000 --- a/Assets/Resources/Geonames/Swahili.csv +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fb0f44e7948c637a2b0f9e0ca098b2f4689d065fe6484723acf0bfa34a26d0a5 -size 501002 diff --git a/Assets/Resources/Geonames/Swahili.csv.meta b/Assets/Resources/Geonames/Swahili.csv.meta deleted file mode 100644 index 94bfbb4f8..000000000 --- a/Assets/Resources/Geonames/Swahili.csv.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 63e21276398c8b0449e01d97a088add1 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Resources/Geonames/Thailand.csv b/Assets/Resources/Geonames/Thailand.csv deleted file mode 100644 index 400b8f1a9..000000000 --- a/Assets/Resources/Geonames/Thailand.csv +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:888c929f0e29728369448e6981bb8a043c49610f4c4390a2cb549bf6b494d3dc -size 143084 diff --git a/Assets/Resources/Geonames/Thailand.csv.meta b/Assets/Resources/Geonames/Thailand.csv.meta deleted file mode 100644 index fd5bd346a..000000000 --- a/Assets/Resources/Geonames/Thailand.csv.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 2923f8bd3a2f0fb4084f64138e6d793d -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Resources/Geonames/USA.csv b/Assets/Resources/Geonames/USA.csv deleted file mode 100644 index 05bd91140..000000000 --- a/Assets/Resources/Geonames/USA.csv +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:314a30df2033795f04738589c660991e4310f1bfe0578c71bda2a9a72d8a617f -size 954928 diff --git a/Assets/Resources/Geonames/USA.csv.meta b/Assets/Resources/Geonames/USA.csv.meta deleted file mode 100644 index b59cdf567..000000000 --- a/Assets/Resources/Geonames/USA.csv.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: a06c0e26f73d51f489303deadad77030 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Resources/Geonames/bad-words.txt b/Assets/Resources/Geonames/bad-words.txt deleted file mode 100644 index 5013fea9d..000000000 --- a/Assets/Resources/Geonames/bad-words.txt +++ /dev/null @@ -1,1384 +0,0 @@ - -abbo -abo -abortion -abuse -addict -addicts -adult -africa -african -alla -allah -alligatorbait -amateur -american -anal -analannie -analsex -angie -angry -anus -arab -arabs -areola -argie -aroused -arse -arsehole -asian -ass -assassin -assassinate -assassination -assault -assbagger -assblaster -assclown -asscowboy -asses -assfuck -assfucker -asshat -asshole -assholes -asshore -assjockey -asskiss -asskisser -assklown -asslick -asslicker -asslover -assman -assmonkey -assmunch -assmuncher -asspacker -asspirate -asspuppies -assranger -asswhore -asswipe -athletesfoot -attack -australian -babe -babies -backdoor -backdoorman -backseat -badfuck -balllicker -balls -ballsack -banging -baptist -barelylegal -barf -barface -barfface -bast -bastard -bazongas -bazooms -beaner -beast -beastality -beastial -beastiality -beatoff -beat-off -beatyourmeat -beaver -bestial -bestiality -bi -biatch -bible -bicurious -bigass -bigbastard -bigbutt -bigger -bisexual -bi-sexual -bitch -bitcher -bitches -bitchez -bitchin -bitching -bitchslap -bitchy -biteme -black -blackman -blackout -blacks -blind -blow -blowjob -boang -bogan -bohunk -bollick -bollock -bomb -bombers -bombing -bombs -bomd -bondage -boner -bong -boob -boobies -boobs -booby -boody -boom -boong -boonga -boonie -booty -bootycall -bountybar -bra -brea5t -breast -breastjob -breastlover -breastman -brothel -bugger -buggered -buggery -bullcrap -bulldike -bulldyke -bullshit -bumblefuck -bumfuck -bunga -bunghole -buried -burn -butchbabes -butchdike -butchdyke -butt -buttbang -butt-bang -buttface -buttfuck -butt-fuck -buttfucker -butt-fucker -buttfuckers -butt-fuckers -butthead -buttman -buttmunch -buttmuncher -buttpirate -buttplug -buttstain -byatch -cacker -cameljockey -cameltoe -canadian -cancer -carpetmuncher -carruth -catholic -catholics -cemetery -chav -cherrypopper -chickslick -children's -chin -chinaman -chinamen -chinese -chink -chinky -choad -chode -christ -christian -church -cigarette -cigs -clamdigger -clamdiver -clit -clitoris -clogwog -cocaine -cock -cockblock -cockblocker -cockcowboy -cockfight -cockhead -cockknob -cocklicker -cocklover -cocknob -cockqueen -cockrider -cocksman -cocksmith -cocksmoker -cocksucer -cocksuck -cocksucked -cocksucker -cocksucking -cocktail -cocktease -cocky -cohee -coitus -color -colored -coloured -commie -communist -condom -conservative -conspiracy -coolie -cooly -coon -coondog -copulate -cornhole -corruption -cra5h -crabs -crack -crackpipe -crackwhore -crack-whore -crap -crapola -crapper -crappy -crash -creamy -crime -crimes -criminal -criminals -crotch -crotchjockey -crotchmonkey -crotchrot -cum -cumbubble -cumfest -cumjockey -cumm -cummer -cumming -cumquat -cumqueen -cumshot -cunilingus -cunillingus -cunn -cunnilingus -cunntt -cunt -cunteyed -cuntfuck -cuntfucker -cuntlick -cuntlicker -cuntlicking -cuntsucker -cybersex -cyberslimer -dago -dahmer -dammit -damn -damnation -damnit -darkie -darky -datnigga -dead -deapthroat -death -deepthroat -defecate -dego -demon -deposit -desire -destroy -deth -devil -devilworshipper -dick -dickbrain -dickforbrains -dickhead -dickless -dicklick -dicklicker -dickman -dickwad -dickweed -diddle -die -died -dies -dike -dildo -dingleberry -dink -dipshit -dipstick -dirty -disease -diseases -disturbed -dive -dix -dixiedike -dixiedyke -doggiestyle -doggystyle -dong -doodoo -doo-doo -doom -dope -dragqueen -dragqween -dripdick -drug -drunk -drunken -dumb -dumbass -dumbbitch -dumbfuck -dyefly -dyke -easyslut -eatballs -eatme -eatpussy -ecstacy -ejaculate -ejaculated -ejaculating -ejaculation -enema -enemy -erect -erection -ero -escort -ethiopian -ethnic -european -evl -excrement -execute -executed -execution -executioner -explosion -facefucker -faeces -fag -fagging -faggot -fagot -failed -failure -fairies -fairy -faith -fannyfucker -fart -farted -farting -farty -fastfuck -fat -fatah -fatass -fatfuck -fatfucker -fatso -fckcum -fear -feces -felatio -felch -felcher -felching -fellatio -feltch -feltcher -feltching -fetish -fight -filipina -filipino -fingerfood -fingerfuck -fingerfucked -fingerfucker -fingerfuckers -fingerfucking -fire -firing -fister -fistfuck -fistfucked -fistfucker -fistfucking -fisting -flange -flasher -flatulence -floo -flydie -flydye -fok -fondle -footaction -footfuck -footfucker -footlicker -footstar -fore -foreskin -forni -fornicate -foursome -fourtwenty -fraud -freakfuck -freakyfucker -freefuck -fu -fubar -fuc -fucck -fuck -fucka -fuckable -fuckbag -fuckbuddy -fucked -fuckedup -fucker -fuckers -fuckface -fuckfest -fuckfreak -fuckfriend -fuckhead -fuckher -fuckin -fuckina -fucking -fuckingbitch -fuckinnuts -fuckinright -fuckit -fuckknob -fuckme -fuckmehard -fuckmonkey -fuckoff -fuckpig -fucks -fucktard -fuckwhore -fuckyou -fudgepacker -fugly -fuk -fuks -funeral -funfuck -fungus -fuuck -gangbang -gangbanged -gangbanger -gangsta -gatorbait -gay -gaymuthafuckinwhore -gaysex -geez -geezer -geni -genital -german -getiton -gin -ginzo -gipp -girls -givehead -glazeddonut -gob -god -godammit -goddamit -goddammit -goddamn -goddamned -goddamnes -goddamnit -goddamnmuthafucker -goldenshower -gonorrehea -gonzagas -gook -gotohell -goy -goyim -greaseball -gringo -groe -gross -grostulation -gubba -gummer -gun -gyp -gypo -gypp -gyppie -gyppo -gyppy -hamas -handjob -hapa -harder -hardon -harem -headfuck -headlights -hebe -heeb -hell -henhouse -heroin -herpes -heterosexual -hijack -hijacker -hijacking -hillbillies -hindoo -hiscock -hitler -hitlerism -hitlerist -hiv -ho -hobo -hodgie -hoes -hole -holestuffer -homicide -homo -homobangers -homosexual -honger -honk -honkers -honkey -honky -hook -hooker -hookers -hooters -hore -hork -horn -horney -horniest -horny -horseshit -hosejob -hoser -hostage -hotdamn -hotpussy -hottotrot -hummer -husky -hussy -hustler -hymen -hymie -iblowu -idiot -ikey -illegal -incest -insest -intercourse -interracial -intheass -inthebuff -israel -israeli -israel's -italiano -itch -jackass -jackoff -jackshit -jacktheripper -jade -jap -japanese -japcrap -jebus -jeez -jerkoff -jesus -jesuschrist -jew -jewish -jiga -jigaboo -jigg -jigga -jiggabo -jigger -jiggy -jihad -jijjiboo -jimfish -jism -jiz -jizim -jizjuice -jizm -jizz -jizzim -jizzum -joint -juggalo -jugs -junglebunny -kaffer -kaffir -kaffre -kafir -kanake -kid -kigger -kike -kill -killed -killer -killing -kills -kink -kinky -kissass -kkk -knife -knockers -kock -kondum -koon -kotex -krap -krappy -kraut -kum -kumbubble -kumbullbe -kummer -kumming -kumquat -kums -kunilingus -kunnilingus -kunt -ky -kyke -lactate -laid -lapdance -latin -lesbain -lesbayn -lesbian -lesbin -lesbo -lez -lezbe -lezbefriends -lezbo -lezz -lezzo -liberal -libido -licker -lickme -lies -limey -limpdick -limy -lingerie -liquor -livesex -loadedgun -lolita -looser -loser -lotion -lovebone -lovegoo -lovegun -lovejuice -lovemuscle -lovepistol -loverocket -lowlife -lsd -lubejob -lucifer -luckycammeltoe -lugan -lynch -macaca -mad -mafia -magicwand -mams -manhater -manpaste -marijuana -mastabate -mastabater -masterbate -masterblaster -mastrabator -masturbate -masturbating -mattressprincess -meatbeatter -meatrack -meth -mexican -mgger -mggor -mickeyfinn -mideast -milf -minority -mockey -mockie -mocky -mofo -moky -moles -molest -molestation -molester -molestor -moneyshot -mooncricket -mormon -moron -moslem -mosshead -mothafuck -mothafucka -mothafuckaz -mothafucked -mothafucker -mothafuckin -mothafucking -mothafuckings -motherfuck -motherfucked -motherfucker -motherfuckin -motherfucking -motherfuckings -motherlovebone -muff -muffdive -muffdiver -muffindiver -mufflikcer -mulatto -muncher -munt -murder -murderer -muslim -naked -narcotic -nasty -nastybitch -nastyho -nastyslut -nastywhore -nazi -necro -negro -negroes -negroid -negro's -nig -niger -nigerian -nigerians -nigg -nigga -niggah -niggaracci -niggard -niggarded -niggarding -niggardliness -niggardliness's -niggardly -niggards -niggard's -niggaz -nigger -niggerhead -niggerhole -niggers -nigger's -niggle -niggled -niggles -niggling -nigglings -niggor -niggur -niglet -nignog -nigr -nigra -nigre -nip -nipple -nipplering -nittit -nlgger -nlggor -nofuckingway -nook -nookey -nookie -noonan -nooner -nude -nudger -nuke -nutfucker -nymph -ontherag -oral -orga -orgasim -orgasm -orgies -orgy -osama -paki -palesimian -palestinian -pansies -pansy -panti -panties -payo -pearlnecklace -peck -pecker -peckerwood -pee -peehole -pee-pee -peepshow -peepshpw -pendy -penetration -peni5 -penile -penis -penises -penthouse -period -perv -phonesex -phuk -phuked -phuking -phukked -phukking -phungky -phuq -pi55 -picaninny -piccaninny -pickaninny -piker -pikey -piky -pimp -pimped -pimper -pimpjuic -pimpjuice -pimpsimp -pindick -piss -pissed -pisser -pisses -pisshead -pissin -pissing -pissoff -pistol -pixie -pixy -playboy -playgirl -pocha -pocho -pocketpool -pohm -polack -pom -pommie -pommy -poo -poon -poontang -poop -pooper -pooperscooper -pooping -poorwhitetrash -popimp -porchmonkey -porn -pornflick -pornking -porno -pornography -pornprincess -pot -poverty -premature -pric -prick -prickhead -primetime -propaganda -pros -prostitute -protestant -pu55i -pu55y -pube -pubic -pubiclice -pud -pudboy -pudd -puddboy -puke -puntang -purinapricness -puss -pussie -pussies -pussy -pussycat -pussyeater -pussyfucker -pussylicker -pussylips -pussylover -pussypounder -pusy -quashie -queef -queer -quickie -quim -ra8s -rabbi -racial -racist -radical -radicals -raghead -randy -rape -raped -raper -rapist -rearend -rearentry -rectum -redlight -redneck -reefer -reestie -refugee -reject -remains -rentafuck -republican -rere -retard -retarded -ribbed -rigger -rimjob -rimming -roach -robber -roundeye -rump -russki -russkie -sadis -sadom -samckdaddy -sandm -sandnigger -satan -scag -scallywag -scat -schlong -screw -screwyou -scrotum -scum -semen -seppo -servant -sex -sexed -sexfarm -sexhound -sexhouse -sexing -sexkitten -sexpot -sexslave -sextogo -sextoy -sextoys -sexual -sexually -sexwhore -sexy -sexymoma -sexy-slim -shag -shaggin -shagging -shat -shav -shawtypimp -sheeney -shhit -shinola -shit -shitcan -shitdick -shite -shiteater -shited -shitface -shitfaced -shitfit -shitforbrains -shitfuck -shitfucker -shitfull -shithapens -shithappens -shithead -shithouse -shiting -shitlist -shitola -shitoutofluck -shits -shitstain -shitted -shitter -shitting -shitty -shoot -shooting -shortfuck -showtime -sick -sissy -sixsixsix -sixtynine -sixtyniner -skank -skankbitch -skankfuck -skankwhore -skanky -skankybitch -skankywhore -skinflute -skum -skumbag -slant -slanteye -slapper -slaughter -slav -slave -slavedriver -sleezebag -sleezeball -slideitin -slime -slimeball -slimebucket -slopehead -slopey -slopy -slut -sluts -slutt -slutting -slutty -slutwear -slutwhore -smack -smackthemonkey -smut -snatch -snatchpatch -snigger -sniggered -sniggering -sniggers -snigger's -sniper -snot -snowback -snownigger -sob -sodom -sodomise -sodomite -sodomize -sodomy -sonofabitch -sonofbitch -sooty -sos -soviet -spaghettibender -spaghettinigger -spank -spankthemonkey -sperm -spermacide -spermbag -spermhearder -spermherder -spic -spick -spig -spigotty -spik -spit -spitter -splittail -spooge -spreadeagle -spunk -spunky -squaw -stagg -stiffy -strapon -stringer -stripclub -stroke -stroking -stupid -stupidfuck -stupidfucker -suck -suckdick -sucker -suckme -suckmyass -suckmydick -suckmytit -suckoff -suicide -swallow -swallower -swalow -swastika -sweetness -syphilis -taboo -taff -tampon -tang -tantra -tarbaby -tard -teat -terror -terrorist -teste -testicle -testicles -thicklips -thirdeye -thirdleg -threesome -threeway -timbernigger -tinkle -tit -titbitnipply -titfuck -titfucker -titfuckin -titjob -titlicker -titlover -tits -tittie -titties -titty -tnt -toilet -tongethruster -tongue -tonguethrust -tonguetramp -tortur -torture -tosser -towelhead -trailertrash -tramp -trannie -tranny -transexual -transsexual -transvestite -triplex -trisexual -trojan -trots -tuckahoe -tunneloflove -turd -turnon -twat -twink -twinkie -twobitwhore -uck -uk -unfuckable -upskirt -uptheass -upthebutt -urinary -urinate -urine -usama -uterus -vagina -vaginal -vatican -vibr -vibrater -vibrator -vietcong -violence -virgin -virginbreaker -vomit -vulva -wab -wank -wanker -wanking -waysted -weapon -weenie -weewee -welcher -welfare -wetb -wetback -wetspot -whacker -whash -whigger -whiskey -whiskeydick -whiskydick -whit -whitenigger -whites -whitetrash -whitey -whiz -whop -whore -whorefucker -whorehouse -wigger -willie -williewanker -willy -wn -wog -women's -wop -wtf -wuss -wuzzie -xtc -xxx -yankee -yellowman -zigabo -zipperhead diff --git a/Assets/Resources/Geonames/bad-words.txt.meta b/Assets/Resources/Geonames/bad-words.txt.meta deleted file mode 100644 index ff605e0c5..000000000 --- a/Assets/Resources/Geonames/bad-words.txt.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 790ef350f8658b04480e0645919a21fa -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Resources/Geonames/pleiades.csv b/Assets/Resources/Geonames/pleiades.csv deleted file mode 100644 index 581d44ff7..000000000 --- a/Assets/Resources/Geonames/pleiades.csv +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:45b0dbc07d492958b26de3695427076d270bdd0525ab45c415be72560ebccb5f -size 400944 diff --git a/Assets/Resources/Geonames/pleiades.csv.meta b/Assets/Resources/Geonames/pleiades.csv.meta deleted file mode 100644 index dc0edb8f1..000000000 --- a/Assets/Resources/Geonames/pleiades.csv.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: b532694a5ec3cc6458d42aa2835537b5 -TextScriptImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Resources/Settings.asset b/Assets/Resources/Settings.asset index df56f95ed..2da386267 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:9d641fe942dfd45990a0609b3017a63cdc27f502ab12aa74ffbf984ea3e8d346 -size 12644 +oid sha256:7981565178e096ee594ebce89bad849f017750051aaa72c7fd8f043e549bebcd +size 12453 diff --git a/Assets/Resources/Sprites/Attribution.txt b/Assets/Resources/Sprites/Attribution.txt index 666742406..8ca89fb1b 100644 --- a/Assets/Resources/Sprites/Attribution.txt +++ b/Assets/Resources/Sprites/Attribution.txt @@ -2,8 +2,7 @@ Noun Project Tornado by Bart Laubsch Alien Abduction by Bart Laubsch -Hurricane by icon 54 from -Smashicons Space by Ben Davis +Hurricane by icon 54 from Smashicons Space by Ben Davis Space 2 - Solid by Ben Davis Filter by Karthik Aathis Search by il Capitano diff --git a/Assets/Scenes/ARPG.unity b/Assets/Scenes/ARPG.unity index 370f1914b..f583a38ec 100644 --- a/Assets/Scenes/ARPG.unity +++ b/Assets/Scenes/ARPG.unity @@ -409,13 +409,13 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 23420356} serializedVersion: 2 - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalRotation: {x: 0.7071068, y: 0, z: 0, w: 0.7071068} + m_LocalPosition: {x: 0, y: -5, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] - m_Father: {fileID: 1037490739} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 90, y: 0, z: 0} --- !u!23 &23420359 MeshRenderer: m_ObjectHideFlags: 0 @@ -8037,7 +8037,7 @@ Camera: m_Depth: 0 m_CullingMask: serializedVersion: 2 - m_Bits: 5632 + m_Bits: 5120 m_RenderingPath: 1 m_TargetTexture: {fileID: 8400000, guid: 06ec5ef8a5830fc44b1ac1a6e123add5, type: 2} m_TargetDisplay: 0 @@ -16322,6 +16322,7 @@ MonoBehaviour: Settings: {fileID: 11400000, guid: cd2344e2001a37544aab0960c164d4ff, type: 2} ZoneRoot: {fileID: 2095699057} SectorBrushes: {fileID: 1037490739} + AmbientLight: {fileID: 23420357} SceneCamera: {fileID: 887677622} FogCameras: - {fileID: 559840917} @@ -16332,70 +16333,98 @@ MonoBehaviour: - {fileID: 488792362} - {fileID: 970624071} - {fileID: 2095741464} - FogMaterial: {fileID: 2100000, guid: 2ff39f5d101241043ba1dcde19d92f77, type: 2} - FogFarFadeFraction: 0.125 FarPlaneDistanceMultiplier: 1 AsteroidMeshes: - Mesh: {fileID: 4300004, guid: bdb4c719a85f3f2419f6c573dd1daf15, type: 3} Material: {fileID: 2100000, guid: ce975d2d2ccd0914b9260b7d66319aaa, type: 2} + Radius: 1.5022775 - Mesh: {fileID: 4300004, guid: 19fa9aa3b5fee244fb007d58c351be01, type: 3} Material: {fileID: 2100000, guid: 443981befe15f604aba2b04eef2f0de2, type: 2} + Radius: 1.0907339 - Mesh: {fileID: 4300004, guid: 693c11c21d8f22240ae2b6c576bf923a, type: 3} Material: {fileID: 2100000, guid: 818a00140c1abb047be1d65d1c20b52a, type: 2} + Radius: 1.345119 - Mesh: {fileID: 4300004, guid: 73f7fb37d1925f246919650feda3df71, type: 3} Material: {fileID: 2100000, guid: 60bb3870b22a23b458c2bc94e4403bda, type: 2} + Radius: 0.9581426 - Mesh: {fileID: 4300004, guid: 13503d5cc77421a4384053d90e12610f, type: 3} Material: {fileID: 2100000, guid: 3175592343a31774b872b32ae89a7ee8, type: 2} + Radius: 1.3620772 - Mesh: {fileID: 4300004, guid: 7c93e75f8f4cde14d82932c65389f566, type: 3} Material: {fileID: 2100000, guid: edee875c32d24154688acf645e314864, type: 2} + Radius: 1.1282945 - Mesh: {fileID: 4300004, guid: b2e60056527750e4c87bd4f6de85ec32, type: 3} Material: {fileID: 2100000, guid: c3d0e5db17690724b89cff9a71876aa6, type: 2} + Radius: 1.5490558 - Mesh: {fileID: 4300004, guid: 87ef785989ec82b498488e651b61b2c6, type: 3} Material: {fileID: 2100000, guid: 5686a9131ca8350448768971c9e21da0, type: 2} + Radius: 1.4786077 - Mesh: {fileID: 4300004, guid: a0f93e74d454f5046908a26ecbbc31cf, type: 3} Material: {fileID: 2100000, guid: 85e9ac4c62af0fb4a94bc35ac5e24254, type: 2} + Radius: 1.1443666 - Mesh: {fileID: 4300004, guid: 4a9e0d7ffd8f8e94abf7a800653c0b4e, type: 3} Material: {fileID: 2100000, guid: 27b1a299ede684d499133b9a0dc85bda, type: 2} + Radius: 1.1114912 - Mesh: {fileID: 4300004, guid: 232b4a71860923049890d661dee4aff7, type: 3} Material: {fileID: 2100000, guid: d9e9ebabc89054f4495754372a7b4d8f, type: 2} + Radius: 1.5410137 - Mesh: {fileID: 4300004, guid: 335c54d8095aa3f44bab46ca5fa5bd4c, type: 3} Material: {fileID: 2100000, guid: 71cd479bb26cd7140ba9d3753f49ffbc, type: 2} + Radius: 1.3792597 - Mesh: {fileID: 4300004, guid: 8942a135422bd014bb3451fe02d656f2, type: 3} Material: {fileID: 2100000, guid: 0f7035043b158484995ff86e9371b141, type: 2} + Radius: 1.2433527 - Mesh: {fileID: 4300004, guid: 47e8c832aa7d46e4ba06961fddf3cc06, type: 3} Material: {fileID: 2100000, guid: d5788bb4b0d2d93429d9c6462034e470, type: 2} + Radius: 1.3664026 - Mesh: {fileID: 4300004, guid: 7c1227bb235e0f74aa9a6cdb9e7ccac5, type: 3} Material: {fileID: 2100000, guid: 060b5e360701d5146adc3d1c65c7a3df, type: 2} + Radius: 1.2458941 - Mesh: {fileID: 4300004, guid: 77a272b796d88344eacf56a79372b45e, type: 3} Material: {fileID: 2100000, guid: 3cd15eb9c358aa547bcd223ee3c1edde, type: 2} + Radius: 2.157539 - Mesh: {fileID: 4300004, guid: bafc829a0712b174d9485c5bcbc1b529, type: 3} Material: {fileID: 2100000, guid: b58fd84189173114d8708fb50b43f2d7, type: 2} + Radius: 1.5399581 - Mesh: {fileID: 4300004, guid: 47fa308b6b417034ea47809cb08bccfb, type: 3} Material: {fileID: 2100000, guid: f56b0896907ac9e41b6fd9dca05f1fa2, type: 2} + Radius: 1.8855069 - Mesh: {fileID: 4300004, guid: fb03a3e40b409db44a810641e0a6c493, type: 3} Material: {fileID: 2100000, guid: 78859c2284122944493cc283967036db, type: 2} + Radius: 1.2214345 - Mesh: {fileID: 4300004, guid: de7739fee205f4a4f9ae290126a36b61, type: 3} Material: {fileID: 2100000, guid: 89b312038af5203469d447f7ff01105f, type: 2} + Radius: 1.8183402 - Mesh: {fileID: 4300004, guid: a966f9aba651bf34da1bb6e3e7f26301, type: 3} Material: {fileID: 2100000, guid: 3326bc3e2b8ada34c9bfd44cf8cf1a1c, type: 2} + Radius: 1.5686527 - Mesh: {fileID: 4300004, guid: 0d55ec2b68453b7418abcd63378eed69, type: 3} Material: {fileID: 2100000, guid: 12b1f515279281a42b2bd53cdb174488, type: 2} + Radius: 1.9112675 - Mesh: {fileID: 4300004, guid: e5dc38d7ffa6ed242831255d93657aaa, type: 3} Material: {fileID: 2100000, guid: 5a06a4f6d5df32b4dae76c13939d3ce9, type: 2} + Radius: 1.9507759 - Mesh: {fileID: 4300004, guid: 9f36793bd68d3d84d8116485bf933992, type: 3} Material: {fileID: 2100000, guid: decc37f956dfc244b956de2d6f5375c2, type: 2} + Radius: 1.5778105 - Mesh: {fileID: 4300004, guid: 214c1534cdd5b3a4a80927e9d879290f, type: 3} Material: {fileID: 2100000, guid: a20b424628f81de4e8cf080a503b66af, type: 2} + Radius: 1.4580269 - Mesh: {fileID: 4300004, guid: 7db51bba443e10f4f9a597a296ceb0c6, type: 3} Material: {fileID: 2100000, guid: f96d19f3fe978b044972d1360d2e7707, type: 2} + Radius: 2.430305 - Mesh: {fileID: 4300004, guid: 6116ec4d9786d04408c3b26d0c525407, type: 3} Material: {fileID: 2100000, guid: 1788de6db766a4444a09dc0c80e1bcb2, type: 2} + Radius: 1.7872484 - Mesh: {fileID: 4300004, guid: 3d6e611c9ebead04b9d6d7d490977ddc, type: 3} Material: {fileID: 2100000, guid: 0fab294fd86e3b84394a967642904d55, type: 2} + Radius: 1.9273407 - Mesh: {fileID: 4300004, guid: 76b1f709ca820234bbf6c03507333b7e, type: 3} Material: {fileID: 2100000, guid: 63a8a57976371814689d7fb222e635e9, type: 2} + Radius: 1.70707 - Mesh: {fileID: 4300004, guid: d3c9f05eabff9e24ca9521e0b8dffd50, type: 3} Material: {fileID: 2100000, guid: 9be65d82397829b46894243c2d91a06d, type: 2} + Radius: 1.6336656 AsteroidSpritesheetWidth: 4 AsteroidSpritesheetHeight: 4 LODHandler: {fileID: 1009503736} @@ -16422,8 +16451,7 @@ MonoBehaviour: TourFollowDistance: 100 TourHeightOffset: 50 TourFollowOffsetDegrees: 55 - AsteroidBeltUI: {fileID: 349597964696402918, guid: 1f1bfa2175a13b647888e2949e0cb138, - type: 3} + MapAsteroidMaterial: {fileID: 2100000, guid: c1012d5466454651b7279be93ef9af88, type: 2} Planet: {fileID: 8287217960984982033, guid: 88ace6073e3db1a46bd3aaf4f971acb9, type: 3} GasGiant: {fileID: 3250623180916197132, guid: 85753b4a7c762274385af384abed7a04, type: 3} @@ -16463,7 +16491,6 @@ MonoBehaviour: NebulaTint: {fileID: 8400000, guid: d196505464047f04a97f28689041209b, type: 2} Heightmap: {fileID: 8400000, guid: 2fc21a9d3e9647948b56e384cd9378b3, type: 2} ParticleColors: {fileID: 2800000, guid: 56db63da398b2d04394ddbccedce943c, type: 3} - GravityCamera: {fileID: 1537342003} --- !u!114 &1009503736 MonoBehaviour: m_ObjectHideFlags: 0 @@ -16864,7 +16891,6 @@ Transform: m_LocalScale: {x: 3000, y: 3000, z: 3000} m_ConstrainProportionsScale: 0 m_Children: - - {fileID: 23420357} - {fileID: 1108843909} - {fileID: 1647230682} - {fileID: 1254851255} @@ -21210,7 +21236,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 + m_IsActive: 1 --- !u!224 &1396909587 RectTransform: m_ObjectHideFlags: 0 @@ -24677,26 +24703,7 @@ MonoBehaviour: m_OnCullStateChanged: m_PersistentCalls: m_Calls: [] - m_text: "What the fuck did you just fucking type about me, you little bitch? I\u2019ll - have you know I graduated top of my class at MIT, and I\u2019ve been involved - in numerous secret raids with Anonymous, and I have over 300 confirmed DDoSes.\n\nI - am trained in online trolling and I\u2019m the top hacker in the entire world. - You are nothing to me but just another virus host. I will wipe you the fuck out - with precision the likes of which has never been seen before on the Internet, - mark my fucking words. You think you can get away with typing that shit to me - over the Internet? Think again, fucker.\n\nAs we chat over IRC I am tracing your - IP with my damn bare hands so you better prepare for the storm, maggot. The storm - that wipes out the pathetic little thing you call your computer. You\u2019re - fucking dead, kid. I can be anywhere, anytime, and I can hack into your files - in over seven hundred ways, and that\u2019s just with my bare hands.\n\nNot only - am I extensively trained in hacking, but I have access to the entire arsenal - of every piece of malware ever created and I will use it to its full extent to - wipe your miserable ass off the face of the world wide web, you little shit. - If only you could have known what unholy retribution your little \u201Cclever\u201D - comment was about to bring down upon you, maybe you would have held your fucking - fingers. But you couldn\u2019t, you didn\u2019t, and now you\u2019re paying the - price, you goddamn idiot. I will shit code all over you and you will drown in - it.\n\nYou\u2019re fucking dead, kiddo." + m_text: "" m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 53555f7a2d5e745428813f1b1118734f, type: 2} m_sharedMaterial: {fileID: -2804126062856497447, guid: 53555f7a2d5e745428813f1b1118734f, @@ -38395,6 +38402,7 @@ SceneRoots: - {fileID: 906767442} - {fileID: 1009503730} - {fileID: 1037490739} + - {fileID: 23420357} - {fileID: 2095699057} - {fileID: 134113271} - {fileID: 666227432} diff --git a/Assets/Scenes/Main Menu.unity b/Assets/Scenes/Main Menu.unity index b770f3db7..4fafe8336 100644 --- a/Assets/Scenes/Main Menu.unity +++ b/Assets/Scenes/Main Menu.unity @@ -892,7 +892,6 @@ MonoBehaviour: NebulaTint: {fileID: 8400000, guid: d196505464047f04a97f28689041209b, type: 2} Heightmap: {fileID: 8400000, guid: 2fc21a9d3e9647948b56e384cd9378b3, type: 2} ParticleColors: {fileID: 2800000, guid: 56db63da398b2d04394ddbccedce943c, type: 3} - GravityCamera: {fileID: 2103364771} --- !u!114 &750375536 MonoBehaviour: m_ObjectHideFlags: 0 @@ -982,7 +981,7 @@ Camera: m_Depth: 0 m_CullingMask: serializedVersion: 2 - m_Bits: 5632 + m_Bits: 5120 m_RenderingPath: 1 m_TargetTexture: {fileID: 8400000, guid: 06ec5ef8a5830fc44b1ac1a6e123add5, type: 2} m_TargetDisplay: 0 diff --git a/Assets/Scenes/TestScene.unity b/Assets/Scenes/TestScene.unity index 06ee5fa70..45c73ee85 100644 --- a/Assets/Scenes/TestScene.unity +++ b/Assets/Scenes/TestScene.unity @@ -3769,7 +3769,7 @@ Camera: m_Depth: 0 m_CullingMask: serializedVersion: 2 - m_Bits: 5632 + m_Bits: 5120 m_RenderingPath: 1 m_TargetTexture: {fileID: 8400000, guid: 06ec5ef8a5830fc44b1ac1a6e123add5, type: 2} m_TargetDisplay: 0 diff --git a/Assets/Scripts/AetheriaInput.cs b/Assets/Scripts/AetheriaInput.cs index 373c0b8bb..d9248909e 100644 --- a/Assets/Scripts/AetheriaInput.cs +++ b/Assets/Scripts/AetheriaInput.cs @@ -122,6 +122,36 @@ 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"", @@ -439,6 +469,50 @@ 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"", @@ -1303,6 +1377,9 @@ 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); @@ -1422,6 +1499,9 @@ 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; @@ -1461,6 +1541,18 @@ 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; @@ -1555,6 +1647,15 @@ 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; @@ -1620,6 +1721,15 @@ 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; @@ -2101,6 +2211,27 @@ 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/AmbientEdgeVerify.cs b/Assets/Scripts/Editor/AmbientEdgeVerify.cs new file mode 100644 index 000000000..4a56b6ea9 --- /dev/null +++ b/Assets/Scripts/Editor/AmbientEdgeVerify.cs @@ -0,0 +1,244 @@ +using System; +using System.IO; +using GameCult.Caching; +using UnityEditor; +using UnityEditor.SceneManagement; +using UnityEngine; +using UnityEngine.Experimental.Rendering; +using UnityEngine.Rendering; + +namespace Aetheria.EditorTools +{ + /// + /// Batchmode check for campaign aetheria-gravity, cut ambient-follows-populated-area: the ambient tint falls softly to + /// dark and never hits an edge (ruling dark-beyond-populated-area). It opens ARPG.unity, takes the Ambient Fog Light the + /// scene wires into ZoneRenderer, sizes it for a generated zone with ZoneRenderer.FitAmbientLight (the call LoadZone + /// makes, not a copy), renders it through an orthographic camera that culls its layer into a target built from the descriptor of the production + /// Fog Tint render texture (B10G11R11_UFloatPack32, the format the Tint cameras write), and checks the + /// radial profile against exp(-(r/P)^2 ln(1/_EdgeBrightness)) times the centre, to within what that format stores (a + /// 5-bit mantissa) wherever the gaussian is at least a few ZoneRenderer.AmbientFloor (P is Zone.PopulatedRadius), that it + /// is lit at Pack.Radius, that the quad's rim and every lit texel beside a dark one are + /// at most two floors, and that no two lit texels are more than half a decade apart. + /// + /// Renders, so it needs a graphics device: run WITHOUT -nographics. + /// Unity -batchmode -projectPath <repo> -executeMethod Aetheria.EditorTools.AmbientEdgeVerify.Run -logFile <path> + /// Do not pass -quit: Run exits the Editor itself, 0 on success and 1 on any failure. + /// + public static class AmbientEdgeVerify + { + const string Tag = "[AmbientEdgeVerify]"; + const int Size = 512; + const int AmbientLayer = 13; + const string FogTintPath = "Assets/Resources/Fog Tint.renderTexture"; + // A float with a 5-bit mantissa (Fog Tint's blue) steps by 2^-5 of its value, and the target truncates to a step. + const float FormatRelativeError = 1f / 32f; + // The profile is held to the gaussian where it is at least this many floors; below that the format's tail is measured, not held. + const float FaithfulFloors = 8f; + // The rim and every lit texel beside a dark one hold at most this many floors, 2^-14 (the smallest normal of the format's + // floats): the one step to dark is the format's last value. Measured on the Fog Tint format it is 1.5 floors at most. + const float StepToDarkFloors = 2f; + static bool _ok = true; + + static void OnLog(string message, string stack, LogType type) + { + if ((type == LogType.Error || type == LogType.Exception || type == LogType.Assert) && !message.StartsWith(Tag)) + Fail("logged-error", message.Split('\n')[0]); + } + + static void Fail(string check, string detail) + { + Debug.LogError($"{Tag} FAIL {check}: {detail}"); + _ok = false; + } + + 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; + } + Application.logMessageReceived += OnLog; + var work = Path.Combine(Path.GetTempPath(), "ambient-edge-" + Guid.NewGuid().ToString("N")); + Directory.CreateDirectory(Path.Combine(work, "probe")); + try + { + var settings = AssetDatabase.LoadAssetAtPath("Assets/Resources/Settings.asset") + ?? throw new InvalidOperationException("No Settings.asset."); + // Generated zones have the populated radius at about .78 of the pack radius (p50 over 1500 zones): this one's + // pack radius is set so, which puts Pack.Radius where it sits in play, inside the quad's reach. + var probe = GravityFieldParityVerify.BuildZone(settings, Path.Combine(work, "probe"), out _); + var zone = GravityFieldParityVerify.BuildZone(settings, work, out _, probe.PopulatedRadius / .78f); + EditorSceneManager.OpenScene("Assets/Scenes/ARPG.unity", OpenSceneMode.Single); + try + { + var renderer = UnityEngine.Object.FindFirstObjectByType(FindObjectsInactive.Include); + if (renderer == null || renderer.AmbientLight == null) throw new InvalidOperationException("ARPG.unity wires no ZoneRenderer.AmbientLight."); + Check(renderer, zone); + } + finally + { + EditorSceneManager.NewScene(NewSceneSetup.EmptyScene, NewSceneMode.Single); + } + Debug.Log(_ok ? $"{Tag} PASS" : $"{Tag} FAIL: see errors above"); + } + catch (Exception e) + { + Debug.LogError($"{Tag} FAIL exception: {e}"); + _ok = false; + } + finally + { + Application.logMessageReceived -= OnLog; + try { Directory.Delete(work, true); } catch { } + } + EditorApplication.Exit(_ok ? 0 : 1); + } + + // A bare ambient quad for the verifies that run LoadZone on a renderer built in code: the scene's material, no scene. + public static Transform NewAmbientLight() + { + var quad = new GameObject("Ambient Fog Light") { layer = AmbientLayer }; + quad.AddComponent().sharedMesh = Resources.GetBuiltinResource("Quad.fbx"); + quad.AddComponent().sharedMaterial = AssetDatabase.LoadAssetAtPath("Assets/Materials/Brushes/Sector Tint.mat"); + return quad.transform; + } + + static void Check(ZoneRenderer renderer, Zone zone) + { + var production = AssetDatabase.LoadAssetAtPath(FogTintPath); + if (production == null || production.graphicsFormat != GraphicsFormat.B10G11R11_UFloatPack32) + Fail("format", $"Fog Tint is {(production == null ? "missing" : production.graphicsFormat.ToString())}, not the B10G11R11_UFloatPack32 that AmbientFloor and FormatRelativeError describe"); + var light = renderer.AmbientLight; + if (light.parent != null) Fail("wiring", $"the ambient quad sits under {light.parent.name}, whose scale is the pack radius's"); + if (light.gameObject.layer != AmbientLayer) Fail("wiring", $"the ambient quad is on layer {light.gameObject.layer}, not {AmbientLayer}"); + + ZoneRenderer.FitAmbientLight(light, zone); + var meshRenderer = light.GetComponent(); + var material = meshRenderer.sharedMaterial; + var edge = material.GetFloat("_EdgeBrightness"); + var tint = material.GetColor("_Color").linear; + var centre = material.GetFloat("_Depth") * Mathf.Max(tint.r, Mathf.Max(tint.g, tint.b)); + var populated = zone.PopulatedRadius; + var half = light.localScale.x / 2f; + Debug.Log($"{Tag} populated radius {populated:F1} u, pack radius {zone.Pack.Radius:F1} u, quad half-extent {half:F1} u, edge brightness {edge:G3}, centre {centre:G4}"); + if (!(populated > 0f) || !(half > populated)) { Fail("sizing", $"the quad half-extent {half:F1} u does not reach beyond the populated radius {populated:F1} u"); return; } + + Render(light, half * 1.05f, out var value, out var world); + var floor = ZoneRenderer.AmbientFloor; + Debug.Log($"{Tag} format floor {floor:E2} = {floor / centre:E2} of the centre; tail (drawn / floor): " + + string.Join(" ", System.Linq.Enumerable.Select(new[] { 1.5f, 1.75f, 1.9f, 2f, 2.05f, 2.1f, 2.15f, 2.2f }, + k => $"{k}P:{Sample(value, world, new Vector2(k * populated, 0f)) / floor:G3}"))); + var logFall = Mathf.Log(1f / edge); + foreach (var k in new[] { 0f, .5f, 1f, 1.5f, 2f }) + { + var drawn = Sample(value, world, new Vector2(k * populated, 0f)); + Debug.Log($"{Tag} r = {k} P: drawn {drawn:G5}, expected {centre * Mathf.Exp(-k * k * logFall):G5}"); + } + var worstProfile = 0f; + var compared = 0; + var rim = 0f; + for (var i = 0; i < value.Length; i++) + { + if (float.IsNaN(value[i])) { Fail("texels", $"texel {i}: NaN"); return; } + var r = world[i].magnitude; + var expected = centre * Mathf.Exp(-(r / populated) * (r / populated) * logFall); + if (r <= half && expected >= FaithfulFloors * floor) + { + var error = Mathf.Abs(value[i] - expected) / (FormatRelativeError * expected); + worstProfile = Mathf.Max(worstProfile, error); + compared++; + if (error > 1f) { Fail("profile", $"at r = {r / populated:F3} P: expected {expected:G5}, drawn {value[i]:G5}, off by {error:F2} times the format's step"); return; } + } + // The rim: the texels in the quad's outermost ring (within two texels of its edge). + var edgeDistance = half - Mathf.Max(Mathf.Abs(world[i].x), Mathf.Abs(world[i].y)); + if (edgeDistance >= 0f && edgeDistance < 2f * (half * 1.05f * 2f / Size)) rim = Mathf.Max(rim, value[i]); + } + Debug.Log($"{Tag} profile: {compared} texels held to the gaussian, worst error {worstProfile:F3} of the format's step; rim {rim / centre:E2} of the centre"); + if (compared < Size * Size / 16) Fail("profile", $"only {compared} texels were held to the gaussian; the check is vacuous"); + if (rim > floor * StepToDarkFloors) Fail("rim", $"the quad's rim is {rim / floor:G3} times the format floor"); + + var atPack = Sample(value, world, new Vector2(zone.Pack.Radius, 0f)); + Debug.Log($"{Tag} at Pack.Radius: {atPack / centre:E2} of the centre"); + if (!(atPack > 0f)) Fail("pack-radius", "the ambient is zero at Pack.Radius"); + + var worstJump = 0f; + for (var y = 0; y < Size; y++) + for (var x = 0; x < Size; x++) + { + var here = value[y * Size + x]; + if (here <= 0f) continue; + foreach (var next in new[] { x + 1 < Size ? value[y * Size + x + 1] : 0f, y + 1 < Size ? value[(y + 1) * Size + x] : 0f }) + { + if (next <= 0f) { if (here > floor * StepToDarkFloors) Fail("last-step", $"a lit texel of {here / floor:G3} floors sits beside a dark one"); continue; } + worstJump = Mathf.Max(worstJump, Mathf.Abs(Mathf.Log10(here / next))); + } + } + Debug.Log($"{Tag} largest jump between neighbouring lit texels: {worstJump:F3} decades (limit 0.5)"); + if (worstJump > .5f) Fail("jump", $"neighbouring texels differ by {worstJump:F2} decades"); + var lit = 0; + foreach (var v in value) if (v > 0f) lit++; + if (lit < Size * Size / 2) Fail("jump", $"only {lit} texels are lit; the check is vacuous"); + } + + static float Sample(float[] value, Vector2[] world, Vector2 at) + { + var best = 0; + for (var i = 1; i < world.Length; i++) + if ((world[i] - at).sqrMagnitude < (world[best] - at).sqrMagnitude) best = i; + return value[best]; + } + + // Renders the ambient layer through a downward orthographic camera centred on the origin, as the Tint cameras see it, + // and returns the brightest channel of every texel with the world xz of its centre, which is asked of the camera. + static void Render(Transform light, float half, out float[] value, out Vector2[] world) + { + var production = AssetDatabase.LoadAssetAtPath(FogTintPath) ?? throw new InvalidOperationException("No Fog Tint render texture."); + var rt = new RenderTexture(production.descriptor) { filterMode = FilterMode.Point }; + var cameraObject = new GameObject("Ambient Edge Camera"); + var read = new Texture2D(Size, Size, TextureFormat.RGBAFloat, false); + var previous = RenderTexture.active; + try + { + var camera = cameraObject.AddComponent(); + camera.orthographic = true; + camera.orthographicSize = half; + camera.aspect = 1f; + camera.nearClipPlane = .3f; + camera.farClipPlane = 1000f; + camera.cullingMask = 1 << light.gameObject.layer; + camera.clearFlags = CameraClearFlags.SolidColor; + camera.backgroundColor = Color.black; + camera.allowHDR = false; + camera.allowMSAA = false; + camera.targetTexture = rt; + cameraObject.transform.SetPositionAndRotation(new Vector3(0f, 100f, 0f), Quaternion.Euler(90f, 0f, 0f)); + camera.Render(); + + RenderTexture.active = rt; + read.ReadPixels(new Rect(0, 0, Size, Size), 0, 0); + read.Apply(); + var pixels = read.GetPixelData(0); + value = new float[Size * Size]; + for (var i = 0; i < value.Length; i++) + value[i] = Mathf.Max(pixels[4 * i], Mathf.Max(pixels[4 * i + 1], pixels[4 * i + 2])); + world = new Vector2[Size * Size]; + for (var y = 0; y < Size; y++) + for (var x = 0; x < Size; x++) + { + var p = camera.ViewportToWorldPoint(new Vector3((x + .5f) / Size, (y + .5f) / Size, 100f)); + world[y * Size + x] = new Vector2(p.x, p.z); + } + } + finally + { + RenderTexture.active = previous; + UnityEngine.Object.DestroyImmediate(cameraObject); + UnityEngine.Object.DestroyImmediate(read); + rt.Release(); + UnityEngine.Object.DestroyImmediate(rt); + } + } + } +} diff --git a/Assets/Scripts/Editor/AmbientEdgeVerify.cs.meta b/Assets/Scripts/Editor/AmbientEdgeVerify.cs.meta new file mode 100644 index 000000000..0962854de --- /dev/null +++ b/Assets/Scripts/Editor/AmbientEdgeVerify.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 63b03af05dfdae44c89e21ca7ebec892 \ No newline at end of file diff --git a/Assets/Scripts/Editor/BeltFloaterLayerVerify.cs b/Assets/Scripts/Editor/BeltFloaterLayerVerify.cs new file mode 100644 index 000000000..500ae1cea --- /dev/null +++ b/Assets/Scripts/Editor/BeltFloaterLayerVerify.cs @@ -0,0 +1,265 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Reflection; +using GameCult.Caching; +using UnityEditor; +using UnityEditor.SceneManagement; +using UnityEngine; +using float2 = CultMath.float2; +using float4 = CultMath.float4; + +// End-to-end proof of the belt draw (rulings asteroid-tops-at-layer, rock-meshes-by-size), measured where it fails: two belts are loaded +// into a ZoneRenderer carrying ARPG.unity's real AsteroidMeshes (meshes, stored radii) and Settings.asset, over a zone whose wells make the +// field differ rock to rock, and ZoneRenderer.DrawBelts runs as Update runs it. Every instanced matrix it hands to the GPU is read back with the +// mesh it is drawn with (ZoneRenderer.DrawInstanced), and for each drawn rock the verify measures, from the mesh's real vertices: +// - the farthest vertex from the rock's centre after the matrix (the reach, a bound on the rock's top under any rotation) is the rock's +// gameplay radius, and centre y + reach is the floater layer over the field at the rock's xz and the drawn time; +// - the rock is drawn exactly once, on exactly one matrix of a real pose (no spare instance in a batch); +// - within a belt a bigger rock never takes a smaller mesh (by the mesh's own farthest vertex), and the belt keeps min(AsteroidMeshCount, meshes) meshes. +// The arguments the renderer hands the draw list (radius field, belt, batch size, kept count) are not inspected: their consequence is. +// +// Reached: ZoneRenderer.LoadPlanet for each belt, DrawBelts. Not reached: LoadZone's other planets (their prefabs), the GPU draw itself. +// Needs a GPU device for MapPresenter's belt buffer: run without -nographics. +// +// Unity -batchmode -projectPath -executeMethod Aetheria.EditorTools.BeltFloaterLayerVerify.Run -logFile +// +// Do not pass -quit: Run enters play mode (a domain reload), the check runs there, and the Editor exits itself, 0 on success and 1 on any failure. +namespace Aetheria.EditorTools +{ + [InitializeOnLoad] + public static class BeltFloaterLayerVerify + { + private const string Tag = "[BeltFloaterLayerVerify]"; + private const string Flag = "BeltFloaterLayerVerify.running"; + private const string Wiring = "BeltFloaterLayerVerify.wiring"; + private const double Budget = 300; // real seconds + private const float Lead = .008f, Layer = -1.5f, Tolerance = .02f; + private static IEnumerator _check; + private static double _started; + private static string _work; + + static BeltFloaterLayerVerify() + { + if (SessionState.GetBool(Flag, false)) EditorApplication.playModeStateChanged += OnPlayMode; + } + + public static void Run() + { + try + { + SessionState.SetString(Wiring, ReadWiring()); + SessionState.SetBool(Flag, true); + EditorApplication.EnterPlaymode(); + } + catch (Exception exception) + { + Debug.LogException(exception); + EditorApplication.Exit(1); + } + } + + private static void OnPlayMode(PlayModeStateChange change) + { + if (change != PlayModeStateChange.EnteredPlayMode) return; + _work = Path.Combine(Path.GetTempPath(), $"belt-floater-{Guid.NewGuid():N}"); + Directory.CreateDirectory(_work); + _started = Time.realtimeSinceStartupAsDouble; + _check = Check(); + EditorApplication.update += Step; + } + + private static void Step() + { + try + { + if (Time.realtimeSinceStartupAsDouble - _started > Budget) throw new InvalidOperationException($"The check did not finish in {Budget} seconds."); + if (_check.MoveNext()) return; + Finish(0); + } + catch (Exception exception) + { + Debug.LogException(exception); + Finish(1); + } + } + + private static void Finish(int code) + { + EditorApplication.update -= Step; + SessionState.SetBool(Flag, false); + try { if (Directory.Exists(_work)) Directory.Delete(_work, true); } catch (Exception) { /* a temp directory */ } + EditorApplication.Exit(code); + } + + private static void Require(bool condition, string what) + { + if (!condition) throw new InvalidOperationException(what); + } + + // A belt of rocks of every size, its sizes in the given order, round an orbit about the planet. + private static Asteroid[] Rocks(int count, Func size, float start) => Enumerable.Range(0, count).Select(i => new Asteroid + { + Distance = start + i * 9.7f, Phase = Mathf.Repeat(i * .6180339887f, 1f), Size = size(i), RotationSpeed = .1f + i * .013f + }).ToArray(); + + private static IEnumerator Check() + { + var game = AssetDatabase.LoadAssetAtPath("Assets/Resources/Settings.asset") ?? throw new InvalidOperationException("No Settings.asset."); + var settings = game.GameplaySettings; + settings.FloaterLayerHeight = Layer; // in memory, never saved back to the asset: a draw that drops the layer fails + + var meshes = SessionState.GetString(Wiring, "").Split('|').Select(entry => entry.Split('~')).Select(p => new InstancedMesh + { + Mesh = AssetDatabase.LoadAllAssetsAtPath(p[0]).OfType().First(m => m.name == p[1]), + Material = p[2] == "" ? null : AssetDatabase.LoadAssetAtPath(p[2]), + Radius = float.Parse(p[3], System.Globalization.CultureInfo.InvariantCulture) + }).ToArray(); + Require(meshes.Length > game.AsteroidMeshCount, $"ARPG.unity has {meshes.Length} rock meshes for a kept count of {game.AsteroidMeshCount}: nothing to prune."); + + var cache = AetheriaStores.Open(Path.Combine(_work, "belts.cc"), Path.Combine(_work, "belts-run.cc"), catalogWritable: true); + cache.Upsert(new VerseGrammar { Revision = 1 }); + cache.FlushAsync().Wait(); + var items = new ItemManager(1u, cache, new ProvenanceLedger(), settings, _ => { }); + + CultRecordKey Orbit(CultRecordKey parent, float distance, float phase, float2 fixedPosition = default) + { + var data = new OrbitData { Distance = distance, Phase = phase, FixedPosition = fixedPosition }; + if (parent.IsSet()) data.Parent = new CultRecordRef(parent); + return cache.Upsert(data).Key; + } + + // A heavy sun and a planet on a moving rail, the belts round the planet: the field under a rock differs from rock to rock. + var sunOrbit = Orbit(default, 0f, 0f, new float2(700f, -300f)); + var planetOrbit = Orbit(sunOrbit, 600f, .3f); + var beltOrbitA = Orbit(planetOrbit, 150f, .1f); + var beltOrbitB = Orbit(planetOrbit, 300f, .6f); + var beltA = cache.Upsert(new AsteroidBeltData { Orbit = new CultRecordRef(beltOrbitA), Asteroids = Rocks(24, i => (i * 7 % 24) / 23f, 40f) }).Key; + var beltB = cache.Upsert(new AsteroidBeltData { Orbit = new CultRecordRef(beltOrbitB), Asteroids = Rocks(24, i => (i * 5 % 24) / 23f, 60f) }).Key; + var pack = new ZonePack { Radius = 5000f, Mass = 10000f }; + foreach (var orbit in new[] { sunOrbit, planetOrbit, beltOrbitA, beltOrbitB }) pack.Orbits.Add(new CultRecordRef(orbit)); + pack.Planets.Add(new CultRecordRef(cache.Upsert(new PlanetData { Name = "Belt Sun", Orbit = new CultRecordRef(sunOrbit), Mass = 400f }).Key)); + pack.Planets.Add(new CultRecordRef(cache.Upsert(new PlanetData { Name = "Belt Planet", Orbit = new CultRecordRef(planetOrbit), Mass = 400f }).Key)); + pack.Planets.Add(new CultRecordRef(beltA)); + pack.Planets.Add(new CultRecordRef(beltB)); + var curves = new PlanetSettings + { + BodyRadius = new ExponentialCurve(), + WellStrength = new ExponentialCurve { Multiplier = 1f, Exponent = 1f }, + RocheLimit = new ExponentialCurve { Constant = 10f }, + AsteroidSize = new ExponentialLerp { Minimum = 2f, Maximum = 9f, Exponent = 1.7f }, + AsteroidHitpoints = new ExponentialLerp { Minimum = 10f, Maximum = 300f, Exponent = 2f }, + AsteroidRespawnTime = new ExponentialLerp { Minimum = 5f, Maximum = 60f, Exponent = 1f } + }; + var zone = new Zone(items, curves, pack, null, null); + zone.Update(.5f); + + // The renderer, configured as the scene configures it for belts: Awake builds the map, LoadPlanet reads Zone, Settings and AsteroidMeshes. + var rendererObject = new GameObject("Belt Zone Renderer"); + rendererObject.SetActive(false); + var renderer = rendererObject.AddComponent(); + renderer.Settings = game; + renderer.AsteroidMeshes = meshes; + renderer.ItemManager = items; + renderer.LODHandler = new GameObject("Belt LOD").AddComponent(); + const BindingFlags Any = BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public; + typeof(ZoneRenderer).GetProperty("Zone").GetSetMethod(true).Invoke(renderer, new object[] { zone }); + typeof(ZoneRenderer).GetMethod("Awake", Any).Invoke(renderer, null); + var load = typeof(ZoneRenderer).GetMethod("LoadPlanet", Any); + foreach (var belt in new[] { beltA, beltB }) load.Invoke(renderer, new object[] { belt, zone.Planets[belt] }); + + var planetAt = DrawAhead.Orbit(zone, planetOrbit, Lead); + var camera = new GameObject("Belt Camera").AddComponent(); + camera.transform.position = new Vector3(planetAt.x, 4000f, planetAt.y); + camera.transform.rotation = Quaternion.Euler(90, 0, 0); + camera.farClipPlane = 20000f; + renderer.MainCamera = camera; + yield return null; + + ActionGameManager.Clock.Reset(); + ActionGameManager.Clock.Advance(Lead, _ => throw new InvalidOperationException("a step ran")); + var lead = ActionGameManager.Clock.Lead; + Require(Mathf.Abs(lead - Lead) < 1e-6f, $"The clock's lead is {lead}, not {Lead}."); + + var drawn = new List<(Mesh mesh, Matrix4x4[] matrices)>(); + renderer.DrawInstanced = (mesh, _, matrices) => drawn.Add((mesh, (Matrix4x4[]) matrices.Clone())); + renderer.DrawBelts(lead); + + // The poses the sim defines at the drawn time: every rock of both belts. + var rocks = new List<(CultRecordKey belt, int index, float4 pose)>(); + foreach (var belt in new[] { beltA, beltB }) + { + var poses = new float4[((AsteroidBeltData) zone.Planets[belt]).Asteroids.Length]; + zone.EvaluateBelt(belt, poses, DrawAhead.Time(zone, lead)); + for (var i = 0; i < poses.Length; i++) rocks.Add((belt, i, poses[i])); + } + Require(drawn.Count > 0, "DrawBelts drew nothing: the belts are out of the camera or have no rocks."); + + // The field differs between rocks, so a draw that drops it or samples it at the wrong place fails. + var layers = rocks.Select(r => DrawAhead.FloaterHeight(zone, settings, r.pose.xy, lead)).ToArray(); + Require(layers.Max() - layers.Min() > 1f, $"The fixture's field is flat under the rocks: layer heights span {layers.Max() - layers.Min()}."); + + var seen = new Dictionary<(CultRecordKey, int), float>(); // rock -> its mesh's own farthest vertex + var vertices = new Dictionary(); + foreach (var (mesh, matrices) in drawn) + { + if (!vertices.TryGetValue(mesh, out var v)) vertices[mesh] = v = mesh.vertices; + var own = Mathf.Sqrt(v.Max(x => x.sqrMagnitude)); + foreach (var matrix in matrices) + { + var centre = (Vector3) matrix.GetColumn(3); + var at = rocks.Where(r => Mathf.Abs(r.pose.x - centre.x) < .01f && Mathf.Abs(r.pose.y - centre.z) < .01f).ToArray(); + Require(at.Length == 1, $"An instance of {mesh.name} sits at {centre.x},{centre.z}, where {at.Length} rocks are (a spare or misplaced instance)."); + var rock = at[0]; + Require(seen.TryAdd((rock.belt, rock.index), own), $"Rock {rock.index} of {rock.belt} is drawn twice."); + var reach = v.Max(x => (matrix.MultiplyPoint3x4(x) - centre).magnitude); + Require(Mathf.Abs(reach - rock.pose.w) < Tolerance * Mathf.Max(1f, rock.pose.w), + $"Rock {rock.index} of {rock.belt} on {mesh.name}: its farthest vertex is {reach} from its centre, its gameplay radius {rock.pose.w}."); + var top = centre.y + reach; + var want = DrawAhead.FloaterHeight(zone, settings, rock.pose.xy, lead); + Require(Mathf.Abs(top - want) < Tolerance, + $"Rock {rock.index} of {rock.belt} on {mesh.name}: its top is {top}, the floater layer over the field there {want}."); + } + } + Require(seen.Count == rocks.Count, $"{seen.Count} of {rocks.Count} rocks were drawn."); + + foreach (var belt in new[] { beltA, beltB }) + { + var mine = rocks.Where(r => r.belt.Equals(belt)).ToArray(); + var radii = mine.Select(r => seen[(belt, r.index)]).Distinct().OrderBy(x => x).ToArray(); + Require(radii.Length >= 2, $"Belt {belt} is drawn on {radii.Length} distinct mesh radii: the size match is not exercised."); + var kept = drawn.Where(d => d.matrices.Any(m => mine.Any(r => Mathf.Abs(r.pose.x - m.m03) < .01f && Mathf.Abs(r.pose.y - m.m23) < .01f))).Select(d => d.mesh).Distinct().Count(); + Require(kept == Mathf.Min(game.AsteroidMeshCount, meshes.Length), $"Belt {belt} is drawn on {kept} meshes, not the kept count {game.AsteroidMeshCount}."); + var size = mine.ToDictionary(r => r.index, r => zone.AsteroidBelts[belt].UndamagedSize(r.index, zone.Settings)); + foreach (var a in mine) + foreach (var b in mine) + if (size[a.index] < size[b.index]) + Require(seen[(belt, a.index)] <= seen[(belt, b.index)], + $"Belt {belt}: rock {a.index} (size {size[a.index]}) is smaller than rock {b.index} ({size[b.index]}) and takes a bigger mesh ({seen[(belt, a.index)]} against {seen[(belt, b.index)]})."); + var biggest = mine.OrderByDescending(r => size[r.index]).First(); + Require(Mathf.Approximately(seen[(belt, biggest.index)], radii[^1]), $"Belt {belt}: its biggest rock is not on its biggest mesh."); + } + ActionGameManager.Clock.Reset(); + Debug.Log($"{Tag} ok: {rocks.Count} rocks of 2 belts drawn at the floater layer, big rocks on big meshes ({drawn.Count} batches)"); + } + + // The AsteroidMeshes ARPG.unity's ZoneRenderer names, read before the play session (a scene cannot be opened inside one) and carried across the + // domain reload as asset paths: mesh path, mesh name, material path, stored radius. + private static string ReadWiring() + { + var scene = EditorSceneManager.OpenScene("Assets/Scenes/ARPG.unity", OpenSceneMode.Additive); + try + { + var found = UnityEngine.Object.FindObjectsByType(FindObjectsInactive.Include, FindObjectsSortMode.None) + .Where(r => r.gameObject.scene == scene).ToArray(); + Require(found.Length == 1, $"ARPG.unity has {found.Length} ZoneRenderers."); + var meshes = found[0].AsteroidMeshes ?? throw new InvalidOperationException("ARPG.unity's ZoneRenderer has no AsteroidMeshes."); + return string.Join("|", meshes.Select(m => string.Join("~", AssetDatabase.GetAssetPath(m.Mesh), m.Mesh.name, + m.Material == null ? "" : AssetDatabase.GetAssetPath(m.Material), m.Radius.ToString("R", System.Globalization.CultureInfo.InvariantCulture)))); + } + finally { EditorSceneManager.CloseScene(scene, true); } + } + } +} diff --git a/Assets/Scripts/Editor/BeltFloaterLayerVerify.cs.meta b/Assets/Scripts/Editor/BeltFloaterLayerVerify.cs.meta new file mode 100644 index 000000000..a383593c7 --- /dev/null +++ b/Assets/Scripts/Editor/BeltFloaterLayerVerify.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 7d25a93db1972324fa5460b2415c1e4a \ No newline at end of file diff --git a/Assets/Scripts/Editor/CapabilityPresentationSmoke.cs b/Assets/Scripts/Editor/CapabilityPresentationSmoke.cs index 75d97c63f..135163e24 100644 --- a/Assets/Scripts/Editor/CapabilityPresentationSmoke.cs +++ b/Assets/Scripts/Editor/CapabilityPresentationSmoke.cs @@ -62,7 +62,7 @@ public static class CapabilityPresentationSmoke cache.FlushAsync().Wait(); var ledger = new ProvenanceLedger(); for (var i = 1; i <= 8; i++) ledger.Lots[i] = new Lot { Origin = new Attributed(), Quality = 1 }; - var items = new ItemManager(cache, ledger, settings, _ => { }); + var items = new ItemManager(1u, cache, ledger, settings, _ => { }); var zone = new Zone(items, new PlanetSettings(), new ZonePack(), new GalaxyZone { Name = "Smoke", Owner = null }, null); var hullRef = items.ItemData.RefOf(items.ItemData.GetByName("Smoke Hull")); var ship = new Ship(items, zone, new EquippableItem { Data = hullRef, Durability = 1000, Lot = 1 }, new EntitySettings()); @@ -85,6 +85,11 @@ public static class CapabilityPresentationSmoke ?? throw new InvalidOperationException("No Tractor Beam prefab."); // An entity's instance as the game builds it: the beam is a child before SetEntity on both ship paths, so the // binder finds it as the game does. + // The scene's map: an entity registers its icon with the ZoneRenderer's presenter, so each instance carries a quad. + var mapRenderer = new GameObject("Smoke Zone Renderer").AddComponent(); + mapRenderer.Settings = AssetDatabase.LoadAssetAtPath("Assets/Resources/Settings.asset"); + mapRenderer.MapGravityMaterials = new Material[0]; + Awaken(mapRenderer); (GameObject Object, EntityInstance Instance, TractorBeam Beam) Bound(string name, Entity entity) { var go = new GameObject(name); @@ -98,7 +103,11 @@ public static class CapabilityPresentationSmoke var tractor = ((GameObject)PrefabUtility.InstantiatePrefab(beamPrefab, go.transform)).GetComponent(); tractor.Power = .8f; tractor.Direction = Vector3.forward; - bound.SetEntity(null, entity); + var icon = GameObject.CreatePrimitive(PrimitiveType.Quad); + icon.transform.SetParent(go.transform); + bound.MapIcon = icon.GetComponent(); + bound.MapIcon.sharedMaterial = new Material(Shader.Find("Unlit/Color")); + bound.SetEntity(mapRenderer, entity); return (go, bound, tractor); } var (instanceObject, instance, beam) = Bound("Smoke Entity Instance", ship); diff --git a/Assets/Scripts/Editor/CultCacheDrawers.cs b/Assets/Scripts/Editor/CultCacheDrawers.cs index c446212db..27d21afec 100644 --- a/Assets/Scripts/Editor/CultCacheDrawers.cs +++ b/Assets/Scripts/Editor/CultCacheDrawers.cs @@ -1,3 +1,4 @@ +using System.Collections.Generic; using System; using System.Linq; using System.Reflection; @@ -87,14 +88,13 @@ public sealed class InspectableTemperatureDrawer : ICultInspectorDrawer } } -// A size and a toggle per cell. When the owning item has a schematic texture, the texture lies under the grid and the -// height follows its aspect; a hull's hardpoint cells are tinted. Both read the owning record through +// A size and a toggle per cell. The underlay (the item's schematic texture, or a hull's line art stretched to the Shape's +// Width x Height) is drawn by HullUnderlay; the height follows a texture's aspect. A hull's hardpoint cells are tinted. +// Both read the owning record through // inspector.Record, which is a read-only copy: nothing here writes to it. [CultInspectorDrawer(typeof(InspectableSchematicShapeAttribute))] public sealed class InspectableSchematicShapeDrawer : ICultInspectorDrawer { - private static Material _schematicMaterial; - public object Draw(CultInspector inspector, string label, Type type, object value, MemberInfo member) { if (type != typeof(Shape)) return inspector.DrawDefault(label, type, value, member); @@ -122,18 +122,13 @@ public sealed class InspectableSchematicShapeDrawer : ICultInspectorDrawer { using (var grid = new EditorGUILayout.VerticalScope()) { - if (schematic != null && Event.current.type == EventType.Repaint) - { - _schematicMaterial ??= new Material(Shader.Find("Legacy Shaders/Particles/Additive")); - EditorGUI.DrawPreviewTexture(grid.rect, schematic, _schematicMaterial); - } + HullUnderlay.Draw(grid.rect, item, inspector.Records); for (var y = shape.Height - 1; y >= 0; y--) using (new EditorGUILayout.HorizontalScope()) for (var x = 0; x < shape.Width; x++) { - var hardpoint = hull?.Hardpoints.FirstOrDefault(hp => hp.Shape.Coordinates - .Any(v => v.x + hp.Position.x == x && v.y + hp.Position.y == y)); + var hardpoint = hull?.Hardpoints.FirstOrDefault(hp => HullFootprint.Cells(hp).Contains(int2(x, y))); var previous = GUI.backgroundColor; if (hardpoint != null) GUI.backgroundColor = hardpoint.TintColor.ToColor(); shape[int2(x, y)] = GUILayout.Toggle(shape[int2(x, y)], GUIContent.none, GUILayout.Width(16)); @@ -145,3 +140,93 @@ public sealed class InspectableSchematicShapeDrawer : ICultInspectorDrawer return shape; } } + +// The underlay under a hull's cell grids, drawn on Repaint only. A shipped hull's schematic texture is stretched over +// the grid rect; a mod hull's line art (its ShipAuthoring, found in the open cache at hull.Visual) is placed by +// SchematicUnderlay.Fit in cell units and mapped to the rect here, the one site that maps cells to a grid's screen +// rect. The hull Shape grid and the footprint painter both draw through it. No lookup found: no line underlay. +public static class HullUnderlay +{ + private static Material _schematicMaterial; + + public static void Draw(Rect grid, EquippableItemData item, IReadOnlyList records) + { + if (item == null || Event.current.type != EventType.Repaint) return; + var texture = string.IsNullOrEmpty(item.Schematic) ? null : AssetDatabase.LoadAssetAtPath(AssetDatabase.GUIDToAssetPath(item.Schematic)); + if (texture != null) + { + _schematicMaterial ??= new Material(Shader.Find("Legacy Shaders/Particles/Additive")); + EditorGUI.DrawPreviewTexture(grid, texture, _schematicMaterial); + } + + if (!(item is HullData hull) || hull.Shape == null || hull.Shape.Width == 0 || hull.Shape.Height == 0) return; + var key = CultInspectorModel.RecordKey(hull.Visual); + var authoring = records?.FirstOrDefault(record => record.Key.Value == key && record.Document is ShipAuthoring)?.Document as ShipAuthoring; + if (authoring == null) return; + + var lines = authoring.SchematicLines; + var fit = SchematicUnderlay.Fit(lines, hull.Shape); + for (var i = 0; i < fit.Length; i++) + { + var rgba = lines[i].Color; + var color = rgba == null ? Color.white : new Color(rgba[0], rgba[1], rgba[2], rgba[3]); + var points = fit[i].Select(p => new Vector3( + grid.x + p.x / hull.Shape.Width * grid.width, + grid.yMax - p.y / hull.Shape.Height * grid.height)).ToList(); + if (lines[i].Cyclic && points.Count > 2) points.Add(points[0]); + using (new Handles.DrawingScope(color)) Handles.DrawAAPolyLine(2f, points.ToArray()); + } + } +} + +// A hardpoint's schematic footprint over its hull's cells: the hull's occupied cells shaded, this hardpoint's cells lit +// in its tint, other hardpoints' cells tinted and disabled. A click edits Position and Shape together through +// HullFootprint.Toggle, which owns the rule so a Thing host reads the same one. The footprint is authored for gameplay, +// never derived from the model. Read-only on inspector.Record; only the HardpointData it is given changes. +[CultInspectorDrawer(typeof(HardpointData))] +public sealed class HardpointFootprintDrawer : ICultInspectorDrawer +{ + public object Draw(CultInspector inspector, string label, Type type, object value, MemberInfo member) + { + var hardpoint = value as HardpointData; + if (type != typeof(HardpointData) || hardpoint == null) return inspector.DrawDefault(label, type, value, member); + var hull = inspector.Record as HullData; + var own = hull?.Hardpoints.FirstOrDefault(hp => hp.Type == hardpoint.Type && hp.Position.Equals(hardpoint.Position) + && HullFootprint.Cells(hp).SequenceEqual(HullFootprint.Cells(hardpoint))); + var drawn = (HardpointData) inspector.DrawDefault(label, type, value, member); + if (hull?.Shape == null) return drawn; + + var others = hull.Hardpoints.Where(hp => hp != own).ToArray(); + EditorGUILayout.LabelField("Footprint"); + using (new EditorGUILayout.HorizontalScope()) + { + using (var grid = new EditorGUILayout.VerticalScope()) + { + HullUnderlay.Draw(grid.rect, hull, inspector.Records); + for (var y = hull.Shape.Height - 1; y >= 0; y--) + using (new EditorGUILayout.HorizontalScope()) + for (var x = 0; x < hull.Shape.Width; x++) + { + var cell = int2(x, y); + var other = others.FirstOrDefault(hp => HullFootprint.Cells(hp).Contains(cell)); + var on = HullFootprint.Cells(drawn).Contains(cell); + var previous = GUI.backgroundColor; + GUI.backgroundColor = on ? drawn.TintColor.ToColor() : other != null ? other.TintColor.ToColor() + : hull.Shape[cell] ? Color.gray : previous; + EditorGUI.BeginChangeCheck(); + using (new EditorGUI.DisabledScope(other != null && !on)) + GUILayout.Toggle(on || other != null, GUIContent.none, GUILayout.Width(16)); + if (EditorGUI.EndChangeCheck() && HullFootprint.Toggle(drawn.Shape, drawn.Position, cell, out var shape, out var position)) + { + drawn.Shape = shape; + drawn.Position = position; + GUI.changed = true; + } + GUI.backgroundColor = previous; + } + } + GUILayout.FlexibleSpace(); + } + return drawn; + } +} diff --git a/Assets/Scripts/Editor/DrawnPoseWiringVerify.cs b/Assets/Scripts/Editor/DrawnPoseWiringVerify.cs new file mode 100644 index 000000000..69109a622 --- /dev/null +++ b/Assets/Scripts/Editor/DrawnPoseWiringVerify.cs @@ -0,0 +1,232 @@ +using System; +using System.Collections; +using System.IO; +using System.Linq; +using GameCult.Caching; +using UnityEditor; +using UnityEditor.SceneManagement; +using UnityEngine; +using float2 = CultMath.float2; +using float3 = CultMath.float3; + +// Batch proof that the presenters read the drawn pose through the clock: DrawnPoseTests pins the pose maths headlessly, +// and this is what pins that each presenter passes ActionGameManager.Clock.Lead into it. A zone with a sun and a planet on a moving rail +// is built and the pickup and mine prefabs ARPG.unity's ZoneRenderer names are bound to it as the renderer binds them; a loose Projectile is launched on the +// zone. The zone is stepped once, then the clock is set to leads 0, 0.008 and 0.015 s with no step, and each presenter's +// own Update places its transform. A body is drawn at its last step plus its step velocity times the lead, spelled here +// from the body's fields, so a presenter that reads lead 0 (or half the lead) sits on the step and fails. +// +// Reached: ItemPickup, MineInstance, Projectile.Draw. Not reached: ZoneRenderer.Update (Lower needs a ComputeBuffer, a +// GPU device) and the ActionGameManager markers (they need the ARPG scene running); a Lower split so its record fill is +// pure, or a run with a GPU and ARPG.unity in play mode, would reach them. +// +// Unity -batchmode -nographics -projectPath -executeMethod Aetheria.EditorTools.DrawnPoseWiringVerify.Run -logFile +// +// Do not pass -quit: Run enters play mode (a domain reload), the check runs there, and the Editor exits itself, 0 on +// success and 1 on any failure. +namespace Aetheria.EditorTools +{ + [InitializeOnLoad] + public static class DrawnPoseWiringVerify + { + private const string Tag = "[DrawnPoseWiringVerify]"; + private const string Flag = "DrawnPoseWiringVerify.running"; + private const string Wiring = "DrawnPoseWiringVerify.wiring"; + private const double Budget = 300; // real seconds + private const float RoundSpeed = 100f, Tolerance = 1e-3f; + private static IEnumerator _check; + private static double _started; + private static string _work; + + static DrawnPoseWiringVerify() + { + if (SessionState.GetBool(Flag, false)) EditorApplication.playModeStateChanged += OnPlayMode; + } + + public static void Run() + { + try + { + SessionState.SetString(Wiring, ReadWiring()); + SessionState.SetBool(Flag, true); + EditorApplication.EnterPlaymode(); + } + catch (Exception exception) + { + Debug.LogException(exception); + EditorApplication.Exit(1); + } + } + + private static void OnPlayMode(PlayModeStateChange change) + { + if (change != PlayModeStateChange.EnteredPlayMode) return; + _work = Path.Combine(Path.GetTempPath(), $"drawn-pose-wiring-{Guid.NewGuid():N}"); + Directory.CreateDirectory(_work); + _started = Time.realtimeSinceStartupAsDouble; + _check = Check(); + EditorApplication.update += Step; + } + + private static void Step() + { + try + { + if (Time.realtimeSinceStartupAsDouble - _started > Budget) throw new InvalidOperationException($"The check did not finish in {Budget} seconds."); + if (_check.MoveNext()) return; + Finish(0); + } + catch (Exception exception) + { + Debug.LogException(exception); + Finish(1); + } + } + + private static void Finish(int code) + { + EditorApplication.update -= Step; + SessionState.SetBool(Flag, false); + try { if (Directory.Exists(_work)) Directory.Delete(_work, true); } catch (Exception) { /* a temp directory */ } + EditorApplication.Exit(code); + } + + private static void Require(bool condition, string what) + { + if (!condition) throw new InvalidOperationException(what); + } + + private static IEnumerator Check() + { + var settings = AssetDatabase.LoadAssetAtPath("Assets/Resources/Settings.asset")?.GameplaySettings + ?? throw new InvalidOperationException("No Settings.asset."); + settings.FloaterLayerHeight = -1.5f; // nonzero, so a presenter that drops the floater layer fails + + var wired = SessionState.GetString(Wiring, "").Split('|').Select(entry => entry.Split('=')).ToDictionary(pair => pair[0], pair => pair[1]); + var pickupPrefab = AssetDatabase.LoadAssetAtPath(wired["SimpleCommodityPickup"])?.GetComponent(); + var minePrefab = AssetDatabase.LoadAssetAtPath(wired["MinePrefab"])?.GetComponent(); + Require(pickupPrefab != null, "ZoneRenderer.SimpleCommodityPickup is not an ItemPickup in ARPG.unity."); + Require(minePrefab != null, "ZoneRenderer.MinePrefab is not a MineInstance in ARPG.unity."); + + var oneCell = new Shape(1, 1); + oneCell[new CultMath.int2(0, 0)] = true; + var cache = AetheriaStores.Open(Path.Combine(_work, "wiring.cc"), Path.Combine(_work, "wiring-run.cc"), catalogWritable: true); + cache.Upsert(new VerseGrammar { Revision = 1 }); + cache.Upsert(new SimpleCommodityData { Name = "Wiring Ore", Shape = oneCell, MaxStack = 100 }); + cache.FlushAsync().Wait(); + var ledger = new ProvenanceLedger(); + var items = new ItemManager(1u, cache, ledger, settings, _ => { }); + + // A sun and a planet on a moving rail round it, both near the bodies below: the field under a floater changes with the + // drawn time, so a presenter that samples it at the step's time, drops it, or reads lead 0 for the height draws a different y. + var sunOrbit = cache.Upsert(new OrbitData { FixedPosition = new float2(-55, -.5f) }).Key; + var planetOrbit = cache.Upsert(new OrbitData { Parent = new CultRecordRef(sunOrbit), Distance = 40f, Phase = 0f }).Key; + var pack = new ZonePack { Radius = 5000f, Mass = 10000f }; + pack.Orbits.Add(new CultRecordRef(sunOrbit)); + pack.Orbits.Add(new CultRecordRef(planetOrbit)); + pack.Planets.Add(new CultRecordRef(cache.Upsert(new PlanetData { Name = "Wiring Sun", Orbit = new CultRecordRef(sunOrbit), Mass = 400f }).Key)); + pack.Planets.Add(new CultRecordRef(cache.Upsert(new PlanetData { Name = "Wiring Planet", Orbit = new CultRecordRef(planetOrbit), Mass = 400f }).Key)); + var curves = new PlanetSettings + { + BodyRadius = new ExponentialCurve(), + WellStrength = new ExponentialCurve { Multiplier = 1f, Exponent = 1f }, + RocheLimit = new ExponentialCurve { Constant = 10f } + }; + var zone = new Zone(items, curves, pack, null, null); + + var rootObject = new GameObject("Wiring Zone Root"); + + var ore = new SimpleCommodity { Data = items.ItemData.RefOf(items.ItemData.GetByName("Wiring Ore")), Quantity = 7 }; + var floating = zone.Release(ore, new float2(-17, 4), new float2(10, 0)); + var mine = new Mine + { + Body = new KinematicBody { Position = new float2(-20, 8), Velocity = new float2(0, 14) }, + ArmingDelay = 1e6f, FuseDelay = 1f, Lifetime = 1e6f, BlastRadius = 1f + }; + zone.Lay(mine); + + // Bound the way ZoneRenderer.LoadFloatingItem and LoadMine bind them: the prefab ARPG.unity names, Bind(zone, body, settings). + // (A ZoneRenderer would load this zone's sun and planet too, and that needs the planet prefab, the map and a GPU.) + var pickup = UnityEngine.Object.Instantiate(pickupPrefab, rootObject.transform); + pickup.Bind(zone, floating, settings); + var mineInstance = UnityEngine.Object.Instantiate(minePrefab, rootObject.transform); + mineInstance.Bind(zone, mine, settings); + + // A round on its frozen line, no target and no outcome known: drawn at FireOrigin + direction * speed * (T - FireTime). + var shot = new PendingShot + { + ShotId = 1, FireOrigin = new float3(0, 0, 0), FireTime = 0f, TravelDirection = new float2(1, 0), Speed = RoundSpeed, + MaxRange = 1e6f, FireRange = 1e6f, CommitTime = 1e5f, ArrivalTime = 2e5f + }; + var projectile = new GameObject("Wiring Round").AddComponent(); + projectile.Launch(null, zone, shot, new Vector3(0, 0, 0)); + yield return null; + + zone.Update(.5f); + + + var pickupVelocity = floating.Body.TotalVelocity; + var mineVelocity = mine.Body.TotalVelocity; + Require(Mathf.Abs(pickupVelocity.x) > 1f && Mathf.Abs(mineVelocity.y) > 1f, "The fixture's bodies stopped: a lead would not move them."); + + // The field under each floater really is a function of the drawn time here, by more than the tolerance at the largest lead. + const float LargestLead = .015f; + foreach (var at in new[] { floating.Body.Position + pickupVelocity * LargestLead, mine.Body.Position + mineVelocity * LargestLead }) + Require(Mathf.Abs(DrawAhead.Height(zone, at, LargestLead) - zone.GetHeight(at, zone.ExactTime)) > 5 * Tolerance, + $"The fixture's field is flat under a floater: height {DrawAhead.Height(zone, at, LargestLead)} at the drawn time, {zone.GetHeight(at, zone.ExactTime)} at the step, planet at {zone.OrbitPositionAt(planetOrbit, zone.ExactTime)}, floater at {at}."); + + Vector2 baseline = default; + foreach (var leadSeconds in new[] { 0f, .008f, .015f }) + { + ActionGameManager.Clock.Reset(); + if (leadSeconds > 0) ActionGameManager.Clock.Advance(leadSeconds, _ => throw new InvalidOperationException("a step ran")); + var lead = ActionGameManager.Clock.Lead; + Require(Mathf.Abs(lead - leadSeconds) < 1e-6f, $"The clock's lead is {lead}, not {leadSeconds}."); + yield return null; + + var seen = pickup.transform.position; + var want = floating.Body.Position + pickupVelocity * lead; + Require(Mathf.Abs(seen.x - want.x) < Tolerance && Mathf.Abs(seen.z - want.y) < Tolerance, + $"ItemPickup at lead {lead}: drawn x/z {seen.x},{seen.z}, the step plus velocity times lead {want.x},{want.y}."); + + Require(Mathf.Abs(seen.y - DrawAhead.FloaterHeight(zone, settings, new float2(want.x, want.y), lead)) < Tolerance, + $"ItemPickup y {seen.y} is not on the floater layer."); + + seen = mineInstance.transform.position; + want = mine.Body.Position + mineVelocity * lead; + Require(Mathf.Abs(seen.x - want.x) < Tolerance && Mathf.Abs(seen.z - want.y) < Tolerance, + $"MineInstance at lead {lead}: drawn x/z {seen.x},{seen.z}, the step plus velocity times lead {want.x},{want.y}."); + Require(Mathf.Abs(seen.y - DrawAhead.FloaterHeight(zone, settings, new float2(want.x, want.y), lead)) < Tolerance, + $"MineInstance y {seen.y} is not on the floater layer."); + + // The round's line is a function of the drawn time: it moves RoundSpeed * lead along its direction between leads. + seen = projectile.transform.position; + if (leadSeconds == 0f) baseline = new Vector2(seen.x, seen.z); + var moved = new Vector2(seen.x, seen.z) - baseline; + Require(Mathf.Abs(moved.x - RoundSpeed * lead) < Tolerance && Mathf.Abs(moved.y) < Tolerance, + $"Projectile at lead {lead}: drawn {moved.x},{moved.y} past its lead-0 pose, expected {RoundSpeed * lead},0."); + } + ActionGameManager.Clock.Reset(); + Debug.Log($"{Tag} ok: ItemPickup, MineInstance and Projectile draw at the clock's lead (0, 0.008, 0.015 s)"); + } + + // What ARPG.unity's ZoneRenderer names in the pickup and mine fields, read from the saved scene before the play session + // (a scene cannot be opened inside one) and carried across the domain reload as asset paths. + private static string ReadWiring() + { + var scene = EditorSceneManager.OpenScene("Assets/Scenes/ARPG.unity", OpenSceneMode.Additive); + try + { + var found = UnityEngine.Object.FindObjectsByType(FindObjectsInactive.Include, FindObjectsSortMode.None) + .Where(r => r.gameObject.scene == scene).ToArray(); + Require(found.Length == 1, $"ARPG.unity has {found.Length} ZoneRenderers."); + var wired = found[0]; + return string.Join("|", new (string, UnityEngine.Object)[] + { + ("SimpleCommodityPickup", wired.SimpleCommodityPickup), ("MinePrefab", wired.MinePrefab) + }.Select(f => f.Item1 + "=" + (f.Item2 == null ? "" : AssetDatabase.GetAssetPath(f.Item2)))); + } + finally { EditorSceneManager.CloseScene(scene, true); } + } + } +} diff --git a/Assets/Scripts/Editor/DrawnPoseWiringVerify.cs.meta b/Assets/Scripts/Editor/DrawnPoseWiringVerify.cs.meta new file mode 100644 index 000000000..534bebdb6 --- /dev/null +++ b/Assets/Scripts/Editor/DrawnPoseWiringVerify.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: c2270cf68a4af384eb715c8b5a55f5e8 \ No newline at end of file diff --git a/Assets/Scripts/Editor/FloatingItemsDrawnSmoke.cs b/Assets/Scripts/Editor/FloatingItemsDrawnSmoke.cs index 50f6fcb94..742e8aa9d 100644 --- a/Assets/Scripts/Editor/FloatingItemsDrawnSmoke.cs +++ b/Assets/Scripts/Editor/FloatingItemsDrawnSmoke.cs @@ -24,7 +24,8 @@ public static class FloatingItemsDrawnSmoke private const string Flag = "FloatingItemsDrawnSmoke.running"; private const string Wiring = "FloatingItemsDrawnSmoke.wiring"; private static IEnumerator _check; - private static int _frames; + private const double Budget = 300; // real seconds: batch frames can be far shorter than a game second + private static double _started; private static string _work; static FloatingItemsDrawnSmoke() @@ -52,6 +53,7 @@ public static class FloatingItemsDrawnSmoke if (change != PlayModeStateChange.EnteredPlayMode) return; _work = Path.Combine(Path.GetTempPath(), $"floating-items-smoke-{Guid.NewGuid():N}"); Directory.CreateDirectory(_work); + _started = Time.realtimeSinceStartupAsDouble; _check = Check(); EditorApplication.update += Step; } @@ -60,7 +62,7 @@ public static class FloatingItemsDrawnSmoke { try { - if (++_frames > 3000) throw new InvalidOperationException("The check did not finish in 3000 frames."); + if (Time.realtimeSinceStartupAsDouble - _started > Budget) throw new InvalidOperationException($"The check did not finish in {Budget} seconds."); if (_check.MoveNext()) return; Finish(0); } @@ -88,6 +90,8 @@ public static class FloatingItemsDrawnSmoke { var settings = AssetDatabase.LoadAssetAtPath("Assets/Resources/Settings.asset")?.GameplaySettings ?? throw new InvalidOperationException("No Settings.asset."); + // A floater rides its own layer: a nonzero one (never saved back to the asset), so a presenter that drops it fails. + settings.FloaterLayerHeight = -1.5f; // The wiring: the scene's ZoneRenderer names an ItemPickup prefab in each of the four fields, and none of those // prefabs keeps a script that no longer exists. @@ -120,7 +124,7 @@ public static class FloatingItemsDrawnSmoke cache.FlushAsync().Wait(); var ledger = new ProvenanceLedger(); for (var i = 1; i <= 8; i++) ledger.Lots[i] = new Lot { Origin = new Attributed(), Quality = 1 }; - var items = new ItemManager(cache, ledger, settings, _ => { }); + var items = new ItemManager(1u, cache, ledger, settings, _ => { }); var zone = new Zone(items, new PlanetSettings(), new ZonePack(), null, null); EquippableItem Make(string name, int lot) => new EquippableItem { @@ -145,6 +149,7 @@ public static class FloatingItemsDrawnSmoke typeof(ZoneRenderer).GetField(name).SetValue(renderer, pickup); renderer.ItemManager = items; renderer.SectorBrushes = new GameObject("Smoke Brushes").transform; + renderer.AmbientLight = Aetheria.EditorTools.AmbientEdgeVerify.NewAmbientLight(); renderer.SlimeGravityCamera = new GameObject("Smoke Gravity Camera").AddComponent(); var slimeObject = new GameObject("Smoke Slime"); slimeObject.SetActive(false); // the real Slime needs its compute shader; LoadZone only sets its radius @@ -155,8 +160,9 @@ public static class FloatingItemsDrawnSmoke ItemPickup[] Pickups() => rootObject.GetComponentsInChildren(true).Where(p => p != null).ToArray(); void At(ItemPickup pickup, FloatingItem floating, string what) { - var at = floating.Body.Position; - var want = new Vector3(at.x, zone.GetHeight(at), at.y); + var lead = ActionGameManager.Clock.Lead; + var at = DrawAhead.Position(floating.Body, lead); + var want = new Vector3(at.x, DrawAhead.FloaterHeight(zone, settings, at, lead), at.y); Require(Vector3.Distance(pickup.transform.position, want) < 1e-3f, $"{what}: the pickup is at {pickup.transform.position}, the body at {want}."); } @@ -185,10 +191,13 @@ public static class FloatingItemsDrawnSmoke var earlyPickup = Pickups().Single(p => p.Item == early.Item); earlyPickup.LabelPersistDuration = 1; earlyPickup.LabelFadeDuration = .2f; - for (var i = 0; i < 1200 && earlyPickup.ScanLabel.color.a > .05f; i++) yield return null; + // Game time, not frames: batch frames can be far shorter than a game second, so a frame count can run out before the fade. + var labelUntil = Time.time + earlyPickup.LabelPersistDuration + earlyPickup.LabelFadeDuration + 1f; + while (Time.time < labelUntil && earlyPickup.ScanLabel.color.a > .05f) yield return null; Require(earlyPickup.ScanLabel.color.a <= .05f, "label: an unviewed, unheld label did not go dark."); Require(zone.TryHold(taker, early.Id), "label: the zone refused to hold the item."); - for (var i = 0; i < 1200 && earlyPickup.ScanLabel.color.a < .95f; i++) yield return null; + labelUntil = Time.time + earlyPickup.LabelPersistDuration + earlyPickup.LabelFadeDuration + 1f; + while (Time.time < labelUntil && earlyPickup.ScanLabel.color.a < .95f) yield return null; Require(earlyPickup.ScanLabel.color.a >= .95f, "label: a held item's label is not lit."); // The test scene's stand-in sim and tendril ride the zone's own held-pose curve: its pose at each point of a grab diff --git a/Assets/Scripts/Editor/FlowFieldParityVerify.cs b/Assets/Scripts/Editor/FlowFieldParityVerify.cs index 90979f7e8..2fa3e5fda 100644 --- a/Assets/Scripts/Editor/FlowFieldParityVerify.cs +++ b/Assets/Scripts/Editor/FlowFieldParityVerify.cs @@ -106,7 +106,7 @@ namespace Aetheria.EditorTools var cache = AetheriaStores.Open(Path.Combine(work, Guid.NewGuid().ToString("N") + ".cc"), catalogWritable: true); cache.Upsert(new VerseGrammar { Revision = 1 }); cache.FlushAsync().Wait(); - var items = new ItemManager(cache, new ProvenanceLedger(), settings.GameplaySettings, _ => { }); + var items = new ItemManager(1u, cache, new ProvenanceLedger(), settings.GameplaySettings, _ => { }); return new Zone(items, new PlanetSettings { Flow = flow }, new ZonePack { Time = time }, new GalaxyZone { Name = "Parity", Owner = null }, null); } diff --git a/Assets/Scripts/Editor/FlowFieldSceneVerify.cs b/Assets/Scripts/Editor/FlowFieldSceneVerify.cs index 80d9a4e31..d39874f33 100644 --- a/Assets/Scripts/Editor/FlowFieldSceneVerify.cs +++ b/Assets/Scripts/Editor/FlowFieldSceneVerify.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.IO; using System.Linq; using System.Reflection; @@ -140,6 +140,9 @@ namespace Aetheria.EditorTools Call(volume, "Update"); if (Differing(flowing, Frame()) == 0) Fail("scene-stardust-run", "the particle buffer did not move while the zone ran"); if (Shader.GetGlobalFloat("_NebulaNoiseTime") == noiseTime) Fail("scene-noise-clock", "_NebulaNoiseTime did not move while the zone ran"); + + CheckStardustUncullable(dust, bufferField); + CheckStardustUnderFog(dust, bufferField); } finally { @@ -147,6 +150,214 @@ namespace Aetheria.EditorTools } } + // The event Stardust itself attaches its draw at, read from the class so the verifier cannot agree with a copy of it. + static CameraEvent DrawEvent() => + (CameraEvent) typeof(Stardust).GetField("DrawEvent", BindingFlags.NonPublic | BindingFlags.Static).GetRawConstantValue(); + + // The dust is a command buffer on the target camera, which no culling sees: with every particle 10000 below the + // camera (far past any box a hand could inflate round it) a render still shows dust, and shows none when the + // same particles have no size. + static void CheckStardustUncullable(Stardust dust, FieldInfo bufferField) + { + var camera = dust.TargetCamera; + if (camera == null) { Fail("scene-stardust-uncullable", "Stardust has no TargetCamera"); return; } + var drawEvent = DrawEvent(); + var attached = camera.GetCommandBuffers(drawEvent).Count(buffer => buffer.name == "Stardust"); + if (attached != 1) Fail("scene-stardust-uncullable", $"{attached} Stardust command buffers at {drawEvent} on the target camera, expected 1"); + foreach (var other in Enum.GetValues(typeof(CameraEvent)).Cast().Where(other => other != drawEvent)) + { + var stray = camera.GetCommandBuffers(other).Count(buffer => buffer.name == "Stardust"); + if (stray != 0) Fail("scene-stardust-uncullable", $"{stray} Stardust command buffers at {other}, expected 0"); + } + + var particles = (ComputeBuffer) bufferField.GetValue(dust); + float[] Layout(float size, Vector3 centre, float below) => DustLayout(particles.count, size, centre, below); + + var transform = camera.transform; + var (position, rotation) = (transform.position, transform.rotation); + var (far, flags, background, mask, target) = (camera.farClipPlane, camera.clearFlags, camera.backgroundColor, camera.cullingMask, camera.targetTexture); + var texture = RenderTexture.GetTemporary(64, 64, 24, RenderTextureFormat.ARGB32); + var readback = new Texture2D(64, 64, TextureFormat.RGBA32, false); + var previous = RenderTexture.active; + // Image effects on the camera would write their own frame over the dust; only the dust draw is under test. + var effects = camera.GetComponents().Where(behaviour => behaviour.enabled).ToArray(); + Color32[] Render(float size, Vector3 centre, float below) + { + Call(dust, "Update"); // on a bounded draw this queues the draw for the camera; here it dispatches the compute + particles.SetData(Layout(size, centre, below)); + camera.Render(); + RenderTexture.active = texture; + readback.ReadPixels(new Rect(0, 0, 64, 64), 0, 0); + readback.Apply(); + return readback.GetPixels32(); + } + try + { + foreach (var effect in effects) effect.enabled = false; + camera.clearFlags = CameraClearFlags.SolidColor; + camera.backgroundColor = Color.black; + camera.cullingMask = 1; + camera.targetTexture = texture; + // control: the camera where the scene put it, dust 100 below, inside any box a hand-set extent would give + transform.SetPositionAndRotation(position, Quaternion.Euler(90f, 0f, 0f)); + camera.farClipPlane = 1000f; + var nearWith = Render(5f, position, 100f); var nearWithout = Render(0f, position, 100f); + var nearDiff = 0; for (var i = 0; i < nearWith.Length; i++) if (!nearWith[i].Equals(nearWithout[i])) nearDiff++; + Debug.Log($"{Tag} stardust near-control differing pixels={nearDiff}"); + if (nearDiff == 0) Fail("scene-stardust-uncullable", "control: dust 100 below the camera drew no pixels"); + transform.SetPositionAndRotation(new Vector3(0f, -40000f, 0f), Quaternion.Euler(90f, 0f, 0f)); + camera.farClipPlane = 30000f; + var withDust = Render(400f, transform.position, 10000f); // the material scales a quad by distance^.33, so at this range it needs this size to cover pixels + var without = Render(0f, transform.position, 10000f); + var differing = 0; + for (var i = 0; i < withDust.Length; i++) + if (!withDust[i].Equals(without[i])) differing++; + if (differing == 0) Fail("scene-stardust-uncullable", "the dust 10000 below the camera drew no pixels"); + } + finally + { + RenderTexture.active = previous; + foreach (var effect in effects) effect.enabled = true; + camera.targetTexture = target; + camera.cullingMask = mask; + camera.backgroundColor = background; + camera.clearFlags = flags; + camera.farClipPlane = far; + transform.SetPositionAndRotation(position, rotation); + RenderTexture.ReleaseTemporary(texture); + UnityEngine.Object.DestroyImmediate(readback); + } + } + + // The nebula is an [ImageEffectOpaque] that fogs the whole ray to a depth the dust never writes (B49): dust drawn + // before it is attenuated by the fog, dust drawn after it sits on top at full strength. The dust's contribution to a + // pixel (render with dust minus render without) is read with the cloud renderer off and on, in an HDR target. + static void CheckStardustUnderFog(Stardust dust, FieldInfo bufferField) + { + const int Size = 128; + var camera = dust.TargetCamera; + var cloud = camera == null ? null : camera.GetComponent(); + if (cloud == null) { Fail("scene-stardust-under-fog", "the target camera has no VolumeCloudRenderer"); return; } + var particles = (ComputeBuffer) bufferField.GetValue(dust); + + var transform = camera.transform; + var (position, rotation) = (transform.position, transform.rotation); + var (far, flags, background, mask, target, hdr) = (camera.farClipPlane, camera.clearFlags, camera.backgroundColor, camera.cullingMask, camera.targetTexture, camera.allowHDR); + var texture = RenderTexture.GetTemporary(Size, Size, 24, RenderTextureFormat.ARGBHalf); + var readback = new Texture2D(Size, Size, TextureFormat.RGBAHalf, false); + var previous = RenderTexture.active; + var effects = camera.GetComponents().Where(behaviour => behaviour.enabled).ToArray(); + var fields = new System.Collections.Generic.List(); + GameObject floor = null; + float[] Render(bool fog, float size) + { + cloud.enabled = fog; + for (var frame = 0; frame < 2; frame++) // the cloud's first frame forces ULTRA and fills its history; the second is the settled one + { + Call(dust, "Update"); + particles.SetData(DustLayout(particles.count, size, position, 100f)); + camera.Render(); + } + RenderTexture.active = texture; + readback.ReadPixels(new Rect(0, 0, Size, Size), 0, 0); + readback.Apply(); + return readback.GetPixels().Select(pixel => pixel.r * .2126f + pixel.g * .7152f + pixel.b * .0722f).ToArray(); + } + try + { + foreach (var effect in effects) effect.enabled = false; + camera.allowHDR = true; + camera.clearFlags = CameraClearFlags.SolidColor; + camera.backgroundColor = Color.black; + camera.cullingMask = 1; + camera.targetTexture = texture; + camera.farClipPlane = 1000f; + transform.SetPositionAndRotation(position, Quaternion.Euler(90f, 0f, 0f)); + // The fog only measures a partial density where depth is written: a pixel with no depth is fogged whole (CloudShader sets + // density 1 past the far plane). A floor under the dust gives the march a finite ray. + floor = GameObject.CreatePrimitive(PrimitiveType.Plane); + floor.transform.position = position + Vector3.down * 200f; + floor.transform.localScale = Vector3.one * 100f; + UnityEngine.Object.DestroyImmediate(floor.GetComponent()); + + // The scene's own nebula fields are textures the game renders; here a uniform fill of white fog stands in for them. + foreach (var (name, format) in new[] { ("_NebulaSurfaceHeight", TextureFormat.RFloat), ("_NebulaPatchHeight", TextureFormat.RHalf), ("_NebulaPatch", TextureFormat.RHalf) }) + Shader.SetGlobalTexture(name, Uniform(format, Color.black, fields)); + Shader.SetGlobalTexture("_NebulaTint", Uniform(TextureFormat.RGBA32, Color.white, fields)); + Shader.DisableKeyword("NOISE_SLOPE"); + Shader.SetGlobalFloat("_NebulaFillDensity", .01f); + Shader.SetGlobalFloat("_NebulaFillDistance", 120f); + Shader.SetGlobalFloat("_NebulaFillExponent", 0f); + Shader.SetGlobalFloat("_NebulaFillOffset", 0f); + Shader.SetGlobalFloat("_NebulaPatchDensity", 0f); + Shader.SetGlobalFloat("_NebulaLuminance", .01f); // a fog dimmer than the dust: dust drawn over it would otherwise read as a negative contribution + Shader.SetGlobalFloat("_ExtinctionCoefficient", .25f); // with the fill density, about 40% of the light to the floor is fogged away + Shader.SetGlobalFloat("_SafetyDistance", -1e6f); // below every sample: only the uniform fill, none of the zone's noise + Shader.SetGlobalFloat("_TintLodExponent", 0f); + + var clearBare = Render(false, 0f); + var clearDust = Render(false, 5f); + var fogBare = Render(true, 0f); + var fogDust = Render(true, 5f); + + var fogShown = 0f; + var (clearSum, fogSum, drawn) = (0f, 0f, 0); + for (var i = 0; i < clearBare.Length; i++) + { + fogShown += Mathf.Abs(fogBare[i] - clearBare[i]) / clearBare.Length; + if (clearDust[i] == clearBare[i]) continue; + drawn++; clearSum += clearDust[i] - clearBare[i]; fogSum += fogDust[i] - fogBare[i]; + } + var (clearMean, fogMean) = (drawn == 0 ? 0f : clearSum / drawn, drawn == 0 ? 0f : fogSum / drawn); + Debug.Log($"{Tag} stardust under fog: fog control mean |difference|={fogShown}, dust pixels={drawn}, dust contribution cloud off={clearMean}, cloud on={fogMean}, ratio={(clearMean == 0f ? 0f : fogMean / clearMean)}"); + if (drawn == 0 || clearMean <= 0f) Fail("scene-stardust-under-fog", "control: the dust drew no pixels with the cloud renderer off"); + else if (fogShown < 1e-3f) Fail("scene-stardust-under-fog", "control: the cloud renderer changed no pixels, so no fog is in view"); + else if (fogMean > .9f * clearMean) Fail("scene-stardust-under-fog", "the dust is not attenuated by the fog in front of it: it was drawn after the nebula composites"); + else if (fogMean < .1f * clearMean) Fail("scene-stardust-under-fog", "the dust is erased, not dimmed, by a partial fog"); + } + finally + { + RenderTexture.active = previous; + foreach (var effect in effects) effect.enabled = true; + camera.allowHDR = hdr; + camera.targetTexture = target; + camera.cullingMask = mask; + camera.backgroundColor = background; + camera.clearFlags = flags; + camera.farClipPlane = far; + transform.SetPositionAndRotation(position, rotation); + RenderTexture.ReleaseTemporary(texture); + UnityEngine.Object.DestroyImmediate(readback); + foreach (var field in fields) UnityEngine.Object.DestroyImmediate(field); + if (floor != null) UnityEngine.Object.DestroyImmediate(floor); + } + } + + static Texture2D Uniform(TextureFormat format, Color colour, System.Collections.Generic.List owner) + { + var texture = new Texture2D(1, 1, format, false) { wrapMode = TextureWrapMode.Clamp }; + texture.SetPixel(0, 0, colour); + texture.Apply(); + owner.Add(texture); + return texture; + } + + // A square patch of particles 4 apart, `below` under `centre`. + static float[] DustLayout(int count, float size, Vector3 centre, float below) + { + var side = Mathf.RoundToInt(Mathf.Sqrt(count)); + var data = new float[count * 7]; + for (var i = 0; i < count; i++) + { + data[i * 7 + 0] = centre.x + ((i % side) - side / 2f) * 4f; + data[i * 7 + 1] = centre.y - below; + data[i * 7 + 2] = centre.z + ((i / side) - side / 2f) * 4f; + data[i * 7 + 3] = data[i * 7 + 4] = data[i * 7 + 5] = 1f; + data[i * 7 + 6] = size; + } + return data; + } + // CloudShader's pass 0 compiles with the flow keywords (it must #include_with_pragmas the shared include). static void CheckCloudKeywords() { diff --git a/Assets/Scripts/Editor/GravityFieldParityVerify.cs b/Assets/Scripts/Editor/GravityFieldParityVerify.cs index c6de02c4a..279d9b16b 100644 --- a/Assets/Scripts/Editor/GravityFieldParityVerify.cs +++ b/Assets/Scripts/Editor/GravityFieldParityVerify.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using System.IO; using System.Linq; using GameCult.Caching; @@ -27,14 +28,16 @@ namespace Aetheria.EditorTools const string Tag = "[GravityFieldParityVerify]"; const int Size = 256; // Measured on this tree (the "max error" line this run prints): the largest |texel + GetHeight| over the windows of the three - // frames and windows is 0.0065 u, in the last frame's planetoid window (float32 on both sides, the GPU's log against the CPU's, the - // quad's interpolated world position). The tolerance is 4.6x that. A 0.1% error in the tail constant (.5 -> .501) - // moves the drawn height by 0.053 u where all three tails reach (the planetoid and zone windows), 1.8x the - // tolerance; a reference of zero moves it by about 150 u. - const float Tolerance = 0.03f; + // frames is 0.0103 u, in the moved-again frame's sun window (float32 on both sides, the GPU's log and the closed form's + // single-precision floor of 1.5e-5 per unit strength against the CPU's, the quad's interpolated world position). The + // tolerance is 2.9x that. A band whose terms were drawn from the wrong edge (reference, inner or outer) moves the + // drawn height by whole units. + internal const float Tolerance = 0.03f; // The worst angle between the texture's central difference and GetForce (B28: 1.0 degrees median zone, 2.9 worst). - const float GradientDegrees = 3f; - static float _maxError, _maxAngle; + internal const float GradientDegrees = 3f; + // Below this force (u/s^2) the drawn height differs between neighbouring texels by less than float32 resolves. + internal const float FlatForce = 1e-3f; + static float _maxError, _maxAngle, _maxTau; static bool _ok = true; static void OnLog(string message, string stack, LogType type) @@ -70,22 +73,29 @@ namespace Aetheria.EditorTools var material = AssetDatabase.LoadAssetAtPath("Assets/Materials/Brushes/Gravity Field.mat") ?? throw new InvalidOperationException("No Gravity Field.mat."); - var zone = BuildZone(settings, work, out var orbits); - GravityLowering.Lower(zone, ref wells); + var zone = BuildZone(settings, work, out var orbits, multiRoot: true); + GravityLowering.Lower(zone, 0f, ref wells); field = GravityLowering.CreateField(material); - // Three frames through the one buffer, as ZoneRenderer.Update runs it: the bodies as built, then two moves - // (an orbit's Position is what Zone.GetHeight reads). A lowering that mirrors an axis or stops refreshing - // the upload agrees with the sim in the first frame only where it is symmetric, and not after a move. + // Three frames through the one buffer, as ZoneRenderer.Update runs it: the bodies as built, then two moves (an + // orbit's Position is what Zone.GetHeight reads). A move keeps the tree's geometry, since a rail never leaves + // its parent's distance and the walk skips a subtree outside its reach: the sun is the root, the planet is + // its Distance from the sun, the planetoid its Distance from the planet. A lowering that mirrors an axis or + // stops refreshing the upload agrees with the sim in the first frame only where it is symmetric. CheckFrame("built", zone, orbits); - orbits[1].Position = new float2(-420f, 560f); - orbits[2].Position = new float2(900f, -700f); - GravityLowering.Lower(zone, ref wells); + orbits[1].Position = Around(orbits[0], orbits[1], .31f); + orbits[2].Position = Around(orbits[1], orbits[2], .77f); + orbits[5].Position = Around(orbits[1], orbits[5], .41f); + GravityLowering.Lower(zone, 0f, ref wells); CheckFrame("moved", zone, orbits); orbits[0].Position = new float2(210f, -95f); - orbits[2].Position = new float2(-1800f, 1300f); - GravityLowering.Lower(zone, ref wells); + orbits[1].Position = Around(orbits[0], orbits[1], .52f); + orbits[2].Position = Around(orbits[1], orbits[2], .05f); + orbits[5].Position = Around(orbits[1], orbits[5], .93f); + GravityLowering.Lower(zone, 0f, ref wells); CheckFrame("moved-again", zone, orbits); + if (_maxTau <= 1f) Fail("series-branch", $"the largest tau over the drawn bounded terms is {_maxTau:G4}; no window draws the series branch"); + Debug.Log($"{Tag} largest drawn tau {_maxTau:G4}"); Debug.Log($"{Tag} max error {_maxError:G4} u (tolerance {Tolerance:G4}); max gradient angle {_maxAngle:F2} degrees (limit {GradientDegrees:F0})"); CheckWiring(settings); @@ -108,35 +118,69 @@ namespace Aetheria.EditorTools static float Core(Zone zone, float mass) => zone.Settings.RocheLimit.Evaluate(mass); + // Where an orbit lies when it stands `turns` round its parent at its Distance. + static float2 Around(Orbit parent, Orbit child, float turns) => parent.Position + child.Data.Distance * OrbitData.Evaluate(turns); + static Vector2 At(Orbit orbit) => new Vector2(orbit.Position.x, orbit.Position.y); // Orbits 0-2 are the sun, the planet and the planetoid, each window centred where the body is now; orbit 3 is the - // body of no strength. The zone window holds all four. + // body of no strength, orbit 4 the second sun and orbit 5 the planet's moon inside its Roche limit (whose band has + // tau above 1: the series branch of the shader). The zone window holds all of them; the far window is centred on the + // zone node, so its band (nothing inside A, the zone's mass beyond Beta A) is drawn. A window draws a term when + // the term's disc reaches it; the largest tau over the drawn terms must exceed 1 or the series branch went unchecked. static void CheckFrame(string frame, Zone zone, Orbit[] orbits) { CheckTexels(frame + "-planetoid", zone, At(orbits[2]), 4f * Core(zone, 29.2f)); + CheckTexels(frame + "-planet", zone, At(orbits[1]), 4f * Core(zone, 273.9f)); CheckTexels(frame + "-sun", zone, At(orbits[0]), 4f * Core(zone, 14152f)); CheckTexels(frame + "-zone", zone, Vector2.zero, 1.05f * zone.Pack.Radius); + var centre = new Vector2(zone.Wells.Centre.x, zone.Wells.Centre.y); + var span = 0f; + foreach (var root in new[] { orbits[0], orbits[4] }) + span = Math.Max(span, (At(root) - centre).magnitude + zone.Wells.Reach(zone.Orbits.First(o => o.Value == root).Key)); + // The wells have their own windows: out here a texel is 40 u wide, so only the ring from 0.9 A outward, where the + // zone node's band rises and the zone becomes one body, is measured. + CheckTexels(frame + "-far", zone, centre, 1.6f * span, .9f * span); CheckGradient(zone, orbits.Select(At).ToArray()); } - // A sun (14152 at (-130, 85)), a planet (273.9 at (610, -240)), a planetoid (29.2 at (670, -270)) and a body of - // mass 0, whose well has no strength (a legal body; its curves give c = 0 and R = 0), at (1700, 300): parentless, - // fixed, off both axes and asymmetric, so the zone's wells sit where the verify says before any Update and a - // mirrored or swapped axis cannot agree with the sim. - static Zone BuildZone(GameSettings settings, string work, out Orbit[] orbits) + // A sun (14152 at (-130, 85)), its planet (273.9, placed at (610, -240) at the pack's time), the planet's planetoid + // (29.2, placed at (670, -270)) and a body of mass 0, whose well has no strength (a legal body; its curves give + // c = 0 and R = 0), at (1700, 300): a family, so the band terms are drawn (the planet's and the sun's cusps and + // fades), off both axes and asymmetric, so the zone's wells sit where the verify says before any Update and a + // mirrored or swapped axis cannot agree with the sim. The sun and the zero-mass body are fixed roots. + internal static Zone BuildZone(GameSettings settings, string work, out Orbit[] orbits, float radius = 4182f, bool multiRoot = false) { var cache = AetheriaStores.Open(Path.Combine(work, "catalog.cc"), Path.Combine(work, "run.cc"), catalogWritable: true); cache.Upsert(new VerseGrammar { Revision = 1 }); cache.FlushAsync().Wait(); - var items = new ItemManager(cache, new ProvenanceLedger(), settings.GameplaySettings, _ => { }); - var positions = new[] { new Vector2(-130f, 85f), new Vector2(610f, -240f), new Vector2(670f, -270f), new Vector2(1700f, 300f) }; - var masses = new[] { 14152f, 273.9f, 29.2f, 0f }; - var keys = new CultRecordKey[positions.Length]; - var pack = new ZonePack { Radius = 4182f }; - for (var i = 0; i < positions.Length; i++) + var items = new ItemManager(1u, cache, new ProvenanceLedger(), settings.GameplaySettings, _ => { }); + var positions = new List { new Vector2(-130f, 85f), new Vector2(610f, -240f), new Vector2(670f, -270f), new Vector2(1700f, 300f) }; + var masses = new List { 14152f, 273.9f, 29.2f, 0f }; + var parents = new List { -1, 0, 1, -1 }; + if (multiRoot) { - var orbit = keys[i] = cache.Upsert(new OrbitData { FixedPosition = new float2(positions[i].x, positions[i].y) }).Key; + // A second sun (a second subzone, so the zone node exists) and a moon of the planet 0.6 of its Roche limit away. + positions.Add(new Vector2(-2400f, -1900f)); + masses.Add(3000f); + parents.Add(-1); + positions.Add(positions[1] + new Vector2(-.6f * settings.PlanetSettings.RocheLimit.Evaluate(273.9f), 0f)); + masses.Add(1f); + parents.Add(1); + } + var keys = new CultRecordKey[positions.Count]; + var pack = new ZonePack { Radius = radius }; + for (var i = 0; i < positions.Count; i++) + { + var data = new OrbitData { FixedPosition = new float2(positions[i].x, positions[i].y) }; + if (parents[i] >= 0) + { + var offset = positions[i] - positions[parents[i]]; + data.Parent = new CultRecordRef(keys[parents[i]]); + data.Distance = offset.magnitude; + data.Phase = Mathf.Atan2(offset.y, offset.x) / (2f * Mathf.PI); + } + var orbit = keys[i] = cache.Upsert(data).Key; var body = cache.Upsert(new PlanetData { Name = "Body " + i, Orbit = new CultRecordRef(orbit), Mass = masses[i] }).Key; pack.Orbits.Add(new CultRecordRef(orbit)); @@ -195,13 +239,29 @@ namespace Aetheria.EditorTools } } - static void CheckTexels(string window, Zone zone, Vector2 centre, float half) + // The largest tau = (a^2 + eps^2) / (b^2 - a^2) over the bounded terms whose disc reaches the window's square. + static void NoteTau(Zone zone, Vector2 centre, float half) + { + foreach (var term in zone.Wells.Terms) + { + if (float.IsPositiveInfinity(term.Outer)) continue; + var at = term.Node.IsSet() ? zone.Orbits[term.Node].Position : zone.Wells.Centre; + if (Math.Abs(at.x - centre.x) > half + term.Outer || Math.Abs(at.y - centre.y) > half + term.Outer) continue; + _maxTau = Math.Max(_maxTau, (term.Inner * term.Inner + term.Softening * term.Softening) / (term.Outer * term.Outer - term.Inner * term.Inner)); + } + } + + static void CheckTexels(string window, Zone zone, Vector2 centre, float half, float ringFrom = 0f) { Render(centre, half, out var depth, out var world); + NoteTau(zone, centre, half); var worst = 0f; var live = 0; + var measured = 0; for (var i = 0; i < depth.Length; i++) { + if ((world[i] - centre).magnitude < ringFrom) continue; + measured++; var expected = -zone.GetHeight(new float2(world[i].x, world[i].y)); if (float.IsNaN(depth[i])) { Fail($"{window}-texels", $"texel {i}: NaN"); return; } var error = Math.Abs(depth[i] - expected); @@ -215,7 +275,7 @@ namespace Aetheria.EditorTools } _maxError = Math.Max(_maxError, worst); // A window that draws nothing agrees with a zone that is flat: the check must be live. - if (live < depth.Length / 2) Fail($"{window}-texels", $"only {live} of {depth.Length} texels are deeper than 1 u; the check is vacuous"); + if (live < measured / 2) Fail($"{window}-texels", $"only {live} of {measured} texels are deeper than 1 u; the check is vacuous"); Debug.Log($"{Tag} {window}: {depth.Length} texels, max error {worst:G4} u"); } @@ -239,6 +299,7 @@ namespace Aetheria.EditorTools var det = au.x * av.y - au.y * av.x; var g = new Vector2((du * av.y - dv * au.y) / det, (dv * au.x - du * av.x) / det); var f = zone.GetForce(new float2(here.x, here.y)); + if (CultMath.math.length(f) < FlatForce) continue; // between the subzones the ground is flat: no direction to compare var angle = Vector2.Angle(g, new Vector2(f.x, f.y)); if (float.IsNaN(angle) || angle > GradientDegrees) { @@ -255,6 +316,19 @@ namespace Aetheria.EditorTools // menu's own brush objects (Boundary on layer 9, the Waves on layer 10) and are presentation by spec (follow-up // menu-grid-brushes), not a reader of the potential. This pins that: a ZoneRenderer in the menu would make its // cameras readers of the field, and they would have to cull layer 9 alone like ARPG's. + static void CheckTestSceneWiring() + { + EditorSceneManager.OpenScene("Assets/Scenes/TestScene.unity", OpenSceneMode.Single); + try + { + if (CheckPatchCameras("TestScene.unity") < 1) Fail("wiring", "no Fog Patch Displacement camera in TestScene.unity"); + } + finally + { + EditorSceneManager.NewScene(NewSceneSetup.EmptyScene, NewSceneMode.Single); + } + } + static void CheckMenuWiring() { var scene = EditorSceneManager.OpenScene("Assets/Scenes/Main Menu.unity", OpenSceneMode.Single); @@ -272,6 +346,7 @@ namespace Aetheria.EditorTools Fail("wiring", $"Main Menu camera {camera.name} culls mask {camera.cullingMask}, not the menu brush layers 9 and 10"); } if (seen != 1) Fail("wiring", $"{seen} Fog Surface Displacement cameras in Main Menu.unity, expected 1"); + if (CheckPatchCameras("Main Menu.unity") < 1) Fail("wiring", "no Fog Patch Displacement camera in Main Menu.unity"); } finally { @@ -279,6 +354,21 @@ namespace Aetheria.EditorTools } } + // Every scene's Fog Patch Displacement camera: cloudDensity adds the R32 gravity height to the patch texture, so + // a patch camera that culls the gravity layer counts the field twice. Returns how many it found in the open scene. + static int CheckPatchCameras(string sceneName) + { + var found = 0; + foreach (var camera in UnityEngine.Object.FindObjectsByType(FindObjectsInactive.Include, FindObjectsSortMode.None)) + { + if (camera.targetTexture == null || camera.targetTexture.name != "Fog Patch Displacement") continue; + found++; + if ((camera.cullingMask & 1 << GravityLowering.FieldLayer) != 0) + Fail("wiring", $"camera {camera.name} (target Fog Patch Displacement) in {sceneName} culls layer {GravityLowering.FieldLayer}, the gravity layer"); + } + return found; + } + static void CheckWiring(GameSettings settings) { var scene = EditorSceneManager.OpenScene("Assets/Scenes/ARPG.unity", OpenSceneMode.Single); @@ -295,6 +385,9 @@ namespace Aetheria.EditorTools } if (seen < gravityTargets.Length) Fail("wiring", $"only {seen} gravity cameras found in ARPG.unity"); + // The patch texture is half-float: it holds the patch layers only, the nebula reads gravity from the R32 surface. + if (CheckPatchCameras("ARPG.unity") != 1) Fail("wiring", "ARPG.unity does not have exactly 1 Fog Patch Displacement camera"); + // The map screen's gravity camera has no target until MapRenderer gives it one at run time. var map = UnityEngine.Object.FindFirstObjectByType(FindObjectsInactive.Include); if (map == null || map.GravityCamera == null) Fail("wiring", "no MapRenderer.GravityCamera in ARPG.unity"); @@ -316,6 +409,7 @@ namespace Aetheria.EditorTools } CheckMenuWiring(); + CheckTestSceneWiring(); foreach (var path in new[] { diff --git a/Assets/Scripts/Editor/InventoryGridOverlayCapture.cs b/Assets/Scripts/Editor/InventoryGridOverlayCapture.cs new file mode 100644 index 000000000..40fe15bbf --- /dev/null +++ b/Assets/Scripts/Editor/InventoryGridOverlayCapture.cs @@ -0,0 +1,234 @@ +using System; +using System.Collections; +using System.IO; +using UnityEditor; +using UnityEngine; +using UnityEngine.UI; +using int2 = CultMath.int2; + +// Parity of the inventory grid on a ScreenSpaceOverlay canvas, the kind the game's canvases are, which the camera rig of +// InventoryGridParityCapture cannot draw. An overlay canvas draws to the Game view's back buffer, so this enters play mode and +// reads the screen at the end of a frame: once with the sprite cells, once with the grid over the same canvas rects. +// +// Unity -batchmode -projectPath -executeMethod InventoryGridOverlayCapture.Run [-pngOut ] -logFile +// +// Needs a GPU device; do not pass -nographics or -quit. Logs "[InventoryGridOverlay]" lines and exits 0 or 1. +public static class InventoryGridOverlayCapture +{ + private const string Pending = "InventoryGridOverlayCapture.pending"; + private const string PngKey = "InventoryGridOverlayCapture.png"; + // The parity harness's atlas bound (InventoryGridParityCapture.AtlasBound): sqrt(4 x 66). + private const int Bound = 16; + + public static void Run() + { + var args = Environment.GetCommandLineArgs(); + var i = Array.IndexOf(args, "-pngOut"); + SessionState.SetString(PngKey, i >= 0 && i + 1 < args.Length ? args[i + 1] : ""); + SessionState.SetBool(Pending, true); + EditorApplication.EnterPlaymode(); + } + + [InitializeOnLoadMethod] + private static void Hook() + { + EditorApplication.playModeStateChanged += state => + { + if (state != PlayModeStateChange.EnteredPlayMode || !SessionState.GetBool(Pending, false)) return; + SessionState.SetBool(Pending, false); + new GameObject("Overlay parity").AddComponent(); + }; + } + + private static void Log(string line) => Debug.Log("[InventoryGridOverlay] " + line); + + private sealed class Runner : MonoBehaviour + { + // An exception inside a coroutine would leave the session running, so any failure exits 1. + private IEnumerator Start() + { + var inner = Capture(); + while (true) + { + try + { + if (!inner.MoveNext()) yield break; + } + catch (Exception exception) + { + Debug.LogException(exception); + EditorApplication.Exit(1); + yield break; + } + yield return inner.Current; + } + } + + private IEnumerator Capture() + { + var failed = false; + var overallWorst = 0; + var png = SessionState.GetString(PngKey, ""); + var prefab = AssetDatabase.LoadAssetAtPath("Assets/Prefabs/UI/Inventory.prefab"); + var panel = prefab.GetComponentInChildren(true); + var shader = AssetDatabase.LoadAssetAtPath("Assets/Shaders/InventoryGrid.shader"); + // An overlay canvas draws to the Game view's back buffer, which batch mode does not create on its own. + Log("Game view menu item: " + EditorApplication.ExecuteMenuItem("Window/General/Game")); + yield return null; + yield return null; + Log($"screen {Screen.width}x{Screen.height}"); + var watchdog = gameObject.AddComponent(); + // The first frames of a freshly opened Game view are not drawn yet (solid cyan). + for (var warm = 0; warm < 5; warm++) + { + watchdog.Arm("warm-up end of frame"); + yield return new WaitForEndOfFrame(); + watchdog.Disarm(); + } + foreach (var (name, size, multiplier, alpha) in new[] { ("S32m1", 32f, 1f, 1f), ("S16m1.5", 16f, 1.5f, 1f), ("S32m1-halfalpha", 32f, 1f, .5f) }) + { + var canvasObject = new GameObject("Overlay canvas", typeof(RectTransform)); + canvasObject.layer = LayerMask.NameToLayer("UI"); + var canvas = canvasObject.AddComponent(); + canvas.renderMode = RenderMode.ScreenSpaceOverlay; + canvas.vertexColorAlwaysGammaSpace = false; + canvas.sortingOrder = 5000; + // The Main Menu scene behind it moves, so the canvas lays an opaque black page under the cells. + var page = new GameObject("Page", typeof(RectTransform), typeof(CanvasRenderer), typeof(Image)) { layer = canvasObject.layer }; + var pageRect = (RectTransform) page.transform; + pageRect.SetParent(canvasObject.transform, false); + pageRect.anchorMin = Vector2.zero; + pageRect.anchorMax = Vector2.one; + pageRect.offsetMin = pageRect.offsetMax = Vector2.zero; + page.GetComponent().color = Color.black; + var scaler = canvasObject.AddComponent(); + // The Game view of a batch session is small (321x531), so the canvas runs at the 1920 reference's own scale, one pixel + // to a canvas unit, which is where the camera rig's 1920 captures sit. + scaler.uiScaleMode = CanvasScaler.ScaleMode.ConstantPixelSize; + scaler.scaleFactor = 1; + scaler.referencePixelsPerUnit = 100; + var stride = size + 8; + var masks = new System.Collections.Generic.List(); + for (var m = 0; m < 512 && masks.Count < 96; m += 4) + if (m != 33 && m != 289 && m != 136 && m != 392) masks.Add(m); + var iconColor = new Color(.9f, .45f, .15f) * .7071f; + var bgColor = new Color(.6f, .2f, .1f, .8f); + Vector2 At(int k) => new Vector2(8 + k % 8 * stride, 8 + k / 8 * stride); + + for (var k = 0; k < masks.Count; k++) + { + var cell = Instantiate(panel.NodePrototype.gameObject, canvasObject.transform, false); + // The prototype deactivates itself in Start unless it is an instance it handed out; a plain clone is not one. + Destroy(cell.GetComponent()); + cell.SetActive(true); + var rect = (RectTransform) cell.transform; + rect.anchorMin = rect.anchorMax = Vector2.zero; + rect.pivot = Vector2.zero; + rect.anchoredPosition = At(k); + rect.sizeDelta = new Vector2(size, size); + var node = cell.GetComponent(); + node.Background.sprite = panel.NodeBackgroundTextures[masks[k] & 255]; + node.Background.color = new Color(bgColor.r, bgColor.g, bgColor.b, bgColor.a * alpha); + node.Icon.sprite = panel.NodeTextures[masks[k]]; + node.Icon.pixelsPerUnitMultiplier = multiplier; + node.Icon.color = new Color(iconColor.r, iconColor.g, iconColor.b, iconColor.a * alpha); + } + yield return null; + watchdog.Arm("end of frame, sprite cells"); + yield return new WaitForEndOfFrame(); + watchdog.Disarm(); + var old = ScreenCapture.CaptureScreenshotAsTexture(); + for (var c = canvasObject.transform.childCount - 1; c >= 1; c--) Destroy(canvasObject.transform.GetChild(c).gameObject); + yield return null; + for (var k = 0; k < masks.Count; k++) + { + var go = new GameObject("Grid", typeof(RectTransform), typeof(CanvasRenderer)) { layer = canvasObject.layer }; + var rect = (RectTransform) go.transform; + rect.SetParent(canvasObject.transform, false); + rect.anchorMin = rect.anchorMax = Vector2.zero; + rect.pivot = Vector2.zero; + rect.anchoredPosition = At(k); + rect.sizeDelta = new Vector2(size, size); + var grid = go.AddComponent(); + grid.Shader = shader; + grid.color = new Color(1, 1, 1, alpha); + grid.IconTexel = InventoryGrid.TexelOf(66f, multiplier); + grid.BgTexel = InventoryGrid.TexelOf(100f, 1f); + grid.Resize(1, 1, size, new RectOffset(), GridOrientation.LowerLeft); + grid.SetCell(new int2(0, 0), new CellRecord + { + Mask = (byte) (masks[k] & 255), Present = true, Item = masks[k] >= 256, Icon = iconColor, Background = bgColor + }); + } + watchdog.Arm("end of frame, grid"); + yield return new WaitForEndOfFrame(); + watchdog.Disarm(); + var fresh = ScreenCapture.CaptureScreenshotAsTexture(); + + var scale = 1f; + var worst = 0; + var lit = 0; + var a = old.GetPixels32(); + var b = fresh.GetPixels32(); + for (var k = 0; k < masks.Count; k++) + { + var origin = At(k) * scale; + for (var y = Mathf.Max(0, Mathf.FloorToInt(origin.y) - 1); y < Mathf.Min(old.height, Mathf.CeilToInt(origin.y + size * scale) + 1); y++) + for (var x = Mathf.Max(0, Mathf.FloorToInt(origin.x) - 1); x < Mathf.Min(old.width, Mathf.CeilToInt(origin.x + size * scale) + 1); x++) + { + var i = y * old.width + x; + worst = Mathf.Max(worst, Mathf.Abs(a[i].r - b[i].r), Mathf.Abs(a[i].g - b[i].g), Mathf.Abs(a[i].b - b[i].b)); + if (a[i].r + a[i].g + a[i].b > 30) lit++; + } + } + overallWorst = Mathf.Max(overallWorst, worst); + Log($"overlay {name}: {masks.Count} masks, scale {scale:F3}, max8bitDiff={worst}, {lit} lit pixels in the sprite render"); + if (lit == 0 || worst > Bound) + { + failed = true; + Log($"BOUND BREACHED overlay {name}: worst {worst} (bound {Bound}), lit {lit}"); + } + if (png != "") + { + Directory.CreateDirectory(png); + var cropW = Mathf.Min(old.width, Mathf.CeilToInt((8 + 8 * stride) * scale)); + var cropH = Mathf.Min(old.height, Mathf.CeilToInt((8 + 12 * stride) * scale)); + var sheet = new Texture2D(cropW * 3, cropH, TextureFormat.RGBA32, false); + var pixels = new Color32[cropW * 3 * cropH]; + for (var y = 0; y < cropH; y++) + for (var x = 0; x < cropW; x++) + { + var i = y * old.width + x; + pixels[y * cropW * 3 + x] = new Color32(a[i].r, a[i].g, a[i].b, 255); + pixels[y * cropW * 3 + cropW + x] = new Color32(b[i].r, b[i].g, b[i].b, 255); + pixels[y * cropW * 3 + 2 * cropW + x] = new Color32( + (byte) Mathf.Min(255, 8 * Mathf.Abs(a[i].r - b[i].r)), (byte) Mathf.Min(255, 8 * Mathf.Abs(a[i].g - b[i].g)), + (byte) Mathf.Min(255, 8 * Mathf.Abs(a[i].b - b[i].b)), 255); + } + sheet.SetPixels32(pixels); + File.WriteAllBytes(Path.Combine(png, $"overlay-{name}.png"), sheet.EncodeToPNG()); + } + Destroy(canvasObject); + yield return null; + } + Log($"SUMMARY overlayWorst={overallWorst} bound={Bound}"); + Log(failed ? "FAIL" : "PASS"); + EditorApplication.Exit(failed ? 1 : 0); + } + } + + // Exits when an end of frame never comes: no Game view renders in this batch session, so an overlay canvas cannot be drawn. + private sealed class Watchdog : MonoBehaviour + { + private string _waiting; + private float _since; + public void Arm(string what) { _waiting = what; _since = Time.realtimeSinceStartup; } + public void Disarm() => _waiting = null; + private void Update() + { + if (_waiting == null || Time.realtimeSinceStartup - _since < 20f) return; + Log($"BLOCKED: no {_waiting} within 20 s; the Game view does not render in this session"); + EditorApplication.Exit(2); + } + } +} diff --git a/Assets/Scripts/Editor/InventoryGridOverlayCapture.cs.meta b/Assets/Scripts/Editor/InventoryGridOverlayCapture.cs.meta new file mode 100644 index 000000000..186e00dae --- /dev/null +++ b/Assets/Scripts/Editor/InventoryGridOverlayCapture.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 88f470014ea5fdd43a80ec1eba54b42a \ No newline at end of file diff --git a/Assets/Scripts/Editor/InventoryGridParityCapture.cs b/Assets/Scripts/Editor/InventoryGridParityCapture.cs new file mode 100644 index 000000000..753cd1ce0 --- /dev/null +++ b/Assets/Scripts/Editor/InventoryGridParityCapture.cs @@ -0,0 +1,1210 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Reflection; +using UnityEditor; +using UnityEngine; +using UnityEngine.UI; +using UniRx.Triggers; +using GameCult.Caching; +using int2 = CultMath.int2; + +// The parity harness of the inventory grid (map IG): the sheet sprites are the oracle and InventoryGrid is judged against them. +// Every check logs one "[InventoryGridParity]" line, and the run exits 0 when every bound holds, 1 otherwise. +// +// Unity -batchmode -projectPath -executeMethod InventoryGridParityCapture.Run [-pngOut ] [-mutant ] -logFile +// +// Needs a GPU device; do not pass -nographics or -quit. A mutant is one named perturbation of the new path (see Mutants); the +// run must then fail a bound. +public static class InventoryGridParityCapture +{ + private const string PrefabPath = "Assets/Prefabs/UI/Inventory.prefab"; + private const string ShaderPath = "Assets/Shaders/InventoryGrid.shader"; + + // The bound on the largest 8-bit channel difference of any pixel of the atlas, the real hull, vertex alpha and RectMask2D, outside the + // footprints of the oracle's own slips. lodur:ruling:deterministic-bound-margin: the geometric mean of the shipped worst reading (4) and the + // least claimed mutant's reading (66, alpha-multiply-dropped), sqrt(4 x 66) = 16.2, a separation of about 4 on each side. The other + // mutants read 122 to 255. + private static int AtlasBound = 16; + // The bound on a thermal mask's rms difference, 0..1 channel units, in the atlas (the sprites at 1:1 and 2:1): the geometric mean of the + // shipped worst reading (0.0430, S32 mask 0) and the pipe-width-minus mutant's (0.1306), a separation of 1.74 on each side. The real hull's + // thermal cells have their own bound, ThermalHullBound, because they sit at half-pixel offsets the sprites blur across: shipped 0.1007, + // mutant 0.1731, geometric mean 0.132, a separation of 1.31. + private static double ThermalBound = 0.075; + private static double ThermalHullBound = 0.132; + private static int _atlasWorst, _hullWorst, _maskedWorst, _alphaClipWorst; + private static double _thermalWorst, _thermalHullWorst; + + private static string _mutant = ""; + private static string _pngOut; + private static readonly List Breaches = new List(); + + public static readonly string[] Mutants = + { + "rule-inset-2", "softness-1.25", "fill-inset-2.5", "arms-0", "icon-multiplier-1", "flip-ignored", "pipe-width-minus" + }; + + private static void Log(string line) => Debug.Log("[InventoryGridParity] " + line); + + public static void Run() + { + try + { + var args = Environment.GetCommandLineArgs(); + string Arg(string name) { var i = Array.IndexOf(args, name); return i >= 0 && i + 1 < args.Length ? args[i + 1] : null; } + _pngOut = Arg("-pngOut"); + _mutant = Arg("-mutant") ?? ""; + if (Arg("-atlasBound") != null) AtlasBound = int.Parse(Arg("-atlasBound")); + if (Arg("-thermalBound") != null) ThermalHullBound = ThermalBound = double.Parse(Arg("-thermalBound"), System.Globalization.CultureInfo.InvariantCulture); + if (_mutant != "" && !Mutants.Contains(_mutant)) throw new InvalidOperationException("Unknown mutant " + _mutant); + if (_pngOut != null) Directory.CreateDirectory(_pngOut); + Log("mutant=" + (_mutant == "" ? "none" : _mutant)); + + var hullOnly = Array.IndexOf(args, "-hullOnly") >= 0; + if (!hullOnly) Atlas(); + if (!hullOnly) Thermal(Array.IndexOf(args, "-fitThermal") >= 0); + if (!hullOnly) Variants(); + if (!hullOnly) Masked(); + if (!hullOnly) LateLook(); + if (!hullOnly) AlphaAndClip(); + if (Array.IndexOf(args, "-noHull") < 0) Hull(); + + Log($"SUMMARY atlasWorst={_atlasWorst} hullWorst={_hullWorst} thermalWorstRms={_thermalWorst:F4} thermalHullRms={_thermalHullWorst:F4} maskedWorst={_maskedWorst} alphaClipWorst={_alphaClipWorst} bounds atlas={AtlasBound} thermal={ThermalBound} thermalHull={ThermalHullBound}"); + if (Breaches.Count > 0) + { + foreach (var breach in Breaches) Log("BOUND BREACHED " + breach); + EditorApplication.Exit(1); + return; + } + Log("PASS"); + EditorApplication.Exit(0); + } + catch (Exception exception) + { + Debug.LogException(exception); + EditorApplication.Exit(1); + } + } + + // A camera canvas at the real CanvasScaler settings, drawn to a texture of (width, height) pixels. + private sealed class Rig : IDisposable + { + public readonly int Width, Height; + public readonly float Scale; + public readonly RectTransform Page; + public Camera Camera => _camera; + private readonly GameObject _root, _cameraObject; + private readonly Camera _camera; + private readonly RenderTexture _target; + private readonly Canvas _canvas; + + public Rig(int width) + { + Width = width; + Height = width * 9 / 16; + Scale = width / 1920f; + _root = new GameObject("Parity canvas", typeof(RectTransform)) { layer = LayerMask.NameToLayer("UI") }; + _cameraObject = new GameObject("Parity camera"); + _camera = _cameraObject.AddComponent(); + _camera.orthographic = true; + _camera.orthographicSize = 5; + _camera.clearFlags = CameraClearFlags.SolidColor; + _camera.backgroundColor = new Color(0, 0, 0, 0); + _camera.cullingMask = 1 << LayerMask.NameToLayer("UI"); + _target = new RenderTexture(Width, Height, 24, RenderTextureFormat.ARGB32); + _camera.targetTexture = _target; + _canvas = _root.AddComponent(); + _canvas.renderMode = RenderMode.ScreenSpaceCamera; + _canvas.worldCamera = _camera; + _canvas.planeDistance = 10; + _canvas.vertexColorAlwaysGammaSpace = false; + var scaler = _root.AddComponent(); + scaler.uiScaleMode = CanvasScaler.ScaleMode.ScaleWithScreenSize; + scaler.referenceResolution = new Vector2(1920, 1080); + scaler.screenMatchMode = CanvasScaler.ScreenMatchMode.MatchWidthOrHeight; + scaler.matchWidthOrHeight = 0; + scaler.referencePixelsPerUnit = 100; + typeof(CanvasScaler).GetMethod("Handle", BindingFlags.Instance | BindingFlags.NonPublic).Invoke(scaler, null); + Canvas.ForceUpdateCanvases(); + var rect = ((RectTransform) _root.transform).rect; + if (Mathf.Abs(rect.width - 1920) > .01f || Mathf.Abs(_canvas.scaleFactor - Scale) > .001f) + throw new InvalidOperationException($"Canvas {rect.size} scale {_canvas.scaleFactor}, want 1920 wide at {Scale}."); + var page = new GameObject("Page", typeof(RectTransform)) { layer = _root.layer }; + Page = (RectTransform) page.transform; + Page.SetParent(_root.transform, false); + Page.anchorMin = Vector2.zero; + Page.anchorMax = Vector2.one; + Page.offsetMin = Page.offsetMax = Vector2.zero; + } + + public Color32[] Render() + { + Canvas.ForceUpdateCanvases(); + foreach (var grid in Page.GetComponentsInChildren()) grid.Flush(); + _camera.Render(); + var previous = RenderTexture.active; + RenderTexture.active = _target; + var read = new Texture2D(Width, Height, TextureFormat.RGBA32, false); + read.ReadPixels(new Rect(0, 0, Width, Height), 0, 0); + RenderTexture.active = previous; + var pixels = read.GetPixels32(); + UnityEngine.Object.DestroyImmediate(read); + return pixels; + } + + public void Dispose() + { + UnityEngine.Object.DestroyImmediate(_root); + UnityEngine.Object.DestroyImmediate(_cameraObject); + UnityEngine.Object.DestroyImmediate(_target); + } + } + + private sealed class Oracle : IDisposable + { + public readonly GameObject PanelObject; + public readonly InventoryPanel Panel; + public Oracle() + { + var prefab = AssetDatabase.LoadAssetAtPath(PrefabPath) ?? throw new InvalidOperationException("No " + PrefabPath); + PanelObject = (GameObject) PrefabUtility.InstantiatePrefab(prefab); + Panel = PanelObject.GetComponent() ?? PanelObject.GetComponentInChildren(true); + } + public void Dispose() => UnityEngine.Object.DestroyImmediate(PanelObject); + } + + private static Shader GridShader() => AssetDatabase.LoadAssetAtPath(ShaderPath) ?? throw new InvalidOperationException("No " + ShaderPath); + + // The look of the new path with the named mutant applied. + private static void Look(InventoryGrid grid, float iconMultiplier) + { + grid.Shader = GridShader(); + grid.IconTexel = InventoryGrid.TexelOf(66f, _mutant == "icon-multiplier-1" ? 1f : iconMultiplier); + grid.BgTexel = InventoryGrid.TexelOf(100f, 1f); + switch (_mutant) + { + case "rule-inset-2": grid.RuleInset = 2f; break; + case "softness-1.25": grid.Softness = 1.25f; break; + case "fill-inset-2.5": grid.FillInset = 2.5f; break; + case "arms-0": grid.ArmTexels = 0f; break; + case "pipe-width-minus": grid.PipeHalfWidth -= .5f / 32f; break; + } + } + + private static GameObject NewObject(string name, RectTransform parent, float x, float y, float size) + { + var go = new GameObject(name, typeof(RectTransform)) { layer = parent.gameObject.layer }; + var rect = (RectTransform) go.transform; + rect.SetParent(parent, false); + rect.anchorMin = rect.anchorMax = Vector2.zero; + rect.pivot = Vector2.zero; + rect.anchoredPosition = new Vector2(x, y); + rect.sizeDelta = new Vector2(size, size); + return go; + } + + private struct Regime + { + public string Name; + public float Size, IconMultiplier; + } + + private static readonly Regime[] Regimes = + { + new Regime { Name = "S32m1", Size = 32, IconMultiplier = 1f }, + new Regime { Name = "S16m1.5", Size = 16, IconMultiplier = 1.5f }, + new Regime { Name = "S10m1.5", Size = 10, IconMultiplier = 1.5f }, + new Regime { Name = "S6m1.5", Size = 6, IconMultiplier = 1.5f }, + }; + + // Icon and background colour of the three passes: white over the menu's background, a hardpoint tint times .7071 over the + // HUD's, grey .25 over a non-black pulse colour. + private static readonly (Color icon, Color bg)[] Passes = + { + (Color.white, new Color(0, 0, 0, .902f)), + (new Color(.9f, .45f, .15f) * .7071f, new Color(0, 0, 0, .949f)), + (new Color(.25f, .25f, .25f), new Color(.6f, .2f, .1f, .8f)), + }; + + private static int MaxDifference(Color32 a, Color32 b) => Mathf.Max(Mathf.Abs(a.r - b.r), Mathf.Abs(a.g - b.g), Mathf.Abs(a.b - b.b)); + + private static void Atlas() + { + using var oracle = new Oracle(); + var panel = oracle.Panel; + // The texel constants rest on the sheets' pixels per unit (map IG-B1 states 66 for both; the background sheet is 100). + var iconPpu = panel.NodeTextures[0].pixelsPerUnit; + var bgPpu = panel.NodeBackgroundTextures[0].pixelsPerUnit; + Log($"sheets pixelsPerUnit icon={iconPpu} background={bgPpu}"); + if (iconPpu != 66f || bgPpu != 100f) Breaches.Add($"sheet pixels per unit {iconPpu} / {bgPpu}, want 66 / 100"); + foreach (var width in new[] { 1920, 2560 }) + using (var rig = new Rig(width)) + foreach (var regime in Regimes) + { + var stride = regime.Size + 8f; + const int columns = 32; + for (var pass = 0; pass < Passes.Length; pass++) + { + var (iconColor, bgColor) = Passes[pass]; + // Old: one two-image cell per mask, the sheet's own sprites. + ClearPage(rig); + var cells = new List(); + for (var m = 0; m < 512; m++) + { + var cell = UnityEngine.Object.Instantiate(panel.NodePrototype.gameObject, rig.Page, false); + cell.SetActive(true); + var rect = (RectTransform) cell.transform; + rect.anchorMin = rect.anchorMax = Vector2.zero; + rect.pivot = Vector2.zero; + rect.anchoredPosition = new Vector2(8 + m % columns * stride, 8 + m / columns * stride); + rect.sizeDelta = new Vector2(regime.Size, regime.Size); + var node = cell.GetComponent(); + node.Background.sprite = panel.NodeBackgroundTextures[m & 255]; + node.Background.color = bgColor; + node.Icon.sprite = panel.NodeTextures[m]; + node.Icon.pixelsPerUnitMultiplier = regime.IconMultiplier; + node.Icon.color = iconColor; + cells.Add(cell); + } + var old = rig.Render(); + ClearPage(rig); + + // New: one grid per mask at the same rects, fed the same record. + for (var m = 0; m < 512; m++) + { + var go = NewObject("Grid " + m, rig.Page, 8 + m % columns * stride, 8 + m / columns * stride, regime.Size); + var grid = go.AddComponent(); + Look(grid, regime.IconMultiplier); + grid.Resize(1, 1, regime.Size, new RectOffset(), GridOrientation.LowerLeft); + grid.SetCell(new int2(0, 0), new CellRecord + { + Mask = (byte) (m & 255), Present = true, Item = m >= 256, Icon = iconColor, Background = bgColor + }); + } + var fresh = rig.Render(); + + // Judge each cell's pixels; masks 33 and 289 are judged outside their authoring-slip footprint (IG-B3). + var worst = 0; + var worstMask = -1; + var slip = 0; + var pad = 0; + for (var m = 0; m < 512; m++) + { + var x0 = Mathf.Max(0, Mathf.FloorToInt((8 + m % columns * stride) * rig.Scale) - 2); + var y0 = Mathf.Max(0, Mathf.FloorToInt((8 + m / columns * stride) * rig.Scale) - 2); + var x1 = Mathf.CeilToInt((8 + m % columns * stride + regime.Size) * rig.Scale) + 2; + var y1 = Mathf.CeilToInt((8 + m / columns * stride + regime.Size) * rig.Scale) + 2; + var cellTop = (8 + m / columns * stride + regime.Size) * rig.Scale; + var tMin = Mathf.Min(InventoryGrid.TexelOf(66f, regime.IconMultiplier), InventoryGrid.TexelOf(100f, 1f)); + var tMax = Mathf.Max(InventoryGrid.TexelOf(66f, regime.IconMultiplier), InventoryGrid.TexelOf(100f, 1f)); + var isSlip = m == 33 || m == 289; + // Nodes8_392 and Nodes8BG_136 carry a wrong pad on their top and bottom edge (columns 5 to 8 read 0 where the + // sprite's own edge is filled), so the oracle itself bleeds there; half a texel and a pixel of each edge is not judged. + var isPad = m == 136 || m == 392; + var cellBottom = (8 + m / columns * stride) * rig.Scale; + for (var y = y0; y < y1; y++) + for (var x = x0; x < x1; x++) + { + var i = y * rig.Width + x; + var diff = MaxDifference(old[i], fresh[i]); + if (isPad) + { + var edge = Mathf.Min(cellTop - (y + .5f), y + .5f - cellBottom) / rig.Scale; + if (edge < .5f * tMax + 1.5f) { pad = Mathf.Max(pad, diff); continue; } + } + if (isSlip) + { + var fromTop = (cellTop - (y + .5f)) / rig.Scale; + if (fromTop > 1.5f * tMin - 1.5f && fromTop < 3.5f * tMax + 1.5f) { slip = Mathf.Max(slip, diff); continue; } + } + if (diff > worst) { worst = diff; worstMask = m; } + } + } + Log($"atlas {regime.Name} w={width} pass={pass} max8bitDiff={worst} (mask {worstMask}) slipFootprintMax={slip} padSlipMax={pad}"); + _atlasWorst = Math.Max(_atlasWorst, worst); + if (worst > AtlasBound) Breaches.Add($"atlas {regime.Name} w={width} pass={pass}: {worst} > {AtlasBound}"); + if (pass == 0 || pass == 2) SaveSideBySide($"atlas-{regime.Name}-{width}-pass{pass}.png", rig, old, fresh, + new RectInt(0, 0, Mathf.CeilToInt((8 + columns * stride) * rig.Scale), Mathf.CeilToInt((8 + 16 * stride) * rig.Scale))); + _ = cells; + } + } + } + + private static void ClearPage(Rig rig) + { + for (var i = rig.Page.childCount - 1; i >= 0; i--) UnityEngine.Object.DestroyImmediate(rig.Page.GetChild(i).gameObject); + } + + // ---- Masked, late-configured and faded use --------------------------------------------------------------------------- + + private static InventoryGrid MakeGrid(RectTransform parent, float x, float y, float size, float iconMultiplier) + { + var grid = NewObject("Grid", parent, x, y, size).AddComponent(); + Look(grid, iconMultiplier); + return grid; + } + + private static CellRecord SampleRecord(int m, Color icon, Color background) => new CellRecord + { + Mask = (byte) (m & 255), Present = true, Item = m >= 256, Conductivity = (byte) (m & 15), Icon = icon, Background = background + }; + + // Under a stencil Mask Unity draws a clone of the material, so a grid reconfigured after its first draw (Resize, orientation, Thermal, + // look) must still draw as a grid configured that way from the start. Each step is compared with a fresh grid outside any mask. + private static void Masked() + { + using var rig = new Rig(1920); + var holder = NewObject("Mask", rig.Page, 100, 100, 500); + holder.AddComponent(); + holder.AddComponent().showMaskGraphic = false; + var masked = MakeGrid((RectTransform) holder.transform, 20, 20, 300, 1f); + ((RectTransform) masked.transform).sizeDelta = new Vector2(300, 300); + + // The masked grid stays enabled through every step (disabling and enabling it would rebuild its clone and hide a stale one); a fresh + // unmasked grid with the same configuration sits 700 canvas units to its right in the same render, and the two regions are compared. + void Fill(InventoryGrid grid, int w, int h) + { + for (var y = 0; y < h; y++) + for (var x = 0; x < w; x++) + grid.SetCell(new int2(x, y), SampleRecord(x * 37 + y * 101 + 9, new Color(.9f, .5f, .2f), new Color(.1f, .2f, .5f, .9f))); + } + void Step(string name, Action configure) + { + configure(masked); + masked.Flush(); + var side = NewObject("Reference", rig.Page, 800, 100, 500); + var reference = MakeGrid((RectTransform) side.transform, 20, 20, 300, 1f); + ((RectTransform) reference.transform).sizeDelta = new Vector2(300, 300); + configure(reference); + reference.Flush(); + var drawn = rig.Render(); + UnityEngine.Object.DestroyImmediate(side); + var worst = 0; + var lit = 0; + for (var y = 100; y < 600; y++) + for (var x = 100; x < 600; x++) + { + worst = Mathf.Max(worst, MaxDifference(drawn[y * rig.Width + x], drawn[y * rig.Width + x + 700])); + if (drawn[y * rig.Width + x].r > 30) lit++; + } + var clone = masked.canvasRenderer.GetMaterial() != masked.material; + Log($"masked {name}: max8bitDiff against a fresh unmasked grid = {worst}, {lit} lit pixels; drawn through a stencil clone of the material: {clone}"); + _maskedWorst = Math.Max(_maskedWorst, worst); + if (worst > 1) Breaches.Add($"masked {name}: {worst} > 1"); + if (lit == 0 || !clone) Breaches.Add($"masked {name}: the check drew nothing or not through a stencil clone, so it proves nothing"); + } + // The reference helper configures a fresh grid with the same calls, so each step is a full configuration, not a delta. + var steps = new List>(); + steps.Add(grid => { grid.Resize(1, 1, 32, new RectOffset(), GridOrientation.LowerLeft); Fill(grid, 1, 1); }); + steps.Add(grid => { grid.Resize(3, 3, 48, new RectOffset(), GridOrientation.UpperRight); Fill(grid, 3, 3); }); + steps.Add(grid => { grid.Thermal = true; }); + steps.Add(grid => { grid.RuleInset = 2f; }); + var applied = new List>(); + var names = new[] { "first draw", "resize 3x3 at 48, UpperRight", "late Thermal", "late RuleInset" }; + for (var i = 0; i < steps.Count; i++) + { + applied.Add(steps[i]); + var upto = applied.ToArray(); + Step(names[i], grid => { foreach (var apply in upto) apply(grid); }); + } + } + + // A look field changed on a live grid, with no Resize and no other write, reaches the pixels at the next Flush. Every look field is changed + // in turn on a grid that has already been drawn through a stencil Mask; the result is compared in one render with a grid built with the + // change, and the change is asserted visible by comparing that grid with one built without it. + private static void LateLook() + { + using var rig = new Rig(1920); + var fields = new (string name, Action change, bool thermal)[] + { + ("RuleInset", g => g.RuleInset = 2.4f, false), ("RuleWidth", g => g.RuleWidth = 2f, false), + ("ArmTexels", g => g.ArmTexels = 2f, false), ("FillInset", g => g.FillInset = 2f, false), + ("Softness", g => g.Softness = 1.8f, false), ("RuleAlpha", g => g.RuleAlpha = .7f, false), + ("BracketAlpha", g => g.BracketAlpha = .5f, false), ("FillAlpha", g => g.FillAlpha = .6f, false), + ("BlobRadius", g => g.BlobRadius = .22f, true), ("PipeHalfWidth", g => g.PipeHalfWidth = .2f, true), + ("Fillet", g => g.Fillet = .3f, true), ("PipeSoft", g => g.PipeSoft = 6f, true), + ("IconTexel", g => g.IconTexel = 3f, false), ("BgTexel", g => g.BgTexel = 3f, false), + }; + void Configure(InventoryGrid grid, bool thermal) + { + grid.Thermal = thermal; + grid.Resize(4, 4, 64, new RectOffset(), GridOrientation.LowerLeft); + for (var y = 0; y < 4; y++) + for (var x = 0; x < 4; x++) + { + var record = SampleRecord(x * 37 + y * 101 + 9 + 256 * ((x + y) % 2), new Color(.9f, .5f, .2f), new Color(.1f, .2f, .5f, .9f)); + record.Conductivity = (byte) (x * 5 + y * 3 + 7); + grid.SetCell(new int2(x, y), record); + } + grid.Flush(); + } + InventoryGrid Place(float x, bool masked) + { + var side = NewObject("Place", rig.Page, x, 100, 500); + if (masked) + { + side.AddComponent(); + side.AddComponent().showMaskGraphic = false; + } + var grid = MakeGrid((RectTransform) side.transform, 20, 20, 300, 1f); + ((RectTransform) grid.transform).sizeDelta = new Vector2(300, 300); + return grid; + } + foreach (var (name, change, thermal) in fields) + { + ClearPage(rig); + var live = Place(100, true); + Configure(live, thermal); + rig.Render(); + change(live); + live.Flush(); + var changed = Place(800, false); + change(changed); + Configure(changed, thermal); + var unchanged = Place(1300, false); + Configure(unchanged, thermal); + var drawn = rig.Render(); + var worst = 0; + var visible = 0; + for (var y = 100; y < 600; y++) + for (var x = 100; x < 600; x++) + { + worst = Mathf.Max(worst, MaxDifference(drawn[y * rig.Width + x], drawn[y * rig.Width + x + 700])); + visible = Mathf.Max(visible, MaxDifference(drawn[y * rig.Width + x + 700], drawn[y * rig.Width + x + 1200])); + } + Log($"late look {name}: live grid against a grid built with the change = {worst}; the change moves the picture by {visible}"); + _maskedWorst = Math.Max(_maskedWorst, worst); + if (worst > 1) Breaches.Add($"late look {name}: {worst} > 1"); + if (visible < 8) Breaches.Add($"late look {name}: the change is not visible ({visible}), so the check proves nothing"); + } + } + + // The vertex alpha (a CanvasGroup fade, the drag ghost's half alpha) and a RectMask2D clip, against the same two on the sprite cells. + private static void AlphaAndClip() + { + using var oracle = new Oracle(); + var panel = oracle.Panel; + using var rig = new Rig(1920); + const float stride = 40; + foreach (var (name, alpha, clip) in new[] { ("opaque", 1f, false), ("quarter alpha", .25f, false), ("half alpha", .5f, false), ("RectMask2D", 1f, true), ("RectMask2D and half alpha", .5f, true) }) + { + // Old: the cells under the clip rect (children of a RectMask2D object). + Transform OldRoot() + { + ClearPage(rig); + if (!clip) return rig.Page; + var mask = NewObject("Clip", rig.Page, 8 + 3 * stride - 9f, 8 + 1 * stride + 5f, 0); + mask.AddComponent(); + var rect = (RectTransform) mask.transform; + rect.sizeDelta = new Vector2(6 * stride + 3.5f, 4 * stride + 7f); + return rect; + } + var origin = clip ? new Vector2(8 + 3 * stride - 9f, 8 + 1 * stride + 5f) : Vector2.zero; + var (iconColor, bgColor) = Passes[1]; + var oldParent = OldRoot(); + for (var m = 0; m < 64; m++) + { + if (m + 128 == 136) continue; // Nodes8BG_136 carries a wrong pad (see the atlas) + var cell = UnityEngine.Object.Instantiate(panel.NodePrototype.gameObject, oldParent, false); + cell.SetActive(true); + var rect = (RectTransform) cell.transform; + rect.anchorMin = rect.anchorMax = Vector2.zero; + rect.pivot = Vector2.zero; + rect.anchoredPosition = new Vector2(8 + m % 16 * stride, 8 + m / 16 * stride) - origin; + rect.sizeDelta = new Vector2(32, 32); + var node = cell.GetComponent(); + node.Background.color = new Color(bgColor.r, bgColor.g, bgColor.b, bgColor.a * alpha); + node.Icon.sprite = panel.NodeTextures[m + 128]; + node.Background.sprite = panel.NodeBackgroundTextures[(m + 128) & 255]; + node.Icon.color = new Color(iconColor.r, iconColor.g, iconColor.b, iconColor.a * alpha); + } + var old = rig.Render(); + var newParent = OldRoot(); + for (var m = 0; m < 64; m++) + { + if (m + 128 == 136) continue; + var grid = MakeGrid((RectTransform) newParent, 0, 0, 32, 1f); + var rect = (RectTransform) grid.transform; + rect.anchoredPosition = new Vector2(8 + m % 16 * stride, 8 + m / 16 * stride) - origin; + grid.color = new Color(1, 1, 1, alpha); + grid.Resize(1, 1, 32, new RectOffset(), GridOrientation.LowerLeft); + grid.SetCell(new int2(0, 0), SampleRecord(m + 128, iconColor, bgColor)); + } + var fresh = rig.Render(); + var worst = 0; + var lit = 0; + for (var i = 0; i < old.Length; i++) + { + worst = Mathf.Max(worst, MaxDifference(old[i], fresh[i])); + if (fresh[i].r + fresh[i].g + fresh[i].b > 30) lit++; + } + Log($"{name}: max8bitDiff against the sprite cells = {worst}, {lit} lit pixels"); + _alphaClipWorst = Math.Max(_alphaClipWorst, worst); + if (lit == 0) Breaches.Add($"{name}: nothing drawn"); + if (worst > AtlasBound) Breaches.Add($"{name}: {worst} > {AtlasBound}"); + SaveSideBySide($"alpha-clip-{name.Replace(' ', '-')}.png", rig, old, fresh, new RectInt(0, 0, Mathf.CeilToInt(8 + 16 * stride), Mathf.CeilToInt(8 + 4 * stride))); + } + } + + // The shader's keyword variants: with and without UNITY_UI_CLIP_RECT and UNITY_UI_ALPHACLIP it reports no shader error and draws what the + // plain variant draws (the clip rect is opened wide, so clipping changes nothing). + private static void Variants() + { + var shader = GridShader(); + var errors = UnityEditor.ShaderUtil.GetShaderMessages(shader).Where(m => m.severity == UnityEditor.Rendering.ShaderCompilerMessageSeverity.Error).ToArray(); + Log($"shader messages: {UnityEditor.ShaderUtil.GetShaderMessageCount(shader)} total, {errors.Length} errors"); + foreach (var error in errors) Breaches.Add($"shader error: {error.message} ({error.file}:{error.line})"); + using var rig = new Rig(1920); + Color32[] Draw(string[] keywords) + { + ClearPage(rig); + var grid = NewObject("Variant", rig.Page, 16, 16, 32).AddComponent(); + Look(grid, 1f); + grid.Resize(1, 1, 32, new RectOffset(), GridOrientation.LowerLeft); + grid.SetCell(new int2(0, 0), new CellRecord { Mask = 0b10011001, Present = true, Item = true, Icon = new Color(.9f, .5f, .2f), Background = new Color(0, 0, 0, .9f) }); + grid.Flush(); + foreach (var keyword in keywords) grid.material.EnableKeyword(keyword); + grid.material.SetVector("_ClipRect", new Vector4(-1e5f, -1e5f, 1e5f, 1e5f)); + return rig.Render(); + } + var plain = Draw(new string[0]); + foreach (var keywords in new[] { new[] { "UNITY_UI_CLIP_RECT" }, new[] { "UNITY_UI_ALPHACLIP" }, new[] { "UNITY_UI_CLIP_RECT", "UNITY_UI_ALPHACLIP" } }) + { + var drawn = Draw(keywords); + var worst = 0; + for (var i = 0; i < plain.Length; i++) worst = Mathf.Max(worst, MaxDifference(plain[i], drawn[i])); + Log($"variant {string.Join("+", keywords)} max8bitDiff against the plain variant = {worst}"); + if (worst > 0) Breaches.Add($"variant {string.Join("+", keywords)} differs from the plain variant by {worst}"); + } + } + + // Thermal pipes: the 16 pipe sprites against the grid's blob and capsules, icon layer only. With -fitThermal the four look + // parameters are first fitted to the sprites by least squares (Nelder-Mead on the squared difference of both sizes) and printed. + private static void Thermal(bool fit) + { + using var oracle = new Oracle(); + var panel = oracle.Panel; + const float stride = 48; + var sizes = new[] { 32f, 16f }; + var rigs = sizes.Select(_ => new Rig(1920)).ToArray(); + var olds = new Color32[sizes.Length][]; + for (var k = 0; k < sizes.Length; k++) + { + var rig = rigs[k]; + ClearPage(rig); + for (var m = 0; m < 16; m++) + { + var cell = UnityEngine.Object.Instantiate(panel.NodePrototype.gameObject, rig.Page, false); + cell.SetActive(true); + var rect = (RectTransform) cell.transform; + rect.anchorMin = rect.anchorMax = Vector2.zero; + rect.pivot = Vector2.zero; + rect.anchoredPosition = new Vector2(8 + m * stride, 8); + rect.sizeDelta = new Vector2(sizes[k], sizes[k]); + var node = cell.GetComponent(); + node.Background.color = new Color(0, 0, 0, 0); + node.Icon.sprite = panel.ThermalTextures[m]; + node.Icon.color = Color.white; + } + olds[k] = rig.Render(); + ClearPage(rig); + } + var grids = new InventoryGrid[sizes.Length][]; + for (var k = 0; k < sizes.Length; k++) + { + grids[k] = new InventoryGrid[16]; + for (var m = 0; m < 16; m++) + { + var grid = NewObject("Pipes " + m, rigs[k].Page, 8 + m * stride, 8, sizes[k]).AddComponent(); + Look(grid, 1f); + grid.Thermal = true; + grid.Resize(1, 1, sizes[k], new RectOffset(), GridOrientation.LowerLeft); + grid.SetCell(new int2(0, 0), new CellRecord + { + Mask = 0, Present = true, Item = false, Conductivity = (byte) m, Icon = Color.white, Background = new Color(0, 0, 0, 0) + }); + grids[k][m] = grid; + } + } + + double[] Rms(int k, Color32[] fresh) + { + var result = new double[16]; + for (var m = 0; m < 16; m++) + { + double sum = 0; + var n = 0; + for (var y = 6; y < 8 + sizes[k] + 2; y++) + for (var x = 8 + m * (int) stride - 2; x < 8 + m * (int) stride + sizes[k] + 2; x++) + { + var i = y * rigs[k].Width + x; + var d = (olds[k][i].r - fresh[i].r) / 255.0; + sum += d * d; + n++; + } + result[m] = Math.Sqrt(sum / n); + } + return result; + } + + void Apply(double[] p) + { + foreach (var row in grids) + foreach (var grid in row) + { + grid.BlobRadius = (float) p[0]; + grid.PipeHalfWidth = (float) p[1]; + grid.Fillet = (float) p[2]; + grid.PipeSoft = (float) p[3]; + grid.SetMaterialDirty(); + } + } + + double Cost(double[] p) + { + Apply(p); + double total = 0; + for (var k = 0; k < sizes.Length; k++) total += Rms(k, rigs[k].Render()).Sum(r => r * r); + return total; + } + + var best = new double[] { grids[0][0].BlobRadius, grids[0][0].PipeHalfWidth, grids[0][0].Fillet, grids[0][0].PipeSoft }; + if (fit) + { + var simplex = new double[5][]; + var cost = new double[5]; + for (var i = 0; i < 5; i++) + { + simplex[i] = (double[]) best.Clone(); + if (i > 0) simplex[i][i - 1] *= 1.15; + cost[i] = Cost(simplex[i]); + } + for (var iteration = 0; iteration < 120; iteration++) + { + var order = Enumerable.Range(0, 5).OrderBy(i => cost[i]).ToArray(); + simplex = order.Select(i => simplex[i]).ToArray(); + cost = order.Select(i => cost[i]).ToArray(); + var centroid = new double[4]; + for (var i = 0; i < 4; i++) for (var d = 0; d < 4; d++) centroid[d] += simplex[i][d] / 4; + double[] Along(double t) => Enumerable.Range(0, 4).Select(d => Math.Max(1e-3, centroid[d] + t * (simplex[4][d] - centroid[d]))).ToArray(); + var reflected = Along(-1); + var reflectedCost = Cost(reflected); + if (reflectedCost < cost[0]) + { + var expanded = Along(-2); + var expandedCost = Cost(expanded); + if (expandedCost < reflectedCost) { simplex[4] = expanded; cost[4] = expandedCost; } + else { simplex[4] = reflected; cost[4] = reflectedCost; } + } + else if (reflectedCost < cost[3]) { simplex[4] = reflected; cost[4] = reflectedCost; } + else + { + var contracted = Along(.5); + var contractedCost = Cost(contracted); + if (contractedCost < cost[4]) { simplex[4] = contracted; cost[4] = contractedCost; } + else + for (var i = 1; i < 5; i++) + { + for (var d = 0; d < 4; d++) simplex[i][d] = simplex[0][d] + .5 * (simplex[i][d] - simplex[0][d]); + cost[i] = Cost(simplex[i]); + } + } + } + var bestIndex = Enumerable.Range(0, 5).OrderBy(i => cost[i]).First(); + best = simplex[bestIndex]; + Log($"thermal fit BlobRadius={best[0]:F4} PipeHalfWidth={best[1]:F4} Fillet={best[2]:F4} PipeSoft={best[3]:F4} cost={cost[bestIndex]:F5}"); + } + + Apply(best); + for (var k = 0; k < sizes.Length; k++) + { + var fresh = rigs[k].Render(); + var rms = Rms(k, fresh); + var worst = rms.Max(); + Log($"thermal S{sizes[k]} worstRms={worst:F4} (mask {Array.IndexOf(rms, worst)})"); + _thermalWorst = Math.Max(_thermalWorst, worst); + if (worst > ThermalBound) Breaches.Add($"thermal S{sizes[k]}: rms {worst:F4} > {ThermalBound}"); + SaveSideBySide($"thermal-S{sizes[k]}.png", rigs[k], olds[k], fresh, new RectInt(0, 0, Mathf.CeilToInt(8 + 16 * stride), Mathf.CeilToInt(8 + sizes[k] + 8))); + } + foreach (var rig in rigs) rig.Dispose(); + } + + + // ---- Real hull ------------------------------------------------------------------------------------------------------ + + private sealed class Fixture : IDisposable + { + public ItemManager Items; + public Zone Zone; + public Entity Ship; + public HullData Hull; + public ActionGameManager Manager; + private readonly List _objects = new List(); + + public static Fixture Build() + { + var fixture = new Fixture(); + var root = Directory.GetParent(Application.dataPath)!.FullName; + // The catalog is a package stack: the shipped catalog plus the ship packages under GameData/Mods, composed the way the game does. + var derived = Path.Combine(Path.GetTempPath(), $"inventory-grid-parity-{Guid.NewGuid():N}.cc"); + var composition = ShipModCatalog.Compose(Path.Combine(root, "GameData", "Aetheria.cc"), derived, Path.Combine(root, "GameData", "Mods")); + Log($"packages composed: {string.Join(", ", composition.Included)}; excluded {composition.Excluded.Length}"); + var cache = AetheriaStores.Open(derived); + var settings = AssetDatabase.LoadAssetAtPath("Assets/Resources/Settings.asset")?.GameplaySettings + ?? throw new InvalidOperationException("No Settings.asset."); + fixture.Items = new ItemManager(1u, cache, new ProvenanceLedger(), settings, _ => { }); + fixture.Zone = new Zone(fixture.Items, new PlanetSettings(), new ZonePack(), new GalaxyZone { Name = "Parity", Owner = null }, null); + + // The hull whose hardpoints carry the most distinct types, among those a Loadout fits: a faction's boss loadout + // first, else any Loadout naming the hull. + var loadouts = new Dictionary(); + foreach (var faction in cache.GetAll()) + if (Loadouts.BossOf(cache, faction, out _) is { } boss && cache.Get(boss.Hull) is { } bossHull) + loadouts.TryAdd(bossHull.Name, boss); + foreach (var loadout in cache.GetAll()) + if (cache.Get(loadout.Hull) is { } hull) loadouts.TryAdd(hull.Name, loadout); + Log($"catalog: {cache.GetAll().Count()} factions, {cache.GetAll().Count()} loadouts ({loadouts.Count} by hull), {cache.GetAll().OfType().Count()} hulls"); + foreach (var l in cache.GetAll()) Log($"loadout {l.Name}: hull key {l.Hull.Key.Value} resolves {cache.Get(l.Hull)?.Name ?? "null"}"); + foreach (var h in cache.GetAll().OfType()) Log($"hull {h.Name} {h.HullType} key {cache.RefOf(h).Key.Value} types {h.Hardpoints.Select(x => x.Type).Distinct().Count()}"); + var candidate = cache.GetAll().OfType() + .Where(hull => hull.HullType == HullType.Ship && loadouts.ContainsKey(hull.Name)) + .OrderByDescending(hull => hull.Hardpoints.Select(h => h.Type).Distinct().Count()) + .ThenBy(hull => hull.Name, StringComparer.Ordinal) + .FirstOrDefault() ?? throw new InvalidOperationException("No ship hull has a Loadout."); + var chosen = loadouts[candidate.Name]; + FactionProductData Choose(CraftedItemData design) + { + var key = cache.RefOf(design).Key; + return cache.GetAll().Where(product => product.Design.Key.Equals(key)) + .OrderBy(product => product.Name, StringComparer.Ordinal).FirstOrDefault(); + } + var failures = new List(); + fixture.Ship = Loadouts.Materialize(fixture.Items, fixture.Zone, chosen, Choose, failures) + ?? throw new InvalidOperationException($"Cannot build {candidate.Name}: {string.Join("; ", failures)}"); + fixture.Hull = candidate; + + // The loadout carries no cargo bay: fit the smallest bay design the hull takes, and store three distinct commodities in it. + if (!fixture.Ship.CargoBays.Any()) + foreach (var bay in cache.GetAll().OfType().OrderBy(b => b.InteriorShape.Width * b.InteriorShape.Height)) + { + var unit = (EquippableItem) fixture.Items.CreateInstance(fixture.Items.CreateLot(bay, default, Loadouts.UnbrandedQuality)); + if (fixture.Ship.TryFindSpace(unit, out var spot) && fixture.Ship.TryEquip(unit, spot)) break; + } + var cargo = fixture.Ship.CargoBays.FirstOrDefault() ?? throw new InvalidOperationException("No cargo bay design fits the hull."); + foreach (var commodity in cache.GetAll().OfType().Take(8)) + { + var stack = new SimpleCommodity { Data = cache.RefOf(commodity), Quantity = 1 }; + cargo.TryStore(stack); + } + var stored = cargo.Occupancy.Cast().Where(i => i != null).Distinct().Count(); + Log($"cargo bay {cargo.Data.Name}: {stored} distinct stored items"); + if (stored < 3) throw new InvalidOperationException($"The cargo bay holds {stored} items, want at least 3."); + Log($"hull {candidate.Name}: {candidate.Hardpoints.Select(h => h.Type).Distinct().Count()} hardpoint types, {candidate.Shape.Width}x{candidate.Shape.Height} cells, {fixture.Ship.Equipment.Count} items fitted, {fixture.Ship.CargoBays.Count()} cargo bays"); + + var managerObject = new GameObject("Parity game manager"); + fixture._objects.Add(managerObject); + fixture.Manager = managerObject.AddComponent(); + const BindingFlags Any = BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic; + typeof(ActionGameManager).GetProperty("Instance", Any).SetValue(null, fixture.Manager); + typeof(ActionGameManager).GetProperty("ItemManager", Any).GetSetMethod(true).Invoke(fixture.Manager, new object[] { fixture.Items }); + typeof(ActionGameManager).GetProperty("Zone", Any).GetSetMethod(true).Invoke(fixture.Manager, new object[] { fixture.Zone }); + fixture.Manager.CurrentEntity = fixture.Ship as Ship; + return fixture; + } + + public void Dispose() + { + foreach (var o in _objects) if (o) UnityEngine.Object.DestroyImmediate(o); + } + } + + private struct HullState + { + public string Name; + public bool Hud, Enemy, Thermal, Cargo; + public Action Setup; + } + + private static void Hull() + { + using var fixture = Fixture.Build(); + var states = new[] + { + new HullState { Name = "menu" }, + new HullState { Name = "hud", Hud = true }, + new HullState { Name = "enemy", Hud = true, Enemy = true }, + new HullState + { + Name = "hover", + Setup = (panel, f) => + { + var item = f.Ship.Equipment.First(e => e.EquippableItem != null).EquippableItem; + var occupancy = new Shape(f.Hull.Shape.Width, f.Hull.Shape.Height); + foreach (var v in f.Hull.Shape.AllCoordinates.Where(c => f.Hull.Shape[c]).Take(5)) occupancy[v] = true; + panel.FakeItem = item; + panel.FakeOccupancy = occupancy; + } + }, + new HullState + { + Name = "drag", + Setup = (panel, f) => + { + var item = f.Ship.Equipment.First(e => e.EquippableItem != null); + panel.IgnoreOccupancy = f.Hull.Shape.Inset(item.Data.Shape, item.Position, item.EquippableItem.Rotation); + } + }, + new HullState { Name = "thermal", Thermal = true }, + new HullState { Name = "cargo", Cargo = true }, + }; + + foreach (var width in new[] { 1920, 2560 }) + using (var rig = new Rig(width)) + foreach (var state in states) + HullStateCheck(rig, fixture, state, width, width == 1920 && state.Name == "menu" ? FrameTime : (Action>) null); + } + + // A reading, not a gate: 101 paired, interleaved iterations of the menu real-hull state. Each times a full refresh with changed content + // plus Canvas.ForceUpdateCanvases plus camera.Render plus a 1-pixel ReadPixels sync. The writer stays in both: the sprite cells time + // RefreshCells; the grid times RefreshCells (its match predicates, GetColor and sprite sets still run until the switch cut) plus SetCell + // for every cell plus the texture Apply. The writer alone is timed too. + private static void FrameTime(Rig rig, InventoryPanel panel, InventoryGrid grid, Dictionary recordsA) + { + var fixtureShip = (Entity) panel.GameManager.CurrentEntity; + var hull = (HullData) panel.GameManager.ItemManager.GetData(fixtureShip.Hull); + var item = fixtureShip.Equipment.First(e => e.EquippableItem != null); + var shape = hull.Shape.Inset(item.Data.Shape, item.Position, item.EquippableItem.Rotation); + foreach (var cell in panel.CellInstances.Values) cell.gameObject.SetActive(true); + panel.IgnoreOccupancy = shape; + panel.RefreshCells(); + var recordsB = ReadRecords(panel, false); + panel.IgnoreOccupancy = null; + panel.RefreshCells(); + var one = new Texture2D(1, 1, TextureFormat.RGBA32, false); + void Sync() + { + Canvas.ForceUpdateCanvases(); + rig.Camera.Render(); + var previous = RenderTexture.active; + RenderTexture.active = rig.Camera.targetTexture; + one.ReadPixels(new Rect(0, 0, 1, 1), 0, 0); + RenderTexture.active = previous; + } + double OldIteration(int i) + { + foreach (var cell in panel.CellInstances.Values) cell.gameObject.SetActive(true); + grid.gameObject.SetActive(false); + Sync(); + var watch = System.Diagnostics.Stopwatch.StartNew(); + panel.IgnoreOccupancy = i % 2 == 0 ? shape : null; + panel.RefreshCells(); + Sync(); + return watch.Elapsed.TotalMilliseconds; + } + double NewIteration(int i) + { + foreach (var cell in panel.CellInstances.Values) cell.gameObject.SetActive(false); + grid.gameObject.SetActive(true); + Sync(); + panel.IgnoreOccupancy = i % 2 == 0 ? shape : null; + var watch = System.Diagnostics.Stopwatch.StartNew(); + panel.RefreshCells(); + foreach (var (v, record) in i % 2 == 0 ? recordsB : recordsA) grid.SetCell(v, record); + grid.Flush(); + Sync(); + return watch.Elapsed.TotalMilliseconds; + } + for (var i = 0; i < 5; i++) { OldIteration(i); NewIteration(i); } + var olds = new List(); + var news = new List(); + for (var i = 0; i < 101; i++) { olds.Add(OldIteration(i)); news.Add(NewIteration(i)); } + double Percentile(List values, double q) { var sorted = values.OrderBy(v => v).ToList(); return sorted[(int) Math.Round(q * (sorted.Count - 1))]; } + Log($"frame time (ms, 101 paired iterations, menu real hull, {panel.CellInstances.Count} cells) old median {Percentile(olds, .5):F2} [p25 {Percentile(olds, .25):F2}, p75 {Percentile(olds, .75):F2}], new median {Percentile(news, .5):F2} [p25 {Percentile(news, .25):F2}, p75 {Percentile(news, .75):F2}]"); + UnityEngine.Object.DestroyImmediate(one); + } + + // Every cell's record, read back from the sprite cells: the mask from the sprite name's index, plus the two colours. + private static Dictionary ReadRecords(InventoryPanel panel, bool thermal) + { + var records = new Dictionary(); + foreach (var (v, cell) in panel.CellInstances) + { + var iconName = cell.Icon.sprite.name; + var iconIndex = int.Parse(iconName.Substring(iconName.LastIndexOf('_') + 1)); + var bgName = cell.Background.sprite.name; + var bgIndex = int.Parse(bgName.Substring(bgName.LastIndexOf('_') + 1)); + records[v] = new CellRecord + { + Mask = (byte) (bgIndex & 255), Present = true, + Item = !thermal && iconIndex >= 256, Conductivity = thermal ? (byte) (iconIndex & 15) : (byte) 0, + Icon = cell.Icon.color, Background = cell.Background.color + }; + } + return records; + } + + private static void HullStateCheck(Rig rig, Fixture fixture, HullState state, int width, Action> afterwards = null) + { + ClearPage(rig); + var prefab = AssetDatabase.LoadAssetAtPath(PrefabPath); + var panelObject = (GameObject) PrefabUtility.InstantiatePrefab(prefab, rig.Page); + var panel = panelObject.GetComponent() ?? panelObject.GetComponentInChildren(true); + panel.GameManager = fixture.Manager; + if (!panel.Settings) panel.Settings = AssetDatabase.LoadAssetAtPath("Assets/Resources/Settings.asset"); + panel.NodePrototype.gameObject.SetActive(false); + var panelRect = (RectTransform) panel.transform; + panelRect.anchorMin = panelRect.anchorMax = new Vector2(.5f, .5f); + panelRect.pivot = new Vector2(.5f, .5f); + panelRect.anchoredPosition = Vector2.zero; + panelRect.sizeDelta = new Vector2(1200, 900); + var content = (RectTransform) panel.Grid.transform; + var fitter = content.GetComponent(); + var iconMultiplier = state.Hud ? 1.5f : 1f; + panel.NodePrototype.GetComponent().Icon.pixelsPerUnitMultiplier = iconMultiplier; + panel.Flip = state.Enemy; + panel.Grid.startCorner = state.Enemy ? GridLayoutGroup.Corner.UpperRight : GridLayoutGroup.Corner.LowerLeft; + panel.FitToContent = state.Hud; + if (state.Hud) + { + // The HUD's schematic rect: no fitter, a fixed rect the cells are sized to. + if (fitter) fitter.enabled = false; + content.anchorMin = content.anchorMax = new Vector2(.5f, .5f); + content.pivot = new Vector2(.5f, .5f); + content.sizeDelta = state.Enemy ? new Vector2(260, 260) : new Vector2(254, 260); + content.anchoredPosition = Vector2.zero; + } + // The thermal branch subscribes to a click trigger the edit-mode instance of the prefab does not carry. + var prototypeCell = panel.NodePrototype.GetComponent(); + if ((state.Thermal || state.Cargo) && !prototypeCell.PointerClickTrigger) prototypeCell.PointerClickTrigger = prototypeCell.gameObject.AddComponent(); + if (state.Cargo) + { + if (!prototypeCell.BeginDragTrigger) prototypeCell.BeginDragTrigger = prototypeCell.gameObject.AddComponent(); + if (!prototypeCell.DragTrigger) prototypeCell.DragTrigger = prototypeCell.gameObject.AddComponent(); + if (!prototypeCell.EndDragTrigger) prototypeCell.EndDragTrigger = prototypeCell.gameObject.AddComponent(); + if (!prototypeCell.PointerEnterTrigger) prototypeCell.PointerEnterTrigger = prototypeCell.gameObject.AddComponent(); + if (!prototypeCell.PointerExitTrigger) prototypeCell.PointerExitTrigger = prototypeCell.gameObject.AddComponent(); + } + state.Setup?.Invoke(panel, fixture); + if (state.Cargo) panel.Display(fixture.Ship.CargoBays.First()); + else panel.Display(fixture.Ship, state.Hud, state.Thermal); + LayoutRebuilder.ForceRebuildLayoutImmediate(content); + Canvas.ForceUpdateCanvases(); + + var records = ReadRecords(panel, state.Thermal); + var columns = panel.Grid.constraintCount; + var rows = (panel.CellInstances.Count + panel.EmptyCells.Count) / columns; + var cellSize = panel.Grid.cellSize.x; + var padding = panel.Grid.padding; + var orientation = panel.Grid.startCorner == GridLayoutGroup.Corner.UpperRight ? GridOrientation.UpperRight : GridOrientation.LowerLeft; + var cellRects = panel.CellInstances.ToDictionary(pair => pair.Key, pair => (RectTransform) pair.Value.transform); + + var old = rig.Render(); + + // New: the grid in the content's place over the same rect; the cells off. + foreach (var cell in panel.CellInstances.Values) cell.gameObject.SetActive(false); + if (fitter) fitter.enabled = false; + panel.Grid.enabled = false; + var gridObject = new GameObject("Parity grid", typeof(RectTransform), typeof(CanvasRenderer)) { layer = panelObject.layer }; + var gridRect = (RectTransform) gridObject.transform; + gridRect.SetParent(content.parent, false); + gridRect.SetSiblingIndex(content.GetSiblingIndex()); + gridRect.anchorMin = content.anchorMin; + gridRect.anchorMax = content.anchorMax; + gridRect.pivot = content.pivot; + gridRect.anchoredPosition = content.anchoredPosition; + gridRect.sizeDelta = content.sizeDelta; + gridRect.localScale = content.localScale; + var grid = gridObject.AddComponent(); + Look(grid, iconMultiplier); + grid.Thermal = state.Thermal; + grid.Resize(columns, rows, cellSize, padding, state.Enemy && _mutant == "flip-ignored" ? GridOrientation.LowerLeft : orientation); + foreach (var (v, record) in records) grid.SetCell(v, record); + var fresh = rig.Render(); + + // Judge the whole panel's pixels; cells whose sprite has a known authoring slip are judged outside its footprint. + var camera = rig.Camera; + Rect PixelRect(RectTransform rect) + { + var corners = new Vector3[4]; + rect.GetWorldCorners(corners); + var a = RectTransformUtility.WorldToScreenPoint(camera, corners[0]); + var b = RectTransformUtility.WorldToScreenPoint(camera, corners[2]); + return Rect.MinMaxRect(Mathf.Min(a.x, b.x), Mathf.Min(a.y, b.y), Mathf.Max(a.x, b.x), Mathf.Max(a.y, b.y)); + } + var excluded = new bool[rig.Width * rig.Height]; + var ties = 0; + var minX = int.MaxValue; + var minY = int.MaxValue; + var maxX = 0; + var maxY = 0; + foreach (var (v, record) in records) + { + var pixels = PixelRect(cellRects[v]); + minX = Mathf.Min(minX, Mathf.FloorToInt(pixels.xMin)); + minY = Mathf.Min(minY, Mathf.FloorToInt(pixels.yMin)); + maxX = Mathf.Max(maxX, Mathf.CeilToInt(pixels.xMax)); + maxY = Mathf.Max(maxY, Mathf.CeilToInt(pixels.yMax)); + // A pixel centre exactly on a cell boundary (panels at half-pixel offsets at 1920) is not judged. The sprite cells are separate + // quads whose edges the rasteriser resolves by float noise: the pixel comes out as one neighbour or the other, or as both + // (the additive icon doubled), and the choice moves with the panel's offset. The grid draws it from one cell by the + // floor of its coordinate, so a boundary pixel can differ from the sprite cells by one seam's worth of rule or bracket + // tip. Trying the fill rule with float slack in the shader matched no better (the menu stayed at 122, the enemy state + // went from 1 to 131), so the shader keeps the plain floor. + for (var y = Mathf.Max(0, Mathf.FloorToInt(pixels.yMin) - 1); y < Mathf.Min(rig.Height, Mathf.CeilToInt(pixels.yMax) + 1); y++) + for (var x = Mathf.Max(0, Mathf.FloorToInt(pixels.xMin) - 1); x < Mathf.Min(rig.Width, Mathf.CeilToInt(pixels.xMax) + 1); x++) + if (Mathf.Abs(x + .5f - pixels.xMin) < .01f || Mathf.Abs(x + .5f - pixels.xMax) < .01f || + Mathf.Abs(y + .5f - pixels.yMin) < .01f || Mathf.Abs(y + .5f - pixels.yMax) < .01f) + { + if (!excluded[y * rig.Width + x]) ties++; + excluded[y * rig.Width + x] = true; + } + var iconMask = record.Mask | (record.Item ? 256 : 0); + var slip = (!state.Thermal && (iconMask == 33 || iconMask == 289)) || record.Mask == 33; + var padSlip = record.Mask == 136 || (!state.Thermal && iconMask == 392); + if (!slip && !padSlip) continue; + var texelMin = Mathf.Min(InventoryGrid.TexelOf(66f, iconMultiplier), InventoryGrid.TexelOf(100f, 1f)) * rig.Scale; + var texelMax = Mathf.Max(InventoryGrid.TexelOf(66f, iconMultiplier), InventoryGrid.TexelOf(100f, 1f)) * rig.Scale; + for (var y = Mathf.Max(0, Mathf.FloorToInt(pixels.yMin) - 2); y < Mathf.Min(rig.Height, Mathf.CeilToInt(pixels.yMax) + 2); y++) + for (var x = Mathf.Max(0, Mathf.FloorToInt(pixels.xMin) - 2); x < Mathf.Min(rig.Width, Mathf.CeilToInt(pixels.xMax) + 2); x++) + { + var fromTop = pixels.yMax - (y + .5f); + var fromBottom = y + .5f - pixels.yMin; + if (slip && fromTop > 1.5f * texelMin - 1.5f && fromTop < 3.5f * texelMax + 1.5f) excluded[y * rig.Width + x] = true; + if (padSlip && Mathf.Min(fromTop, fromBottom) < .5f * texelMax + 1.5f) excluded[y * rig.Width + x] = true; + } + } + var worst = 0; + var worstAt = (0, 0); + for (var y = Mathf.Max(0, minY - 2); y < Mathf.Min(rig.Height, maxY + 2); y++) + for (var x = Mathf.Max(0, minX - 2); x < Mathf.Min(rig.Width, maxX + 2); x++) + { + var i = y * rig.Width + x; + var diff = MaxDifference(old[i], fresh[i]); + if (!excluded[i] && diff > worst) { worst = diff; worstAt = (x, y); } + } + if (worst > AtlasBound) + { + var perCell = new List<(int diff, int2 v, string at)>(); + foreach (var (v, record) in records) + { + var pixels = PixelRect(cellRects[v]); + var cellWorst = 0; + var at = ""; + for (var y = Mathf.Max(0, Mathf.FloorToInt(pixels.yMin)); y < Mathf.Min(rig.Height, Mathf.CeilToInt(pixels.yMax)); y++) + for (var x = Mathf.Max(0, Mathf.FloorToInt(pixels.xMin)); x < Mathf.Min(rig.Width, Mathf.CeilToInt(pixels.xMax)); x++) + if (!excluded[y * rig.Width + x]) + { + var d = MaxDifference(old[y * rig.Width + x], fresh[y * rig.Width + x]); + if (d > cellWorst) { cellWorst = d; at = $"px {x},{y} cell px [{pixels.xMin:F2},{pixels.xMax:F2}]x[{pixels.yMin:F2},{pixels.yMax:F2}] old {old[y * rig.Width + x]} new {fresh[y * rig.Width + x]}"; } + } + if (cellWorst > AtlasBound) perCell.Add((cellWorst, v, at)); + } + foreach (var (diff, v, where) in perCell.OrderByDescending(c => c.diff).Take(8)) + { + var r = records[v]; + Log($" worst cell {v.x},{v.y} {where}: diff {diff} mask {r.Mask} ({Convert.ToString(r.Mask, 2).PadLeft(8, '0')}) item {r.Item} icon {r.Icon} bg {r.Background} sprite {panel.CellInstances[v].Icon.sprite.name}/{panel.CellInstances[v].Background.sprite.name}"); + } + } + Log($"hull {state.Name} w={width} cells={records.Count} max8bitDiff={worst} at {worstAt} boundaryPixelsNotJudged={ties}" + (state.Thermal ? " (thermal: the pipes are a fit, judged by cell rms)" : "")); + if (!state.Thermal) _hullWorst = Math.Max(_hullWorst, worst); + if (!state.Thermal && worst > AtlasBound) Breaches.Add($"hull {state.Name} w={width}: {worst} > {AtlasBound}"); + if (state.Thermal) + { + var worstRms = 0.0; + foreach (var (v, _) in records) + { + var pixels = PixelRect(cellRects[v]); + double sum = 0; + var n = 0; + for (var y = Mathf.Max(0, Mathf.FloorToInt(pixels.yMin)); y < Mathf.Min(rig.Height, Mathf.CeilToInt(pixels.yMax)); y++) + for (var x = Mathf.Max(0, Mathf.FloorToInt(pixels.xMin)); x < Mathf.Min(rig.Width, Mathf.CeilToInt(pixels.xMax)); x++) + { + var d = (old[y * rig.Width + x].r - fresh[y * rig.Width + x].r) / 255.0; + sum += d * d; + n++; + } + if (n > 0) worstRms = Math.Max(worstRms, Math.Sqrt(sum / n)); + } + Log($"hull thermal w={width} worst cell rms={worstRms:F4}"); + + // The background layer of every thermal cell, icons hidden in both paths, judged by the atlas bound. + foreach (var cell in panel.CellInstances.Values) + { + cell.gameObject.SetActive(true); + var hidden = cell.Icon.color; + hidden.a = 0; + cell.Icon.color = hidden; + } + grid.gameObject.SetActive(false); + var old2 = rig.Render(); + foreach (var cell in panel.CellInstances.Values) cell.gameObject.SetActive(false); + grid.gameObject.SetActive(true); + foreach (var (v, record) in records) + { + var hiddenRecord = record; + hiddenRecord.Icon.a = 0; + grid.SetCell(v, hiddenRecord); + } + var fresh2 = rig.Render(); + var worstBackground = 0; + for (var y = Mathf.Max(0, minY - 2); y < Mathf.Min(rig.Height, maxY + 2); y++) + for (var x = Mathf.Max(0, minX - 2); x < Mathf.Min(rig.Width, maxX + 2); x++) + if (!excluded[y * rig.Width + x]) worstBackground = Mathf.Max(worstBackground, MaxDifference(old2[y * rig.Width + x], fresh2[y * rig.Width + x])); + Log($"hull thermal w={width} background layer max8bitDiff={worstBackground}"); + _hullWorst = Math.Max(_hullWorst, worstBackground); + if (worstBackground > AtlasBound) Breaches.Add($"hull thermal background w={width}: {worstBackground} > {AtlasBound}"); + _thermalHullWorst = Math.Max(_thermalHullWorst, worstRms); + if (worstRms > ThermalHullBound) Breaches.Add($"hull thermal w={width}: cell rms {worstRms:F4} > {ThermalHullBound}"); + } + + // Hit-testing: CellAt returns the cell at every cell centre and nothing over an absent cell; empty cells pass clicks through. + var misses = 0; + var centres = 0; + for (var y = 0; y < rows; y++) + for (var x = 0; x < columns; x++) + { + var cell = new int2(x, y); + var world = gridRect.TransformPoint(grid.CellRect(cell).center); + var screen = RectTransformUtility.WorldToScreenPoint(camera, world); + var hit = grid.CellAt(screen, camera, out var found, out _); + var valid = grid.IsRaycastLocationValid(screen, camera); + centres++; + if (records.ContainsKey(cell) ? !(hit && found.Equals(cell) && valid) : valid) misses++; + } + Log($"hull {state.Name} w={width} hit-test centres={centres} wrong={misses}"); + if (misses > 0) Breaches.Add($"hull {state.Name} w={width}: {misses} hit-test centres wrong"); + + if (_pngOut != null && minX < int.MaxValue) + { + var x0 = Mathf.Max(0, minX - 8); + var y0 = Mathf.Max(0, minY - 8); + var region = new RectInt(x0, y0, Mathf.Min(rig.Width, maxX + 8) - x0, Mathf.Min(rig.Height, maxY + 8) - y0); + SaveSideBySide($"hull-{state.Name}-{width}.png", rig, old, fresh, region); + } + afterwards?.Invoke(rig, panel, grid, records); + ClearPage(rig); + } + + // old | new | abs difference x 8, cropped to the region. + private static void SaveSideBySide(string name, Rig rig, Color32[] old, Color32[] fresh, RectInt region) + { + if (_pngOut == null) return; + var output = new Texture2D(region.width * 3, region.height, TextureFormat.RGBA32, false); + var pixels = new Color32[region.width * 3 * region.height]; + for (var y = 0; y < region.height; y++) + for (var x = 0; x < region.width; x++) + { + var i = (region.y + y) * rig.Width + region.x + x; + Color32 Over(Color32 c) => new Color32(c.r, c.g, c.b, 255); + pixels[y * region.width * 3 + x] = Over(old[i]); + pixels[y * region.width * 3 + region.width + x] = Over(fresh[i]); + pixels[y * region.width * 3 + 2 * region.width + x] = new Color32( + (byte) Mathf.Min(255, 8 * Mathf.Abs(old[i].r - fresh[i].r)), (byte) Mathf.Min(255, 8 * Mathf.Abs(old[i].g - fresh[i].g)), + (byte) Mathf.Min(255, 8 * Mathf.Abs(old[i].b - fresh[i].b)), 255); + } + output.SetPixels32(pixels); + File.WriteAllBytes(Path.Combine(_pngOut, name), output.EncodeToPNG()); + UnityEngine.Object.DestroyImmediate(output); + } +} diff --git a/Assets/Scripts/Editor/InventoryGridParityCapture.cs.meta b/Assets/Scripts/Editor/InventoryGridParityCapture.cs.meta new file mode 100644 index 000000000..7fa26f97e --- /dev/null +++ b/Assets/Scripts/Editor/InventoryGridParityCapture.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: dd00afc599e4d704696448c5fec05990 \ No newline at end of file diff --git a/Assets/Scripts/Editor/IsolineExtractSmoke.cs b/Assets/Scripts/Editor/IsolineExtractSmoke.cs new file mode 100644 index 000000000..47e8d827c --- /dev/null +++ b/Assets/Scripts/Editor/IsolineExtractSmoke.cs @@ -0,0 +1,1150 @@ +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, cuts isoline-extraction and isoline-chain-arclength: + /// IsolineExtract.compute evaluates a gravity field in closed form from its lowered wells and writes the segments of its + /// 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 lowered terms, judged by Zone.GetHeight, + /// and synthetic well sets whose answer is a formula over the same records (GravityField on the records read back from + /// the buffer). 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 SlopeEpsilon = 1e-3f; + // Chain bounds, margin rule (readings of the run that set them, real zone at 256 x 256, 1920 x 1080 and 3840 x 2160 and the + // 60-well stress set; errors are fractions of the chain's length, mutants emulated on the CPU from the same segments). + // Position (s against the CPU arclength from the tail): shipped worst 2.1e-7; the least claimed mutant, pointer jumping + // stopped at J = 8, reads 0.853: bound 4.2e-4, separation 4.1e6. Linking through the first start found at a junction reads + // 6e-15 on every real field (no ray joint of three or more endpoints occurs in them) and 1.75 on the junction fixtures + // (ChainJunctions, hand-made arms through the real kernels): claimed there, shipped worst 5e-8 on them. + // Joint (sB_i against sA of the next): shipped worst 2.3e-7; the mutant J = 8 reads 6.5e-3 (stress, moved): bound 3.9e-5, + // separation 2.8e4. + // Edge, |sB - sA| against |b - a| over the edge's own scale: shipped worst 5.9e-8; the mutant sB = sA reads 1 by + // construction: bound 2.4e-4. + // Ray s on the log wells, ||sB - sA| - radial change| over the edge: shipped worst 9.9e-4; the mutant s from d / |grad d| + // (the curvature radius this cut deleted) reads 0.996: bound 0.0314, separation 1.0e3. + const float PositionBound = 4.2e-4f, JointBound = 3.9e-5f, EdgeBound = 2.4e-4f, RaySBound = 0.0314f; + 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. Re-set on the analytic sample if the run moves them. + const float LevelErrorBound = 0.19f; + // Ray endpoint's angle off its level, rad: shipped worst 4.0e-4; least mutant (levels half a step off) 0.262, separation 25. + const float RayAngleBound = 0.0103f; + // Endpoint depth |depth / d(r) - 1| and slope |slope / |d'(r)| - 1| on the radial wells: shipped worst 3.5e-4 and 1.1e-3. + // The bounds are the previous fixtures' (their mutants were read on the texture path and not re-read on the well fixtures). + const float DepthBound = 0.0049f; + const float SlopeBound = 0.0133f; + // The analytic sample against the law: d within GravityFieldParityVerify.Tolerance (0.03 u), the gradient angle within its + // GradientDegrees (3) where |grad| exceeds its FlatForce (1e-3): the parity verify's own ruled ceilings. + + 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; + public uint[] ChainStats; // heads, orientation conflicts, unterminated, table overflow + public Vector4[] Samples; // (gx, gy, d, |g|) per sample, row-major + } + + static ComputeShader Shader => AssetDatabase.LoadAssetAtPath("Assets/Shaders/IsolineExtract.compute") + ?? throw new InvalidOperationException("No IsolineExtract.compute."); + + sealed class Wells + { + public GravityLowering.GravityTerms Terms; + public GravityLowering.TermRecord[] Records; // read back from the buffer: CPU and GPU share one input + } + + static GravityLowering.TermRecord Well(Vector2 at, float strength, float softening, float inner, float outer, float reference = 0f) => + new GravityLowering.TermRecord { Position = at, Strength = strength, Softening = softening, Inner = inner, Outer = outer, Reference = reference }; + + // Uploads term records straight into a compute buffer: the synthetic fixtures' wells, as GravityLowering.Lower would. + internal static GravityLowering.GravityTerms WellsFrom(GravityLowering.TermRecord[] records, float exaggeration = 1f) + { + var buffer = new ComputeBuffer(records.Length, Marshal.SizeOf()); + buffer.SetData(records); + return new GravityLowering.GravityTerms(buffer, records.Length, exaggeration); + } + + static void Free(GravityLowering.GravityTerms terms) => terms.Buffer.Release(); + + static GravityLowering.TermRecord[] ReadRecords(GravityLowering.GravityTerms terms) + { + var records = new GravityLowering.TermRecord[terms.Buffer.count]; + terms.Buffer.GetData(records); + return records.Take(terms.Count).ToArray(); + } + + // d = -height and grad d at p, in double, from GravityField over the records: the same closed form the shader evaluates. + internal static void CpuSample(GravityLowering.TermRecord[] records, float exaggeration, Vector2 p, out double d, out double gx, out double gy) + { + double height = 0; + gx = gy = 0; + foreach (var t in records) + { + double ox = p.x - (double)t.Position.x, oy = p.y - (double)t.Position.y; + var r = Math.Sqrt(ox * ox + oy * oy); + if (!(r < t.Outer)) continue; + height += t.Strength * (double)GravityField.Potential(t.Softening, t.Inner, t.Outer, (float)r) - t.Reference; + if (r < 1e-20) continue; + var k = -(double)t.Strength / exaggeration * GravityField.Pull(t.Softening, t.Inner, t.Outer, (float)r) / r; + gx += k * ox; + gy += k * oy; + } + d = -height / exaggeration; + } + + // The sample grid of a downward orthographic view of half height halfHeight centred on a world point: square samples, + // sample (0, 0) at the corner's centre, +x east and +y toward +z as the camera sees them. + internal static void TopFrame(Vector2 centre, float halfHeight, int width, int height, out Vector2 origin, out Vector2 perTexel) + { + var step = 2f * halfHeight / height; + perTexel = new Vector2(step, step); + origin = centre - new Vector2(width, height) * (.5f * step) + perTexel * .5f; + } + + static Result Extract(GravityLowering.GravityTerms terms, Vector2 origin, Vector2 perTexel, Vector2Int size, + 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, terms, origin, perTexel, size, levels); + Graphics.ExecuteCommandBuffer(command); + var count = new uint[2]; + extractor.Count.GetData(count); + var chainStats = new uint[4]; + extractor.ChainStats.GetData(chainStats); + 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], + ChainStats = chainStats, + Samples = ReadSamples(extractor.Samples) + }; + } + finally + { + command.Release(); + extractor.Release(); + } + } + + static Vector4[] ReadSamples(RenderTexture samples) + { + var texture = new Texture2D(samples.width, samples.height, TextureFormat.RGBAFloat, false, true); + var previous = RenderTexture.active; + RenderTexture.active = samples; + texture.ReadPixels(new Rect(0, 0, samples.width, samples.height), 0, 0); + RenderTexture.active = previous; + var read = texture.GetPixelData(0).ToArray(); + UnityEngine.Object.DestroyImmediate(texture); + return read; + } + + 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 bool IsRay(uint key) => ((key >> 8) & 1u) != 0; + static int LevelOf(uint key) => (int)(key & 0xFFu); + static float Length(IsolineExtractor.IsoSegment s) => (s.b - s.a).magnitude; + + // ---- orientation --------------------------------------------------------------------------------------------------- + + static (int, int) PointKey(Vector2 p) => (BitConverter.SingleToInt32Bits(p.x), BitConverter.SingleToInt32Bits(p.y)); + + // The orientation rule's outcome (cut isoline-chain-arclength): at every point shared by exactly two endpoints of one + // family, one is a start (a) and the other an end (b). Returns the endpoints that break it (two starts or two ends at one + // point, counted per endpoint, the unit of the GPU's ChainStats[1]) and the joints it judged. Bound: no conflict at all, so the shipped + // reading is 0. The mutant (the shader emitting in the order it marches, run on a copy of the project) reads 1558 of the saddle + // fixture's 2972 joint endpoints, 7704 of the tight radial well's 12662, 8536 of the real zone's 14412 at 256 x 256 and 105058 of its + // 175652 at 3840 x 2160: a share of 52 to 61 percent. + static (int conflicts, int joints) Orientation(string what, IsolineExtractor.IsoSegment[] segments) + { + int conflicts = 0, joints = 0, rayConflicts = 0; + foreach (var family in new[] { false, true }) + { + var points = new Dictionary<(int, int), (int starts, int ends)>(); + foreach (var s in segments.Where(s => IsRay(s.key) == family)) + { + var a = PointKey(s.a); + var b = PointKey(s.b); + points.TryGetValue(a, out var pa); points[a] = (pa.starts + 1, pa.ends); + points.TryGetValue(b, out var pb); points[b] = (pb.starts, pb.ends + 1); + } + foreach (var (starts, ends) in points.Values) + { + if (starts + ends != 2) continue; + joints++; + if (starts == 1) continue; + conflicts += 2; + if (family) rayConflicts += 2; + } + } + Info($"orientation {what}: {joints} joints, {conflicts} endpoints at a joint with two starts or two ends ({rayConflicts} on rays)"); + if (joints < 10) Fail("orientation", $"{what}: only {joints} joints, the check is vacuous"); + if (conflicts != 0) Fail("orientation", $"{what}: {conflicts} endpoints sit at a joint that is not one end and one start"); + return (rayConflicts, joints); + } + + // ---- chains are arclength ------------------------------------------------------------------------------------------- + + // Worst readings over every case, as a fraction of the chain's length: the shipped GPU chains' s against the CPU truth, + // and the same for two mutants emulated on the CPU from the same segments: linking at a junction through the first + // segment found (Soul's replica links through any point that has a start) and pointer jumping stopped at J = 8. + // Position is |s - truth|; joint is |sB_i - sA_next| over the truth's links. + static double _positionShipped, _positionFirst, _positionJ8, _jointShipped, _jointFirst, _jointJ8; + + // The GPU's chains against IsolineRenderSmoke.BuildChains, the junction rule on the CPU: the same heads (ChainStats[0]), + // the same conflicts (ChainStats[1], Orientation's count), no unterminated segment and no table overflow, and every ray + // segment's s the arclength from its chain's tail, taken from the CPU in double: sA = -(length from this segment's start to + // the tail's start), sB = sA + |b - a|. A chain that BuildChains walks b to a throughout is reversed first; one that mixes + // directions holds an orientation conflict and is skipped here (Orientation fails it). + static void ChainsAreArclength(string what, Result result, int rayConflicts, int minCompared = 100) + { + var segs = result.Segments; + var chains = IsolineRenderSmoke.BuildChains(segs, 1u); + var truth = new double[segs.Length]; // sA of the truth + var total = new double[segs.Length]; // length of the segment's chain + var link = new int[segs.Length]; // the segment the truth links this one to, -1 for a tail + var position8 = new double[segs.Length]; // the J = 8 mutant's error in s, in length + Array.Fill(truth, double.NaN); + Array.Fill(link, -1); + double Len(int i) => Math.Sqrt(Math.Pow((double)segs[i].b.x - segs[i].a.x, 2) + Math.Pow((double)segs[i].b.y - segs[i].a.y, 2)); + int mixed = 0, longest = 0, loops = 0, loopSegments = 0; + double jointJ8Worst = 0; + foreach (var chain in chains) + { + List order; + if (chain.Rev.All(r => !r)) order = chain.Seg; + else if (chain.Rev.All(r => r)) order = chain.Seg.AsEnumerable().Reverse().ToList(); + else { mixed++; continue; } + var n = order.Count; + // a closed loop of ray segments has no tail: the GPU ranks it as it can and counts its segments unterminated + if (n >= 2 && PointKey(segs[order[0]].a) == PointKey(segs[order[n - 1]].b)) { loops++; loopSegments += n; continue; } + longest = Math.Max(longest, n); + var prefix = new double[n + 1]; + for (var k = 0; k < n; k++) prefix[k + 1] = prefix[k] + Len(order[k]); + var length = prefix[n]; + var tailStart = prefix[n - 1]; + for (var k = 0; k < n; k++) + { + truth[order[k]] = prefix[k] - tailStart; + total[order[k]] = length; + if (k + 1 < n) link[order[k]] = order[k + 1]; + // J = 8: only 256 segments of the length to the tail are summed + var reach = Math.Min(k + 256, n - 1); + position8[order[k]] = prefix[n - 1] - prefix[reach]; + if (k + 256 <= n - 2) jointJ8Worst = Math.Max(jointJ8Worst, Len(order[k + 256]) / length); + } + } + + // first-found linking: every ray segment links through the lowest-numbered segment that starts at its end + var firstStart = new Dictionary<(int, int), int>(); + for (var i = 0; i < segs.Length; i++) + if (IsRay(segs[i].key) && !firstStart.ContainsKey(PointKey(segs[i].a))) firstStart[PointKey(segs[i].a)] = i; + var nextFirst = new int[segs.Length]; + for (var i = 0; i < segs.Length; i++) + nextFirst[i] = IsRay(segs[i].key) && firstStart.TryGetValue(PointKey(segs[i].b), out var j) && j != i ? j : -1; + var rankFirst = new double[segs.Length]; + var state = new byte[segs.Length]; + var stack = new Stack(); + for (var i = 0; i < segs.Length; i++) + { + if (state[i] != 0 || !IsRay(segs[i].key)) continue; + for (var at = i; at >= 0 && state[at] == 0; at = nextFirst[at]) { state[at] = 1; stack.Push(at); } + while (stack.Count > 0) + { + var at = stack.Pop(); + var next = nextFirst[at]; + rankFirst[at] = next >= 0 && state[next] == 2 ? Len(at) + rankFirst[next] : next >= 0 ? Len(at) : 0; // a cycle stops where it closes + state[at] = 2; + } + } + + double positionShipped = 0, positionFirst = 0, positionJ8 = 0, jointShipped = 0, jointFirst = 0, edgeWorst = 0; + int compared = 0, firstWrong = 0; + for (var i = 0; i < segs.Length; i++) + { + if (!IsRay(segs[i].key) || double.IsNaN(truth[i])) continue; + compared++; + var s = segs[i]; + var length = total[i]; + positionShipped = Math.Max(positionShipped, Math.Max(Math.Abs(s.sA - truth[i]), Math.Abs(s.sB - (truth[i] + Len(i)))) / length); + positionJ8 = Math.Max(positionJ8, position8[i] / length); + var first = Math.Abs(-rankFirst[i] - truth[i]) / length; + positionFirst = Math.Max(positionFirst, first); + if (first > 1e-3) firstWrong++; + edgeWorst = Math.Max(edgeWorst, Math.Abs(Math.Abs(s.sB - s.sA) - Len(i)) / (Math.Abs(s.sA) + Math.Abs(s.sB) + Len(i))); + if (link[i] < 0) continue; + jointShipped = Math.Max(jointShipped, Math.Abs(s.sB - segs[link[i]].sA) / length); + // the first-found mutant's own s at this joint: its sB of i against its sA of the true next + jointFirst = Math.Max(jointFirst, Math.Abs((-rankFirst[i] + Len(i)) - (-rankFirst[link[i]])) / length); + } + _positionShipped = Math.Max(_positionShipped, positionShipped); _positionFirst = Math.Max(_positionFirst, positionFirst); _positionJ8 = Math.Max(_positionJ8, positionJ8); + _jointShipped = Math.Max(_jointShipped, jointShipped); _jointFirst = Math.Max(_jointFirst, jointFirst); _jointJ8 = Math.Max(_jointJ8, jointJ8Worst); + + var stats = result.ChainStats; + Info($"chains {what}: {segs.Count(s => IsRay(s.key))} ray segments, {chains.Count} chains (longest {longest} segments), {loops} closed loops of {loopSegments} segments, {mixed} mixed-direction; GPU stats heads {stats[0]} conflicts {stats[1]} unterminated {stats[2]} overflow {stats[3]}; " + + $"s error / chain length: position worst {positionShipped:G3} (mutants first-found {positionFirst:G3} on {firstWrong} segments, J = 8 {positionJ8:G3}), joint worst {jointShipped:G3} (mutants {jointFirst:G3}, {jointJ8Worst:G3}); |sB - sA| = |b - a| worst relative {edgeWorst:G3}"); + if (compared < minCompared) Fail("chains", $"{what}: only {compared} ray segments compared, the check is vacuous"); + if (mixed != 0) Fail("chains", $"{what}: {mixed} chains run both ways"); + if (stats[0] != chains.Count - loops) Fail("chains", $"{what}: the GPU counted {stats[0]} chain heads, the CPU {chains.Count - loops} open chains"); + if (stats[1] != rayConflicts) Fail("chains", $"{what}: the GPU counted {stats[1]} orientation conflicts, the CPU {rayConflicts}"); + if (stats[2] != loopSegments) Fail("chains", $"{what}: the GPU counted {stats[2]} unterminated segments, the CPU {loopSegments} in closed loops"); + if (stats[3] != 0) Fail("chains", $"{what}: the hash table overflowed {stats[3]} times"); + if (edgeWorst > EdgeBound) Fail("chains", $"{what}: |sB - sA| is off |b - a| by {edgeWorst:G3} > {EdgeBound:G3}"); + } + + // Called once, after every case: the readings against the margin-rule bounds (each constant's comment gives the shipped + // worst, the least claimed mutant and their separation). + static void ChainBounds() + { + Info($"chain readings over every case: position shipped {_positionShipped:G3}, first-found {_positionFirst:G3}, J = 8 {_positionJ8:G3}; joint shipped {_jointShipped:G3}, first-found {_jointFirst:G3}, J = 8 {_jointJ8:G3}"); + if (_positionShipped > PositionBound) Fail("chains", $"s is off the CPU arclength by {_positionShipped:G3} of a chain > {PositionBound:G3}"); + if (_jointShipped > JointBound) Fail("chains", $"s jumps by {_jointShipped:G3} of a chain at a joint > {JointBound:G3}"); + } + + // ---- 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); + var terms = GravityLowering.Lower(zone, 0f, ref wells); + field = GravityLowering.CreateField(material); + Guarded("real zone", () => RealZone(zone, orbits, terms)); + Guarded("chain junctions", ChainJunctions); + Guarded("chains are arclength", () => ChainCases(zone, orbits, terms)); + Guarded("captures and cost", () => CapturesAndCost(zone, orbits, terms)); + Guarded("chain cost", () => ChainCostCases(zone, orbits, terms)); + 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 grid under one well whose single cell holds exactly one contour segment, with every field of it known from the + // CPU closed form over the same record: the C# struct is 48 bytes and each field the shader wrote lands in the field the + // C# side reads. s is 0 on a contour. + static void Layout() + { + var size = Marshal.SizeOf(); + if (size != 48) Fail("layout", $"IsoSegment is {size} bytes, not 48"); + var records = new[] { Well(new Vector2(11f, 40f), 50f, 4f, 1e4f, 2e4f) }; + var terms = WellsFrom(records); + try + { + var origin = new Vector2(10f, 20f); + var perTexel = new Vector2(2f, 3f); + var corners = new[] { Vector2.zero, new Vector2(1f, 0f), new Vector2(1f, 1f), new Vector2(0f, 1f) } + .Select(c => origin + new Vector2(c.x * perTexel.x, c.y * perTexel.y)).ToArray(); + var cpu = corners.Select(c => { CpuSample(records, 1f, c, out var d, out var gx, out var gy); return (d, gx, gy); }).ToArray(); + var mean = (float)(cpu[0].d + cpu[3].d) / 2f; + var spacing = 4f * (float)Math.Abs(cpu[3].d - cpu[0].d); + var levels = new IsolineExtractor.IsolineLevels(mean - spacing, 20f * spacing, SlopeEpsilon); + var result = Extract(terms, origin, perTexel, new Vector2Int(2, 2), 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, float tolerance = 1e-3f) { if (Math.Abs(got - want) > tolerance) Fail("layout", $"{what}: {got:G8}, expected {want:G8}"); } + Near("a.x", s.a.x, 10f); Near("a.y", s.a.y, 21.5f, 2e-3f); Near("b.x", s.b.x, 12f); Near("b.y", s.b.y, 21.5f, 2e-3f); + // edge 3 joins corners 0 and 3 (a), edge 1 joins corners 1 and 2 (b); the slopes and depths are the corners' halfway + // along the edge, and s is 0 on a contour + float Slope(int i) => (float)Math.Sqrt(cpu[i].gx * cpu[i].gx + cpu[i].gy * cpu[i].gy); + Near("sA", s.sA, 0f); Near("sB", s.sB, 0f); + Near("slopeA", s.slopeA, (Slope(0) + Slope(3)) / 2f, 1e-4f); Near("slopeB", s.slopeB, (Slope(1) + Slope(2)) / 2f, 1e-4f); + Near("depthA", s.depthA, mean, 2e-3f); Near("depthB", s.depthB, mean, 2e-3f); + if (s.key != 0) Fail("layout", $"key {s.key:X}, expected level 0, contour, reserved bits 0"); + 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 { Free(terms); } + } + + // ---- saddle ------------------------------------------------------------------------------------------------------ + + // Two equal 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 origin = new Vector2(-10f, 5f); + var perTexel = new Vector2(2f, 2f); + Vector2 Texel(float x, float y) => origin + new Vector2(x * perTexel.x, y * perTexel.y); + var records = new[] + { + Well(Texel(cx + .5f - 6f, cx + .5f - 6f), 200f, 3f, 1e4f, 2e4f), + Well(Texel(cx + .5f + 6f, cx + .5f + 6f), 200f, 3f, 1e4f, 2e4f) + }; + var terms = WellsFrom(records); + try + { + var back = ReadRecords(terms); + float D(int x, int y) { CpuSample(back, 1f, Texel(x, y), out var d, out _, out _); return (float)d; } + var corner = new[] { D(cx, cx), D(cx + 1, cx), D(cx + 1, cx + 1), D(cx, cx + 1) }; + 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 result = Extract(terms, origin, perTexel, new Vector2Int(n, n), new IsolineExtractor.IsolineLevels(start, 20f * spacing, 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}"); + SamplesMatchTheLaw("saddle", result, terms, origin, perTexel, new Vector2Int(n, n), null); + Orientation("saddle", result.Segments); + } + finally { Free(terms); } + } + + // ---- along-line parameter, rays ---------------------------------------------------------------------------------- + + sealed class Radial + { + public string Name; + public float Softening; + public Func D; // the profile, d(r) + public Func Slope; // |d'(r)| + } + + // One softened log well on a 128 x 128 grid at 2 u per texel, its band edges far beyond the grid (inner 1e4, outer 2e4): + // d(r) = K (P(150) - P(r)) = K/2 ln((150^2 + e^2) / (r^2 + e^2)) up to the potential's float rounding, |d'(r)| = K Pull(r) + // = K r / (r^2 + e^2). Its level sets are circles, so a contour's curvature radius is r: the along-line parameter is + // arclength on a contour and distance on a ray. The well centre sits inside a cell. + const float WellStrength = 60f, WellInner = 1e4f, WellOuter = 2e4f; + const int GridSize = 128; + + static Radial LogWell(string name, float softening) => new Radial + { + Name = name, + Softening = softening, + D = r => WellStrength * ((double)GravityField.Potential(softening, WellInner, WellOuter, 150f) - GravityField.Potential(softening, WellInner, WellOuter, (float)r)), + Slope = r => WellStrength * (double)GravityField.Pull(softening, WellInner, WellOuter, (float)r) + }; + + static (GravityLowering.GravityTerms terms, Vector2 origin, Vector2 perTexel, Vector2 centre, float start, float range) RadialField(Radial profile) + { + var origin = new Vector2(-127f, -127f); + var perTexel = new Vector2(2f, 2f); + var centre = new Vector2(3.3f, -7.1f); + // 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)); + var reference = WellStrength * GravityField.Potential(profile.Softening, WellInner, WellOuter, 150f); + return (WellsFrom(new[] { Well(centre, WellStrength, profile.Softening, WellInner, WellOuter, reference) }), origin, perTexel, centre, start, range); + } + + static readonly Radial[] Profiles = { LogWell("tight", 4f), LogWell("soft-core", 15f) }; + + // The radii the checks read: far enough from the centre to be off the core and inside the grid (the grid 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 (terms, origin, perTexel, centre, start, range) = RadialField(profile); + try + { + var result = Extract(terms, origin, perTexel, new Vector2Int(GridSize, GridSize), new IsolineExtractor.IsolineLevels(start, range, 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; } + + // rays: each endpoint's angle off its level; the mutant puts the levels half a step off + double angleWorst = 0, angleMutant = 0; + var step = 2 * Math.PI / 12; + foreach (var s in rays) + foreach (var p in new[] { s.a, s.b }) + { + if (!InBand(p - centre)) continue; + 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)); + } + // s: a ray is a radial line, so along an edge s changes by the change of the distance to the centre; the mutant takes + // the change of d / |grad d| (the curvature radius this cut deleted) for it. A contour's s is 0. + double sWorst = 0, sMutant = 0; + foreach (var s in rays) + { + if (!InBand(s.a - centre) || !InBand(s.b - centre) || Length(s) < 1e-3f) continue; + var radial = Math.Abs((s.b - centre).magnitude - (s.a - centre).magnitude); + sWorst = Math.Max(sWorst, Math.Abs(Math.Abs(s.sB - s.sA) - radial) / Length(s)); + sMutant = Math.Max(sMutant, Math.Abs(Math.Abs(s.depthB / s.slopeB - s.depthA / s.slopeA) - radial) / Length(s)); + } + ContoursAreNotRanked(profile.Name, contours); + // 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 * GridSize + (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, GridSize); + SamplesMatchTheLaw("radial " + profile.Name, result, terms, origin, perTexel, new Vector2Int(GridSize, GridSize), null); + Orientation("radial " + profile.Name, result.Segments); + 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; ray angle error worst {angleWorst:G4} rad (mutant levels half a step off {angleMutant:G4}); ray s off the radial distance worst {sWorst:G3} of an edge (mutant d / |g| {sMutant:G3})"); + if (sWorst > RaySBound) Fail("along-line", $"{profile.Name}: a ray's s changes off the distance to the centre by {sWorst:G3} of an edge > {RaySBound:G3}"); + if (angleWorst > RayAngleBound) Fail("rays", $"{profile.Name}: a ray endpoint's angle is off its level by {angleWorst:G4} rad > {RayAngleBound:G4}"); + } + finally { Free(terms); } + } + } + + // ---- endpoint attributes, 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"); + } + + // 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 (terms, origin, perTexel, centre, _, _) = RadialField(profile); + try + { + var start = (float)profile.D(90); + var range = (float)(profile.D(50) - profile.D(90)); + var result = Extract(terms, origin, perTexel, new Vector2Int(GridSize, GridSize), new IsolineExtractor.IsolineLevels(start, range, 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 { Free(terms); } + } + + // ---- overflow ---------------------------------------------------------------------------------------------------- + + static void Overflow() + { + var (terms, origin, perTexel, _, start, range) = RadialField(Profiles[0]); + try + { + var levels = new IsolineExtractor.IsolineLevels(start, range, SlopeEpsilon); + var size = new Vector2Int(GridSize, GridSize); + var full = Extract(terms, origin, perTexel, size, levels, 1 << 18); + var needed = (int)full.Requested; + var capacity = needed / 2; + var guard = 32; + var small = Extract(terms, origin, perTexel, size, 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 { Free(terms); } + } + + // ---- the analytic sample ---------------------------------------------------------------------------------------------- + + // Per sample of the grid: d against the law (truthD, Zone.GetHeight for the real zone; the CPU closed form over the same + // records when null), the gradient angle against the CPU closed form. + static void SamplesMatchTheLaw(string what, Result result, GravityLowering.GravityTerms terms, Vector2 origin, Vector2 perTexel, + Vector2Int size, Func truthD) + { + var records = ReadRecords(terms); + double dWorst = 0, angleWorst = 0; + for (var y = 0; y < size.y; y++) + for (var x = 0; x < size.x; x++) + { + var sample = result.Samples[y * size.x + x]; + var p = origin + new Vector2(x * perTexel.x, y * perTexel.y); + CpuSample(records, terms.Exaggeration, p, out var d, out var gx, out var gy); + dWorst = Math.Max(dWorst, Math.Abs(sample.z - (truthD?.Invoke(p) ?? d))); + var slope = Math.Sqrt(gx * gx + gy * gy); + if (slope <= GravityFieldParityVerify.FlatForce) continue; + var cross = sample.x * gy - sample.y * gx; + var dot = sample.x * gx + sample.y * gy; + angleWorst = Math.Max(angleWorst, Math.Abs(Math.Atan2(cross, dot)) * 180 / Math.PI); + } + Info($"analytic sample, {what}: {size.x * size.y} samples; d worst {dWorst:G3} u (bound {GravityFieldParityVerify.Tolerance:G3}); gradient angle worst {angleWorst:G3} deg (bound {GravityFieldParityVerify.GradientDegrees:G3})"); + if (dWorst > GravityFieldParityVerify.Tolerance) Fail("analytic sample", $"{what}: d is off the law by {dWorst:G4} u > {GravityFieldParityVerify.Tolerance:G4} (the fallback is a spec revision: stop)"); + if (angleWorst > GravityFieldParityVerify.GradientDegrees) Fail("analytic sample", $"{what}: the gradient angle is off by {angleWorst:G4} degrees > {GravityFieldParityVerify.GradientDegrees:G4} (the fallback is a spec revision: stop)"); + } + + // ---- 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; + } + + // 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, GravityLowering.GravityTerms terms) + { + TopFrame(ZoneCentre, ZoneHalf, 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)))); + var levels = new IsolineExtractor.IsolineLevels(0f, range, SlopeEpsilon); + var size = new Vector2Int(256, 256); + var result = Extract(terms, origin, perTexel, size, levels, 1 << 20); + SamplesMatchTheLaw("real zone", result, terms, origin, perTexel, size, p => -zone.GetHeight(new float2(p.x, p.y))); + 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"); + CellBoxes("real zone", result.Segments, origin, perTexel, 256); + var (zoneConflicts, _) = Orientation("real zone", result.Segments); + ChainsAreArclength("real zone 256 x 256", result, zoneConflicts); + if (open != 0) Fail("contours close", $"{open} endpoints are not shared with exactly one other endpoint"); + } + + // The chain cases the spec names beyond the 256 x 256 real zone: the real zone at the map pose (1920 x 1080 over 2200 u) and at + // 3840 x 2160, and the 60-well stress set (1920 x 1080 at 1 u per sample). Each runs the extractor as shipped, then the + // orientation and chain checks; the bounds follow once every case has read. + const int ChainCapacity = 1 << 20; + + static void ChainCases(Zone zone, Orbit[] orbits, GravityLowering.GravityTerms terms) + { + var range = Math.Max(1f, orbits.Max(o => -zone.GetHeight(new float2(o.Position.x, o.Position.y)))); + var levels = new IsolineExtractor.IsolineLevels(0f, range, SlopeEpsilon); + foreach (var (what, w, h) in new[] { ("real zone 1920 x 1080", 1920, 1080), ("real zone 3840 x 2160", 3840, 2160) }) + { + TopFrame(ZoneCentre, 1100f, w, h, out var origin, out var perTexel); + var result = Extract(terms, origin, perTexel, new Vector2Int(w, h), levels, ChainCapacity); + if (result.Written != result.Requested) Fail("chains", $"{what}: {result.Requested} requested, only {result.Written} written"); + var (conflicts, _) = Orientation(what, result.Segments); + ChainsAreArclength(what, result, conflicts); + ContoursAreNotRanked(what, result.Segments); + } + var stress = WellsFrom(IsolineRenderSmoke.StressWells(out var stressRange)); + try + { + var result = Extract(stress, new Vector2(.5f, .5f), Vector2.one, new Vector2Int(1920, 1080), new IsolineExtractor.IsolineLevels(0f, stressRange, SlopeEpsilon), ChainCapacity); + if (result.Written != result.Requested) Fail("chains", $"stress: {result.Requested} requested, only {result.Written} written"); + var (conflicts, _) = Orientation("stress 60 wells", result.Segments); + ChainsAreArclength("stress 60 wells", result, conflicts); + ContoursAreNotRanked("stress 60 wells", result.Segments); + } + finally { Free(stress); } + ChainFramesReuse(zone, orbits, terms); + ChainBounds(); + } + + // Contours are not ranked: their s is 0 (they are solid by ruling isoline-rays-flow). + static void ContoursAreNotRanked(string what, IsolineExtractor.IsoSegment[] segments) + { + var ranked = segments.Count(s => !IsRay(s.key) && (s.sA != 0f || s.sB != 0f)); + if (ranked != 0) Fail("contours", $"{what}: {ranked} contour segments carry an s other than 0"); + } + + // ---- chain junctions and frame reuse (verdict cut-isoline-chain-arclength.s1) ---------------------------------------------- + + static IsolineExtractor.IsoSegment RaySegment(Vector2 a, Vector2 b) => new IsolineExtractor.IsoSegment + { + a = a, b = b, key = 1u << 8, cell = 0, slopeA = 1f, slopeB = 1f, depthA = 0f, depthB = 0f + }; + + // An arm of n segments of vector step meeting the junction P: arriving (the last segment ends at P) or leaving (the first + // starts at P). Coordinates are small integers, so every shared point is bit-equal. + static void Arm(List into, Vector2 p, Vector2 step, int n, bool arriving) + { + for (var k = 0; k < n; k++) + { + var a = arriving ? p - step * (n - k) : p + step * k; + into.Add(RaySegment(a, a + step)); + } + } + + // Hand-made ray segments through the real chain kernels (RecordFinishAndChains over a buffer the fixture wrote), read back. + static Result ChainsOver(IsolineExtractor.IsoSegment[] segments) + { + var extractor = new IsolineExtractor(Shader, Math.Max(segments.Length, 16)); + var command = new CommandBuffer { name = "IsolineChainFixture" }; + try + { + var padded = new IsolineExtractor.IsoSegment[extractor.Segments.count]; + Array.Copy(segments, padded, segments.Length); + extractor.Segments.SetData(padded); + extractor.Count.SetData(new[] { (uint)segments.Length, (uint)segments.Length }); + extractor.ChainStats.SetData(new uint[4]); + extractor.RecordFinishAndChains(command, new Vector2Int(64, 64)); + Graphics.ExecuteCommandBuffer(command); + var all = new IsolineExtractor.IsoSegment[extractor.Segments.count]; + extractor.Segments.GetData(all); + var stats = new uint[4]; + extractor.ChainStats.GetData(stats); + return new Result { Segments = all.Take(segments.Length).ToArray(), ChainStats = stats, Written = (uint)segments.Length, Requested = (uint)segments.Length }; + } + finally + { + command.Release(); + extractor.Release(); + } + } + + // The junction rule through the real kernels: a point shared by three or more ray endpoints ends every chain touching it, so + // each arm is its own chain; a point of exactly one end and one start joins its two arms. Arms of different lengths, so a + // wrong link changes a rank. Every case is compared with the CPU rule (BuildChains) by ChainsAreArclength; linking at a + // junction through the first start found reads far off here (Soul: 8, 4 and 8 segments of 12, 12 and 16 off). + static void ChainJunctions() + { + var p = Vector2.zero; + var cases = new (string name, int[] arriving, int[] leaving)[] + { + ("Y two ends one start", new[] { 4, 3 }, new[] { 4 }), + ("Y one end two starts", new[] { 4 }, new[] { 4, 5 }), + ("X two ends two starts", new[] { 4, 3 }, new[] { 4, 5 }), + ("control one end one start", new[] { 4 }, new[] { 4 }), + }; + var arrivingSteps = new[] { new Vector2(1f, 0f), new Vector2(0f, -1f) }; + var leavingSteps = new[] { new Vector2(1f, 1f), new Vector2(1f, -1f) }; + foreach (var (name, arriving, leaving) in cases) + { + var list = new List(); + for (var i = 0; i < arriving.Length; i++) Arm(list, p, arrivingSteps[i], arriving[i], true); + for (var i = 0; i < leaving.Length; i++) Arm(list, p, leavingSteps[i], leaving[i], false); + ChainsAreArclength("junction " + name, ChainsOver(list.ToArray()), 0, list.Count); + } + } + + // One extractor over several frames with changing fields, as the renderer drives it: the table, the ping-pong links and the + // stats are per-frame scratch the kernels must clear or overwrite every frame. Every frame is judged like a fresh one (heads, + // conflicts, unterminated against the CPU, s against the CPU arclength). A table left uncleared after the first frame reads + // 63546 of the stress frame's 64573 ray segments off (Soul's probe). + static void ChainFramesReuse(Zone zone, Orbit[] orbits, GravityLowering.GravityTerms terms) + { + var range = Math.Max(1f, orbits.Max(o => -zone.GetHeight(new float2(o.Position.x, o.Position.y)))); + var zoneLevels = new IsolineExtractor.IsolineLevels(0f, range, SlopeEpsilon); + var stress = WellsFrom(IsolineRenderSmoke.StressWells(out var stressRange)); + var stressLevels = new IsolineExtractor.IsolineLevels(0f, stressRange, SlopeEpsilon); + var extractor = new IsolineExtractor(Shader, ChainCapacity); + try + { + TopFrame(ZoneCentre, 1100f, 1920, 1080, out var zoneOrigin, out var zonePerTexel); + var frames = new (string what, GravityLowering.GravityTerms terms, Vector2 origin, Vector2 perTexel, Vector2Int size, IsolineExtractor.IsolineLevels levels)[] + { + ("stress", stress, new Vector2(.5f, .5f), Vector2.one, new Vector2Int(1920, 1080), stressLevels), + ("stress moved by (13.3, 7.7)", stress, new Vector2(13.8f, 8.2f), Vector2.one, new Vector2Int(1920, 1080), stressLevels), + ("real zone 1920 x 1080", terms, zoneOrigin, zonePerTexel, new Vector2Int(1920, 1080), zoneLevels), + ("stress again", stress, new Vector2(.5f, .5f), Vector2.one, new Vector2Int(1920, 1080), stressLevels), + }; + for (var i = 0; i < frames.Length; i++) + { + var (what, t, origin, perTexel, size, levels) = frames[i]; + var command = new CommandBuffer { name = "IsolineExtractReuse" }; + extractor.Extract(command, t, origin, perTexel, size, levels); + Graphics.ExecuteCommandBuffer(command); + command.Release(); + var count = new uint[2]; + extractor.Count.GetData(count); + var all = new IsolineExtractor.IsoSegment[extractor.Segments.count]; + extractor.Segments.GetData(all); + var stats = new uint[4]; + extractor.ChainStats.GetData(stats); + var result = new Result { Segments = all.Take((int)count[0]).ToArray(), Written = count[0], Requested = count[1], ChainStats = stats }; + var (conflicts, _) = Orientation($"reused extractor, frame {i + 1} ({what})", result.Segments); + ChainsAreArclength($"reused extractor, frame {i + 1} ({what})", result, conflicts); + } + } + finally + { + extractor.Release(); + Free(stress); + } + } + + // ---- chain cost (reported, not gated) --------------------------------------------------------------------------------- + + // The chain kernels' cost (ChainClear through ChainEmit, J passes): per iteration, Extract recorded 8 times through Finish and + // 8 times through the chains, each timed on the wall clock to a fence (the count read back); the chain cost is the median + // over 31 interleaved iterations of the paired difference (the fence and the extraction cancel), beside the median of Extract + // alone. Soul's replica (r2, GTX 1070): 0.16-0.18 ms at the map pose, 0.75-0.77 ms on the stress set. This cut's kernels + // (GTX 1070, Starfire, 2026-12-01): 0.19-0.22 ms at the map pose (Extract through Finish 1.07-1.12), 1.0-1.1 ms on the stress + // set (2.4-2.5), 0.29-0.33 ms at 3840 x 2160 (3.7-3.8). Link and Insert each probe twice (the heads and conflicts tallies + // read an endpoint's own point), which the replica did not. + static void ChainCost(string what, GravityLowering.GravityTerms terms, Vector2 origin, Vector2 perTexel, Vector2Int size, IsolineExtractor.IsolineLevels levels) + { + const int reps = 8, iterations = 31; + var extractor = new IsolineExtractor(Shader, ChainCapacity); + try + { + double Time(IsolineExtractor.Stage stage) + { + var command = new CommandBuffer { name = "IsolineChainCost" }; + for (var r = 0; r < reps; r++) extractor.Extract(command, terms, origin, perTexel, size, levels, stage); + var clock = Stopwatch.StartNew(); + Graphics.ExecuteCommandBuffer(command); + extractor.Count.GetData(new uint[2]); + clock.Stop(); + command.Release(); + return clock.Elapsed.TotalMilliseconds / reps; + } + Time(IsolineExtractor.Stage.Segments); Time(IsolineExtractor.Stage.Chains); // warm up + var alone = new List(); + var delta = new List(); + var full = new List(); + for (var i = 0; i < iterations; i++) + { + var a = Time(IsolineExtractor.Stage.Segments); + var b = Time(IsolineExtractor.Stage.Chains); + alone.Add(a); full.Add(b); delta.Add(b - a); + } + double Median(List v) { v.Sort(); return v[v.Count / 2]; } + var counts = new uint[2]; + extractor.Count.GetData(counts); + var stats = new uint[4]; + extractor.ChainStats.GetData(stats); + Info($"chain cost {what}: {counts[0]} segments; Extract through Finish {Median(alone):F3} ms, through the chains {Median(full):F3} ms, chain kernels (paired difference, median of {iterations} x {reps} reps) {Median(delta):F3} ms; ChainStats heads {stats[0]} conflicts {stats[1]} unterminated {stats[2]} overflow {stats[3]}"); + } + finally { extractor.Release(); } + } + + static void ChainCostCases(Zone zone, Orbit[] orbits, GravityLowering.GravityTerms terms) + { + var levels = new IsolineExtractor.IsolineLevels(0f, Math.Max(1f, orbits.Max(o => -zone.GetHeight(new float2(o.Position.x, o.Position.y)))), SlopeEpsilon); + TopFrame(ZoneCentre, 1100f, 1920, 1080, out var origin, out var perTexel); + ChainCost("real zone 1920 x 1080", terms, origin, perTexel, new Vector2Int(1920, 1080), levels); + var stress = WellsFrom(IsolineRenderSmoke.StressWells(out var stressRange)); + try { ChainCost("stress 60 wells", stress, new Vector2(.5f, .5f), Vector2.one, new Vector2Int(1920, 1080), new IsolineExtractor.IsolineLevels(0f, stressRange, SlopeEpsilon)); } + finally { Free(stress); } + TopFrame(ZoneCentre, 1100f, 3840, 2160, out var bigOrigin, out var bigPerTexel); + ChainCost("real zone 3840 x 2160", terms, bigOrigin, bigPerTexel, new Vector2Int(3840, 2160), levels); + } + + // ---- captures and cost ------------------------------------------------------------------------------------------- + + const int CaptureSize = 512; + + static void CapturesAndCost(Zone zone, Orbit[] orbits, GravityLowering.GravityTerms terms) + { + // 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, SlopeEpsilon); + var result = Extract(terms, origin, perTexel, new Vector2Int(128, 128), 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. + TopFrame(ZoneCentre, ZoneHalf, 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, Vector2 o, Vector2 p, Vector2Int grid) + { + var command = new CommandBuffer { name = "IsolineExtract" }; + command.BeginSample("IsolineExtract"); + extractor.Extract(command, terms, o, p, grid, 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, origin, perTexel, new Vector2Int(128, 128)); Measure(large, bigOrigin, bigPerTexel, new Vector2Int(1920, 1080)); // warm up + var a = new List(); + var b = new List(); + for (var i = 0; i < 21; i++) + { + a.Add(Measure(small, origin, perTexel, new Vector2Int(128, 128))); + b.Add(Measure(large, bigOrigin, bigPerTexel, new Vector2Int(1920, 1080))); + } + 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(); + 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 new file mode 100644 index 000000000..ad2cde366 --- /dev/null +++ b/Assets/Scripts/Editor/IsolineExtractSmoke.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 961a55f8990ee804faf3edd6d76b3268 \ No newline at end of file diff --git a/Assets/Scripts/Editor/IsolineRenderSmoke.cs b/Assets/Scripts/Editor/IsolineRenderSmoke.cs new file mode 100644 index 000000000..a19f120b4 --- /dev/null +++ b/Assets/Scripts/Editor/IsolineRenderSmoke.cs @@ -0,0 +1,1561 @@ +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 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, 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, + IsolineExtractor.IsolineLevels? levels = 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 ?? 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); + Guarded("crowded tile", CrowdedTile); + Guarded("per-family look", PerFamilyLook); + Guarded("dash filter", DashFilter); + + 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); + var terms = GravityLowering.Lower(zone, 0f, ref wells); + field = GravityLowering.CreateField(material); + Guarded("flow follows depth near the real-zone saddle", () => FlowOnRealZone(zone, orbits, terms)); + Guarded("dashes match true arclength", () => DashesMatchTrueArclength(zone, orbits, terms)); + Guarded("stress field and the shipped pool", StressAndPool); + Guarded("captures and cost", () => CapturesAndCost(zone, orbits, terms)); + 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); + } + + // ---- shader mutants the first smoke missed (verdict cut-isoline-renderer.s1, finding smoke-misses-three-shader-mutants) ----- + + // Bounds by the margin rule. CrowdBound: shipped worst |h - cpu| 1.1e-5 px (X1 on ab17b688b), M10 (the chunk loop reads + // min(63, left) entries, dropping the 64th) reads h 9.5 at the dropped segment: sqrt(1.1e-5 x 9.5), separation 929. + // FamilyBound: shipped raw D of a SigmaD 6 ray 1.0e-6 off its kernel truth, M19 (the ray reads the contour's sigmaD 3) + // 0.2102 off: sqrt(1.0e-6 x 0.2102) = 4.6e-4, separation 456. DashSpreadBound: relative spread of the composite along + // a dash at a 0.4 px period, shipped 0.0047, M17 (filter width 1e-4) emulated 0.455: sqrt = 0.0462, separation 9.8. + // CrowdDensityBound is a gross gate, not a margin bound: relative |D - cpu| (shipped 0.0143 absolute at the worst + // pixel) has no claimed mutant; M10's D reading was never measured. + const float CrowdBound = 0.0102f; + const float CrowdDensityBound = 0.01f; + const float FamilyBound = 4.6e-4f; + const float DashSpreadBound = 0.0462f; + + // Erf in double, Numerical Recipes erfc Chebyshev, 1.2e-7 relative. + static double Erf64(double x) + { + var z = Math.Abs(x); + var t = 1.0 / (1.0 + 0.5 * z); + var r = t * Math.Exp(-z * z - 1.26551223 + t * (1.00002368 + t * (0.37409196 + t * (0.09678418 + t * (-0.18628806 + t * (0.27886807 + t * (-1.13520398 + t * (1.48851587 + t * (-0.82215223 + t * 0.17087277))))))))); + return x >= 0 ? 1 - r : r - 1; + } + + // n short segments in one 8 x 8 tile (n = 64..400, so the cooperative load runs several chunks): raw h and D at every pixel + // around them against a CPU brute force; then one unique-nearest segment placed at list index 0, 63, 64, 127, 128 and n - 1 + // must be the one the pixel on it reads. Kills M10, which drops the 64th entry of each chunk. + static void CrowdedTile() + { + var view = Unit256(); + try + { + var look = PlainLook(); + var rng = new System.Random(3); + float worstH = 0f, worstD = 0f, worstUnique = 0f; + var sigma = look.Contour.SigmaD; + foreach (var n in new[] { 64, 65, 128, 129, 200, 400 }) + { + var list = new List(); + for (var i = 0; i < n; i++) + { + var c = new Vector2(80f + (float)rng.NextDouble() * 8f, 80f + (float)rng.NextDouble() * 8f); + var angle = (float)rng.NextDouble() * Mathf.PI; + var half = 1.5f + (float)rng.NextDouble() * 1.5f; + var dir = new Vector2(Mathf.Cos(angle), Mathf.Sin(angle)) * half; + list.Add(Contour(c - dir, c + dir)); + } + var frame = Draw(view, list.ToArray(), look, true); + var pixels = list.Select(s => { Project(view, s.a, s.b, out var pa, out var pb, out _, out _); return (pa, pb); }).ToArray(); + for (var y = 64; y < 104; y++) + for (var x = 64; x < 104; x++) + { + var p = new Vector2(x + .5f, y + .5f); + var nearest = pixels.Min(q => DistanceToSegment(p, q.pa, q.pb)); + if (nearest <= look.Dilation) worstH = Mathf.Max(worstH, Mathf.Abs(frame.At(x, y).y - nearest)); + if (nearest > 2f) continue; + double density = 0; + foreach (var q in pixels) + { + var e = q.pb - q.pa; + var length = e.magnitude; + var unit = e / length; + var along = Vector2.Dot(p - q.pa, unit); + var across = unit.x * (p.y - q.pa.y) - unit.y * (p.x - q.pa.x); + density += Math.Exp(-across * across / (2 * sigma * sigma)) * .5 * (Erf64((length - along) / (sigma * Math.Sqrt(2))) - Erf64(-along / (sigma * Math.Sqrt(2)))); + } + worstD = Mathf.Max(worstD, Mathf.Abs(frame.At(x, y).x - (float)density) / Mathf.Max((float)density, 1f)); + } + if (frame.Stats[0] != frame.Stats[1] || frame.Stats[2] != 0) + Fail("crowded tile", $"n {n}: tile entries requested {frame.Stats[0]} written {frame.Stats[1]} truncated {frame.Stats[2]}"); + } + foreach (var n in new[] { 64, 65, 128, 129, 200 }) + foreach (var unique in new[] { 0, 63, 64, 127, 128, n - 1 }) + { + if (unique >= n) continue; + var list = new List(); + for (var i = 0; i < n; i++) + { + if (i == unique) list.Add(Contour(new Vector2(80f, 80.5f), new Vector2(80.6f, 80.5f))); + else { var c = new Vector2(86f + (float)rng.NextDouble() * 2f, 88f + (float)rng.NextDouble() * 1.5f); list.Add(Contour(c, c + new Vector2(1f, 0f))); } + } + // pixel (80, 80) has its centre on the unique segment: its distance is 0 + worstUnique = Mathf.Max(worstUnique, Draw(view, list.ToArray(), look, true).At(80, 80).y); + } + Info($"crowded tile: worst |h - cpu| {worstH:G3} px, worst relative |D - cpu| {worstD:G3}, unique-nearest h {worstUnique:G3} px (M10 reads 9.5)"); + if (worstH > CrowdBound) Fail("crowded tile", $"worst |h - cpu| {worstH:G4} > {CrowdBound:G4}"); + if (worstUnique > CrowdBound) Fail("crowded tile", $"the unique nearest segment reads h {worstUnique:G4} > {CrowdBound:G4}: it was dropped from a tile list"); + if (worstD > CrowdDensityBound) Fail("crowded tile", $"worst relative |D - cpu| {worstD:G4} > {CrowdDensityBound:G4}"); + } + finally { view.Dispose(); } + } + + // The ray family carries its own SigmaD: a ray of SigmaD 6 beside a contour SigmaD 3 reads the SigmaD 6 kernel in raw D. + // Kills M19, whose ray reads the contour's sigmaD and so the 3 kernel. + static void PerFamilyLook() + { + var view = Unit256(); + try + { + var look = PlainLook(); + look.Ray.SigmaD = 6f; look.Contour.SigmaD = 3f; look.Ray.W = 6f; look.Contour.W = 1f; look.Ray.Period = 0f; look.Ray.Base = Color.white; + var ray = new[] { Segment(new Vector2(10f, 128f), new Vector2(246f, 128f), 0f, 236f, .1f, .1f, true) }; + var d = Draw(view, ray, look, true, 1).At(128, 125).x; + var truth = Mathf.Exp(-2.5f * 2.5f / (2f * 36f)); + var mutant = Mathf.Exp(-2.5f * 2.5f / (2f * 9f)); + var wide = Draw(view, ray, look, false).At(128, 125).w; + var thin = look; thin.Ray.W = 1.5f; + var narrow = Draw(view, ray, thin, false).At(128, 125).w; + Info($"per-family look: ray raw D {d:F4} (kernel truth {truth:F4}, mutant reads {mutant:F4}, |error| {Mathf.Abs(d - truth):G3} against mutant {Mathf.Abs(mutant - truth):G3}); composite alpha 2.5 px off the line W 6 {wide:F3}, W 1.5 {narrow:F3}"); + if (Mathf.Abs(d - truth) > FamilyBound) Fail("per-family look", $"ray raw D {d:G4} is not the SigmaD 6 kernel {truth:G4} (bound {FamilyBound:G4})"); + if (wide < .6f || narrow > .4f) Fail("per-family look", $"the ray's width does not follow its family's W: {wide:G3} / {narrow:G3}"); + } + finally { view.Dispose(); } + } + + // The dash is box-filtered over the pixel footprint (w = |ds/dp| / Period). A straight ray with s = arclength: + // (a) Period 0.4 px, the footprint 2.5 periods: the composite along the line is flat at the duty (the sampling phase + // is set so the two alternating pixel phases see the same ink; M17 samples the unfiltered square wave and alternates + // between ink and none); (b) Period 40 px: every dash edge has a pixel strictly between its levels (the box filter's + // edge pixel), where M17 steps. M17 is emulated from two renders of the same ray, solid and duty 0. + static void DashFilter() + { + var view = Unit256(); + try + { + var look = PlainLook(); + look.Ray.W = 6f; look.Ray.Base = Color.white; look.Ray.Speed = 0f; + float Alpha(Frame f, int x) => f.At(x, 128).w; + Frame Ray(float period, float duty, float x0) + { + var l = look; + l.Ray.Period = period; + l.Ray.Duty = duty; + return Draw(view, new[] { Segment(new Vector2(x0, 128f), new Vector2(246f, 128f), 0f, 246f - x0, .1f, .1f, true) }, l, false); + } + float RelativeSpread(Func value) + { + var values = Enumerable.Range(12, 232).Select(value).ToList(); + var mean = values.Average(); + return Mathf.Sqrt(values.Select(v => (v - mean) * (v - mean)).Average()) / mean; + } + + // (a) pixel x has s = x + .5 - x0 = (.02 + 2.5 (x - 10)) periods of .4: phase .02 at x = 10, then .52, .02, ... + var x0a = 10.5f - .008f; + var dashed = Ray(.4f, .5f, x0a); + var solid = Ray(0f, 1f, x0a); + var none = Ray(.4f, 0f, x0a); + var shipped = RelativeSpread(x => Alpha(dashed, x)); + var mutant = RelativeSpread(x => + { + var phase = ((x + .5f - x0a) / .4f) % 1f; + return phase < .5f ? Alpha(solid, x) : Alpha(none, x); + }); + Info($"dash filter: relative spread of the composite along a 0.4 px period {shipped:G3} (M17 emulated {mutant:G3}, ratio {mutant / Mathf.Max(shipped, 1e-9f):G3}), bound {DashSpreadBound:G3}"); + if (shipped > DashSpreadBound) Fail("dash filter", $"spread {shipped:G4} > {DashSpreadBound:G4} at the sub-pixel period"); + + // (b) edges at s = 20 + 20 k for a 40 px period at duty .5, landing .37 px into a pixel + var wide = Ray(40f, .5f, 10.37f); + var peak = Enumerable.Range(12, 232).Max(x => Alpha(wide, x)); + var trough = Enumerable.Range(12, 232).Min(x => Alpha(wide, x)); + int between = 0, steps = 0; + for (var x = 12; x < 243; x++) + { + var f = (Alpha(wide, x) - trough) / (peak - trough); + var g = (Alpha(wide, x + 1) - trough) / (peak - trough); + if (f > .1f && f < .9f) between++; + if ((f >= .9f && g <= .1f) || (f <= .1f && g >= .9f)) steps++; + } + Info($"dash filter: 40 px period, {between} edge pixels between 0.1 and 0.9 of the dash, {steps} hard steps (an unfiltered square wave has no edge pixels: M17 steps at every edge)"); + if (steps > 0 || between < 10) Fail("dash filter", $"edges are not antialiased: {between} pixels between the levels, {steps} hard steps"); + } + finally { view.Dispose(); } + } + + // ---- s quality on the map pose (verdict cut-isoline-renderer.s1, findings ray-dashes-alias-from-s-jitter and + // ray-noise-grows-as-texel-shrinks) -------------------------------------------------------------------------------- + + internal sealed class Chain + { + public List Seg = new List(); + public List Rev = new List(); + } + + internal sealed class Edge + { + public Vector2 P0, P1; + public float S0, S1, L; + public int Seg; + public bool Rev; + public float Ds => S1 - S0; + } + + static (int, int) PointKey(Vector2 p) => (BitConverter.SingleToInt32Bits(p.x), BitConverter.SingleToInt32Bits(p.y)); + + // The polylines of one family: segments joined where exactly two endpoints share a bit-equal point. + internal static List BuildChains(Seg[] segs, uint family) + { + var ends = new Dictionary<(int, int), List<(int seg, int end)>>(); + void Add(Vector2 p, int seg, int end) + { + var k = PointKey(p); + if (!ends.TryGetValue(k, out var l)) ends[k] = l = new List<(int, int)>(); + l.Add((seg, end)); + } + for (var i = 0; i < segs.Length; i++) + { + if (((segs[i].key >> 8) & 1u) != family) continue; + Add(segs[i].a, i, 0); + Add(segs[i].b, i, 1); + } + var used = new bool[segs.Length]; + var chains = new List(); + for (var i = 0; i < segs.Length; i++) + { + if (((segs[i].key >> 8) & 1u) != family || used[i]) continue; + var c = new Chain(); + c.Seg.Add(i); c.Rev.Add(false); used[i] = true; + while (true) + { + var last = c.Seg[c.Seg.Count - 1]; + var rev = c.Rev[c.Rev.Count - 1]; + var l = ends[PointKey(rev ? segs[last].a : segs[last].b)]; + if (l.Count != 2) break; + var o = l[0].seg == last ? l[1] : l[0]; + if (used[o.seg]) break; + used[o.seg] = true; c.Seg.Add(o.seg); c.Rev.Add(o.end == 1); + } + while (true) + { + var first = c.Seg[0]; + var rev = c.Rev[0]; + var l = ends[PointKey(rev ? segs[first].b : segs[first].a)]; + if (l.Count != 2) break; + var o = l[0].seg == first ? l[1] : l[0]; + if (used[o.seg]) break; + used[o.seg] = true; c.Seg.Insert(0, o.seg); c.Rev.Insert(0, o.end == 0); + } + chains.Add(c); + } + return chains; + } + + internal static List EdgesOf(Seg[] segs, Chain c) + { + var list = new List(); + for (var i = 0; i < c.Seg.Count; i++) + { + var s = segs[c.Seg[i]]; + var r = c.Rev[i]; + var e = new Edge { Seg = c.Seg[i], Rev = r, P0 = r ? s.b : s.a, P1 = r ? s.a : s.b, S0 = r ? s.sB : s.sA, S1 = r ? s.sA : s.sB }; + e.L = (e.P1 - e.P0).magnitude; + list.Add(e); + } + return list; + } + + static double Pct(List v, double q) + { + if (v.Count == 0) return double.NaN; + var a = v.OrderBy(x => x).ToList(); + return a[Mathf.Clamp((int)(q * (a.Count - 1)), 0, a.Count - 1)]; + } + + static string Pcts(List v) => $"p5 {Pct(v, .05):G3} p25 {Pct(v, .25):G3} p50 {Pct(v, .5):G3} p75 {Pct(v, .75):G3} p95 {Pct(v, .95):G3}"; + + // Records the extraction through the terms on the caller grid and the draw into target, saves the PNG and returns the pixels. + static Frame RecordFrame(in GravityLowering.GravityTerms terms, Vector2 origin, Vector2 perTexel, Vector2Int size, + IsolineExtractor.IsolineLevels levels, View view, IsolineLook look, string name, float time = 0f) + { + var renderer = new IsolineRenderer(ExtractShader, RenderShader, ShippedSegments, ShippedPool); + var target = HalfTarget(view.W, view.H); + try + { + RecordAndSave(renderer, terms, origin, perTexel, size, levels, view.ViewProjection, target, look, name, time); + return new Frame { W = view.W, H = view.H, Px = Read(target) }; + } + finally + { + renderer.Release(); + target.Release(); + UnityEngine.Object.DestroyImmediate(target); + } + } + + static Seg[] ExtractThrough(in GravityLowering.GravityTerms terms, Vector2 origin, Vector2 perTexel, Vector2Int size, IsolineExtractor.IsolineLevels levels) + { + var extractor = new IsolineExtractor(ExtractShader, ShippedSegments); + var command = new CommandBuffer { name = "IsolineSQuality" }; + try + { + extractor.Extract(command, terms, origin, perTexel, size, levels); + Graphics.ExecuteCommandBuffer(command); + return ReadExtraction(extractor).Item1; + } + finally + { + command.Release(); + extractor.Release(); + } + } + + // ---- dashes match true arclength (the look gate; cut isoline-chain-arclength) --------------------------------------------- + + // Dash run lengths along the ray chains: over every chain longer than 150 px, the 3 x 3 maximum of the frame's alpha sampled + // once per pixel along the chain, taken as on where it exceeds half the chain's peak; the lengths of the runs of on and + // of off, in px. + static List DashRuns(Seg[] segs, List chains, View view, Frame frame, float ppx, bool withLoops = false) + { + var runs = new List(); + foreach (var chain in chains) + { + var e = EdgesOf(segs, chain); + if (!withLoops && IsClosed(e)) continue; + if (e.Sum(x => x.L) / ppx < 150f) continue; + var samples = new List(); + foreach (var edge in e) + { + var steps = Mathf.Max(1, Mathf.RoundToInt(edge.L / ppx)); + for (var q = 0; q < steps; q++) + { + var p = Vector2.Lerp(edge.P0, edge.P1, (q + .5f) / steps); + Project(view, p, p, out var pa, out _, out _, out _); + var ix = Mathf.Clamp((int)pa.x, 0, view.W - 1); + var iy = Mathf.Clamp((int)pa.y, 0, view.H - 1); + var m = 0f; + for (var dy = -1; dy <= 1; dy++) + for (var dx = -1; dx <= 1; dx++) m = Mathf.Max(m, frame.At(Mathf.Clamp(ix + dx, 0, view.W - 1), Mathf.Clamp(iy + dy, 0, view.H - 1)).w); + samples.Add(m); + } + } + if (samples.Count < 100) continue; + var threshold = .5f * samples.Max(); + if (threshold < .02f) continue; + var on = samples.Select(v => v > threshold).ToList(); + var run = 1; + for (var q = 1; q < on.Count; q++) + { + if (on[q] != on[q - 1]) { runs.Add(run); run = 1; } + else run++; + } + } + return runs; + } + + // A closed loop of ray segments (the iso-angle curve around a local extremum of the gradient angle) has no tail: the junction rule + // gives it no start for the ranking, so its s is not arclength and its dashes break at every joint. Dash runs are read along open + // chains; the loops are counted beside them. + static bool IsClosed(List edges) => edges.Count >= 2 && PointKey(edges[0].P0) == PointKey(edges[edges.Count - 1].P1); + + // The reference: the same segments with s replaced, on the CPU, by the cumulative arclength along BuildChains' chain, with its + // origin where the extractor puts it: s = 0 at the start of the chain's last segment (the tail), negative before it, so + // sA = -(length from this segment's start to the tail's start) and sB = sA + |b - a|. An origin at the head instead puts a + // different dash phase at the chain ends: the tail's s runs 0 to its own length, so a dash starts one segment before the + // chain ends and every chain ends in a fragment of that length (map pose, run length p5 6 px against 36 px from a head + // origin, the same segments). The spacing is the same; the run-length percentiles are not, because of the ends. A chain that + // runs b to a in BuildChains is read the other way round; a closed loop, which has no tail, keeps its s. + static Seg[] WithChainArclength(Seg[] segs, List chains) + { + var copy = (Seg[])segs.Clone(); + foreach (var chain in chains) + { + List order; + if (chain.Rev.All(r => !r)) order = chain.Seg; + else if (chain.Rev.All(r => r)) order = chain.Seg.AsEnumerable().Reverse().ToList(); + else continue; + if (IsClosed(EdgesOf(segs, chain))) continue; + var prefix = new double[order.Count + 1]; + for (var i = 0; i < order.Count; i++) prefix[i + 1] = prefix[i] + (segs[order[i]].b - segs[order[i]].a).magnitude; + var tailStart = prefix[order.Count - 1]; + for (var i = 0; i < order.Count; i++) + { + copy[order[i]].sA = (float)(prefix[i] - tailStart); + copy[order[i]].sB = (float)(prefix[i + 1] - tailStart); + } + } + return copy; + } + + // Margin rule against the curvature-radius mutant (s = the level set radius, 3d8a0d1d3: its run lengths at the map pose, measured by this same code, read p5 2, + // p25 10 and p50 46 px, Soul's unity-mut.log base run). Against this reference (p5 6, p25 44, p50 51 px at the map pose) that + // is |ln(mutant / reference)| 1.10, 1.48 and 0.103. The shipped frames equal the reference frames to the pixel at both poses + // (|ln| 0 at every percentile), so the shipped reading is floored at one pixel of run length: ln(7/6) 0.154, ln(45/44) 0.0225, + // ln(52/51) 0.0194. Bounds at the geometric means: p5 0.412 (separation 7.1), p25 0.182 (66), p50 0.0447 (5.3). The flow + // Flow pose (verdict cut-isoline-chain-arclength.s1, finding flow-p5-bound-below-its-floor): p5 is 1 px there, so one pixel of + // quantisation is |ln| 0.693, above any bound a mutant could fall under: the p5 gate is dropped. p25 and p50 take Soul's + // real-shader mutants (mutA and mutB soul.txt) at the flow pose, those the one-pixel floor separates by 1.2: p25 floor + // ln(13/12) 0.080 against the least claimed, M8 (the tail has a rank) 0.405, bound 0.180, separation 5.1 (M3 0.734, M5 1.39; + // M2 J = 8 reads 0.080, unclaimed); p50 floor ln(31/30) 0.0328 against M3 (rank counts segments) 0.105, bound 0.0587, + // separation 3.2 (M5 2.01; M2 0.0328, M8 0, M4 0 unclaimed). + const double DashP5Bound = 0.412, DashP25Bound = 0.182, DashP50Bound = 0.0447, FlowP25Bound = 0.180, FlowP50Bound = 0.0587; + + // The map pose (Period 160 u, 78.5 px) and Soul's flow pose (Period 60 u at 1.17 u/px), rays only: the dash run lengths of + // the frame drawn from the extractor's segments against the frame drawn from the same segments with s replaced by the CPU + // arclength. Writes e1-after.png (the map pose, rays only), flow-after.png and flow-reference.png (the flow pose in the + // default look, beside Soul's flow-arclen.png). + static void DashesMatchTrueArclength(Zone zone, Orbit[] orbits, GravityLowering.GravityTerms terms) + { + var levels = new IsolineExtractor.IsolineLevels(0f, ContourRange(zone, orbits), SlopeEpsilon); + foreach (var (name, centre, half, w, h, period, speed) in new[] { ("map", ZoneCentre, 1100f, 1920, 1080, 160f, .35f), ("flow", Saddle, 300f, 512, 512, 60f, 1f) }) + { + var view = Ortho(centre, half, w, h); + try + { + var ppx = 2f * half / h; + IsolineExtractSmoke.TopFrame(centre, half, w, h, out var origin, out var perTexel); + var segs = ExtractThrough(terms, origin, perTexel, new Vector2Int(w, h), levels); + var chains = BuildChains(segs, 1u); + var reference = WithChainArclength(segs, chains); + var rayLook = IsolineLook.Default; + rayLook.Contour.W = 0f; rayLook.Contour.G = 0f; rayLook.Contour.Bloom = 0f; rayLook.Ray.Bloom = 0f; + rayLook.Ray.Period = period; rayLook.Ray.Speed = speed; + var shippedFrame = Draw(view, segs, rayLook, false, levels: levels, pool: ShippedPool); + var referenceFrame = Draw(view, reference, rayLook, false, levels: levels, pool: ShippedPool); + var shippedRuns = DashRuns(segs, chains, view, shippedFrame, ppx); + var referenceRuns = DashRuns(segs, chains, view, referenceFrame, ppx); + Info($"dashes {name} pose, loops included: run length px shipped {Pcts(DashRuns(segs, chains, view, shippedFrame, ppx, true))}; reference {Pcts(DashRuns(segs, chains, view, referenceFrame, ppx, true))}"); + if (shippedRuns.Count < 40 || referenceRuns.Count < 40) { Fail("dashes", $"{name}: {shippedRuns.Count} and {referenceRuns.Count} dash runs, the check would be vacuous"); continue; } + Info($"dashes {name} pose: {segs.Count(s => ((s.key >> 8) & 1u) != 0)} ray segments, {chains.Count} chains of which {chains.Count(c => IsClosed(EdgesOf(segs, c)))} closed loops of {chains.Where(c => IsClosed(EdgesOf(segs, c))).Sum(c => c.Seg.Count)} segments (not measured); run length px shipped {Pcts(shippedRuns)} ({shippedRuns.Count} runs); reference (CPU arclength) {Pcts(referenceRuns)} ({referenceRuns.Count} runs)"); + var gates = name == "map" + ? new[] { ("p5", .05, DashP5Bound), ("p25", .25, DashP25Bound), ("p50", .5, DashP50Bound) } + : new[] { ("p25", .25, FlowP25Bound), ("p50", .5, FlowP50Bound) }; + foreach (var (label, q, bound) in gates) + { + var gap = Math.Abs(Math.Log(Pct(shippedRuns, q) / Pct(referenceRuns, q))); + Info($"dashes {name} {label}: shipped {Pct(shippedRuns, q):G3} reference {Pct(referenceRuns, q):G3} |ln(shipped/reference)| {gap:G3} (bound {bound:G3})"); + if (gap > bound) Fail("dashes", $"{name} {label}: shipped run length {Pct(shippedRuns, q):G3} px against the arclength reference's {Pct(referenceRuns, q):G3}: |ln| {gap:G3} > {bound:G3}"); + } + if (name == "map") SaveFrame("e1-after.png", shippedFrame); + else + { + // the operator's pictures: Soul's flow pose in the default look, shipped and reference + var flowLook = IsolineLook.Default; + flowLook.Ray.Period = period; flowLook.Ray.Speed = speed; + SaveFrame("flow-after.png", Draw(view, segs, flowLook, false, levels: levels, pool: ShippedPool)); + SaveFrame("flow-reference.png", Draw(view, reference, flowLook, false, levels: levels, pool: ShippedPool)); + } + } + finally { view.Dispose(); } + } + } + + 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, GravityLowering.GravityTerms terms) + { + 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 + { + IsolineExtractSmoke.TopFrame(ZoneCentre, ZoneHalf, 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), SlopeEpsilon); + renderer.Extractor.Extract(command, terms, origin, perTexel, new Vector2Int(256, 256), 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.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(); + view.Dispose(); + } + } + + // ---- stress, captures and cost ------------------------------------------------------------------------------------ + + // 60 deep, close wells over 1920 x 1080 units at 1 u per sample, steep enough that the contour levels crowd below a pixel: + // band terms (inner 15..40, outer 120..260) of strength 300..1200 and softening 6..20, summed. + internal static GravityLowering.TermRecord[] StressWells(out float range) + { + var rng = new System.Random(11); + var wells = Enumerable.Range(0, 60).Select(_ => + { + var at = new Vector2((float)rng.NextDouble() * 1920f, (float)rng.NextDouble() * 1080f); + var strength = 300f + (float)rng.NextDouble() * 900f; + var softening = 6f + (float)rng.NextDouble() * 14f; + var inner = 15f + (float)rng.NextDouble() * 25f; + var outer = 120f + (float)rng.NextDouble() * 140f; + return new GravityLowering.TermRecord { Position = at, Strength = strength, Softening = softening, Inner = inner, Outer = outer, Reference = 0f }; + }).ToArray(); + range = 900f; + return wells; + } + + static void StressAndPool() + { + var terms = IsolineExtractSmoke.WellsFrom(StressWells(out var range)); + 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, SlopeEpsilon); + // texel (x, y) sits at world (x, y) + .5: origin (.5, .5), step 1 + renderer.Record(command, terms, new Vector2(.5f, .5f), Vector2.one, new Vector2Int(1920, 1080), 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(); + terms.Buffer.Release(); + 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) => SaveFrame(name, new Frame { W = w, H = h, Px = Read(target) }); + + static void SaveFrame(string name, Frame frame) + { + var w = frame.W; + var h = frame.H; + var pixels = frame.Px; + 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, GravityLowering.GravityTerms terms) + { + var range = ContourRange(zone, orbits); + var levels = new IsolineExtractor.IsolineLevels(0f, range, 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, terms, miniOrigin, miniPerTexel, new Vector2Int(128, 128), 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, terms, mapOrigin, mapPerTexel, new Vector2Int(1920, 1080), 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, terms, tOrigin, tPerTexel, new Vector2Int(1024, 1024), 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, terms, fOrigin, fPerTexel, new Vector2Int(512, 512), levels, flowView.ViewProjection, flowTarget, flowLook, $"flow-{phase}.png", phase / 6f); + + Info($"cost camera field render (the path the extractor replaces), wall clock to a fence, median of 31: 128 x 128 {FieldRenderMs(sceneCamera, 128, 128):F3} ms; 1920 x 1080 {FieldRenderMs(mapView.Camera, 1920, 1080):F3} ms"); + Cost("256 x 256 (minimap)", miniRenderer, terms, new Vector2Int(128, 128), minimapField, miniOrigin, miniPerTexel, levels, miniVp, miniTarget, look, minimapMaterial, 10f, range); + Cost("1920 x 1080 (map)", mapRenderer, terms, new Vector2Int(1920, 1080), mapField, mapOrigin, mapPerTexel, levels, mapView.ViewProjection, mapTarget, look, mapMaterial, mapScale / 2f, range); + var stressTerms = IsolineExtractSmoke.WellsFrom(StressWells(out var stressRange)); + var stressField = RenderField(mapView.Camera, 1920, 1080, out _, out _); // the old material's input; it only times the blit + var stressView = Ortho(new Vector2(960f, 540f), 540f, 1920, 1080); + Cost("1920 x 1080 (stress)", mapRenderer, stressTerms, new Vector2Int(1920, 1080), stressField, new Vector2(.5f, .5f), Vector2.one, + new IsolineExtractor.IsolineLevels(0f, stressRange, SlopeEpsilon), stressView.ViewProjection, mapTarget, look, mapMaterial, mapScale / 2f, stressRange); + stressTerms.Buffer.Release(); + 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(); + } + + // Wall clock of one camera render of the gravity field (the path the extractor replaces) into an RFloat target of the same + // size, timed to a 1 pixel readback: median of 31 after 2 warm-ups. + static double FieldRenderMs(Camera camera, int w, int h) + { + var target = new RenderTexture(w, h, 0, RenderTextureFormat.RFloat) { filterMode = FilterMode.Point }; + target.Create(); + var previousTarget = camera.targetTexture; + var previousMask = camera.cullingMask; + var previousClear = camera.clearFlags; + var previousColour = camera.backgroundColor; + camera.targetTexture = target; + camera.cullingMask = 1 << GravityLowering.FieldLayer; + camera.clearFlags = CameraClearFlags.SolidColor; + camera.backgroundColor = Color.black; + var one = new Texture2D(1, 1, TextureFormat.RFloat, false); + var times = new List(); + for (var i = -2; i < 31; i++) + { + var clock = Stopwatch.StartNew(); + camera.Render(); + var previous = RenderTexture.active; + RenderTexture.active = target; + one.ReadPixels(new Rect(0, 0, 1, 1), 0, 0); + RenderTexture.active = previous; + clock.Stop(); + if (i >= 0) times.Add(clock.Elapsed.TotalMilliseconds); + } + camera.targetTexture = previousTarget; + camera.cullingMask = previousMask; + camera.clearFlags = previousClear; + camera.backgroundColor = previousColour; + UnityEngine.Object.DestroyImmediate(one); + target.Release(); + UnityEngine.Object.DestroyImmediate(target); + return Median(times); + } + + // 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, in GravityLowering.GravityTerms terms, Vector2 origin, Vector2 perTexel, Vector2Int size, + IsolineExtractor.IsolineLevels levels, Matrix4x4 viewProjection, RenderTexture target, IsolineLook look, string name, float time = 0f) + { + var command = new CommandBuffer { name = "IsolineCapture" }; + renderer.Record(command, terms, origin, perTexel, size, 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, GravityLowering.GravityTerms terms, Vector2Int size, 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, terms, origin, perTexel, size, 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(); + var sampleAlone = 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); + } + // Sample alone first: it clears Count, so the full Extract after it leaves the segments the next prefixes draw + var sa = Time(c => renderer.Extractor.Extract(c, terms, origin, perTexel, size, levels, IsolineExtractor.Stage.Sample), () => renderer.Extractor.Count.GetData(new uint[2])); + var e = Time(c => renderer.Extractor.Extract(c, terms, origin, perTexel, size, 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); sampleAlone.Add(sa); } + } + 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} (Sample alone {Median(sampleAlone):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 new file mode 100644 index 000000000..8c2a249d1 --- /dev/null +++ b/Assets/Scripts/Editor/IsolineRenderSmoke.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 87b6207c8e82c354b878bc6c6c6aee5d \ No newline at end of file diff --git a/Assets/Scripts/Editor/MapBeltPerf.cs b/Assets/Scripts/Editor/MapBeltPerf.cs new file mode 100644 index 000000000..ea3eac5c0 --- /dev/null +++ b/Assets/Scripts/Editor/MapBeltPerf.cs @@ -0,0 +1,116 @@ +using System; +using System.Diagnostics; +using System.IO; +using System.Linq; +using GameCult.Caching; +using UnityEditor; +using CultMath; +using UnityEngine; +using float4 = CultMath.float4; +using Debug = UnityEngine.Debug; + +// The map's belt cost per frame, CPU milliseconds and managed allocation, for belts of 1000, 2250 (the generated +// maximum, Settings.asset) and 4000 asteroids: the base revision's AsteroidBeltUI.Update (MapBeltPerfBase, a verbatim copy) +// and MapPresenter's belt upload and draw, each as the median and interquartile range of 21 runs of 300 frames after +// a warm-up, in this one Unity job. CPU time only: GPU cost is not covered. Needs a GPU device. +// +// Unity -batchmode -projectPath -executeMethod MapBeltPerf.Run -logFile +public static class MapBeltPerf +{ + private const int Warmup = 60, Frames = 300, RunCount = 21; + + public static void Run() + { + var work = Path.Combine(Path.GetTempPath(), $"map-belt-perf-{Guid.NewGuid():N}"); + try + { + Directory.CreateDirectory(work); + foreach (var count in new[] { 1000, 2250, 4000 }) Measure(work, count); + EditorApplication.Exit(0); + } + catch (Exception exception) + { + Debug.LogException(exception); + EditorApplication.Exit(1); + } + } + + private static void Measure(string work, int count) + { + var settings = AssetDatabase.LoadAssetAtPath("Assets/Resources/Settings.asset"); + var cache = AetheriaStores.Open(Path.Combine(work, $"c{count}.cc"), Path.Combine(work, $"r{count}.cc"), catalogWritable: true); + cache.Upsert(new VerseGrammar { Revision = 1 }); + var sunOrbit = cache.Upsert(new OrbitData()).Key; + var sunKey = cache.Upsert(new PlanetData { Name = "Sun", Orbit = new CultRecordRef(sunOrbit), Mass = 400f }).Key; + var beltOrbit = cache.Upsert(new OrbitData { Parent = new CultRecordRef(sunOrbit), Distance = 900f, Phase = .42f }).Key; + var asteroids = Enumerable.Range(0, count).Select(i => new Asteroid + { Distance = 120f + i * .01f, Phase = CultMath.math.frac(i * .618f), Size = CultMath.math.frac(i * .37f + .1f), RotationSpeed = .15f + i * 1e-4f }).ToArray(); + var beltKey = cache.Upsert(new AsteroidBeltData { Orbit = new CultRecordRef(beltOrbit), Asteroids = asteroids }).Key; + var pack = new ZonePack + { + Orbits = { new CultRecordRef(sunOrbit), new CultRecordRef(beltOrbit) }, + Planets = { new CultRecordRef(sunKey), new CultRecordRef(beltKey) }, + Radius = 5000f, Mass = 10000f, Time = 0 + }; + var items = new ItemManager(1u, cache, new ProvenanceLedger(), settings.GameplaySettings, _ => { }); + var zone = new Zone(items, new PlanetSettings + { + BodyRadius = new ExponentialCurve(), WellStrength = new ExponentialCurve { Multiplier = 1f, Exponent = 1f }, + RocheLimit = new ExponentialCurve { Constant = 2f }, + AsteroidSize = new ExponentialLerp { Minimum = 2f, Maximum = 9f, Exponent = 1.7f }, + AsteroidHitpoints = new ExponentialLerp { Minimum = 10f, Maximum = 300f, Exponent = 2f }, + AsteroidRespawnTime = new ExponentialLerp { Minimum = 5f, Maximum = 60f, Exponent = 1f } + }, pack, new GalaxyZone { Name = "Perf", Owner = null }, null); + + var transforms = new float4[count]; + var presenter = new MapPresenter(new Material[0], AssetDatabase.LoadAssetAtPath("Assets/Materials/UI/MapAsteroid.mat"), 4, 4, 3f); + presenter.RegisterBelt(beltKey, transforms); + var baseBelt = new MapBeltPerfBase(zone, zone.AsteroidBelts[beltKey], 4, 4, 3f); + + Report("base", count, Runs(zone, beltKey, transforms, () => baseBelt.Update(transforms, 0f))); + Report("head", count, Runs(zone, beltKey, transforms, () => presenter.Draw(zone, 0))); + presenter.Clear(); + } + + // Each run is Frames frames after Warmup frames; the figure is one run's CPU ms per frame and managed bytes per frame. + private static (double ms, long bytes)[] Runs(Zone zone, CultRecordKey beltKey, float4[] transforms, Action frame) + { + var results = new (double, long)[RunCount]; + var stopwatch = new Stopwatch(); + var time = 0.0; + for (var run = -1; run < RunCount; run++) + { + stopwatch.Reset(); + long allocated = 0; + for (var i = 0; i < Warmup + Frames; i++) + { + zone.EvaluateBelt(beltKey, transforms, time += 0.016); + var bytes = GC.GetAllocatedBytesForCurrentThread(); + if (i >= Warmup) stopwatch.Start(); + frame(); + if (i >= Warmup) stopwatch.Stop(); + if (i >= Warmup) allocated += GC.GetAllocatedBytesForCurrentThread() - bytes; + } + if (run >= 0) results[run] = (stopwatch.Elapsed.TotalMilliseconds / Frames, allocated / Frames); + } + return results; + } + + private static double Quantile(double[] sorted, double q) + { + var at = q * (sorted.Length - 1); + var low = (int)Math.Floor(at); + var high = Math.Min(low + 1, sorted.Length - 1); + return sorted[low] + (sorted[high] - sorted[low]) * (at - low); + } + + private static void Report(string revision, int count, (double ms, long bytes)[] runs) + { + var ms = runs.Select(r => r.ms).OrderBy(v => v).ToArray(); + var bytes = runs.Select(r => (double)r.bytes).OrderBy(v => v).ToArray(); + var units = Process.GetProcessesByName("Unity").Length; + Debug.Log($"[MapBeltPerf] revision={revision} asteroids={count} runs={runs.Length} frames_per_run={Frames} " + + $"cpu_ms_median={Quantile(ms, .5):F4} iqr={Quantile(ms, .25):F4}-{Quantile(ms, .75):F4} " + + $"gc_bytes_median={Quantile(bytes, .5):F0} unity_processes={units} cpus={Environment.ProcessorCount}"); + } +} diff --git a/Assets/Scripts/Editor/MapBeltPerf.cs.meta b/Assets/Scripts/Editor/MapBeltPerf.cs.meta new file mode 100644 index 000000000..5a06251b4 --- /dev/null +++ b/Assets/Scripts/Editor/MapBeltPerf.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 2bf3d3dcd7e3dd940add2640db93e3fe \ No newline at end of file diff --git a/Assets/Scripts/Editor/MapBeltPerfBase.cs b/Assets/Scripts/Editor/MapBeltPerfBase.cs new file mode 100644 index 000000000..6470b9c9a --- /dev/null +++ b/Assets/Scripts/Editor/MapBeltPerfBase.cs @@ -0,0 +1,88 @@ +using GameCult.Caching; +using CultMath; +using UnityEngine; +using static CultMath.math; +using float2 = CultMath.float2; +using float4 = CultMath.float4; +using Random = UnityEngine.Random; + +// The base revision's per-frame belt map path, copied from ZoneRenderer.cs at da6fe033 (class AsteroidBeltUI) so that +// MapBeltPerf can measure it beside MapPresenter in one job. Only the lead it read from ActionGameManager.Clock is +// fixed at zero. Not used by the game. +public class MapBeltPerfBase +{ + private Vector3[] _vertices; + private Vector3[] _normals; + private Vector2[] _uvs; + private int[] _indices; + private CultRecordKey _orbitParent; + private Mesh _mesh; + private float _size; + private Zone _zone; + private AsteroidBelt _belt; + private float _scale; + + public MapBeltPerfBase(Zone zone, AsteroidBelt belt, int spritesheetWidth, int spritesheetHeight, float scale) + { + _belt = belt; + _zone = zone; + var orbit = zone.Orbits[belt.Data.Orbit.Key]; + _orbitParent = orbit.Data.Parent.Key; + _vertices = new Vector3[_belt.Data.Asteroids.Length * 4]; + _normals = new Vector3[_belt.Data.Asteroids.Length * 4]; + _uvs = new Vector2[_belt.Data.Asteroids.Length * 4]; + _indices = new int[_belt.Data.Asteroids.Length * 6]; + _scale = scale; + + var maxDist = 0f; + var spriteSize = float2(1f / spritesheetWidth, 1f / spritesheetHeight); + // vertex order: bottom left, top left, top right, bottom right + for (var i = 0; i < belt.Data.Asteroids.Length; i++) + { + if (belt.Data.Asteroids[i].Distance > maxDist) + maxDist = belt.Data.Asteroids[i].Distance; + var spriteX = Random.Range(0, spritesheetWidth); + var spriteY = Random.Range(0, spritesheetHeight); + + _uvs[i * 4] = new Vector2(spriteX * spriteSize.x, spriteY * spriteSize.y); + _uvs[i * 4 + 1] = new Vector2(spriteX * spriteSize.x, spriteY * spriteSize.y + spriteSize.y); + _uvs[i * 4 + 2] = new Vector2(spriteX * spriteSize.x + spriteSize.x, spriteY * spriteSize.y + spriteSize.y); + _uvs[i * 4 + 3] = new Vector2(spriteX * spriteSize.x + spriteSize.x, spriteY * spriteSize.y); + + _indices[i * 6] = i * 4; + _indices[i * 6 + 1] = i * 4 + 1; + _indices[i * 6 + 2] = i * 4 + 3; + _indices[i * 6 + 3] = i * 4 + 3; + _indices[i * 6 + 4] = i * 4 + 1; + _indices[i * 6 + 5] = i * 4 + 2; + } + + for (var i = 0; i < _normals.Length; i++) _normals[i] = -Vector3.forward; + + _mesh = new Mesh(); + _mesh.vertices = _vertices; + _mesh.uv = _uvs; + _mesh.triangles = _indices; + _mesh.normals = _normals; + _mesh.bounds = new Bounds(Vector3.zero, Vector3.one * maxDist); + _size = maxDist; + } + + public void Update(float4[] transforms, float height) + { + var parentPosition = DrawAhead.Orbit(_zone, _orbitParent, 0f); + for (var i = 0; i < transforms.Length; i++) + { + var transform = transforms[i]; + var rotation = Quaternion.Euler(90, transform.z, 0); + var position = new Vector3(transform.x, height, transform.y); + _vertices[i * 4] = rotation * new Vector3(-transform.w * _scale, -transform.w * _scale, 0) + position; + _vertices[i * 4 + 1] = rotation * new Vector3(-transform.w * _scale, transform.w * _scale, 0) + position; + _vertices[i * 4 + 2] = rotation * new Vector3(transform.w * _scale, transform.w * _scale, 0) + position; + _vertices[i * 4 + 3] = rotation * new Vector3(transform.w * _scale, -transform.w * _scale, 0) + position; + } + + _mesh.bounds = new Bounds(new Vector3(parentPosition.x, 0, parentPosition.y), Vector3.one * (_size * 2)); + _mesh.vertices = _vertices; + } +} diff --git a/Assets/Scripts/Editor/MapBeltPerfBase.cs.meta b/Assets/Scripts/Editor/MapBeltPerfBase.cs.meta new file mode 100644 index 000000000..662341fb1 --- /dev/null +++ b/Assets/Scripts/Editor/MapBeltPerfBase.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: c3e6b631c94f2384c87cf1906907af9f \ No newline at end of file diff --git a/Assets/Scripts/Editor/MapPresenterCapture.cs b/Assets/Scripts/Editor/MapPresenterCapture.cs new file mode 100644 index 000000000..1e0a727f0 --- /dev/null +++ b/Assets/Scripts/Editor/MapPresenterCapture.cs @@ -0,0 +1,119 @@ +using System; +using System.IO; +using UnityEditor; +using UnityEditor.SceneManagement; +using UnityEngine; + +// Proof that a planet icon and a ping tint reach the pixels of the real map cameras when the planet's well is deeper +// than 1000 below the camera. The ARPG scene's own "Map Overlays" and "Map Tint" cameras (position, orthographic size, +// clip planes and culling mask as authored) render into a render texture on a solid black background. For each, in +// order: a control render with nothing drawn; a render with the thing placed 1100 below the camera (a plain quad, and the +// PingEffect prefab), which must equal the control because the far plane clips it; then MapPresenter's draw of the sun +// (well deeper than 2000) or the PingEffect prefab placed where EntityInstance places it, which must differ from the +// control at its pixel. A capture that draws nothing fails the last check, and one that cannot tell drawn from clipped +// fails the middle one. +// +// Unity -batchmode -projectPath -executeMethod MapPresenterCapture.Run -logFile +// +// Needs a GPU device; do not pass -nographics or -quit: Run exits the Editor itself, 0 on success and 1 on any failure. +public static class MapPresenterCapture +{ + private const int Size = 64; + + public static void Run() + { + var work = Path.Combine(Path.GetTempPath(), $"map-presenter-capture-{Guid.NewGuid():N}"); + try + { + Directory.CreateDirectory(work); + Check(work); + Debug.Log("[MapPresenterCapture] ok"); + EditorApplication.Exit(0); + } + catch (Exception exception) + { + Debug.LogException(exception); + EditorApplication.Exit(1); + } + } + + private static void Require(bool condition, string what) + { + if (!condition) throw new InvalidOperationException(what); + } + + private static Camera SceneCamera(string name) + { + foreach (var camera in UnityEngine.Object.FindObjectsByType(FindObjectsInactive.Include, FindObjectsSortMode.None)) + if (camera.name == name) return camera; + throw new InvalidOperationException($"No camera named {name} in the scene."); + } + + private static Color Render(Camera camera, RenderTexture target, Vector3 at) + { + camera.targetTexture = target; + camera.clearFlags = CameraClearFlags.SolidColor; + camera.backgroundColor = Color.black; + camera.Render(); + var viewport = camera.WorldToViewportPoint(new Vector3(at.x, 0, at.z)); + var previous = RenderTexture.active; + RenderTexture.active = target; + var read = new Texture2D(Size, Size, TextureFormat.RGBA32, false); + read.ReadPixels(new Rect(0, 0, Size, Size), 0, 0); + RenderTexture.active = previous; + var pixel = read.GetPixel(Mathf.Clamp((int)(viewport.x * Size), 0, Size - 1), Mathf.Clamp((int)(viewport.y * Size), 0, Size - 1)); + UnityEngine.Object.DestroyImmediate(read); + return pixel; + } + + private static float Distance(Color a, Color b) => Mathf.Abs(a.r - b.r) + Mathf.Abs(a.g - b.g) + Mathf.Abs(a.b - b.b); + + private static void Check(string work) + { + EditorSceneManager.OpenScene("Assets/Scenes/ARPG.unity", OpenSceneMode.Single); + var f = MapPresenterSmoke.Build(work, flatIcons: true); + f.Map.SetMinimapScale(300f); + var target = new RenderTexture(Size, Size, 24, RenderTextureFormat.ARGB32); + var layer = LayerMask.NameToLayer("Minimap"); + + // Planet: the sun's icon through the map overlays camera. + var overlays = SceneCamera("Map Overlays"); + Require((overlays.cullingMask & (1 << layer)) != 0, "The Map Overlays camera does not see the Minimap layer."); + var well = f.Zone.GetHeight(DrawAhead.Orbit(f.Zone, f.Zone.PlanetInstances[f.SunKey].BodyData.Orbit.Key, 0), 0); + Require(well < -1000f, $"The fixture sun's well is {well}, not deeper than 1000."); + Require(f.Map.TryDrawn(f.SunKey, out var sun), "The sun registered no icon."); + var sunAt = sun.GetPosition(); + // Control: the pixel with nothing queued. Then a quad 1100 below the camera, deeper than the far plane, which must + // leave the pixel as it was. Then the presenter's draw, which must change it. Draws queue for the cameras that + // render after them, so the order is empty, deep, drawn. + var empty = Render(overlays, target, sunAt); + var quad = GameObject.CreatePrimitive(PrimitiveType.Quad); + var deepMesh = quad.GetComponent().sharedMesh; + var deepMaterial = new Material(Shader.Find("Unlit/Color")) { color = Color.white }; + UnityEngine.Object.DestroyImmediate(quad); + Graphics.RenderMesh(new RenderParams(deepMaterial) { layer = layer }, deepMesh, 0, + Matrix4x4.TRS(new Vector3(sunAt.x, -1100f, sunAt.z), Quaternion.Euler(90, 0, 0), Vector3.one * 300f)); + var deep = Render(overlays, target, sunAt); + Require(Distance(deep, empty) < .01f, $"A mesh 1100 below the camera drew: {deep} against {empty}."); + f.Map.Draw(f.Zone, 0); + var drawn = Render(overlays, target, sunAt); + Require(Distance(drawn, empty) > .3f, $"The sun's icon is not in the pixels: drawn {drawn}, empty {empty}."); + + // Ping tint: the PingEffect prefab where EntityInstance places it, through the map tint camera. + var tint = SceneCamera("Map Tint"); + var ping = (GameObject)PrefabUtility.InstantiatePrefab(AssetDatabase.LoadAssetAtPath("Assets/Content/Prefabs/PingEffect.prefab")); + ping.transform.localScale = Vector3.one * 300f; + var pingAt = new Vector3(sunAt.x, MapPresenter.PlaneY, sunAt.z); + ping.transform.position = pingAt; + ping.SetActive(false); + var untinted = Render(tint, target, pingAt); + ping.SetActive(true); + ping.transform.position = new Vector3(sunAt.x, -1100f, sunAt.z); + var deepPing = Render(tint, target, pingAt); + Require(Distance(deepPing, untinted) < .01f, $"A ping 1100 below the camera drew: {deepPing} against {untinted}."); + ping.transform.position = pingAt; + var tinted = Render(tint, target, pingAt); + Require(Distance(tinted, untinted) > .02f, $"The ping tint is not in the pixels: with {tinted}, without {untinted}."); + Debug.Log($"[MapPresenterCapture] well={well} sun drawn={drawn} empty={empty} deep={deep}; ping tinted={tinted} untinted={untinted} deep={deepPing}"); + } +} diff --git a/Assets/Scripts/Editor/MapPresenterCapture.cs.meta b/Assets/Scripts/Editor/MapPresenterCapture.cs.meta new file mode 100644 index 000000000..53caa5ee1 --- /dev/null +++ b/Assets/Scripts/Editor/MapPresenterCapture.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: cfa012aaae63b5044bdfd1b6b44ca9da \ No newline at end of file diff --git a/Assets/Scripts/Editor/MapPresenterSmoke.cs b/Assets/Scripts/Editor/MapPresenterSmoke.cs new file mode 100644 index 000000000..cccc4883c --- /dev/null +++ b/Assets/Scripts/Editor/MapPresenterSmoke.cs @@ -0,0 +1,233 @@ +using System; +using System.IO; +using System.Linq; +using System.Reflection; +using GameCult.Caching; +using UnityEditor; +using UnityEngine; +using CultMath; +using CultMath.UnityBridge; +using static CultMath.math; +using float2 = CultMath.float2; +using float3 = CultMath.float3; +using float4 = CultMath.float4; + +// Batch proof of MapPresenter's contract on a real Zone, without a scene: a sun with a very deep well, a belt, and ships +// registered through EntityInstance.SetEntity as the game does. Planet icons draw at the map plane inside both map +// cameras' clip range however deep the well, a rolled and pitched hull's icon turns by yaw alone, every kind registers one +// draw and leaves no icon child behind, a belt is one instanced draw of every asteroid, and an entity's fade reaches its +// icon the frame it is set. Not reached: prefab, mod ship, station and turret instances (they register through the same +// call), and the rendered pixels (a GPU capture). +// +// Unity -batchmode -projectPath -executeMethod MapPresenterSmoke.Run -logFile +// +// Do not pass -quit: Run exits the Editor itself, 0 on success and 1 on any failure. +public static class MapPresenterSmoke +{ + private const BindingFlags Any = BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic; + private const int Asteroids = 24; + + public static void Run() + { + var work = Path.Combine(Path.GetTempPath(), $"map-presenter-smoke-{Guid.NewGuid():N}"); + try + { + Directory.CreateDirectory(work); + Check(work); + Debug.Log("[MapPresenterSmoke] ok"); + EditorApplication.Exit(0); + } + catch (Exception exception) + { + Debug.LogException(exception); + EditorApplication.Exit(1); + } + } + + private static void Require(bool condition, string what) + { + if (!condition) throw new InvalidOperationException(what); + } + + private static void Awaken(Component component) => component.GetType().GetMethod("Awake", Any)?.Invoke(component, null); + + // flat: authored lying on the map plane (facing up), as a real icon is; the smoke's own icons are authored upright + // so that their rotation is exactly the yaw. + private static MeshRenderer NewIcon(Transform parent, bool flat) + { + var icon = GameObject.CreatePrimitive(PrimitiveType.Quad); + icon.layer = LayerMask.NameToLayer("Minimap"); + icon.transform.SetParent(parent, false); + if (flat) icon.transform.localRotation = Quaternion.Euler(90, 0, 0); + var renderer = icon.GetComponent(); + renderer.sharedMaterial = new Material(Shader.Find("Unlit/Color")) { color = new Color(1, 1, 1, .8f) }; + return renderer; + } + + // What Build leaves registered with a presenter, for the checks here and for MapPresenterCapture. + internal sealed class Fixture + { + public Zone Zone; + public MapPresenter Map; + public Ship Ship, Other; + public EntityInstance ShipInstance, OtherInstance; + public CultRecordKey SunKey, BeltKey; + public float4[] Belt; + public Transform Roots; + } + + private static void Check(string work) + { + var f = Build(work, flatIcons: false); + Checks(f); + } + + internal static Fixture Build(string work, bool flatIcons) + { + var settings = AssetDatabase.LoadAssetAtPath("Assets/Resources/Settings.asset") + ?? throw new InvalidOperationException("No Settings.asset."); + var planetSettings = new PlanetSettings + { + BodyRadius = new ExponentialCurve(), + WellStrength = new ExponentialCurve { Multiplier = 1f, Exponent = 1f }, + RocheLimit = new ExponentialCurve { Constant = 2f }, + AsteroidSize = new ExponentialLerp { Minimum = 2f, Maximum = 9f, Exponent = 1.7f }, + AsteroidHitpoints = new ExponentialLerp { Minimum = 10f, Maximum = 300f, Exponent = 2f }, + AsteroidRespawnTime = new ExponentialLerp { Minimum = 5f, Maximum = 60f, Exponent = 1f } + }; + var cache = AetheriaStores.Open(Path.Combine(work, "c.cc"), Path.Combine(work, "r.cc"), catalogWritable: true); + cache.Upsert(new VerseGrammar { Revision = 1 }); + var shape = new Shape(5, 4); + foreach (var cell in shape.AllCoordinates) shape[cell] = true; + cache.Upsert(new HullData { Name = "Smoke Hull", HullType = HullType.Ship, Shape = shape, Durability = 1000, Mass = 1000, Armor = 0 }); + var sunOrbit = cache.Upsert(new OrbitData()).Key; + var sunKey = cache.Upsert(new PlanetData { Name = "Sun", Orbit = new CultRecordRef(sunOrbit), Mass = 1e6f }).Key; + var rootOrbit = cache.Upsert(new OrbitData { Parent = new CultRecordRef(sunOrbit), Distance = 4000f, Phase = .17f }).Key; + var beltOrbit = cache.Upsert(new OrbitData { Parent = new CultRecordRef(rootOrbit), Distance = 900f, Phase = .42f }).Key; + var asteroids = Enumerable.Range(0, Asteroids).Select(i => new Asteroid + { Distance = 120f + i * 11.3f, Phase = frac(i * .618f), Size = frac(i * .37f + .1f), RotationSpeed = .15f + i * .037f }).ToArray(); + var beltKey = cache.Upsert(new AsteroidBeltData { Orbit = new CultRecordRef(beltOrbit), Asteroids = asteroids }).Key; + var pack = new ZonePack + { + Orbits = { new CultRecordRef(sunOrbit), new CultRecordRef(rootOrbit), new CultRecordRef(beltOrbit) }, + Planets = { new CultRecordRef(sunKey), new CultRecordRef(beltKey) }, + Radius = 5000f, Mass = 10000f, Time = 0 + }; + var ledger = new ProvenanceLedger(); + for (var i = 1; i <= 8; i++) ledger.Lots[i] = new Lot { Origin = new Attributed(), Quality = 1 }; + var items = new ItemManager(1u, cache, ledger, settings.GameplaySettings, _ => { }); + var zone = new Zone(items, planetSettings, pack, new GalaxyZone { Name = "Smoke", Owner = null }, null); + var hullRef = items.ItemData.RefOf(items.ItemData.GetByName("Smoke Hull")); + var ship = new Ship(items, zone, new EquippableItem { Data = hullRef, Durability = 1000, Lot = 1 }, new EntitySettings()); + var other = new Ship(items, zone, new EquippableItem { Data = hullRef, Durability = 1000, Lot = 2 }, new EntitySettings()); + ship.Position = float3(300, 50, 200); + other.Position = float3(-300, -90, 100); + zone.Admit(ship, piloted: false); + zone.Admit(other, piloted: false); + + // A hull heading 40 degrees from +z, pitched up 89.9 and rolled 30: its forward is almost vertical, where the pose's + // eulerAngles.y is the gimbal decomposition (yaw and roll folded together), not the heading. The heading is the + // forward projected onto the map plane, 40. The fixture asserts the two differ, so a yaw read from eulerAngles + // cannot pass. + var pose = Quaternion.Euler(0, 40, 0) * Quaternion.Euler(-89.9f, 0, 30); + var flatForward = pose * Vector3.forward; + Require(Mathf.Abs(Mathf.DeltaAngle(Mathf.Atan2(flatForward.x, flatForward.z) * Mathf.Rad2Deg, 40f)) < .5f, "The fixture's forward does not head 40."); + Require(Mathf.Abs(Mathf.DeltaAngle(pose.eulerAngles.y, 40f)) > 10f, $"The fixture's eulerAngles.y {pose.eulerAngles.y} is aligned with its heading."); + ship.Direction = float2(Mathf.Sin(40 * Mathf.Deg2Rad), Mathf.Cos(40 * Mathf.Deg2Rad)); + typeof(Ship).GetProperty("Rotation", Any).GetSetMethod(true).Invoke(ship, new object[] { new CultMath.quaternion(pose.x, pose.y, pose.z, pose.w) }); + + var map = new MapPresenter(new Material[0], AssetDatabase.LoadAssetAtPath("Assets/Materials/UI/MapAsteroid.mat"), 4, 4, 3f); + var roots = new GameObject("Smoke Roots").transform; + EntityInstance Bound(Entity entity) + { + var body = new GameObject(entity.Name); + body.transform.SetParent(roots); + var instance = body.AddComponent(); + Awaken(instance); + instance.HullColliders = new HullCollider[0]; + instance.RadiatorHardpoints = new RadiatorHardpoint[0]; + instance.ThrusterHardpoints = new ThrusterHardpoint[0]; + instance.WeaponHardpoints = new WeaponHardpoint[0]; + instance.ArticulationPoints = new ArticulationPoint[0]; + instance.MapIcon = NewIcon(body.transform, flatIcons); + var zoneRenderer = new GameObject("Smoke Zone Renderer").AddComponent(); + zoneRenderer.Settings = settings; + zoneRenderer.MapGravityMaterials = new Material[0]; + Awaken(zoneRenderer); + typeof(ZoneRenderer).GetProperty("Map").GetSetMethod(true).Invoke(zoneRenderer, new object[] { map }); + instance.SetEntity(zoneRenderer, entity); + return instance; + } + var shipInstance = Bound(ship); + var otherInstance = Bound(other); + var sunRoot = new GameObject("Smoke Sun").transform; + sunRoot.SetParent(roots); + map.RegisterPlanet(sunKey, NewIcon(sunRoot, flatIcons), sunRoot); + var belt = new float4[Asteroids]; + map.RegisterBelt(beltKey, belt); + zone.EvaluateBelt(beltKey, belt, DrawAhead.Time(zone, 0)); + map.SetFade(ship, 1f); + map.SetFade(other, 1f); + map.SetMinimapScale(2f); + map.Draw(zone, 0); + return new Fixture { Zone = zone, Map = map, Ship = ship, Other = other, ShipInstance = shipInstance, + OtherInstance = otherInstance, SunKey = sunKey, BeltKey = beltKey, Belt = belt, Roots = roots }; + } + + private static void Checks(Fixture f) + { + var (zone, map, ship, other, sunKey, beltKey, belt, roots) = (f.Zone, f.Map, f.Ship, f.Other, f.SunKey, f.BeltKey, f.Belt, f.Roots); + // Deep planet: the sun's field is deeper than 2000 below the plane, and its icon sits on the map plane inside both + // map cameras' clip range (minimap at y 10, map screen at y 1; near 0.3, far 1000, looking down). + var well = zone.GetHeight(DrawAhead.Orbit(zone, zone.PlanetInstances[sunKey].BodyData.Orbit.Key, 0), 0); + Require(well < -2000f, $"The fixture sun's well is {well}, not below -2000."); + Require(map.TryDrawn(sunKey, out var sunIcon), "The sun registered no icon."); + var y = sunIcon.GetPosition().y; + Require(y < 1f - .3f && y > 10f - 1000f && Mathf.Abs(y - MapPresenter.PlaneY) < .5f, $"The sun's icon is drawn at y {y}, not on the map plane."); + + // Axes: each icon sits at its sim position's planar x and z (a ship at (300, 200), the other at (-300, 100), the sun at + // its orbit), never swapped, and never at the 3D height (the ships ride at y 50 and -90, the sun's well is below -2000). + var shipAt = DrawAhead.Position(ship, 0); + Require(Mathf.Abs(shipAt.x - 300f) < 1e-3f && Mathf.Abs(shipAt.z - 200f) < 1e-3f, $"The ship's sim position is ({shipAt.x}, {shipAt.z}), not (300, 200)."); + var sunAt = DrawAhead.Orbit(zone, zone.PlanetInstances[sunKey].BodyData.Orbit.Key, 0); + Require(map.TryDrawn(ship, out var shipIcon, out _), "The ship registered no icon."); + Require(Mathf.Abs(shipIcon.GetPosition().x - 300f) < 1e-3f && Mathf.Abs(shipIcon.GetPosition().z - 200f) < 1e-3f, + $"The ship's icon is at ({shipIcon.GetPosition().x}, {shipIcon.GetPosition().z}), not its sim position (300, 200)."); + Require(map.TryDrawn(other, out var otherIcon, out _), "The second ship registered no icon."); + Require(Mathf.Abs(otherIcon.GetPosition().x + 300f) < 1e-3f && Mathf.Abs(otherIcon.GetPosition().z - 100f) < 1e-3f, + $"The second ship's icon is at ({otherIcon.GetPosition().x}, {otherIcon.GetPosition().z}), not (-300, 100)."); + Require(Mathf.Abs(sunIcon.GetPosition().x - sunAt.x) < 1e-3f && Mathf.Abs(sunIcon.GetPosition().z - sunAt.y) < 1e-3f, + $"The sun's icon is at ({sunIcon.GetPosition().x}, {sunIcon.GetPosition().z}), not its orbit ({sunAt.x}, {sunAt.y})."); + Require(Mathf.Abs(otherIcon.GetPosition().y - (MapPresenter.PlaneY + MapPresenter.ShipOffset)) < 1e-4f, "The second ship's icon took the 3D height."); + + // Tilted hull: the icon turns by the heading projected onto the map plane (40) times its authored rotation (identity here), with no roll or pitch. + var want = Quaternion.Euler(0, 40, 0); + Require(Quaternion.Angle(shipIcon.rotation, want) < .1f, $"The icon is rotated {shipIcon.rotation.eulerAngles}, not yaw 40 alone."); + Require(Vector3.Angle(shipIcon.rotation * Vector3.up, Vector3.up) < .1f, "The icon's up axis tilted with the hull."); + Require(Mathf.Abs(shipIcon.GetPosition().y - (MapPresenter.PlaneY + MapPresenter.ShipOffset)) < 1e-4f, "The ship's icon left the map plane."); + + // Every kind registers once: three icons drew, and no icon child remains under any registered transform. + Require(map.IconCount == 3 && map.IconDraws == 3, $"{map.IconCount} icons, {map.IconDraws} drawn; expected 3 and 3."); + Require(roots.GetComponentsInChildren(true).Length == 0, "An icon child remains under an entity or planet transform."); + + // A belt is one instanced draw of every asteroid, and its buffer holds this frame's floats. + Require(map.BeltDraws == 1 && map.LastBeltInstances == belt.Length, $"{map.BeltDraws} belt draws of {map.LastBeltInstances} instances; expected 1 of {belt.Length}."); + var read = new float4[belt.Length]; + map.ReadBelt(beltKey, read); + for (var i = 0; i < belt.Length; i++) + Require(read[i].x == belt[i].x && read[i].y == belt[i].y && read[i].z == belt[i].z && read[i].w == belt[i].w, $"Belt buffer differs from the frame's floats at {i}."); + + // Belts draw on the minimap with the map screen closed. + map.OpenMapScreen(false); + map.Draw(zone, 0); + Require(map.BeltDraws == 1, "A belt did not draw on the minimap with the map screen closed."); + + // Fade: half faded reaches the icon's colour alpha on the next draw; faded out draws nothing. + map.SetFade(ship, .5f); + map.Draw(zone, 0); + Require(map.TryDrawn(ship, out _, out var alpha) && Mathf.Abs(alpha - .4f) < 1e-3f, $"Icon alpha {alpha}, expected 0.8 * 0.5."); + map.SetFade(ship, 0f); + map.Draw(zone, 0); + Require(map.IconDraws == 2, $"{map.IconDraws} icons drew with one fully faded out; expected 2."); + } +} diff --git a/Assets/Scripts/Editor/MapPresenterSmoke.cs.meta b/Assets/Scripts/Editor/MapPresenterSmoke.cs.meta new file mode 100644 index 000000000..2fff0ea86 --- /dev/null +++ b/Assets/Scripts/Editor/MapPresenterSmoke.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 58982a1c397cc2f4d9706fd103af6654 \ No newline at end of file diff --git a/Assets/Scripts/Editor/NameTools.cs b/Assets/Scripts/Editor/NameTools.cs deleted file mode 100644 index a048dce89..000000000 --- a/Assets/Scripts/Editor/NameTools.cs +++ /dev/null @@ -1,93 +0,0 @@ -using System.Buffers.Text; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Text.RegularExpressions; -using MessagePack; -using CultMath; -using UnityEngine; -using UnityEditor; -using Random = CultMath.Random; - -public class NameTools : EditorWindow -{ - public int NameGeneratorMinLength = 5; - public int NameGeneratorMaxLength = 10; - public int NameGeneratorOrder = 4; - private int minWordLength = 4; - private TextAsset nameFile; - private MarkovNameGenerator _nameGenerator; - private bool _stripNumberTokens; - - - // Add menu named "My Window" to the Window menu - [MenuItem("Window/Aetheria/Name Tools")] - static void Init() - { - // Get existing open window or if none, make a new one: - NameTools window = (NameTools)EditorWindow.GetWindow(typeof(NameTools)); - window.Show(); - } - - bool HasNonASCIIChars(string str) - { - return (System.Text.Encoding.UTF8.GetByteCount(str) != str.Length); - } - - void OnGUI() - { - - nameFile = (TextAsset) EditorGUILayout.ObjectField("Name File", nameFile, typeof(TextAsset), false); - minWordLength = EditorGUILayout.IntField("Minimum File Word Length", minWordLength); - NameGeneratorMinLength = EditorGUILayout.IntField("Generated Minimum Word Length", NameGeneratorMinLength); - NameGeneratorMaxLength = EditorGUILayout.IntField("Generated Maximum Word Length", NameGeneratorMaxLength); - NameGeneratorOrder = EditorGUILayout.IntField("Generator Order", NameGeneratorOrder); - _stripNumberTokens = GUILayout.Toggle(_stripNumberTokens, "Strip Number Tokens"); - - if (GUILayout.Button("Clean Name File")) - { - var lines = nameFile.text.Split('\n'); - using StreamWriter outputFile = new StreamWriter(Path.Combine(Application.dataPath, nameFile.name + ".csv")); - var names = new HashSet(); - foreach (var line in lines) - { - var tokens = line.Split(',', ' '); - foreach (var t in tokens) - { - if (!HasNonASCIIChars(t)) - { - var s = new string(t.Where(c => char.IsLetter(c) || c == '-' || c == '`' || c == '\'').ToArray()).Trim().Trim('`','-'); - if(s.Length >= minWordLength && !names.Contains(s)) - { - names.Add(s); - outputFile.WriteLine(s); - } - } - } - } - } - - if (GUILayout.Button("Process Name File") && nameFile != null) - { - var names = new HashSet(); - var lines = nameFile.text.Split('\n'); - foreach (var line in lines) - { - foreach(var word in line.ToUpperInvariant().Split(' ', ',', '.', '"')) - if (word.Length >= minWordLength && !names.Contains(word)) - names.Add(word); - } - Debug.Log($"Found {lines.Length} lines, with {names.Count} unique names!"); - var random = new Random(1337); - _nameGenerator = new MarkovNameGenerator(ref random, names, NameGeneratorOrder, NameGeneratorMinLength, NameGeneratorMaxLength); - } - - if (_nameGenerator != null) - { - if (GUILayout.Button("Generate Name")) - { - Debug.Log(_nameGenerator.NextName); - } - } - } -} \ No newline at end of file diff --git a/Assets/Scripts/Editor/RockMeshRadius.cs b/Assets/Scripts/Editor/RockMeshRadius.cs new file mode 100644 index 000000000..971284924 --- /dev/null +++ b/Assets/Scripts/Editor/RockMeshRadius.cs @@ -0,0 +1,112 @@ +using System; +using System.Linq; +using UnityEditor; +using UnityEditor.Build; +using UnityEditor.Build.Reporting; +using UnityEditor.SceneManagement; +using UnityEngine; + +// The radius of each rock mesh ZoneRenderer draws (ruling rock-meshes-by-size): the farthest vertex from the mesh origin, which bounds the +// mesh's top under any rotation. DrawAhead.RockScale divides the gameplay radius by it, so the drawn rock is the gameplay rock. It is stored on +// InstancedMesh.Radius in ARPG.unity, because a build cannot read vertices of a mesh without Read/Write import. +// +// Unity -batchmode -nographics -projectPath -executeMethod Aetheria.EditorTools.RockMeshRadius.Fill -logFile +// Unity -batchmode -nographics -projectPath -executeMethod Aetheria.EditorTools.RockMeshRadius.Verify -logFile +// +// Fill measures every AsteroidMeshes entry and saves the scene; Verify fails (exit 1) when any stored radius is not the measured one. +// RockMeshRadiusBuildGate runs the same check before every player build and fails the build, so a mesh with no filled radius cannot ship; +// Gate runs that gate in batch mode. +// Unity -batchmode -nographics -projectPath -executeMethod Aetheria.EditorTools.RockMeshRadius.Gate -logFile +namespace Aetheria.EditorTools +{ + public static class RockMeshRadius + { + private const string Scene = "Assets/Scenes/ARPG.unity"; + private const float Tolerance = 1e-4f; + + public static float Measure(Mesh mesh) => Mathf.Sqrt(mesh.vertices.Max(v => v.sqrMagnitude)); + + public static void Fill() => Batch(() => + { + var scene = EditorSceneManager.OpenScene(Scene, OpenSceneMode.Single); + var (renderer, meshes, measured) = Load(scene); + for (var i = 0; i < meshes.Length; i++) meshes[i].Radius = measured[i]; + EditorUtility.SetDirty(renderer); + EditorSceneManager.MarkSceneDirty(scene); + if (!EditorSceneManager.SaveScene(scene)) throw new InvalidOperationException("The scene did not save."); + return Summary("filled", measured); + }); + + public static void Verify() => Batch(() => Check(OpenSceneMode.Single)); + + // The build gate's own entry in batch mode: exit 1 exactly when a build would fail (RockMeshRadiusBuildGate). + public static void Gate() => Batch(() => + { + try { new RockMeshRadiusBuildGate().OnPreprocessBuild(null); } + catch (BuildFailedException failure) { throw new InvalidOperationException(failure.Message); } + return "the build gate passes"; + }); + + // Throws unless every AsteroidMeshes entry of ARPG.unity has a stored radius equal to its mesh's measured one (a zero radius never does). + public static string Check(OpenSceneMode mode) + { + var scene = EditorSceneManager.OpenScene(Scene, mode); + try + { + var (_, meshes, measured) = Load(scene); + var failures = meshes.Select((m, i) => (m, i)).Where(p => !(measured[p.i] > 0f) || Mathf.Abs(p.m.Radius - measured[p.i]) > Tolerance).ToArray(); + if (failures.Length > 0) + throw new InvalidOperationException("InstancedMesh.Radius differs from the measured one, or is unset, on mesh (run RockMeshRadius.Fill): " + string.Join(", ", + failures.Select(f => f.m.Mesh.name))); + return Summary("ok", measured); + } + finally + { + if (mode == OpenSceneMode.Additive) EditorSceneManager.CloseScene(scene, true); + } + } + + private static (ZoneRenderer renderer, InstancedMesh[] meshes, float[] measured) Load(UnityEngine.SceneManagement.Scene scene) + { + var renderer = UnityEngine.Object.FindObjectsByType(FindObjectsInactive.Include, FindObjectsSortMode.None) + .Single(r => r.gameObject.scene == scene); + var meshes = renderer.AsteroidMeshes; + if (meshes == null || meshes.Length == 0) throw new InvalidOperationException("ARPG.unity's ZoneRenderer has no AsteroidMeshes."); + var bad = meshes.Where(m => m.Mesh == null).ToArray(); + if (bad.Length > 0) throw new InvalidOperationException($"{bad.Length} AsteroidMeshes entries have no mesh."); + return (renderer, meshes, meshes.Select(m => Measure(m.Mesh)).ToArray()); + } + + private static string Summary(string what, float[] measured) + { + var sorted = measured.OrderBy(r => r).ToArray(); + return $"{what}: {sorted.Length} meshes, radius min {sorted[0]:F3} median {sorted[sorted.Length / 2]:F3} max {sorted[^1]:F3}"; + } + + private static void Batch(Func run) + { + try + { + Debug.Log($"[RockMeshRadius] {run()}"); + EditorApplication.Exit(0); + } + catch (Exception exception) + { + Debug.LogException(exception); + EditorApplication.Exit(1); + } + } + } + + // A mesh in AsteroidMeshes with no filled radius must not ship: the build fails, naming the field. + public class RockMeshRadiusBuildGate : IPreprocessBuildWithReport + { + public int callbackOrder => 0; + + public void OnPreprocessBuild(BuildReport report) + { + try { RockMeshRadius.Check(OpenSceneMode.Additive); } + catch (InvalidOperationException failure) { throw new BuildFailedException(failure.Message); } + } + } +} diff --git a/Assets/Scripts/Editor/RockMeshRadius.cs.meta b/Assets/Scripts/Editor/RockMeshRadius.cs.meta new file mode 100644 index 000000000..f95fec963 --- /dev/null +++ b/Assets/Scripts/Editor/RockMeshRadius.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 9ea93f3d164825c4b99a0d07f24d5cf6 \ No newline at end of file diff --git a/Assets/Scripts/Editor/ScenarioPickerCapture.cs b/Assets/Scripts/Editor/ScenarioPickerCapture.cs new file mode 100644 index 000000000..b39dd7a1b --- /dev/null +++ b/Assets/Scripts/Editor/ScenarioPickerCapture.cs @@ -0,0 +1,108 @@ +using System; +using System.Collections.Generic; +using System.IO; +using UnityEditor; +using UnityEditor.SceneManagement; +using UnityEngine; +using UnityEngine.UI; + +// A render of the New Game screen as the game builds it: the real Main Menu scene's panel prototype, docked and filled +// by ScenarioPicker.Dock and ScenarioPicker.Show with every scenario group, on a plain dark background (the cloud +// backdrop is a play-mode renderer). Writes /Temp/scenario-picker.png at 1920x1080, or the path after -pngOut (Unity empties Temp on exit). +// +// Unity -batchmode -projectPath -executeMethod ScenarioPickerCapture.Run [-pngOut ] -logFile +// +// Needs a GPU device; do not pass -nographics or -quit: Run exits the Editor itself, 0 on success and 1 on any failure. +public static class ScenarioPickerCapture +{ + private const int Width = 1920, Height = 1080; + + public static void Run() + { + try + { + Capture(); + EditorApplication.Exit(0); + } + catch (Exception exception) + { + Debug.LogException(exception); + EditorApplication.Exit(1); + } + } + + // The menu's two panes built the way MainMenu.Start builds them, against the Main Menu scene. + internal static (MainMenu menu, PropertiesPanel list, PropertiesPanel detail) Build() + { + EditorSceneManager.OpenScene("Assets/Scenes/Main Menu.unity", OpenSceneMode.Single); + var menu = UnityEngine.Object.FindObjectsByType(FindObjectsInactive.Include, FindObjectsSortMode.None)[0]; + menu.PanelPrototype.gameObject.SetActive(false); + var list = menu.PanelPrototype.Instantiate(); + var detail = menu.PanelPrototype.Instantiate(); + // Edit mode runs no Awake, which is what activates each row a panel adds. + list.Awake(); + detail.Awake(); + ScenarioPicker.Dock(detail, list); + return (menu, list, detail); + } + + internal static List<(string label, Scenario[] scenarios)> AllGroups() => new List<(string label, Scenario[] scenarios)> + { + ("modes", Scenarios.Modes), ("development", Scenarios.Development), ("test arenas", Scenarios.Tests) + }; + + private static void Capture() + { + var (menu, list, detail) = Build(); + menu.Dialog.gameObject.SetActive(false); + list.Title.text = MainMenu.TitleSubtitle("new game", "scenarios"); + ScenarioPicker.Show(list, detail, AllGroups(), _ => { }, () => { }, menu.Dialog.Confirm); + list.RefreshValues(); + detail.RefreshValues(); + + var canvas = menu.GetComponentInParent(true).rootCanvas; + var target = new RenderTexture(Width, Height, 24, RenderTextureFormat.ARGB32); + var cameraObject = new GameObject("ScenarioPickerCapture camera"); + var camera = cameraObject.AddComponent(); + camera.orthographic = true; + camera.orthographicSize = 5; + camera.clearFlags = CameraClearFlags.SolidColor; + camera.backgroundColor = new Color(.04f, .05f, .08f); + camera.cullingMask = 1 << LayerMask.NameToLayer("UI"); + camera.targetTexture = target; + canvas.renderMode = RenderMode.ScreenSpaceCamera; + canvas.worldCamera = camera; + canvas.planeDistance = 10; + canvas.gameObject.SetActive(true); + Canvas.ForceUpdateCanvases(); + LayoutRebuilder.ForceRebuildLayoutImmediate((RectTransform) list.transform); + LayoutRebuilder.ForceRebuildLayoutImmediate((RectTransform) detail.transform); + foreach (var text in list.transform.GetComponentsInChildren()) + text.ForceMeshUpdate(); + Canvas.ForceUpdateCanvases(); + list.Content.GetComponentInParent().onValueChanged.Invoke(Vector2.zero); + camera.Render(); + + var previous = RenderTexture.active; + RenderTexture.active = target; + var read = new Texture2D(Width, Height, TextureFormat.RGBA32, false); + read.ReadPixels(new Rect(0, 0, Width, Height), 0, 0); + RenderTexture.active = previous; + + var background = read.GetPixel(0, 0); + var differing = 0; + foreach (var pixel in read.GetPixels32()) + if (Mathf.Abs(pixel.r / 255f - background.r) + Mathf.Abs(pixel.g / 255f - background.g) + Mathf.Abs(pixel.b / 255f - background.b) > .05f) + differing++; + if (differing < Width * Height / 100) + throw new InvalidOperationException($"The capture is uniform: only {differing} pixels differ from the background."); + + var path = Path.GetFullPath(Path.Combine(Application.dataPath, "..", "Temp", "scenario-picker.png")); + var args = Environment.GetCommandLineArgs(); + var outIndex = Array.IndexOf(args, "-pngOut"); + if (outIndex >= 0) path = Path.GetFullPath(args[outIndex + 1]); + Directory.CreateDirectory(Path.GetDirectoryName(path)); + File.WriteAllBytes(path, read.EncodeToPNG()); + Debug.Log($"[ScenarioPickerCapture] {path} ({differing} of {Width * Height} pixels differ from the background)"); + } +} diff --git a/Assets/Scripts/Editor/ScenarioPickerCapture.cs.meta b/Assets/Scripts/Editor/ScenarioPickerCapture.cs.meta new file mode 100644 index 000000000..ebeb742e8 --- /dev/null +++ b/Assets/Scripts/Editor/ScenarioPickerCapture.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 2e79f280179150e4080250c45e07cd69 \ No newline at end of file diff --git a/Assets/Scripts/Editor/ScenarioPickerVerify.cs b/Assets/Scripts/Editor/ScenarioPickerVerify.cs new file mode 100644 index 000000000..6816cafc9 --- /dev/null +++ b/Assets/Scripts/Editor/ScenarioPickerVerify.cs @@ -0,0 +1,265 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using TMPro; +using UnityEditor; +using UnityEngine; +using UnityEngine.EventSystems; +using UnityEngine.UI; + +// The picker's selection and keyboard rules, driven through the events the game delivers: Move and Cancel reach the +// focused Launch button through ExecuteEvents, as the Input System UI module sends them, and a click is Button.onClick. +// +// Unity -batchmode -projectPath -executeMethod ScenarioPickerVerify.Run -logFile +// +// Exits the Editor itself, 0 when every rule holds and 1 on the first that does not. +public static class ScenarioPickerVerify +{ + private sealed class Fake : Scenario + { + private readonly uint _seed; + private readonly bool _ambient; + public Fake(string name, uint seed = 0, bool ambient = true) { Name = name; _seed = seed; _ambient = ambient; } + public override string Name { get; } + public override string Id => Name.ToLowerInvariant(); + public override string Brief => $"brief of {Name}"; + public override uint Seed => _seed; + public override bool Ambient => _ambient; + public override Galaxy Generate(GalaxyStage stage) => throw new NotSupportedException(); + public override void Stage(ScenarioStage stage) => throw new NotSupportedException(); + } + + private sealed class Screen + { + public ScenarioPicker Picker; + public PropertiesPanel List, Detail; + public Button[] Rows; + public Button Back, Launch; + public readonly List Launched = new List(); + public int Backs; + public Scenario[] A, B, C; + } + + public static void Run() + { + try + { + SelectionFollowsClicksAndArrows(); + ArrowsStopAtTheEnds(); + LeftAndRightAreIgnored(); + LaunchIsOnePathAndFocusClears(); + CancelAndBackAreOnePath(); + DetailPaneFollowsSelection(); + OneGroupHasNoSectionLabel(); + LaunchesOnceHoweverItIsReached(); + ArrowingThroughTheRealListKeepsTheSelectionVisible(); + Debug.Log("[ScenarioPickerVerify] ok"); + EditorApplication.Exit(0); + } + catch (Exception exception) + { + Debug.LogException(exception); + EditorApplication.Exit(1); + } + } + + private static void Require(bool condition, string what) + { + if (!condition) throw new InvalidOperationException(what); + } + + private static Screen Build(bool oneGroup = false, bool real = false) + { + var (menu, list, detail) = ScenarioPickerCapture.Build(); + // Build opens the scene afresh, which destroys the previous EventSystem. + var events = new GameObject("verify EventSystem").AddComponent(); + // Edit mode never calls OnEnable, which is what registers an EventSystem as current. + typeof(EventSystem).GetMethod("OnEnable", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).Invoke(events, null); + var screen = new Screen + { + List = list, Detail = detail, + A = new Scenario[] { new Fake("Alpha", 7), new Fake("Beta") }, + B = new Scenario[] { new Fake("Gamma", ambient: false) }, + C = new Scenario[] { new Fake("Delta"), new Fake("Echo") } + }; + var groups = real ? ScenarioPickerCapture.AllGroups() : oneGroup + ? new List<(string label, Scenario[] scenarios)> { ("modes", screen.A) } + : new List<(string label, Scenario[] scenarios)> { ("modes", screen.A), ("development", screen.B), ("test arenas", screen.C) }; + // The menu builds a panel while it is inactive and shows it afterwards; the picker must find its scroll all the same. + if (real) list.gameObject.SetActive(false); + screen.Picker = ScenarioPicker.Show(list, detail, groups, screen.Launched.Add, () => screen.Backs++, menu.Dialog.Confirm); + var buttons = list.GetComponentsInChildren(false).Where(button => !button.transform.IsChildOf(detail.transform)).Select(button => button.Button).ToArray(); + screen.Rows = buttons.Take(buttons.Length - 1).ToArray(); + screen.Back = buttons.Last(); + screen.Launch = detail.GetComponentsInChildren