GenshinmasterJinHang/Miku-Material-Converter-Blender-to-Unity-
Acerca de
Miku is an open-source material conversion pipeline that translates Blender 5.2 Shader Nodes into editable Unity 6 URP Shader Graph assets. Through its target-neutral MaterialIR 2.0 representation and deterministic .mikubundle workflow, Miku preserves material semantics, texture intent, and structured diagnostics across DCC and game-engine boundary
Juegos y emulaciónWhat you can do
- One visible Blender Standard PBR export route with declared approximations, isolated texture baking, deterministic bundles, and time-input preflight.
- Editable Unity Shader Graph wrappers, Miku-owned generated Sub Graphs, stable IDs, structured diagnostics, and historical Bundle 1.0 compatibility.
- A Unity material creator at Miku > Game Toon > Materials > Create Material with explicit texture fields, required-field validation, no asset overwrite, and no automatic Renderer, FBX, or Prefab binding.
- Opt-in Endfield tutorial lighting, tangent-space skinned outlines, and a project-owned pre-post-process game-LUT installer. See the Endfield 2.3.0 guide.
Crecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
OriginalMiku 3.0.0
Miku converts Blender 5.x EEVEE materials into target-neutral MaterialIR 2.0, then imports deterministic, editable Standard PBR Shader Graph assets into Unity 6 URP. Blender exposes one Standard PBR route; four bundled Game Toon Shader/HLSL preset families are authored from the Unity Editor.
English is the canonical public documentation language. Read the Simplified Chinese README or the full English Manual / Chinese Manual.
Highlights
- One visible Blender Standard PBR export route with declared approximations, isolated texture baking, deterministic bundles, and time-input preflight.
- Editable Unity Shader Graph wrappers, Miku-owned generated Sub Graphs, stable IDs, structured diagnostics, and historical Bundle 1.0 compatibility.
- A Unity material creator at
Miku > Game Toon > Materials > Create Materialwith explicit texture fields, required-field validation, no asset overwrite, and no automatic Renderer, FBX, or Prefab binding. - Opt-in Endfield tutorial lighting, tangent-space skinned outlines, and a project-owned pre-post-process game-LUT installer. See the Endfield 2.3.0 guide.
- A clean-room Genshin tutorial implementation, first developed for the unpublished 2.4.0 candidate and shipped in 3.0.0, with real tangent-space normal maps, explicit UV1 backface/UV7 outline draws, five outline regions, shared alpha coverage, and combined Geometry/Screen Rim renderer setup. See the Genshin rendering guide.
- WuWa 3.0 tutorial PBR/GI, packed normal-metallic-roughness textures, clone-only migration, dedicated outlines, and tutorial Screen Rim. See the WuWa 3.0 guide.
- English/Simplified Chinese Miku Editor UI selected per user at
Miku > Settings.
Bundled Game Toon Shader/HLSL presets
The Unity package ships first-party, original Miku Shader/HLSL code for four experimental preset families. These are working shader implementations, not only field-name templates.
| Preset | Available material parts | Main authored features |
|---|---|---|
| Genshin | Body, Hair, Face, Eye | Light-map/ramp Toon lighting, Face SDF, hair, eye, outline, and screen-rim support |
| Honkai: Star Rail (HSR) | Body, Hair, Face, Eye | Light-map/ramp shading, Face SDF, hair highlights, eyes, and outline support |
| Wuthering Waves (Wuwa) | Body, Hair, Face, Eye, Effect | ID/Stockings dual binding, face basis controls, authored eye maps, highlights, and emission |
| Arknights: Endfield | Body, Skin, Hair, Face, Eye, Mouth, Overlay, Effect, HairShadow | Continuous day/top lighting, three-band ramps, DFG, Face SDF, material-local skin/cloth LUTs, two-layer eye highlights, lit overlays, URP-correct shadows, outlines, and Volume grading |
Together the creator exposes 22 valid material parts. The presets are Experimental compatibility implementations and do not promise pixel-exact parity with any game. Miku includes no extracted game Shader source, model, texture, logo, or other game asset. See the Manual for every texture rule, the example gallery, and the Unity Editor tool guide.
Install the release
- Download
miku_shader_converter-3.0.0.zip,com.miku.shaderconverter-3.0.0.tgz, andSHA256SUMS.txtfrom the v3.0.0 release. - Before installation, run
Get-FileHash -Algorithm SHA256on the ZIP and TGZ and compare both values withSHA256SUMS.txt. - In Blender 5.0-5.2, open Edit > Preferences > Extensions, choose Install from Disk, select the ZIP, and enable Miku.
- In Unity 6000.0-6000.5, open Window > Package Manager > + > Add package from tarball, then select the single TGZ.
- Export a material bundle from Blender and copy its complete directory under
the Unity project's
Assets/folder.
For a source checkout, add
unity/Packages/com.miku.shaderconverter/package.json from disk. Full
installation, ownership, diagnostics, and upgrade guidance are in the
Manual.
Five-minute workflow
- Select an object with a material in Blender's Shader Editor.
- Open the Miku sidebar, choose an output directory, and confirm Standard PBR.
- Export the current material. A reachable
Input.Time.*dependency stops before output or bake requests are written; disconnected time nodes are harmless. - Copy the complete
.mikubundledirectory to UnityAssets/and let the importer create editable graph and report assets. - For a Game Toon material, open the Unity creator, choose a preset and part,
assign the displayed textures, and save a user-owned
.mat.

Compatibility and licensing
The validated reference tuple is Blender 5.2.0, Unity 6000.4.5f1, URP 17.4.0, and Shader Graph 17.4.0 on Windows Direct3D 12. Blender 5.0-5.2 and matching Unity/URP/Shader Graph technical lines 6000.0/17.0 through 6000.5/17.5 are admitted. Stable patches outside the recorded validation set run a full capability preflight and emit an unvalidated warning. Blender 5.3+, Unity 6000.6+, package 17.6+, and prerelease builds are rejected before generated assets are written. Miku is currently Experimental. MaterialIR 2.0, Bundle 1.0, conversion-plan, bake-result, and public Shader property/reference names remain compatible in 3.0.0. See the compatibility matrix.
The repository's MIT-licensed code remains under the MIT License; files carrying separate SPDX terms, including the Blender Bake Worker, retain those terms. The five character renders shown in the manuals are separate documentation assets: they are provided only for non-commercial learning and documentation reference, and commercial use is prohibited. Related characters, designs, and intellectual property belong to their respective rights holders; Miku grants no rights to game assets. The PNGs are tracked with the source documentation, excluded from Miku's MIT license, and omitted from the installable ZIP/TGZ. See Third-party notices and the documentation image provenance.
Development
py -3.13 -m unittest discover -s tests -p "test_*.py"
py -3.13 tools/ci/run_checks.py --profile pr
py -3.13 tools/release/build_release.py --output-dir artifacts
Read CONTRIBUTING.md, SECURITY.md, and SUPPORT.md before contributing or distributing a build.
Explorar proyectos relacionados
Cargando…