mirror of
https://github.com/0x7c13/Pal3.Unity.git
synced 2026-11-27 18:08:09 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5944c664f1 | ||
|
|
72f77ff1a7 | ||
|
|
41efbdce8e | ||
|
|
d751d5ea2a | ||
|
|
12ef307fe6 | ||
|
|
bc672d6179 | ||
|
|
fbadf6766e | ||
|
|
41502ddefb | ||
|
|
61ca35b1b8 | ||
|
|
cbb4d5e575 | ||
|
|
b37ac428d2 | ||
|
|
f9d17a9896 |
No files matched your search
@@ -106,7 +106,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: c1cb7e9e120078f43bce4f0b1be547a7, type: 3}
|
||||
m_Name: AmbientOcclusion
|
||||
m_EditorClassIdentifier:
|
||||
active: 1
|
||||
active: 0
|
||||
enabled:
|
||||
overrideState: 1
|
||||
value: 1
|
||||
@@ -1484,7 +1484,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 48a79b01ea5641d4aa6daa2e23605641, type: 3}
|
||||
m_Name: Bloom
|
||||
m_EditorClassIdentifier:
|
||||
active: 1
|
||||
active: 0
|
||||
enabled:
|
||||
overrideState: 1
|
||||
value: 1
|
||||
|
||||
@@ -1,4 +1,67 @@
|
||||
因为当前特效的实现方式使用了第三方插件和素材,所以此文件夹内的所有prefab均添加进了gitignore里。
|
||||
请联系作者了解插件获取方式和特效prefab的获取方式。
|
||||
|
||||
0 => 传送法阵特效
|
||||
0 => 传送法阵特效
|
||||
9 => 茅山道士封印法术特效
|
||||
40 => 单体风咒特效
|
||||
50 => 单体雷咒特效
|
||||
91 => 封印法术特效
|
||||
157 => 角色传送出现特效
|
||||
164 => 南宫煌变身狼形态时的特效
|
||||
170 => 王蓬絮变身特效
|
||||
171 => 人物施法特效
|
||||
172 => 人物受到法术作用时候的特效
|
||||
173 => 人物受到法术作用时候的特效
|
||||
174 => 治疗特效
|
||||
175 => 茅山术士打乱三杯盏特效
|
||||
176 => 南宫煌打乱三杯盏特效
|
||||
177 => 角色传送消失时的特效
|
||||
178 => 南宫煌使关桃子的笼子消失的特效
|
||||
179 => 南宫煌变出法桌的特效
|
||||
181 => 南宫煌变出小东西的特效
|
||||
182 => 南宫煌变出大东西的特效
|
||||
186 => 大石块砸下后的尘土特效
|
||||
189 => 地脉石门封印打开时的特效
|
||||
198 => 南宫煌变出东西的特效
|
||||
201 => 魁妖变小特效
|
||||
205 => 照妖镜发光的特效
|
||||
209 => 五灵轮特效
|
||||
211 => 洒金笺特效
|
||||
230 => 重楼施法消灭怪物的特效
|
||||
254 => 重楼传送特效
|
||||
257 => 隔空取物特效
|
||||
258 => 迴魂传送特效
|
||||
259 => 大型传送法施法前奏特效
|
||||
260 => 大型传送法阵特效收尾
|
||||
261 => 大型传送法阵特效开始
|
||||
281 => 角色传送消失时的特效
|
||||
282 => 雷咒特效
|
||||
283 => 物品消失时的特效
|
||||
285 => 南宫煌施法特效
|
||||
287 => 土灵珠特效
|
||||
289 => 血魂姬施法特效
|
||||
290 => 回复法阵特效
|
||||
292 => 五灵轮发光特效
|
||||
299 => 重楼传送众人特效
|
||||
314 => 倾国银弹波特效
|
||||
315 => 南宫煌切换为人形态特效
|
||||
316 => 魔物出现特效
|
||||
318 => 千凝魔艮特效
|
||||
320 => 幽娘变身特效
|
||||
322 => 幽娘吸收怨气特效
|
||||
323 => 幽娘收集怨气特效
|
||||
325 => 陆北亭变身特效
|
||||
328 => 风雅颂开心的特效
|
||||
333 => 感月出现特效
|
||||
355 => 王蓬絮治疗特效
|
||||
359 => 蝎魃消失特效
|
||||
360 => 星璇给南宫煌输入内力时的特效
|
||||
367 => 五毒珠治疗特效
|
||||
388 => 迴魂传送特效
|
||||
389 => 迴魂传送特效
|
||||
397 => 燎日变身特效
|
||||
401 => 魔尊帮星璇灵肉合一的特效
|
||||
404 => 思堂消失特效
|
||||
408 => 星璇燎日变换时特效
|
||||
424 => 王蓬絮对南宫煌施法特效
|
||||
|
||||
@@ -362,6 +362,9 @@ namespace Core.DataReader.Cvd
|
||||
Vector3 normal = GameBoxInterpreter.ToUnityNormal(reader.ReadVector3());
|
||||
Vector3 position = GameBoxInterpreter.CvdPositionToUnityPosition(reader.ReadVector3());
|
||||
|
||||
// Quick fix for the missing/wrong normals
|
||||
if (normal == Vector3.zero) normal = Vector3.up;
|
||||
|
||||
vertices[j] = new CvdVertex()
|
||||
{
|
||||
Normal = normal,
|
||||
@@ -455,10 +458,9 @@ namespace Core.DataReader.Cvd
|
||||
}
|
||||
|
||||
var frameVertices = new CvdVertex[allFrameVertices.Length][];
|
||||
List<int> triangles;
|
||||
List<int> indexBuffer;
|
||||
|
||||
(triangles, indexBuffer) = CalculateTriangles(indices);
|
||||
(List<int> triangles, List<int> indexBuffer) = CalculateTriangles(indices);
|
||||
|
||||
GameBoxInterpreter.ToUnityTriangles(triangles);
|
||||
|
||||
for (var i = 0; i < allFrameVertices.Length; i++)
|
||||
@@ -491,7 +493,7 @@ namespace Core.DataReader.Cvd
|
||||
{
|
||||
var indexBuffer = new List<int>();
|
||||
var triangles = new List<int>();
|
||||
var indexMap = new Dictionary<int, int>();
|
||||
var index = 0;
|
||||
|
||||
for (var j = 0; j < allIndices.Length; j++)
|
||||
{
|
||||
@@ -504,17 +506,8 @@ namespace Core.DataReader.Cvd
|
||||
|
||||
for (var k = 0; k < 3; k++)
|
||||
{
|
||||
if (indexMap.ContainsKey(indices[k]))
|
||||
{
|
||||
triangles.Add(indexMap[indices[k]]);
|
||||
}
|
||||
else
|
||||
{
|
||||
var index = indexBuffer.Count;
|
||||
indexBuffer.Add(indices[k]);
|
||||
indexMap[indices[k]] = index;
|
||||
triangles.Add(index);
|
||||
}
|
||||
indexBuffer.Add(indices[k]);
|
||||
triangles.Add(index++);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -197,7 +197,7 @@ namespace Core.DataReader.Pol
|
||||
uvs[3][i] = new Vector2(x, y);
|
||||
}
|
||||
|
||||
// Quick fix for the missing normals
|
||||
// Quick fix for the missing/wrong normals
|
||||
if (normals[i] == Vector3.zero) normals[i] = Vector3.up;
|
||||
}
|
||||
|
||||
|
||||
@@ -504,7 +504,7 @@ namespace Pal3.Data
|
||||
|
||||
if (effect == GraphicsEffect.Fire)
|
||||
{
|
||||
var numberOfFrames = EffectConstants.EffectAnimationInfo[effect].NumberOfFrames;
|
||||
var numberOfFrames = EffectConstants.AnimatedFireEffectFrameCount;
|
||||
var textures = new (Texture2D texture, bool hasAlphaChannel)[numberOfFrames];
|
||||
for (var i = 0; i < numberOfFrames; i++)
|
||||
{
|
||||
|
||||
@@ -67,6 +67,9 @@ namespace Pal3.Effect
|
||||
|
||||
#if PAL3
|
||||
if (effectParameter == 275) // 重楼创建的用来禁锢雪见/龙葵的法阵特效
|
||||
#elif PAL3A
|
||||
if (effectParameter == 344) // 重盘古元灵特效
|
||||
#endif
|
||||
{
|
||||
Object vfxPrefab = resourceProvider.GetVfxEffectPrefab((int)effectParameter);
|
||||
if (vfxPrefab != null)
|
||||
@@ -75,7 +78,6 @@ namespace Pal3.Effect
|
||||
_effect.name = "VFX_" + effectParameter;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
|
||||
@@ -53,7 +53,11 @@ namespace Pal3.Effect
|
||||
|
||||
public void Execute(EffectPreLoadCommand command)
|
||||
{
|
||||
// In PAL3A, PreLoad command is always issued right before the effect is played.
|
||||
// So it is pointless to pre-load the effect here for PAL3A.
|
||||
#if PAL3
|
||||
StartCoroutine(_resourceProvider.PreLoadVfxEffectAsync(command.EffectGroupId));
|
||||
#endif
|
||||
}
|
||||
|
||||
public void Execute(EffectSetPositionCommand command)
|
||||
@@ -122,7 +126,7 @@ namespace Pal3.Effect
|
||||
var actorId = effectAttachToActorCommand.ActorId;
|
||||
switch (effectPlayCommand.EffectGroupId)
|
||||
{
|
||||
// 南宫煌形态切换为狼形态特效
|
||||
// 南宫煌切换为狼妖形态特效
|
||||
case 164:
|
||||
{
|
||||
Actor actor = currentScene.GetActor((byte)actorId);
|
||||
@@ -135,7 +139,7 @@ namespace Pal3.Effect
|
||||
}
|
||||
break;
|
||||
}
|
||||
// 南宫煌形态切换为人形态特效
|
||||
// 南宫煌切换为人形态特效
|
||||
case 315:
|
||||
{
|
||||
Actor actor = currentScene.GetActor((byte)actorId);
|
||||
|
||||
@@ -21,6 +21,7 @@ namespace Pal3.Effect
|
||||
private (Texture2D texture, bool hasAlphaChannel)[] _effectTextures = Array.Empty<(Texture2D texture, bool hasAlphaChannel)>();
|
||||
private AnimatedBillboardRenderer _billboardRenderer;
|
||||
private PolyModelRenderer _sceneObjectRenderer;
|
||||
private Material _spriteMaterial;
|
||||
|
||||
public void Init(GameResourceProvider resourceProvider, uint effectParameter)
|
||||
{
|
||||
@@ -51,9 +52,7 @@ namespace Pal3.Effect
|
||||
new Vector2(0.5f, 0f));
|
||||
sprites[i] = sprite;
|
||||
}
|
||||
|
||||
var fps = EffectConstants.EffectAnimationInfo[GraphicsEffect.Fire].Fps;
|
||||
|
||||
|
||||
Vector3 parentPosition = transform.position;
|
||||
|
||||
var yPosition = parentPosition.y;
|
||||
@@ -71,13 +70,14 @@ namespace Pal3.Effect
|
||||
parentPosition.z);
|
||||
|
||||
_billboardRenderer = EffectGameObject.AddComponent<AnimatedBillboardRenderer>();
|
||||
Material spriteMaterial = _effectTextures[0].hasAlphaChannel
|
||||
_spriteMaterial = _effectTextures[0].hasAlphaChannel
|
||||
? null
|
||||
: resourceProvider.GetMaterialFactory().CreateOpaqueSpriteMaterial();
|
||||
|
||||
StartCoroutine(_billboardRenderer.PlaySpriteAnimation(sprites,
|
||||
fps,
|
||||
EffectConstants.AnimatedFireEffectFrameRate,
|
||||
-1,
|
||||
spriteMaterial));
|
||||
_spriteMaterial));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,6 +97,11 @@ namespace Pal3.Effect
|
||||
{
|
||||
Destroy(EffectGameObject);
|
||||
}
|
||||
|
||||
if (_spriteMaterial != null)
|
||||
{
|
||||
Destroy(_spriteMaterial);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -42,7 +42,7 @@ namespace Pal3.Effect.PostProcessing
|
||||
#endif
|
||||
|
||||
_ambientOcclusion = _postProcessVolume.profile.GetSetting<AmbientOcclusion>();
|
||||
#if RTX_ON
|
||||
#if RTX_ON && !UNITY_ANDROID // AO not working well with OpenGL on Android
|
||||
_ambientOcclusion.active = Utility.IsDesktopDevice(); // Enable AmbientOcclusion for better visual fidelity on desktop devices
|
||||
#else
|
||||
_ambientOcclusion.active = false; // Pointless when lighting is off
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
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: c46f07b5ed07e4e92aa78254188d3d10, type: 3}
|
||||
m_Name: InputSystem.inputsettings
|
||||
m_EditorClassIdentifier:
|
||||
m_SupportedDevices: []
|
||||
m_UpdateMode: 1
|
||||
m_MaxEventBytesPerUpdate: 5242880
|
||||
m_MaxQueuedEventsPerUpdate: 1000
|
||||
m_CompensateForScreenOrientation: 1
|
||||
m_BackgroundBehavior: 0
|
||||
m_EditorInputBehaviorInPlayMode: 0
|
||||
m_DefaultDeadzoneMin: 0.15
|
||||
m_DefaultDeadzoneMax: 0.975
|
||||
m_DefaultButtonPressPoint: 0.5
|
||||
m_ButtonReleaseThreshold: 0.75
|
||||
m_DefaultTapTime: 0.2
|
||||
m_DefaultSlowTapTime: 0.5
|
||||
m_DefaultHoldTime: 0.4
|
||||
m_TapRadius: 5
|
||||
m_MultiTapDelayTime: 0.75
|
||||
m_DisableRedundantEventsMerging: 0
|
||||
m_iOSSettings:
|
||||
m_MotionUsage:
|
||||
m_Enabled: 0
|
||||
m_Description:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d36b5fde9d421c74cba9317a109723a2
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -290,7 +290,7 @@ namespace Pal3.Input
|
||||
""id"": ""0968cb64-8274-4260-9c62-9cba759ca4ab"",
|
||||
""path"": ""<Gamepad>/leftStick"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""processors"": ""StickDeadzone"",
|
||||
""groups"": """",
|
||||
""action"": ""Movement"",
|
||||
""isComposite"": false,
|
||||
@@ -301,7 +301,7 @@ namespace Pal3.Input
|
||||
""id"": ""0eba8dc6-2c21-41f6-8318-572955eeb71a"",
|
||||
""path"": ""<Joystick>/stick"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""processors"": ""StickDeadzone"",
|
||||
""groups"": """",
|
||||
""action"": ""Movement"",
|
||||
""isComposite"": false,
|
||||
@@ -356,7 +356,7 @@ namespace Pal3.Input
|
||||
""id"": ""795b72b8-65f9-49bb-a352-a15e10c7b261"",
|
||||
""path"": ""<Gamepad>/rightStick/right"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""processors"": ""AxisDeadzone"",
|
||||
""groups"": """",
|
||||
""action"": ""RotateCameraClockwise"",
|
||||
""isComposite"": false,
|
||||
@@ -378,7 +378,7 @@ namespace Pal3.Input
|
||||
""id"": ""9c8591f6-45f7-4061-9ce9-3cf253dece26"",
|
||||
""path"": ""<Gamepad>/rightStick/left"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""processors"": ""AxisDeadzone"",
|
||||
""groups"": """",
|
||||
""action"": ""RotateCameraCounterClockwise"",
|
||||
""isComposite"": false,
|
||||
|
||||
@@ -266,7 +266,7 @@
|
||||
"id": "0968cb64-8274-4260-9c62-9cba759ca4ab",
|
||||
"path": "<Gamepad>/leftStick",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"processors": "StickDeadzone",
|
||||
"groups": "",
|
||||
"action": "Movement",
|
||||
"isComposite": false,
|
||||
@@ -277,7 +277,7 @@
|
||||
"id": "0eba8dc6-2c21-41f6-8318-572955eeb71a",
|
||||
"path": "<Joystick>/stick",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"processors": "StickDeadzone",
|
||||
"groups": "",
|
||||
"action": "Movement",
|
||||
"isComposite": false,
|
||||
@@ -332,7 +332,7 @@
|
||||
"id": "795b72b8-65f9-49bb-a352-a15e10c7b261",
|
||||
"path": "<Gamepad>/rightStick/right",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"processors": "AxisDeadzone",
|
||||
"groups": "",
|
||||
"action": "RotateCameraClockwise",
|
||||
"isComposite": false,
|
||||
@@ -354,7 +354,7 @@
|
||||
"id": "9c8591f6-45f7-4061-9ce9-3cf253dece26",
|
||||
"path": "<Gamepad>/rightStick/left",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"processors": "AxisDeadzone",
|
||||
"groups": "",
|
||||
"action": "RotateCameraCounterClockwise",
|
||||
"isComposite": false,
|
||||
|
||||
@@ -32,6 +32,10 @@ namespace Pal3.MetaData
|
||||
|
||||
public static class EffectConstants
|
||||
{
|
||||
public const int AnimatedFireEffectFrameCount = 16;
|
||||
|
||||
public const int AnimatedFireEffectFrameRate = 10;
|
||||
|
||||
private static readonly char PathSeparator = CpkConstants.DirectorySeparator;
|
||||
|
||||
private static readonly string EffectScnRelativePath =
|
||||
@@ -82,16 +86,7 @@ namespace Pal3.MetaData
|
||||
"", 1f, 0.6f) },
|
||||
};
|
||||
#endif
|
||||
|
||||
public static readonly Dictionary<GraphicsEffect, (int NumberOfFrames, int Fps)> EffectAnimationInfo = new()
|
||||
{
|
||||
{GraphicsEffect.PoisonFog, new (0, 0) },
|
||||
{GraphicsEffect.Portal, new (0, 0)},
|
||||
{GraphicsEffect.SavePoint, new (0, 0)},
|
||||
{GraphicsEffect.Fire, new (16, 10)},
|
||||
{GraphicsEffect.Combat, new (0, 0)},
|
||||
};
|
||||
|
||||
|
||||
#if PAL3
|
||||
// Effect group id to sfx mapping
|
||||
public static readonly Dictionary<int, string> EffectSfxInfo = new()
|
||||
@@ -115,6 +110,40 @@ namespace Pal3.MetaData
|
||||
#elif PAL3A
|
||||
public static readonly Dictionary<int, string> EffectSfxInfo = new()
|
||||
{
|
||||
{ 91, "WD156" },
|
||||
{ 170, "WD155" },
|
||||
{ 171, "WD163" },
|
||||
{ 172, "WD189" },
|
||||
{ 173, "WD189" },
|
||||
{ 174, "WD308" },
|
||||
{ 175, "WD051" },
|
||||
{ 176, "WD051" },
|
||||
{ 177, "WD159" },
|
||||
{ 178, "WD032" },
|
||||
{ 179, "WD497" },
|
||||
{ 181, "WD018" },
|
||||
{ 182, "WD018" },
|
||||
{ 189, "WD035" },
|
||||
{ 198, "WD018" },
|
||||
{ 209, "WD309" },
|
||||
{ 211, "WD002" },
|
||||
{ 230, "WD342" },
|
||||
{ 254, "WD163" },
|
||||
{ 257, "WD008" },
|
||||
{ 258, "WD165" },
|
||||
{ 259, "WD163" },
|
||||
{ 281, "WD159" },
|
||||
{ 283, "WD018" },
|
||||
{ 285, "WD422" },
|
||||
{ 290, "WD418" },
|
||||
{ 299, "WD150" },
|
||||
{ 322, "WD163" },
|
||||
{ 323, "WD189" },
|
||||
{ 328, "WD532" },
|
||||
{ 388, "WD165" },
|
||||
{ 389, "WD165" },
|
||||
{ 397, "WD459" },
|
||||
{ 408, "WD459" },
|
||||
};
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ namespace Pal3.MetaData
|
||||
public static readonly Dictionary<string, Color> MainLightColorInfoGlobal = new()
|
||||
{
|
||||
{ "m02", new Color(10f / 255f, 30f / 255f, 60f / 255f) }, // 地脉门户
|
||||
{ "m15", new Color(80f / 255f, 130f / 255f, 200f / 255f) }, // 月光城
|
||||
};
|
||||
#endif
|
||||
|
||||
@@ -52,6 +53,7 @@ namespace Pal3.MetaData
|
||||
{
|
||||
{ "q01_yn01a_1", Quaternion.Euler(130f, 40f, 0f) }, // 重楼当剑
|
||||
{ "q07_q07a_1", Quaternion.Euler(145f, 50f, 0f) }, // 安宁村黄昏
|
||||
{ "m06_1_-1", Quaternion.Euler(30f, -50f, 0f) }, // 蓬莱码头
|
||||
};
|
||||
#elif PAL3A
|
||||
public static readonly Dictionary<string, Quaternion> MainLightRotationInfo = new()
|
||||
|
||||
@@ -163,12 +163,6 @@ namespace Pal3.Renderer
|
||||
UvBuffer = new Vector2[meshSection.FrameVertices[frameIndex].Length],
|
||||
};
|
||||
|
||||
// Assign normals only once since it won't change during animation
|
||||
for (var j = 0; j < meshDataBuffer.NormalBuffer.Length; j++)
|
||||
{
|
||||
meshDataBuffer.NormalBuffer[j] = meshSection.FrameVertices[frameIndex][j].Normal;
|
||||
}
|
||||
|
||||
UpdateMeshDataBuffer(ref meshDataBuffer,
|
||||
meshSection,
|
||||
frameIndex,
|
||||
@@ -204,6 +198,9 @@ namespace Pal3.Renderer
|
||||
ref materials,
|
||||
true);
|
||||
|
||||
renderMesh.RecalculateNormals();
|
||||
renderMesh.RecalculateTangents();
|
||||
|
||||
nodeMeshes.Item2[i] = new RenderMeshComponent
|
||||
{
|
||||
Mesh = renderMesh,
|
||||
|
||||
@@ -81,14 +81,13 @@ namespace Pal3.Renderer
|
||||
if (string.IsNullOrEmpty(textureName)) continue;
|
||||
if (textureCache.ContainsKey(textureName)) continue;
|
||||
#if RTX_ON
|
||||
// not need to load pre-baked shadow texture for lighting enabled scene
|
||||
Texture2D texture2D = textureName.StartsWith("^l") ? // all shadow texture name starts with ^l
|
||||
Texture2D.blackTexture :
|
||||
textureProvider.GetTexture(textureName);
|
||||
// No need to load pre-baked shadow texture for lighting enabled scene
|
||||
// Note: all shadow texture name starts with "^"
|
||||
Texture2D texture2D = textureName.StartsWith("^") ? null : textureProvider.GetTexture(textureName);
|
||||
#else
|
||||
Texture2D texture2D = textureProvider.GetTexture(textureName);
|
||||
#endif
|
||||
if (texture2D != null) textureCache[textureName] = texture2D;
|
||||
textureCache[textureName] = texture2D;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -383,6 +383,11 @@ namespace Pal3.Scene
|
||||
private void ActivateSceneObject(SceneObject sceneObject)
|
||||
{
|
||||
if (_activatedSceneObjects.ContainsKey(sceneObject.Info.Id)) return;
|
||||
|
||||
// TODO: Remove once implemented
|
||||
if (sceneObject.Info.Type is ScnSceneObjectType.Collectable
|
||||
or ScnSceneObjectType.Chest
|
||||
or ScnSceneObjectType.RareChest) return;
|
||||
|
||||
Color tintColor = Color.white;
|
||||
if (IsNightScene())
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace Pal3.UI
|
||||
$"{GameConstants.ContactInfo}\n" +
|
||||
$"Version: Alpha v{Application.version}\n";
|
||||
|
||||
_debugInfoStringFormat = deviceInfo + "Heap size: {0:0.00} MB\n" + "{1:0.} fps";
|
||||
_debugInfoStringFormat = deviceInfo + "Heap size: {0:0.00} MB\n" + "{3:0.} fps ({1}x{2})";
|
||||
|
||||
_fpsCounter = GetComponent<FpsCounter>();
|
||||
|
||||
@@ -76,7 +76,11 @@ namespace Pal3.UI
|
||||
_heapSize = GC.GetTotalMemory(false) / (1024f * 1024f);
|
||||
_heapSizeLastQueryTime = currentTime;
|
||||
}
|
||||
_debugInfo.SetText(_debugInfoStringFormat, _heapSize, Mathf.Ceil(_fpsCounter.GetFps()));
|
||||
_debugInfo.SetText(_debugInfoStringFormat,
|
||||
_heapSize,
|
||||
Screen.width,
|
||||
Screen.height,
|
||||
Mathf.Ceil(_fpsCounter.GetFps()));
|
||||
}
|
||||
|
||||
private IEnumerator AnimateNoteUI()
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace ResourceViewer
|
||||
randomMp3Button.onClick.AddListener(RandMp3);
|
||||
|
||||
DebugLogConsole.AddCommand<string>("Search", "Search files using keyword.", Search);
|
||||
DebugLogConsole.AddCommand<string, bool>("Load", "Load a file to the viewer (.pol or .mv3).", Load);
|
||||
DebugLogConsole.AddCommand<string, bool>("Load", "Load a file to the viewer (.pol, .cvd, .mp3 or .mv3).", Load);
|
||||
#if UNITY_EDITOR
|
||||
DebugLogConsole.AddCommand("DecompileAllSceScripts", "Decompile all .sce scripts into txt format.", DecompileAllSceScripts);
|
||||
DebugLogConsole.AddCommand("ExtractAllCpkArchives", "Extract all .cpk archives into the output directory.", ExtractAllCpkArchives);
|
||||
|
||||
@@ -11,4 +11,5 @@ EditorBuildSettings:
|
||||
- enabled: 1
|
||||
path: Assets/Scenes/Game.unity
|
||||
guid: 72b9fc20ba5844018b72e08c9cf4ec97
|
||||
m_configObjects: {}
|
||||
m_configObjects:
|
||||
com.unity.input.settings: {fileID: 11400000, guid: d36b5fde9d421c74cba9317a109723a2, type: 2}
|
||||
@@ -45,7 +45,58 @@ GraphicsSettings:
|
||||
m_TransparencySortAxis: {x: 0, y: 0, z: 1}
|
||||
m_DefaultRenderingPath: 1
|
||||
m_DefaultMobileRenderingPath: 1
|
||||
m_TierSettings: []
|
||||
m_TierSettings:
|
||||
- serializedVersion: 5
|
||||
m_BuildTarget: 7
|
||||
m_Tier: 2
|
||||
m_Settings:
|
||||
standardShaderQuality: 1
|
||||
renderingPath: 1
|
||||
hdrMode: 2
|
||||
realtimeGICPUUsage: 25
|
||||
useReflectionProbeBoxProjection: 0
|
||||
useReflectionProbeBlending: 0
|
||||
useHDR: 0
|
||||
useDetailNormalMap: 0
|
||||
useCascadedShadowMaps: 1
|
||||
prefer32BitShadowMaps: 0
|
||||
enableLPPV: 0
|
||||
useDitherMaskForAlphaBlendedShadows: 0
|
||||
m_Automatic: 0
|
||||
- serializedVersion: 5
|
||||
m_BuildTarget: 7
|
||||
m_Tier: 1
|
||||
m_Settings:
|
||||
standardShaderQuality: 1
|
||||
renderingPath: 1
|
||||
hdrMode: 2
|
||||
realtimeGICPUUsage: 25
|
||||
useReflectionProbeBoxProjection: 0
|
||||
useReflectionProbeBlending: 0
|
||||
useHDR: 0
|
||||
useDetailNormalMap: 0
|
||||
useCascadedShadowMaps: 0
|
||||
prefer32BitShadowMaps: 0
|
||||
enableLPPV: 0
|
||||
useDitherMaskForAlphaBlendedShadows: 0
|
||||
m_Automatic: 1
|
||||
- serializedVersion: 5
|
||||
m_BuildTarget: 4
|
||||
m_Tier: 2
|
||||
m_Settings:
|
||||
standardShaderQuality: 1
|
||||
renderingPath: 1
|
||||
hdrMode: 2
|
||||
realtimeGICPUUsage: 25
|
||||
useReflectionProbeBoxProjection: 0
|
||||
useReflectionProbeBlending: 0
|
||||
useHDR: 0
|
||||
useDetailNormalMap: 0
|
||||
useCascadedShadowMaps: 1
|
||||
prefer32BitShadowMaps: 0
|
||||
enableLPPV: 0
|
||||
useDitherMaskForAlphaBlendedShadows: 0
|
||||
m_Automatic: 0
|
||||
m_LightmapStripping: 0
|
||||
m_FogStripping: 0
|
||||
m_InstancingStripping: 0
|
||||
|
||||
@@ -134,7 +134,7 @@ PlayerSettings:
|
||||
16:10: 1
|
||||
16:9: 1
|
||||
Others: 1
|
||||
bundleVersion: 0.30
|
||||
bundleVersion: 0.31
|
||||
preloadedAssets: []
|
||||
metroInputSource: 0
|
||||
wsaTransparentSwapchain: 0
|
||||
@@ -579,7 +579,7 @@ PlayerSettings:
|
||||
m_BuildTargetGraphicsAPIs:
|
||||
- m_BuildTarget: AndroidPlayer
|
||||
m_APIs: 0b000000
|
||||
m_Automatic: 1
|
||||
m_Automatic: 0
|
||||
- m_BuildTarget: iOSSupport
|
||||
m_APIs: 10000000
|
||||
m_Automatic: 1
|
||||
|
||||
@@ -152,7 +152,7 @@ QualitySettings:
|
||||
excludedTargetPlatforms: []
|
||||
- serializedVersion: 2
|
||||
name: Very High
|
||||
pixelLightCount: 3
|
||||
pixelLightCount: 2
|
||||
shadows: 2
|
||||
shadowResolution: 2
|
||||
shadowProjection: 1
|
||||
|
||||
Reference in new issue
Block a user