Photon
一款面向 Minecraft 的实时 VFX(视觉特效)工具包——粒子、轨迹、光束、动态光源、时间轴、着色器图和后期处理,全部在游戏内完成编辑。
Documentation |
Getting Started |
Commands |
Java API |
Discord |
CurseForge |
Modrinth
Photon 是一款受 Unity 启发的 Minecraft 视觉特效编辑器模组。它将类 Unity 的粒子系统、轨迹与光束渲染、带柔和阴影的动态光源、非线性时间轴、基于节点的着色器与后处理图,以及完整的游戏内编辑器引入 Minecraft —— 使得模组作者可以为他们的内容构建特效,玩家也能通过命令创建和播放特效。
其初衷是让人人热爱 VFX 创作的人不再被技术门槛和数学问题所阻碍。如果你熟悉 Unity 的粒子系统,那么你已经掌握了 Photon 的大部分功能。
展示
Photon 2.2 — Timeline, Shader Graph, Post-Processing
在时间轴上编排特效,以节点图形式编辑材质,并叠加全屏后处理效果。
|
Getting Started with Photon
编辑器概览、粒子系统介绍,以及如何构建并播放你的第一个特效。
|
2.2 展示版本以来的新功能

动态光照 2.2.8
照亮方块、实体和粒子的点光源与聚光灯,带有绝不会穿透墙壁的体素软阴影。放置 Light 对象,使用 Light Emission 模块让粒子发光,或从 Java 端添加光源。也支持在 Iris 光影包下运行。
|

体积光与雾体积 2.2.8
点光源周围的光晕、聚光灯的光束,以及允许光线穿过的立方体或球形雾体积。处于阴影中的光源可投射真实的光柱,穿过门窗。
|

Kila Material 2.2.8
一款集成的 VFX 材质:无需构建节点图,即可启用翻转动画(flipbooks)、遮罩、溶解、扭曲、颜色渐变、柔边、菲涅尔、光照和贴花等功能。可从 27 个预设之一开始,当需要更多自定义时,可将材质导出为 Shader Graph。
|

特效实例 (FX Instances) 2.2.9
类似 Unity Prefab 的特效预制件:可在任意深度将一个 .fx 嵌套在另一个内部,然后覆盖、禁用、删除或添加对象。仅保存你的更改,因此实例会持续跟随其源文件。
|

粒子碰撞 2.2.9
对方块形状、流体表面、实体和 Collider 对象进行扫掠碰撞检测,使高速粒子不再穿透墙壁。粒子接触时可反弹、滑动、附着或销毁;触发器可报告粒子进入和离开的情况,接触事件还可激发子发射器或调用 Java 监听器。
|

动画 glTF 模型 2.2.7
将 .glb 文件拖入编辑器,并将其用作粒子网格或发射形状。带绑定的文件可播放其动画,且每个粒子独立的动画相位可防止群体动作完全同步。
|
功能亮点

游戏内 FX 编辑器
一款类似 Unity 的编辑器,具备实时预览、可停靠视图、资源浏览器、特效层级结构、撤销历史以及键盘快捷键。运行 /photon_editor 即可开始构建——无需重启,也无需外部工具。
|

材质与着色器图
通过节点图来创建粒子 / 轨迹 / 光束材质,而非编写 GLSL —— 支持场景颜色与深度、几何体与相机节点、UV、数学运算、纹理、曲线与渐变值、动态光源,以及可复用的子图。手写着色器依然可用。
|

自定义 GPU 数据
每个发射器均可配置自定义数据流(向量 / 颜色函数),可在着色器图和手写着色器中按粒子读取,适用于 tile、trail、beam 和 ara-trail 粒子,并支持可选的时间源。
|

曲线、渐变与模块
几乎所有数值都是曲线、渐变、随机范围或常量,支持内联编辑。发射器模块复刻了 Unity 的功能:形状、生命周期内的速度 / 旋转 / 大小 / 颜色、噪声、碰撞、子发射器、外力等。
|
入门指南
- 安装 LDLib2 和 Photon(Minecraft
1.21.1,NeoForge 21.1+)。Photon 2.2.9 需要 LDLib2 2.2.43 或更高版本;KilaGraph 已内置于 Photon 中。
- 进入创造模式世界,运行
/photon_editor 以启动编辑器。
- 创建一个新的 FX 项目并开始实验。
- 使用
/photon 命令播放效果,或通过 Java 代码绑定(见下文)。
Photon 专注于效果 创建,而非使用逻辑——请使用命令或代码将效果绑定到实体、方块或您自己的生命周期管理器。完整教程请参阅 文档 和 命令参考。
许可协议
在重新分发、分叉或移植 Photon 之前,请阅读 LICENSE。
使用该模组是免费的。重新分发或基于 模组本身 进行开发附带条件,且这些条件会被强制执行。
Photon by KilaBash 采用 CC BY-NC-SA 4.0 许可。
您可以自由做的事:
- 在单人游戏、服务器和非商业整合包中使用 Photon。
- 通过 jar-in-jar 方式将其捆绑到您的模组中,只要您的模组未出售或未直接商业化。
- 分享和改编该模组,需注明出处、提供许可证链接,并注明所做的更改。
- 拥有您使用它制作的所有内容。 使用 Photon 创建的内容——
.fx 文件、FX Packs、着色器和效果图、配置文件、数据包、视频等——不受此许可证约束。您可以随意授权和销售您的创作成果。
需要许可或不被允许的事:
- 模组的商业用途(付费下载、付费访问、商业化重新分发)需要明确的书面许可。
- 分叉和修改版本必须继续使用 CC BY-NC-SA 4.0 许可,并注明原作者。
- 移植到除 1.21.x 之外的 Minecraft 版本 需要事先获得 KilaBash 的书面同意,必须完全开源并遵循相同许可,必须注明原始项目,且不得以任何形式商业化——包括捐赠、赞助和众筹。
许可咨询(商业用途、移植权限):yefancy@foxmail.com
请参阅 LICENSE 获取权威且完整的条款。
Photon
A real-time VFX toolkit for Minecraft — particles, trails, beams, dynamic lights, timelines, shader graphs, and post-processing, all authored in-game.
Documentation |
Getting Started |
Commands |
Java API |
Discord |
CurseForge |
Modrinth
Photon is a VFX editor mod for Minecraft, inspired by Unity. It brings a Unity-style particle system, trail and beam rendering, dynamic lights with soft shadows, a non-linear timeline, node-based shader and post-processing graphs, and a full in-game editor to Minecraft — so mod authors can build effects for their content, and players can create and play effects with commands.
Its original intention is to let people who love VFX create without being blocked by technical skill and math problems. If you know Unity's particle system, you already know most of Photon.
Showcase
Photon 2.2 — Timeline, Shader Graph, Post-Processing
Sequencing effects on a timeline, authoring materials as node graphs, and stacking fullscreen post effects.
|
Getting Started with Photon
An overview of the editor, the particle system, and how to build and play your first effect.
|
New Since the 2.2 Showcase

