16 Commits
Author SHA1 Message Date
Jiaqi Liu 8ef2c946db Migrate PAL3/PAL3A rendering to URP Forward+ with independent Toon lighting (#90)
* Migrate original rendering and frosted UI to URP Forward+

Port the original materials, fog and screen passes to URP. Capture the finished scene for frosted UI and keep the renderer assets ready for clustered lighting.

* Add standalone Toon lighting and shared model rendering support

Add independent Toon shaders, scene and character lighting, contact shadows and fire controls. Share POL materials, preserve MV3 seams and texture swaps across both styles, and support scene-specific Toon water.

* Skip redundant CVD mesh updates

Reuse unchanged poses and UVs, and recompute Toon normals only when geometry or the linear transform changes.

* Manage game Bloom and screen effect state by camera

Expose a persisted Bloom switch, restore the active style default on reset, and release camera and volume state when the manager is disposed.

* Restore opt-in story VFX loading

Use the existing local VFX resource path for synchronous and asynchronous loading. Keep the preference off by default and document compatible optional assets.

* Save Unity 6.6 and URP project settings

Persist the current graphics, quality, player and shader graph settings plus the URP material upgrade marker.

* Fix Unity 6.6 startup compiler warnings

Use Unity assembly discovery and object lookup APIs, keep PAL3 command reflection independent of UnityEngine, and preserve the runtime GDB dictionaries in JSON exports.

* Use the new Input System as the only input backend

Select Input System Package as the sole backend. Remove the extra scroll-sensitivity reductions in the console and file browser, preserving their previous Both-mode scrolling behavior.

* Preserve two-sided model normals across animation

Recognize coincident MV3 vertices by their complete animation trajectories and skeletal vertices by their bind positions and bone. Separate opposing faces only where a source normal group is shared, preserving UV seams and adjacent single-sided faces.

* Isolate optional VFX lifetimes and private asset builds

Centralize optional prefab loading, persistent attachments, active-effect cleanup and cache invalidation. Runtime toggles hide active effects and restore surviving attachments. Block private VFX and legacy Toon assets in public builds, with an explicit local private-build override.

Release portal attachments on destruction, reject dead parents and prune orphaned persistent attachments.

* Manage camera post-processing, anti-aliasing and menu glass

Give each game camera its own VolumeStack without mutating shared profiles, and restore inherited camera and effect state on disposal. Map the old PPv2 Bloom intensity through its exponential compositing coefficient; this does not establish visual equivalence across pipelines. Share saved and live MSAA handling with ResourceViewer, and make the main menu acrylic background whiter with less scene color showing through.

Restore pipeline settings even after partial initialization or service cleanup failure. Protect the persistent URP asset from ordinary Play Mode saves and restore the two runtime fields across Play exit and script reloads without reverting unrelated edits.

* Tune Toon lighting, water and bounded point-light shadows

Strengthen indoor and outdoor lighting contrast, integrate SSAO and baked shading while retaining character detail, and light transparent water with the shared Toon shader. Expose independent switches and strengths through the console. Support up to four shadowed fires with bounded allocation-free selection, preserve saved preferences, adapt the shadow atlas, and default desktop devices to four shadowed fires.

Report invalid console strengths and shadow budgets without saving rejected values.

* Fix DXT3 alpha decoding that produces foliage stripes

Expand the high alpha nibble into both halves of the output byte. Fully opaque DXT3 texels now decode to 255 in both pixel positions, preventing alternating coverage in the cutout and blended rendering passes. Add editor regressions for opaque RGB/alpha, all sixteen alpha levels in pixel order, and partial blocks with buffer-tail protection.

* Document Unity CI after disabling the Codacy integration
2026-11-12 02:28:17 +08:00
Jiaqi (0x7c13) Liu 59c8223c37 Upgrade to Unity 6000.6.8f1 2026-11-10 23:20:46 +08:00
Jiaqi LiuandClaude Opus 4.8 cfed96a21f Fix Android build: give SimpleFileBrowser AAR a unique namespace (#84)
Unity 6.5 bundles a newer Android Gradle Plugin (Gradle 9.1.0) that
enforces a unique namespace per library module. Both bundled yasirkula
plugins shipped their AAR with the same manifest package
`com.yasirkula.unity`, so `:launcher:processReleaseMainManifest` fails:

    Namespace 'com.yasirkula.unity' is used in multiple modules and/or
    libraries: :IngameDebugConsole:, :SimpleFileBrowser:

This broke both Android builds starting at the Unity 6.5 upgrade
(c946f895), independent of the unity-builder v4->v5 bump.

Change SimpleFileBrowser.aar's AndroidManifest.xml package to
`com.yasirkula.unity.simplefilebrowser` so the two libraries no longer
collide. The AAR has no resources/R class and the bundled Java classes
keep their `com.yasirkula.unity.*` fully-qualified names, so the
C#<->Java bridge is unaffected.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 19:54:56 +08:00
Jiaqi Liu 487fc773fe Upgrade project to Unity 6
Upgrade project to Unity 6
2024-09-14 16:21:12 -07:00
Jiaqi Liu abb147953f Update UnityEditor-DarkMode pkg 2024-04-25 02:38:07 -07:00
Jiaqi Liu dbc4f3747d Update LiberationSans SDF - Fallback.asset 2023-08-12 21:06:15 -07:00
Jiaqi Liu 724a6f767e Supports Traditional Chinese version of the game 2023-08-12 18:19:34 -07:00
Jackie Liu a8bfe5917b Upgrade NugetForUnity and nuget packages 2023-04-10 02:42:27 -07:00
Jackie Liu 86b82feecc Add resolution setting for non-standalone devices 2023-03-31 20:42:23 -07:00
Jackie Liu 31416dd1df UI Code refactoring Part 2 2023-03-30 02:52:19 -07:00
Jackie Liu 10d9cc9eca Translate few Strings into Chinese in SimpleFileBrowser 2023-03-25 19:23:09 -07:00
Jackie Liu f567e548ba Integrate SimpleFileBrowser for game data folder picking 2023-03-20 02:54:15 -07:00
Jackie Liu 9c6d3ea3f2 Code refactoring + PAL3A icon
Code refactoring + PAL3A icon
2022-09-20 18:07:26 -07:00
Jackie Liu a2f9d09cd5 Fix casing issue for Nuget dll
Fix casing issue for Nuget dll
2022-03-20 00:01:49 -07:00
Jackie Liu b9c0175f1c Deprecating blob shadow projector for better perf
Deprecating blob shadow projector for better performance
2022-03-19 02:59:21 -07:00
Jiaqi Liu d3c05ce1c1 Init
Init
2022-02-27 17:26:01 -08:00