Compare commits
5 Commits
ecb1422937
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| a825d5a707 | |||
| 69d366aaa1 | |||
|
|
7b040f7a3c | ||
|
|
81310d3ac1 | ||
| b65b6ca150 |
6
.gitattributes
vendored
@@ -1,7 +1,6 @@
|
|||||||
#
|
#
|
||||||
# Auto Generated
|
# Auto Generated
|
||||||
#
|
#
|
||||||
|
|
||||||
# Other
|
# Other
|
||||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
# Unity Binary Assets
|
# Unity Binary Assets
|
||||||
@@ -70,18 +69,15 @@
|
|||||||
*.wmv filter=lfs diff=lfs merge=lfs -text
|
*.wmv filter=lfs diff=lfs merge=lfs -text
|
||||||
# Unity-Specific
|
# Unity-Specific
|
||||||
* text=auto
|
* text=auto
|
||||||
|
|
||||||
# Some assets such as lighting data, nav meshes, etc will always be binary,
|
# Some assets such as lighting data, nav meshes, etc will always be binary,
|
||||||
# as will anything with [PreferBinarySerialization]
|
# as will anything with [PreferBinarySerialization]
|
||||||
# (Even if you force it to text mode serialization)
|
# (Even if you force it to text mode serialization)
|
||||||
# Meaning autoCRLF on git will fuck up your project.
|
# Meaning autoCRLF on git will fuck up your project.
|
||||||
*.asset auto
|
*.asset auto
|
||||||
TimeManager.asset -text
|
TimeManager.asset -text
|
||||||
|
|
||||||
#
|
#
|
||||||
# The following should be text to allow git merges
|
# The following should be text to allow git merges
|
||||||
#
|
#
|
||||||
|
|
||||||
*.anim text
|
*.anim text
|
||||||
*.controller text
|
*.controller text
|
||||||
*.mat text
|
*.mat text
|
||||||
@@ -92,5 +88,3 @@ TimeManager.asset -text
|
|||||||
*.unity text
|
*.unity text
|
||||||
*.preset text
|
*.preset text
|
||||||
*.lfs_test filter=lfs diff=lfs merge=lfs -text
|
*.lfs_test filter=lfs diff=lfs merge=lfs -text
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
using Splashedit.RuntimeCode;
|
|
||||||
using UnityEditor;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
[CustomEditor(typeof(LuaFile))]
|
|
||||||
public class LuaScriptAssetEditor : Editor
|
|
||||||
{
|
|
||||||
private TextAsset asset;
|
|
||||||
|
|
||||||
public override void OnInspectorGUI()
|
|
||||||
{
|
|
||||||
LuaFile luaScriptAsset = (LuaFile)target;
|
|
||||||
EditorGUILayout.TextArea(luaScriptAsset.LuaScript);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 32c0501d523345500be12e6e4214ec9d
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
using UnityEngine;
|
|
||||||
using System.IO;
|
|
||||||
using UnityEditor;
|
|
||||||
using UnityEditor.AssetImporters;
|
|
||||||
using Splashedit.RuntimeCode;
|
|
||||||
|
|
||||||
namespace SplashEdit.EditorCode
|
|
||||||
{
|
|
||||||
[ScriptedImporter(1, "lua")]
|
|
||||||
class LuaImporter : ScriptedImporter
|
|
||||||
{
|
|
||||||
public override void OnImportAsset(AssetImportContext ctx)
|
|
||||||
{
|
|
||||||
var asset = ScriptableObject.CreateInstance<LuaFile>();
|
|
||||||
var luaCode = File.ReadAllText(ctx.assetPath);
|
|
||||||
asset.Init(luaCode);
|
|
||||||
asset.name = Path.GetFileName(ctx.assetPath);
|
|
||||||
var text = new TextAsset(asset.LuaScript);
|
|
||||||
|
|
||||||
ctx.AddObjectToAsset("Text", text);
|
|
||||||
ctx.AddObjectToAsset("Script", asset);
|
|
||||||
ctx.SetMainObject(text);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: d364a1392e3bccd77aca824ac471f89c
|
|
||||||
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 129 B |
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 129 B |
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 129 B |
|
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 129 B |
@@ -42,6 +42,8 @@ Both Nicolas and Bandwidth have videos on setting up the PSX Dev Extension in Vi
|
|||||||
|
|
||||||
[Setting up a Scene in Unity 6 for SplashEdit.](https://youtu.be/1JJFYptDTk0)
|
[Setting up a Scene in Unity 6 for SplashEdit.](https://youtu.be/1JJFYptDTk0)
|
||||||
|
|
||||||
|
[Tips for Scene creation.](https://zhamul.itch.io/sauna/devlog/936240/using-psxsplashedit-to-craft-a-scene-for-playstation)
|
||||||
|
|
||||||
## PSX Components:
|
## PSX Components:
|
||||||
|
|
||||||
There are currently four custom Unity components for exporting your scenes to the PS1. These include:
|
There are currently four custom Unity components for exporting your scenes to the PS1. These include:
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace Splashedit.RuntimeCode
|
|
||||||
{
|
|
||||||
public class LuaFile : ScriptableObject
|
|
||||||
{
|
|
||||||
[SerializeField] private string luaScript;
|
|
||||||
public string LuaScript => luaScript;
|
|
||||||
|
|
||||||
public void Init(string luaCode)
|
|
||||||
{
|
|
||||||
luaScript = luaCode;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: e3b07239f3beb7a87ad987c3fedae9c1
|
|
||||||
@@ -40,6 +40,7 @@ namespace SplashEdit.RuntimeCode
|
|||||||
{
|
{
|
||||||
public List<Tri> Triangles;
|
public List<Tri> Triangles;
|
||||||
|
|
||||||
|
|
||||||
private static Vector3[] RecalculateSmoothNormals(Mesh mesh)
|
private static Vector3[] RecalculateSmoothNormals(Mesh mesh)
|
||||||
{
|
{
|
||||||
Vector3[] normals = new Vector3[mesh.vertexCount];
|
Vector3[] normals = new Vector3[mesh.vertexCount];
|
||||||
@@ -90,6 +91,8 @@ namespace SplashEdit.RuntimeCode
|
|||||||
Material[] materials = renderer.sharedMaterials;
|
Material[] materials = renderer.sharedMaterials;
|
||||||
Mesh mesh = renderer.GetComponent<MeshFilter>().sharedMesh;
|
Mesh mesh = renderer.GetComponent<MeshFilter>().sharedMesh;
|
||||||
|
|
||||||
|
bool uvWarning = false;
|
||||||
|
|
||||||
// Iterate over each submesh.
|
// Iterate over each submesh.
|
||||||
for (int submeshIndex = 0; submeshIndex < materials.Length; submeshIndex++)
|
for (int submeshIndex = 0; submeshIndex < materials.Length; submeshIndex++)
|
||||||
{
|
{
|
||||||
@@ -147,11 +150,22 @@ namespace SplashEdit.RuntimeCode
|
|||||||
(vid1, vid2) = (vid2, vid1);
|
(vid1, vid2) = (vid2, vid1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set uvWarning to true if uv cooordinates are outside the range [0, 1].
|
||||||
|
if (uv[vid0].x < 0 || uv[vid0].y < 0 || uv[vid1].x < 0 || uv[vid1].y < 0 || uv[vid2].x < 0 || uv[vid2].y < 0)
|
||||||
|
uvWarning = true;
|
||||||
|
if (uv[vid0].x > 1 || uv[vid0].y > 1 || uv[vid1].x > 1 || uv[vid1].y > 1 || uv[vid2].x > 1 || uv[vid2].y > 1)
|
||||||
|
uvWarning = true;
|
||||||
|
|
||||||
// Add the constructed triangle to the mesh.
|
// Add the constructed triangle to the mesh.
|
||||||
psxMesh.Triangles.Add(new Tri { v0 = convertData(vid0), v1 = convertData(vid1), v2 = convertData(vid2), Texture = psxTexture });
|
psxMesh.Triangles.Add(new Tri { v0 = convertData(vid0), v1 = convertData(vid1), v2 = convertData(vid2), Texture = psxTexture });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(uvWarning)
|
||||||
|
{
|
||||||
|
Debug.LogWarning($"UV coordinates on mesh {mesh.name} are outside the range [0, 1]. Texture repeat DOES NOT WORK right now. You may have broken textures.");
|
||||||
|
}
|
||||||
|
|
||||||
return psxMesh;
|
return psxMesh;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -183,6 +197,9 @@ namespace SplashEdit.RuntimeCode
|
|||||||
nz = PSXTrig.ConvertCoordinateToPSX(normal.z),
|
nz = PSXTrig.ConvertCoordinateToPSX(normal.z),
|
||||||
|
|
||||||
// Map UV coordinates to a byte range after scaling based on texture dimensions.
|
// Map UV coordinates to a byte range after scaling based on texture dimensions.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
u = (byte)Mathf.Clamp(uv.x * (width - 1), 0, 255),
|
u = (byte)Mathf.Clamp(uv.x * (width - 1), 0, 255),
|
||||||
v = (byte)Mathf.Clamp((1.0f - uv.y) * (height - 1), 0, 255),
|
v = (byte)Mathf.Clamp((1.0f - uv.y) * (height - 1), 0, 255),
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Splashedit.RuntimeCode;
|
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.Serialization;
|
using UnityEngine.Serialization;
|
||||||
|
|
||||||
@@ -8,14 +7,11 @@ namespace SplashEdit.RuntimeCode
|
|||||||
[RequireComponent(typeof(Renderer))]
|
[RequireComponent(typeof(Renderer))]
|
||||||
public class PSXObjectExporter : MonoBehaviour
|
public class PSXObjectExporter : MonoBehaviour
|
||||||
{
|
{
|
||||||
public LuaFile LuaFile => luaFile;
|
|
||||||
|
|
||||||
public List<PSXTexture2D> Textures { get; set; } = new List<PSXTexture2D>(); // Stores the converted PlayStation-style texture
|
public List<PSXTexture2D> Textures { get; set; } = new List<PSXTexture2D>(); // Stores the converted PlayStation-style texture
|
||||||
public PSXMesh Mesh { get; protected set; } // Stores the converted PlayStation-style mesh
|
public PSXMesh Mesh { get; set; } // Stores the converted PlayStation-style mesh
|
||||||
[Header("Export Settings")]
|
[Header("Export Settings")]
|
||||||
[FormerlySerializedAs("BitDepth")]
|
[FormerlySerializedAs("BitDepth")]
|
||||||
[SerializeField] private PSXBPP bitDepth = PSXBPP.TEX_8BIT; // Defines the bit depth of the texture (e.g., 4BPP, 8BPP)
|
[SerializeField] private PSXBPP bitDepth = PSXBPP.TEX_8BIT; // Defines the bit depth of the texture (e.g., 4BPP, 8BPP)
|
||||||
[SerializeField] private LuaFile luaFile;
|
|
||||||
[Header("Gizmo Settings")]
|
[Header("Gizmo Settings")]
|
||||||
[FormerlySerializedAs("PreviewNormals")]
|
[FormerlySerializedAs("PreviewNormals")]
|
||||||
[SerializeField] private bool previewNormals = false;
|
[SerializeField] private bool previewNormals = false;
|
||||||
|
|||||||
@@ -2,8 +2,6 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
|
||||||
using Splashedit.RuntimeCode;
|
|
||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
@@ -91,10 +89,6 @@ namespace SplashEdit.RuntimeCode
|
|||||||
string path = EditorUtility.SaveFilePanel("Select Output File", "", "output", "bin");
|
string path = EditorUtility.SaveFilePanel("Select Output File", "", "output", "bin");
|
||||||
int totalFaces = 0;
|
int totalFaces = 0;
|
||||||
|
|
||||||
// Lists for lua data offsets.
|
|
||||||
List<long> luaOffsetPlaceholderPositions = new List<long>();
|
|
||||||
List<long> luaDataOffsets = new List<long>();
|
|
||||||
|
|
||||||
// Lists for mesh data offsets.
|
// Lists for mesh data offsets.
|
||||||
List<long> meshOffsetPlaceholderPositions = new List<long>();
|
List<long> meshOffsetPlaceholderPositions = new List<long>();
|
||||||
List<long> meshDataOffsets = new List<long>();
|
List<long> meshDataOffsets = new List<long>();
|
||||||
@@ -112,7 +106,6 @@ namespace SplashEdit.RuntimeCode
|
|||||||
List<long> navmeshDataOffsets = new List<long>();
|
List<long> navmeshDataOffsets = new List<long>();
|
||||||
|
|
||||||
int clutCount = 0;
|
int clutCount = 0;
|
||||||
List<LuaFile> luaFiles = new List<LuaFile>();
|
|
||||||
|
|
||||||
// Cluts
|
// Cluts
|
||||||
foreach (TextureAtlas atlas in _atlases)
|
foreach (TextureAtlas atlas in _atlases)
|
||||||
@@ -126,26 +119,12 @@ namespace SplashEdit.RuntimeCode
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Lua files
|
|
||||||
foreach (PSXObjectExporter exporter in _exporters)
|
|
||||||
{
|
|
||||||
if (exporter.LuaFile != null)
|
|
||||||
{
|
|
||||||
//if not contains
|
|
||||||
if (!luaFiles.Contains(exporter.LuaFile))
|
|
||||||
{
|
|
||||||
luaFiles.Add(exporter.LuaFile);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
using (BinaryWriter writer = new BinaryWriter(File.Open(path, FileMode.Create)))
|
using (BinaryWriter writer = new BinaryWriter(File.Open(path, FileMode.Create)))
|
||||||
{
|
{
|
||||||
// Header
|
// Header
|
||||||
writer.Write('S'); // 1 byte // 1
|
writer.Write('S'); // 1 byte // 1
|
||||||
writer.Write('P'); // 1 byte // 2
|
writer.Write('P'); // 1 byte // 2
|
||||||
writer.Write((ushort)1); // 2 bytes - version // 4
|
writer.Write((ushort)1); // 2 bytes - version // 4
|
||||||
writer.Write((ushort)luaFiles.Count); // 2 bytes - padding // 6
|
|
||||||
writer.Write((ushort)_exporters.Length); // 2 bytes // 6
|
writer.Write((ushort)_exporters.Length); // 2 bytes // 6
|
||||||
writer.Write((ushort)_navmeshes.Length); // 8
|
writer.Write((ushort)_navmeshes.Length); // 8
|
||||||
writer.Write((ushort)_atlases.Length); // 2 bytes // 10
|
writer.Write((ushort)_atlases.Length); // 2 bytes // 10
|
||||||
@@ -161,16 +140,6 @@ namespace SplashEdit.RuntimeCode
|
|||||||
writer.Write((ushort)PSXTrig.ConvertCoordinateToPSX(_playerHeight, GTEScaling)); // 26
|
writer.Write((ushort)PSXTrig.ConvertCoordinateToPSX(_playerHeight, GTEScaling)); // 26
|
||||||
|
|
||||||
writer.Write((ushort)0);
|
writer.Write((ushort)0);
|
||||||
writer.Write((ushort)0);
|
|
||||||
|
|
||||||
// Lua file section
|
|
||||||
foreach (LuaFile luaFile in luaFiles)
|
|
||||||
{
|
|
||||||
// Write placeholder for lua file data offset and record its position.
|
|
||||||
luaOffsetPlaceholderPositions.Add(writer.BaseStream.Position);
|
|
||||||
writer.Write((int)0); // 4-byte placeholder for mesh data offset.
|
|
||||||
writer.Write((uint)luaFile.LuaScript.Length);
|
|
||||||
}
|
|
||||||
|
|
||||||
// GameObject section (exporters)
|
// GameObject section (exporters)
|
||||||
foreach (PSXObjectExporter exporter in _exporters)
|
foreach (PSXObjectExporter exporter in _exporters)
|
||||||
@@ -196,15 +165,7 @@ namespace SplashEdit.RuntimeCode
|
|||||||
writer.Write((int)rotationMatrix[2, 2]);
|
writer.Write((int)rotationMatrix[2, 2]);
|
||||||
|
|
||||||
writer.Write((ushort)exporter.Mesh.Triangles.Count);
|
writer.Write((ushort)exporter.Mesh.Triangles.Count);
|
||||||
if (exporter.LuaFile != null)
|
writer.Write((ushort)0);
|
||||||
{
|
|
||||||
int index = luaFiles.IndexOf(exporter.LuaFile);
|
|
||||||
writer.Write((short)index);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
writer.Write((short)-1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Navmesh metadata section
|
// Navmesh metadata section
|
||||||
@@ -250,17 +211,6 @@ namespace SplashEdit.RuntimeCode
|
|||||||
|
|
||||||
// Start of data section
|
// Start of data section
|
||||||
|
|
||||||
// Lua data section: Write lua file data for each exporter.
|
|
||||||
foreach (LuaFile luaFile in luaFiles)
|
|
||||||
{
|
|
||||||
AlignToFourBytes(writer);
|
|
||||||
// Record the current offset for this lua file's data.
|
|
||||||
long luaDataOffset = writer.BaseStream.Position;
|
|
||||||
luaDataOffsets.Add(luaDataOffset);
|
|
||||||
|
|
||||||
writer.Write(Encoding.UTF8.GetBytes(luaFile.LuaScript));
|
|
||||||
}
|
|
||||||
|
|
||||||
// Mesh data section: Write mesh data for each exporter.
|
// Mesh data section: Write mesh data for each exporter.
|
||||||
foreach (PSXObjectExporter exporter in _exporters)
|
foreach (PSXObjectExporter exporter in _exporters)
|
||||||
{
|
{
|
||||||
@@ -393,20 +343,6 @@ namespace SplashEdit.RuntimeCode
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bacfill the lua data offsets into the metadata section.
|
|
||||||
if (luaOffsetPlaceholderPositions.Count == luaDataOffsets.Count)
|
|
||||||
{
|
|
||||||
for (int i = 0; i < luaOffsetPlaceholderPositions.Count; i++)
|
|
||||||
{
|
|
||||||
writer.Seek((int)luaOffsetPlaceholderPositions[i], SeekOrigin.Begin);
|
|
||||||
writer.Write((int)luaDataOffsets[i]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Debug.LogError("Mismatch between metadata lua offset placeholders and lua data blocks!");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Backfill the mesh data offsets into the metadata section.
|
// Backfill the mesh data offsets into the metadata section.
|
||||||
if (meshOffsetPlaceholderPositions.Count == meshDataOffsets.Count)
|
if (meshOffsetPlaceholderPositions.Count == meshDataOffsets.Count)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 03c1f3626c09eb44eb79759ab2675f9e
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 83f98f1f40209b141a597a83c862a61f
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
local dir = true
|
|
||||||
local minY = -300
|
|
||||||
local maxY = -25
|
|
||||||
|
|
||||||
function doSomething(first, other)
|
|
||||||
local pos = first.position
|
|
||||||
|
|
||||||
if dir then
|
|
||||||
pos.y = pos.y + 10
|
|
||||||
if pos.y >= maxY then
|
|
||||||
dir = false
|
|
||||||
end
|
|
||||||
else
|
|
||||||
pos.y = pos.y - 10
|
|
||||||
if pos.y <= minY then
|
|
||||||
dir = true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
first.position = pos
|
|
||||||
end
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 2080a81a20451b74bb4fed47cde1eb64
|
|
||||||
ScriptedImporter:
|
|
||||||
internalIDToNameTable: []
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
script: {fileID: 11500000, guid: d364a1392e3bccd77aca824ac471f89c, type: 3}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 98c8fecb427143042be70f00ac1ebb42
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,137 +0,0 @@
|
|||||||
%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: PSXDefault
|
|
||||||
m_Shader: {fileID: 4800000, guid: 0ca6dca7396eb48e5849247ffd444914, type: 3}
|
|
||||||
m_Parent: {fileID: 0}
|
|
||||||
m_ModifiedSerializedProperties: 0
|
|
||||||
m_ValidKeywords: []
|
|
||||||
m_InvalidKeywords: []
|
|
||||||
m_LightmapFlags: 4
|
|
||||||
m_EnableInstancingVariants: 0
|
|
||||||
m_DoubleSidedGI: 0
|
|
||||||
m_CustomRenderQueue: 2000
|
|
||||||
stringTagMap:
|
|
||||||
RenderType: Opaque
|
|
||||||
disabledShaderPasses:
|
|
||||||
- MOTIONVECTORS
|
|
||||||
m_LockedProperties:
|
|
||||||
m_SavedProperties:
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TexEnvs:
|
|
||||||
- _BaseMap:
|
|
||||||
m_Texture: {fileID: 2800000, guid: 0be7a2d4700082dbc83b9274837c70bc, type: 3}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _BumpMap:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _DetailAlbedoMap:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _DetailMask:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _DetailNormalMap:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _EmissionMap:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _MainTex:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _MetallicGlossMap:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _OcclusionMap:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _ParallaxMap:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- _SpecGlossMap:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- unity_Lightmaps:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- unity_LightmapsInd:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
- unity_ShadowMasks:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
m_Ints: []
|
|
||||||
m_Floats:
|
|
||||||
- _AddPrecomputedVelocity: 0
|
|
||||||
- _AlphaClip: 0
|
|
||||||
- _AlphaToMask: 0
|
|
||||||
- _Blend: 0
|
|
||||||
- _BlendModePreserveSpecular: 1
|
|
||||||
- _BlendOp: 0
|
|
||||||
- _BumpScale: 1
|
|
||||||
- _ClearCoatMask: 0
|
|
||||||
- _ClearCoatSmoothness: 0
|
|
||||||
- _Cull: 2
|
|
||||||
- _Cutoff: 0.5
|
|
||||||
- _DetailAlbedoMapScale: 1
|
|
||||||
- _DetailNormalMapScale: 1
|
|
||||||
- _DstBlend: 0
|
|
||||||
- _DstBlendAlpha: 0
|
|
||||||
- _EnvironmentReflections: 1
|
|
||||||
- _GlossMapScale: 0
|
|
||||||
- _Glossiness: 0
|
|
||||||
- _GlossyReflections: 0
|
|
||||||
- _Metallic: 0
|
|
||||||
- _OcclusionStrength: 1
|
|
||||||
- _Parallax: 0.005
|
|
||||||
- _QueueOffset: 0
|
|
||||||
- _ReceiveShadows: 1
|
|
||||||
- _Smoothness: 0.5
|
|
||||||
- _SmoothnessTextureChannel: 0
|
|
||||||
- _SpecularHighlights: 1
|
|
||||||
- _SrcBlend: 1
|
|
||||||
- _SrcBlendAlpha: 1
|
|
||||||
- _Surface: 0
|
|
||||||
- _WorkflowMode: 1
|
|
||||||
- _ZWrite: 1
|
|
||||||
m_Colors:
|
|
||||||
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
|
|
||||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
|
||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
|
||||||
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
|
|
||||||
m_BuildTextureStacks: []
|
|
||||||
m_AllowLocking: 1
|
|
||||||
--- !u!114 &7557462600926894941
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 11
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 0}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
version: 9
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: ef90866ae3c8e3241995606c20a6f335
|
|
||||||
NativeFormatImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
mainObjectFileID: 2100000
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 6a2d025695ecb074a811681d20c569b0
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -1,683 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!29 &1
|
|
||||||
OcclusionCullingSettings:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 2
|
|
||||||
m_OcclusionBakeSettings:
|
|
||||||
smallestOccluder: 5
|
|
||||||
smallestHole: 0.25
|
|
||||||
backfaceThreshold: 100
|
|
||||||
m_SceneGUID: 00000000000000000000000000000000
|
|
||||||
m_OcclusionCullingData: {fileID: 0}
|
|
||||||
--- !u!104 &2
|
|
||||||
RenderSettings:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 10
|
|
||||||
m_Fog: 0
|
|
||||||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
|
||||||
m_FogMode: 3
|
|
||||||
m_FogDensity: 0.01
|
|
||||||
m_LinearFogStart: 0
|
|
||||||
m_LinearFogEnd: 300
|
|
||||||
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
|
||||||
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
|
||||||
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
|
||||||
m_AmbientIntensity: 1
|
|
||||||
m_AmbientMode: 0
|
|
||||||
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
|
||||||
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
|
|
||||||
m_HaloStrength: 0.5
|
|
||||||
m_FlareStrength: 1
|
|
||||||
m_FlareFadeSpeed: 3
|
|
||||||
m_HaloTexture: {fileID: 0}
|
|
||||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
m_DefaultReflectionMode: 0
|
|
||||||
m_DefaultReflectionResolution: 128
|
|
||||||
m_ReflectionBounces: 1
|
|
||||||
m_ReflectionIntensity: 1
|
|
||||||
m_CustomReflection: {fileID: 0}
|
|
||||||
m_Sun: {fileID: 0}
|
|
||||||
m_UseRadianceAmbientProbe: 0
|
|
||||||
--- !u!157 &3
|
|
||||||
LightmapSettings:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 13
|
|
||||||
m_BakeOnSceneLoad: 0
|
|
||||||
m_GISettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_BounceScale: 1
|
|
||||||
m_IndirectOutputScale: 1
|
|
||||||
m_AlbedoBoost: 1
|
|
||||||
m_EnvironmentLightingMode: 0
|
|
||||||
m_EnableBakedLightmaps: 1
|
|
||||||
m_EnableRealtimeLightmaps: 0
|
|
||||||
m_LightmapEditorSettings:
|
|
||||||
serializedVersion: 12
|
|
||||||
m_Resolution: 2
|
|
||||||
m_BakeResolution: 40
|
|
||||||
m_AtlasSize: 1024
|
|
||||||
m_AO: 0
|
|
||||||
m_AOMaxDistance: 1
|
|
||||||
m_CompAOExponent: 1
|
|
||||||
m_CompAOExponentDirect: 0
|
|
||||||
m_ExtractAmbientOcclusion: 0
|
|
||||||
m_Padding: 2
|
|
||||||
m_LightmapParameters: {fileID: 0}
|
|
||||||
m_LightmapsBakeMode: 1
|
|
||||||
m_TextureCompression: 1
|
|
||||||
m_ReflectionCompression: 2
|
|
||||||
m_MixedBakeMode: 2
|
|
||||||
m_BakeBackend: 1
|
|
||||||
m_PVRSampling: 1
|
|
||||||
m_PVRDirectSampleCount: 32
|
|
||||||
m_PVRSampleCount: 512
|
|
||||||
m_PVRBounces: 2
|
|
||||||
m_PVREnvironmentSampleCount: 256
|
|
||||||
m_PVREnvironmentReferencePointCount: 2048
|
|
||||||
m_PVRFilteringMode: 1
|
|
||||||
m_PVRDenoiserTypeDirect: 1
|
|
||||||
m_PVRDenoiserTypeIndirect: 1
|
|
||||||
m_PVRDenoiserTypeAO: 1
|
|
||||||
m_PVRFilterTypeDirect: 0
|
|
||||||
m_PVRFilterTypeIndirect: 0
|
|
||||||
m_PVRFilterTypeAO: 0
|
|
||||||
m_PVREnvironmentMIS: 1
|
|
||||||
m_PVRCulling: 1
|
|
||||||
m_PVRFilteringGaussRadiusDirect: 1
|
|
||||||
m_PVRFilteringGaussRadiusIndirect: 1
|
|
||||||
m_PVRFilteringGaussRadiusAO: 1
|
|
||||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
|
||||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
|
||||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
|
||||||
m_ExportTrainingData: 0
|
|
||||||
m_TrainingDataDestination: TrainingData
|
|
||||||
m_LightProbeSampleCountMultiplier: 4
|
|
||||||
m_LightingDataAsset: {fileID: 20201, guid: 0000000000000000f000000000000000, type: 0}
|
|
||||||
m_LightingSettings: {fileID: 0}
|
|
||||||
--- !u!196 &4
|
|
||||||
NavMeshSettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_BuildSettings:
|
|
||||||
serializedVersion: 3
|
|
||||||
agentTypeID: 0
|
|
||||||
agentRadius: 0.5
|
|
||||||
agentHeight: 2
|
|
||||||
agentSlope: 45
|
|
||||||
agentClimb: 0.4
|
|
||||||
ledgeDropHeight: 0
|
|
||||||
maxJumpAcrossDistance: 0
|
|
||||||
minRegionArea: 2
|
|
||||||
manualCellSize: 0
|
|
||||||
cellSize: 0.16666667
|
|
||||||
manualTileSize: 0
|
|
||||||
tileSize: 256
|
|
||||||
buildHeightMesh: 0
|
|
||||||
maxJobWorkers: 0
|
|
||||||
preserveTilesOutsideBounds: 0
|
|
||||||
debug:
|
|
||||||
m_Flags: 0
|
|
||||||
m_NavMeshData: {fileID: 0}
|
|
||||||
--- !u!1 &416002693
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 416002697}
|
|
||||||
- component: {fileID: 416002696}
|
|
||||||
- component: {fileID: 416002695}
|
|
||||||
- component: {fileID: 416002694}
|
|
||||||
- component: {fileID: 416002698}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: ExportObjectWithScript
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!65 &416002694
|
|
||||||
BoxCollider:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 416002693}
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_IncludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_ExcludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_LayerOverridePriority: 0
|
|
||||||
m_IsTrigger: 0
|
|
||||||
m_ProvidesContacts: 0
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 3
|
|
||||||
m_Size: {x: 1, y: 1, z: 1}
|
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!23 &416002695
|
|
||||||
MeshRenderer:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 416002693}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_CastShadows: 1
|
|
||||||
m_ReceiveShadows: 1
|
|
||||||
m_DynamicOccludee: 1
|
|
||||||
m_StaticShadowCaster: 0
|
|
||||||
m_MotionVectors: 1
|
|
||||||
m_LightProbeUsage: 1
|
|
||||||
m_ReflectionProbeUsage: 1
|
|
||||||
m_RayTracingMode: 2
|
|
||||||
m_RayTraceProcedural: 0
|
|
||||||
m_RayTracingAccelStructBuildFlagsOverride: 0
|
|
||||||
m_RayTracingAccelStructBuildFlags: 1
|
|
||||||
m_SmallMeshCulling: 1
|
|
||||||
m_RenderingLayerMask: 1
|
|
||||||
m_RendererPriority: 0
|
|
||||||
m_Materials:
|
|
||||||
- {fileID: 2100000, guid: ef90866ae3c8e3241995606c20a6f335, 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!33 &416002696
|
|
||||||
MeshFilter:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 416002693}
|
|
||||||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
--- !u!4 &416002697
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 416002693}
|
|
||||||
serializedVersion: 2
|
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 107.39}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_ConstrainProportionsScale: 0
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 0}
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!114 &416002698
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 416002693}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: bea0f31a495202580ac77bd9fd6e99f2, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
bitDepth: 8
|
|
||||||
luaFile: {fileID: 271950057456261835, guid: 2080a81a20451b74bb4fed47cde1eb64, type: 3}
|
|
||||||
previewNormals: 0
|
|
||||||
normalPreviewLength: 0.5
|
|
||||||
--- !u!1 &512214764
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 512214766}
|
|
||||||
- component: {fileID: 512214765}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: SceneExporter
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!114 &512214765
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 512214764}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: ab5195ad94fd173cfb6d48ee06eaf245, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
GTEScaling: 100
|
|
||||||
--- !u!4 &512214766
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 512214764}
|
|
||||||
serializedVersion: 2
|
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_ConstrainProportionsScale: 0
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 0}
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!1 &706636693
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 706636697}
|
|
||||||
- component: {fileID: 706636696}
|
|
||||||
- component: {fileID: 706636695}
|
|
||||||
- component: {fileID: 706636694}
|
|
||||||
- component: {fileID: 706636698}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: ExportObject
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!65 &706636694
|
|
||||||
BoxCollider:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 706636693}
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_IncludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_ExcludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_LayerOverridePriority: 0
|
|
||||||
m_IsTrigger: 0
|
|
||||||
m_ProvidesContacts: 0
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 3
|
|
||||||
m_Size: {x: 1, y: 1, z: 1}
|
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!23 &706636695
|
|
||||||
MeshRenderer:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 706636693}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_CastShadows: 1
|
|
||||||
m_ReceiveShadows: 1
|
|
||||||
m_DynamicOccludee: 1
|
|
||||||
m_StaticShadowCaster: 0
|
|
||||||
m_MotionVectors: 1
|
|
||||||
m_LightProbeUsage: 1
|
|
||||||
m_ReflectionProbeUsage: 1
|
|
||||||
m_RayTracingMode: 2
|
|
||||||
m_RayTraceProcedural: 0
|
|
||||||
m_RayTracingAccelStructBuildFlagsOverride: 0
|
|
||||||
m_RayTracingAccelStructBuildFlags: 1
|
|
||||||
m_SmallMeshCulling: 1
|
|
||||||
m_RenderingLayerMask: 1
|
|
||||||
m_RendererPriority: 0
|
|
||||||
m_Materials:
|
|
||||||
- {fileID: 2100000, guid: ef90866ae3c8e3241995606c20a6f335, 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!33 &706636696
|
|
||||||
MeshFilter:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 706636693}
|
|
||||||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
--- !u!4 &706636697
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 706636693}
|
|
||||||
serializedVersion: 2
|
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 101.463}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_ConstrainProportionsScale: 0
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 0}
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!114 &706636698
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 706636693}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: bea0f31a495202580ac77bd9fd6e99f2, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
bitDepth: 8
|
|
||||||
luaFile: {fileID: 0}
|
|
||||||
previewNormals: 0
|
|
||||||
normalPreviewLength: 0.5
|
|
||||||
--- !u!1 &728093073
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 728093076}
|
|
||||||
- component: {fileID: 728093075}
|
|
||||||
- component: {fileID: 728093074}
|
|
||||||
- component: {fileID: 728093077}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: Main Camera
|
|
||||||
m_TagString: MainCamera
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!81 &728093074
|
|
||||||
AudioListener:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 728093073}
|
|
||||||
m_Enabled: 1
|
|
||||||
--- !u!20 &728093075
|
|
||||||
Camera:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 728093073}
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 2
|
|
||||||
m_ClearFlags: 1
|
|
||||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
|
||||||
m_projectionMatrixMode: 1
|
|
||||||
m_GateFitMode: 2
|
|
||||||
m_FOVAxisMode: 0
|
|
||||||
m_Iso: 200
|
|
||||||
m_ShutterSpeed: 0.005
|
|
||||||
m_Aperture: 16
|
|
||||||
m_FocusDistance: 10
|
|
||||||
m_FocalLength: 50
|
|
||||||
m_BladeCount: 5
|
|
||||||
m_Curvature: {x: 2, y: 11}
|
|
||||||
m_BarrelClipping: 0.25
|
|
||||||
m_Anamorphism: 0
|
|
||||||
m_SensorSize: {x: 36, y: 24}
|
|
||||||
m_LensShift: {x: 0, y: 0}
|
|
||||||
m_NormalizedViewPortRect:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 0
|
|
||||||
y: 0
|
|
||||||
width: 1
|
|
||||||
height: 1
|
|
||||||
near clip plane: 0.3
|
|
||||||
far clip plane: 1000
|
|
||||||
field of view: 60
|
|
||||||
orthographic: 0
|
|
||||||
orthographic size: 5
|
|
||||||
m_Depth: -1
|
|
||||||
m_CullingMask:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 4294967295
|
|
||||||
m_RenderingPath: -1
|
|
||||||
m_TargetTexture: {fileID: 0}
|
|
||||||
m_TargetDisplay: 0
|
|
||||||
m_TargetEye: 3
|
|
||||||
m_HDR: 1
|
|
||||||
m_AllowMSAA: 1
|
|
||||||
m_AllowDynamicResolution: 0
|
|
||||||
m_ForceIntoRT: 0
|
|
||||||
m_OcclusionCulling: 1
|
|
||||||
m_StereoConvergence: 10
|
|
||||||
m_StereoSeparation: 0.022
|
|
||||||
--- !u!4 &728093076
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 728093073}
|
|
||||||
serializedVersion: 2
|
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_LocalPosition: {x: 0, y: 1, z: -10}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_ConstrainProportionsScale: 0
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 0}
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!114 &728093077
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 728093073}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_RenderShadows: 1
|
|
||||||
m_RequiresDepthTextureOption: 2
|
|
||||||
m_RequiresOpaqueTextureOption: 2
|
|
||||||
m_CameraType: 0
|
|
||||||
m_Cameras: []
|
|
||||||
m_RendererIndex: -1
|
|
||||||
m_VolumeLayerMask:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 1
|
|
||||||
m_VolumeTrigger: {fileID: 0}
|
|
||||||
m_VolumeFrameworkUpdateModeOption: 2
|
|
||||||
m_RenderPostProcessing: 0
|
|
||||||
m_Antialiasing: 0
|
|
||||||
m_AntialiasingQuality: 2
|
|
||||||
m_StopNaN: 0
|
|
||||||
m_Dithering: 0
|
|
||||||
m_ClearDepth: 1
|
|
||||||
m_AllowXRRendering: 1
|
|
||||||
m_AllowHDROutput: 1
|
|
||||||
m_UseScreenCoordOverride: 0
|
|
||||||
m_ScreenSizeOverride: {x: 0, y: 0, z: 0, w: 0}
|
|
||||||
m_ScreenCoordScaleBias: {x: 0, y: 0, z: 0, w: 0}
|
|
||||||
m_RequiresDepthTexture: 0
|
|
||||||
m_RequiresColorTexture: 0
|
|
||||||
m_Version: 2
|
|
||||||
m_TaaSettings:
|
|
||||||
m_Quality: 3
|
|
||||||
m_FrameInfluence: 0.1
|
|
||||||
m_JitterScale: 1
|
|
||||||
m_MipBias: 0
|
|
||||||
m_VarianceClampScale: 0.9
|
|
||||||
m_ContrastAdaptiveSharpening: 0
|
|
||||||
--- !u!1 &1570671553
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 1570671555}
|
|
||||||
- component: {fileID: 1570671554}
|
|
||||||
- component: {fileID: 1570671556}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: Directional Light
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!108 &1570671554
|
|
||||||
Light:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1570671553}
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 11
|
|
||||||
m_Type: 1
|
|
||||||
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
|
|
||||||
m_Intensity: 1
|
|
||||||
m_Range: 10
|
|
||||||
m_SpotAngle: 30
|
|
||||||
m_InnerSpotAngle: 21.80208
|
|
||||||
m_CookieSize: 10
|
|
||||||
m_Shadows:
|
|
||||||
m_Type: 2
|
|
||||||
m_Resolution: -1
|
|
||||||
m_CustomResolution: -1
|
|
||||||
m_Strength: 1
|
|
||||||
m_Bias: 0.05
|
|
||||||
m_NormalBias: 0.4
|
|
||||||
m_NearPlane: 0.2
|
|
||||||
m_CullingMatrixOverride:
|
|
||||||
e00: 1
|
|
||||||
e01: 0
|
|
||||||
e02: 0
|
|
||||||
e03: 0
|
|
||||||
e10: 0
|
|
||||||
e11: 1
|
|
||||||
e12: 0
|
|
||||||
e13: 0
|
|
||||||
e20: 0
|
|
||||||
e21: 0
|
|
||||||
e22: 1
|
|
||||||
e23: 0
|
|
||||||
e30: 0
|
|
||||||
e31: 0
|
|
||||||
e32: 0
|
|
||||||
e33: 1
|
|
||||||
m_UseCullingMatrixOverride: 0
|
|
||||||
m_Cookie: {fileID: 0}
|
|
||||||
m_DrawHalo: 0
|
|
||||||
m_Flare: {fileID: 0}
|
|
||||||
m_RenderMode: 0
|
|
||||||
m_CullingMask:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 4294967295
|
|
||||||
m_RenderingLayerMask: 1
|
|
||||||
m_Lightmapping: 4
|
|
||||||
m_LightShadowCasterMode: 0
|
|
||||||
m_AreaSize: {x: 1, y: 1}
|
|
||||||
m_BounceIntensity: 1
|
|
||||||
m_ColorTemperature: 6570
|
|
||||||
m_UseColorTemperature: 0
|
|
||||||
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
|
|
||||||
m_UseBoundingSphereOverride: 0
|
|
||||||
m_UseViewFrustumForShadowCasterCull: 1
|
|
||||||
m_ForceVisible: 0
|
|
||||||
m_ShadowRadius: 0
|
|
||||||
m_ShadowAngle: 0
|
|
||||||
m_LightUnit: 1
|
|
||||||
m_LuxAtDistance: 1
|
|
||||||
m_EnableSpotReflector: 1
|
|
||||||
--- !u!4 &1570671555
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1570671553}
|
|
||||||
serializedVersion: 2
|
|
||||||
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
|
|
||||||
m_LocalPosition: {x: 0, y: 3, z: 0}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_ConstrainProportionsScale: 0
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 0}
|
|
||||||
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
|
|
||||||
--- !u!114 &1570671556
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1570671553}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 474bcb49853aa07438625e644c072ee6, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_Version: 3
|
|
||||||
m_UsePipelineSettings: 1
|
|
||||||
m_AdditionalLightsShadowResolutionTier: 2
|
|
||||||
m_LightLayerMask: 1
|
|
||||||
m_RenderingLayers: 1
|
|
||||||
m_CustomShadowLayers: 0
|
|
||||||
m_ShadowLayerMask: 1
|
|
||||||
m_ShadowRenderingLayers: 1
|
|
||||||
m_LightCookieSize: {x: 1, y: 1}
|
|
||||||
m_LightCookieOffset: {x: 0, y: 0}
|
|
||||||
m_SoftShadowQuality: 0
|
|
||||||
--- !u!1660057539 &9223372036854775807
|
|
||||||
SceneRoots:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_Roots:
|
|
||||||
- {fileID: 728093076}
|
|
||||||
- {fileID: 1570671555}
|
|
||||||
- {fileID: 512214766}
|
|
||||||
- {fileID: 706636697}
|
|
||||||
- {fileID: 416002697}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: dbf5265ad7d363446800065929646d36
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
||||||
@@ -10,32 +10,24 @@ All numeric values are stored in little‐endian format. All offsets are counted
|
|||||||
| ------ | ---- | ------ | ----------------------------------- |
|
| ------ | ---- | ------ | ----------------------------------- |
|
||||||
| 0x00 | 2 | char | `'SP'` – File magic |
|
| 0x00 | 2 | char | `'SP'` – File magic |
|
||||||
| 0x02 | 2 | uint16 | Version number |
|
| 0x02 | 2 | uint16 | Version number |
|
||||||
| 0x04 | 2 | uint16 | Number of Lua Files |
|
| 0x04 | 2 | uint16 | Number of GameObjects |
|
||||||
| 0x06 | 2 | uint16 | Number of GameObjects |
|
| 0x06 | 2 | uint16 | Number of Navmeshes |
|
||||||
| 0x08 | 2 | uint16 | Number of Navmeshes |
|
| 0x08 | 2 | uint16 | Number of Texture Atlases |
|
||||||
| 0x0A | 2 | uint16 | Number of Texture Atlases |
|
| 0x0A | 2 | uint16 | Number of CLUTs |
|
||||||
| 0x0C | 2 | uint16 | Number of CLUTs |
|
| 0x0C | 2 | uint16 | Player Start X |
|
||||||
| 0x0E | 2 | uint16 | Player Start X (Fixed-point) |
|
| 0x0E | 2 | uint16 | Player Start Y |
|
||||||
| 0x10 | 2 | uint16 | Player Start Y (Fixed-point) |
|
| 0x10 | 2 | uint16 | Player Start Z |
|
||||||
| 0x12 | 2 | uint16 | Player Start Z (Fixed-point) |
|
| 0x12 | 2 | uint16 | Player Rotation X |
|
||||||
| 0x14 | 2 | uint16 | Player Rotation X (Fixed-point) |
|
| 0x14 | 2 | uint16 | Player Rotation Y |
|
||||||
| 0x16 | 2 | uint16 | Player Rotation Y (Fixed-point) |
|
| 0x16 | 2 | uint16 | Player Rotation Z |
|
||||||
| 0x18 | 2 | uint16 | Player Rotation Z (Fixed-point) |
|
| 0x18 | 2 | uint16 | Player Height |
|
||||||
| 0x1A | 2 | uint16 | Player Height (Fixed-point) |
|
| 0x1A | 2 | uint16 | Reserved (always 0) |
|
||||||
| 0x1C | 4 | uint32 | Reserved (always 0) |
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 2. Metadata Section
|
## 2. Metadata Section
|
||||||
|
|
||||||
### 2.1 Lua File Descriptors (8 bytes each)
|
### 2.1 GameObject Descriptors (56 bytes each)
|
||||||
|
|
||||||
| Offset (per entry) | Size | Type | Description |
|
|
||||||
| ------------------ | ---- | ------ | --------------------------------- |
|
|
||||||
| 0x00 | 4 | uint32 | Lua File Data Offset |
|
|
||||||
| 0x04 | 4 | uint32 | Lua File Size |
|
|
||||||
|
|
||||||
### 2.2 GameObject Descriptors (56 bytes each)
|
|
||||||
|
|
||||||
| Offset (per entry) | Size | Type | Description |
|
| Offset (per entry) | Size | Type | Description |
|
||||||
| ------------------ | ---- | -------- | --------------------------------- |
|
| ------------------ | ---- | -------- | --------------------------------- |
|
||||||
@@ -45,17 +37,21 @@ All numeric values are stored in little‐endian format. All offsets are counted
|
|||||||
| 0x0C | 4 | int32 | Z position (Fixed-point) |
|
| 0x0C | 4 | int32 | Z position (Fixed-point) |
|
||||||
| 0x10 | 36 | int32[9] | 3×3 Rotation Matrix (Fixed-point) |
|
| 0x10 | 36 | int32[9] | 3×3 Rotation Matrix (Fixed-point) |
|
||||||
| 0x34 | 2 | uint16 | Triangle count |
|
| 0x34 | 2 | uint16 | Triangle count |
|
||||||
| 0x36 | 2 | int16 | Lua File Index (-1 if none) |
|
| 0x36 | 2 | int16 | Padding |
|
||||||
|
|
||||||
### 2.3 Navmesh Descriptors (8 bytes each)
|
> Mesh data for each GameObject is located at `meshDataOffset`.
|
||||||
|
|
||||||
|
### 2.2 Navmesh Descriptors (8 bytes each)
|
||||||
|
|
||||||
| Offset (per entry) | Size | Type | Description |
|
| Offset (per entry) | Size | Type | Description |
|
||||||
| ------------------ | ---- | ------ | --------------------------------- |
|
| ------------------ | ---- | ------ | --------------------------------- |
|
||||||
| 0x00 | 4 | uint32 | Navmesh Data Offset |
|
| 0x00 | 4 | uint32 | Navmesh Data Offset |
|
||||||
| 0x04 | 2 | uint16 | Triangle count |
|
| 0x04 | 2 | int16 | Triangle count |
|
||||||
| 0x06 | 2 | uint16 | Padding |
|
| 0x06 | 2 | int16 | Padding |
|
||||||
|
|
||||||
### 2.4 Texture Atlas Descriptors (12 bytes each)
|
> Each triangle in a navmesh is defined by 3 `int16` vertices (6 bytes per vertex).
|
||||||
|
|
||||||
|
### 2.3 Texture Atlas Descriptors (12 bytes each)
|
||||||
|
|
||||||
| Offset (per entry) | Size | Type | Description |
|
| Offset (per entry) | Size | Type | Description |
|
||||||
| ------------------ | ---- | ------ | -------------------------------- |
|
| ------------------ | ---- | ------ | -------------------------------- |
|
||||||
@@ -65,7 +61,9 @@ All numeric values are stored in little‐endian format. All offsets are counted
|
|||||||
| 0x08 | 2 | uint16 | Atlas Position X (VRAM origin) |
|
| 0x08 | 2 | uint16 | Atlas Position X (VRAM origin) |
|
||||||
| 0x0A | 2 | uint16 | Atlas Position Y (VRAM origin) |
|
| 0x0A | 2 | uint16 | Atlas Position Y (VRAM origin) |
|
||||||
|
|
||||||
### 2.5 CLUT Descriptors (12 bytes each)
|
> Pixel data is stored as `uint16[width * height]`.
|
||||||
|
|
||||||
|
### 2.4 CLUT Descriptors (12 bytes each)
|
||||||
|
|
||||||
| Offset (per entry) | Size | Type | Description |
|
| Offset (per entry) | Size | Type | Description |
|
||||||
| ------------------ | ---- | ------ | ----------------------------------------------------- |
|
| ------------------ | ---- | ------ | ----------------------------------------------------- |
|
||||||
@@ -75,24 +73,20 @@ All numeric values are stored in little‐endian format. All offsets are counted
|
|||||||
| 0x08 | 2 | uint16 | Palette entry count |
|
| 0x08 | 2 | uint16 | Palette entry count |
|
||||||
| 0x0A | 2 | uint16 | Padding |
|
| 0x0A | 2 | uint16 | Padding |
|
||||||
|
|
||||||
|
> CLUT pixel data is stored as `uint16[length]`.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 3. Data Section
|
## 3. Data Section
|
||||||
|
|
||||||
### 3.1 Lua Data Block
|
### 3.1 Mesh Data Block (per GameObject)
|
||||||
|
|
||||||
Each Lua file is stored as raw bytes. The size of each Lua file is specified in the Lua File Descriptor.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
### 3.2 Mesh Data Block (per GameObject)
|
|
||||||
|
|
||||||
Each mesh is made of triangles:
|
Each mesh is made of triangles:
|
||||||
|
|
||||||
**Triangle Layout (52 bytes):**
|
**Triangle Layout (52 bytes):**
|
||||||
|
|
||||||
| Field | Size | Description |
|
| Field | Size | Description |
|
||||||
| ------------------- |------|-----------------------------------------------------|
|
| -------------------|------|-----------------------------------------------------|
|
||||||
| Vertex v0 | 6 | x, y, z (int16) |
|
| Vertex v0 | 6 | x, y, z (int16) |
|
||||||
| Vertex v1 | 6 | x, y, z (int16) |
|
| Vertex v1 | 6 | x, y, z (int16) |
|
||||||
| Vertex v2 | 6 | x, y, z (int16) |
|
| Vertex v2 | 6 | x, y, z (int16) |
|
||||||
@@ -111,27 +105,20 @@ Each mesh is made of triangles:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### 3.3 Navmesh Data Block
|
### 3.2 Navmesh Data Block
|
||||||
|
|
||||||
Each triangle is 3 vertices (`int16` x/y/z), total 18 bytes per triangle.
|
Each triangle is 3 vertices (`int16` x/y/z), total 18 bytes per triangle.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### 3.4 Texture Atlas Data Block
|
### 3.3 Texture Atlas Data Block
|
||||||
|
|
||||||
Pixel data stored as `uint16[width * height]`.
|
Pixel data stored as `uint16[width * height]`.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### 3.5 CLUT Data Block
|
### 3.4 CLUT Data Block
|
||||||
|
|
||||||
Pixel data stored as `uint16[length]`.
|
Pixel data stored as `uint16[length]`.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Notes
|
|
||||||
|
|
||||||
- All offsets are aligned to 4-byte boundaries.
|
|
||||||
- Fixed-point values are scaled by the `GTEScaling` factor.
|
|
||||||
- Lua file indices in GameObject descriptors are `-1` if no Lua file is associated with the object.
|
|
||||||
- Navmesh triangles are stored as raw vertex data without additional attributes.
|
|
||||||