ReFract Reloaded
A BepisLoader mod which exposes the Unity Post Processing stack to Resonite cameras.
About this mod Author’s original text
Re:Fract // Reloaded
A Resonite mod which exposes the Unity Post Processing stack to Resonite cameras.
Requires BepisLoader, BepInExRenderer, and InterprocessLib (which itself requires RenderiteHook).
Main Features
- Lets you dynamically alter things such as bloom, depth of field and much more
- Interfaces through dynamic variables for ease-of-creation
- Values can be driven and animated via ProtoFlux as a result
- Persistent across item and world saves
- Will make you the coolest kid on the block
Installation
Automatic (Recommended)
- Install BepisLoader
- Install/Gale, or download from Releases
Usage
Want to make your own Re:Fract camera? The usage instructions of the original Re:Fract still apply.
(There is a new Re.Fract_RemoveAlpha bool that isn't in those instructions though)
Just want to take a pretty photo? I recommend these existing cameras:
- orange's DeliciousCam has a ton of bells and whistles, a great choice for someone who wants to tweak every aspect of their photo
- yosh's Lightweight ReFract Camera is a lot simpler and gentler on your computer, though it only supports focus for now. You can find it in their public folder: resrec:///U-yosh/R-E10773FA7D4EC7F497B13DA7C8FC1500027547052763A2CED4004747637F32AD
Examples
Known Issues
- Minor inconvenience: right now there's a small chance that the post-processing effects won't get applied in a photo. Usually just taking it again will fix it.
Special Thanks
- Nytra for making InterprocessLib, which is what made bringing Re:Fract back possible!
- Zozokasu for making ResoniteSpout, which was a good example of using InterprocessLib and communicating with the renderer.
- Cyro for making the OG Re:Fract!
- pocoworks for updating Re:Fract to Resonite.
- yosh for making the final update to Re:Fract, which this mod is based on.
Notes and disclaimers
[!WARNING]
Gemini Code Assist was used in the making of this mod, primarily to write code that I knew I needed to write, but didn't know how. I made sure the code it spat out wasn't completely useless garbage, but, y'know.
I tested the mod extensively throughout making it and fixed as many bugs as I could, but I'm sure there's still so much that could be improved code-wise. If you have any improvements to suggest, please submit an issue/PR!
[!NOTE]
Please feel free to port the mod to other loaders if you wish to. I used Bepis because it's what I felt the most comfortable working with this time, but InterprocessLib theoretically supports MonkeyLoader and ResoniteModLoader. I don't know how that support necessarily works, but if you're smarter than I am, you can probably figure it out.
Install & use Install: follow the bundled instructions
- Unzip the archive from playbuff and read the bundled readme / instructions first.
- Most mods rely on the game's mod loader — the usual route is a community mod manager (such as r2modman): pick this game, install, and it handles the loader and dependencies.
- For a manual install, put the mod files into the matching Mod / plugins folder inside the game directory.
- Launch the game to confirm it loaded; mods with listed dependencies need those installed as well.
Install locations vary a lot between mods — the bundled readme is the most reliable guide.
Install these first, or the mod will not work: