Unpack and repack .fxc shader files for Grand Theft Auto 5 with ease
Features • Installation • Usage • Screenshots • Example Shaders • License • Contributing
🔧 Unpack .fxc
Files: Extract embedded shader files from .fxc
containers.
📦 Repack .fxc
Files: Repack .fxc
files with modified shader data, applying custom patches.
🖥️ User-Friendly GUI: Simple and intuitive interface using egui
and eframe
.
🎮 GTA 5 Compatible: Designed specifically for working with Grand Theft Auto 5 shader files.
Download the latest release from our GitHub Releases page.
-
Clone the repository:
git clone https://github.com/gtasnail/fxc-converter.git cd fxc-converter
-
Build the project:
cargo build --release
-
Run the application:
cargo run --release
- Click "📁 Select FXC File" to choose an
.fxc
file. - Select an output folder for the unpacked shaders.
- Click "🚀 Unpack" to start the extraction process.
- View results and logs in the UI.
Tip: Use HLSL Decompiler to convert
o#
files to HLSL for rebuilding with FXC.
- Click "📁 Select FXC File" to choose the base
.fxc
file. - Click "📁 Select Patch File" to choose a patch file (your compiled
.cso
file). - Enter the shader patch offset (e.g., 13025 would be the offset from
directional.o13025
for example). - Select an output folder for the new
.fxc
file. - Click "📦 Pack" to create the new
.fxc
file.
The /example-shaders/
directory contains example shaders, including a demonstration of normal rendering from the g-buffer in directional.fxc
. This can serve as a starting point for your own shader modifications.
This project is licensed under the MIT License. See the LICENSE file for details.
We welcome contributions, issues, and feature requests! Check out our issues page to get started.