Dynamic Lights 2.2.8
Point and spot lights that light blocks, entities, and particles, with voxel soft shadows that never leak through walls. Place a Light object, let particles emit light with the Light Emission module, or add lights from Java. Works under Iris shader packs too.
|

Volumetric Lights and Fog Volumes 2.2.8
Halos around point lights, beams from spot lights, and box or sphere fog volumes for them to shine through. Shadowed lights cast real light shafts through doors and windows.
|

Kila Material 2.2.8
An all-in-one VFX material: switch on flipbooks, masks, dissolve, distortion, color ramps, soft edges, fresnel, lighting, and decals instead of building a graph. Start from one of 27 presets, and export the material as a Shader Graph when you need more.
|

FX Instances 2.2.9
Unity-style prefabs for effects: place one .fx inside another, at any depth, then override, disable, delete, or add objects. Only your changes are saved, so the instance keeps following its source.
|

Particle Collision 2.2.9
Swept collision against block shapes, fluid surfaces, entities, and Collider objects, so fast particles no longer pass through walls. Bounce, slide, stick, or die on contact; triggers report particles entering and leaving, and contacts can fire sub-emitters or a Java listener.
|

Animated glTF Models 2.2.7
Drop a .glb into the editor and use it as a particle mesh or an emission shape. Rigged files play their animations, and a per-particle animation phase keeps a swarm from moving in lockstep.
|
Feature Highlights

In-game FX Editor
A Unity-style editor with real-time preview, dockable views, a resource browser, an FX hierarchy, undo history, and keyboard shortcuts. Run /photon_editor and start building — no restart, no external tools.
|

Materials and Shader Graph
Author particle / trail / beam materials as node graphs instead of writing GLSL — scene color and depth, geometry and camera nodes, UVs, math, textures, curve and gradient values, dynamic lights, plus reusable subgraphs. Hand-written shaders still work.
|

Custom GPU Data
Per-emitter custom data streams (vector / color functions) readable per particle in shader graphs and hand-written shaders, on tile, trail, beam, and ara-trail particles, with selectable time sources.
|

Curves, Gradients, and Modules
Almost every value is a curve, a gradient, a random range, or a constant, edited inline. Emitter modules mirror Unity's: shape, velocity / rotation / size / color over lifetime, noise, collision, sub-emitters, external forces, and more.
|
Getting Started
- Install LDLib2 and Photon (Minecraft
1.21.1, NeoForge 21.1+). Photon 2.2.9 needs LDLib2 2.2.43 or newer; KilaGraph is bundled inside Photon.
- Enter a creative world and run
/photon_editor to launch the editor.
- Create a new FX project and start experimenting.
- Play the result with
/photon commands, or bind it from Java (below).
Photon focuses on effect creation, not usage logic — use commands or code to bind an effect to entities, blocks, or your own lifecycle manager. Full walkthrough in the documentation and command reference.
License
Please read LICENSE before redistributing, forking, or porting Photon.
Using the mod is free. Redistributing or building on the mod itself comes with conditions, and they are enforced.
Photon by KilaBash is licensed under CC BY-NC-SA 4.0.
What you can do freely:
- Use Photon in single-player, on servers, and in non-commercial modpacks.
- Bundle it in your mod via jar-in-jar, as long as your mod is not sold or directly monetized.
- Share and adapt the mod, with attribution, a link to the license, and a note of what you changed.
- Own everything you make with it. Content created using Photon —
.fx files, FX Packs, shader and effect graphs, configs, data packs, videos — is not covered by this license. License and sell your creations however you like.
What needs permission or is not allowed:
- Commercial use of the mod (paid downloads, paid access, monetized redistribution) requires explicit written permission.
- Forks and modified versions must stay under CC BY-NC-SA 4.0 and credit the original author.
- Ports to Minecraft versions other than 1.21.x need prior written consent from KilaBash, must be fully open source under the same license, must credit the original project, and may not be monetized in any form — including donations, sponsorships, and crowdfunding.
Licensing inquiries (commercial use, port permissions): yefancy@foxmail.com
See LICENSE for the authoritative and complete terms.
评论 0
登录后参与评分
还没有评论,来抢沙发吧