Repository navigation
EDGEmat 0.3.0
The first preview: EDGEmat reads a garment's materials, shows them in plain words and in 3D, recolors them into your mod project, and makes new materials from words or a photo, in the editor or by asking an assistant.
New
- The surface page: click a surface or microblend in the Library to open it in an editor tab. One tab is reused as you click around; Keep Open detaches it. A larger image tinted with the color you pick; every color as a swatch with a plain name ("dark muted blue"); a filter by words, and the closest color to one you type or pick; roughness, metal and bumps in plain words; the textures; raw values one click away.
- The setup editor, read-only: open any
.mlsetupor.mlsetup.json(from the game, a file, a project, a mod archive, or REDcode's Game Assets) and see each layer in plain words, a color map of where each layer goes on the garment, and what looks wrong. Open Setup in the Library's title bar finds a game setup by name, or takes a file or a mod archive. - The Find view: a garment by its in-game name ("punk jeans") or a mesh by part of its path, down to its looks per body, meshes and materials. A layered material opens its setup with the exact mask set it names.
- View in 3D: the eye on a mesh in Find opens it in REDcode's 3D view, with its colors from EDGEmat: a layered material's color map, or a textured material's own color texture. Colors only for now, marked approximate. Needs REDcode.
- MCP tools for assistants:
mat_colors(a surface's colors, and the closest to a color you name),mat_describe(a setup's layers in plain words) andmat_find(a garment's or mesh's materials). - Editing in the setup editor: click a layer and change its surface, its color (from the surface's own, filtered by words such as "blue"), roughness, metal, bumps, tiling, offset, opacity and microblend. Each change shows at once; Ctrl+Z and Ctrl+Y undo and redo. A new surface resets the layer's color and finish to that surface's defaults, and says so.
- Save to Project: saves a setup into your WolvenKit project (REDcode's open project, or one you pick). As a new setup writes it beside the original under a new name and copies the meshes that use it into the project, pointed at it: it shows in the game with no other mod. Or in place of the game's setup (needs the Material Texture Override mod), or at a path you choose. Then REDcode's Pack and Try is one click away. Ctrl+S on a game file, or on a file outside a project, opens Save to Project; a project's own file saves in place.
- MCP
mat_edit: an assistant recolors a setup in words ("dark red", "glossy", "leather standard clean") and saves it into a project the same way, or only previews the result. - New Material: a new material from words, through Google Gemini (Nano Banana) or OpenAI (GPT Image) with your own key and credits, or from your own photo with no service. Each Generate adds a take, shown tiled 3 × 3 so seams show; the one you pick is made seamless, gets bumps and shine from its light and dark, and is written into your project as textures and a material. Open it from the Library's title bar, or from a material in Find (New Material Here) to put it on that material for both bodies; on a garment the garment keeps its own folds. Your key stays in VS Code's secret storage, and nothing is sent until you press Generate. How each material was made (service, model, words) is kept beside it.
- MCP
mat_generate,mat_from_imageandmat_apply: an assistant makes a material from words (with a key in the server's environment) or from an image file, and puts it on a garment's materials.
Fixed
- Find showed no looks for jackets and other outer wear, whose appearances also name first and third person. It now walks them (third person when both exist).
- A setup opened from a project, or one whose masks sit in another folder (such as the feminine punk jeans), showed no color map: "The color map needs the mask set". EDGEmat now takes the mask set the meshes' materials name, and only then looks beside the setup.
- Saving a game setup into a project a second time (As a new setup) found no mesh that uses it, because the project's meshes already pointed at the first save. They now count, and only the setup is written again. When no mesh is found, the message says why.
- The game folder: EDGEmat looked for REDdeck, EDGEdeck's old name, so it never used EDGEdeck's folder. It now asks EDGEdeck, and the
edgemat.gamePathsetting says so.
Changed
- Open Setup › From the game finds setups as you type, in place of a box that searched only after Enter.
- The MCP server treats an empty option or environment variable as unset, as a Claude Code plugin passes an unset setting, so the VS Code settings behind it still apply.
Other
- The log names REDcode's bridge when EDGEmat uses it.
- The extension, the release and the Nexus zip carry the licenses of the open-source packages EDGEmat bundles (
THIRD-PARTY-NOTICES.txt). - On the VS Code Marketplace and Open VSX: search for EDGEmat in VS Code's Extensions view. The MCP server is a file on the GitHub release.
- A user manual on the EDGEmodders wiki, with two tutorials (worn leather pants from words, snakeskin pants by asking Claude): https://edgemodders.ai/wiki/edgemat/
Install: in VS Code's Extensions view, search for EDGEmat and press Install (VS Code Marketplace, Open VSX). Or download edgemat-0.3.0.vsix below and run code --install-extension edgemat-0.3.0.vsix. Windows only. Needs Cyberpunk 2077 and REDbridge 0.8.0 or later; with REDcode set up, EDGEmat needs no configuration.
For AI assistants: edgemat-mcp-0.3.0.cjs is EDGEmat's MCP server, one file for Node.js 20 or later. For Claude Code: claude mcp add --scope user edgemat -- node "<folder>\edgemat-mcp-0.3.0.cjs". To make materials from words, add -e GEMINI_API_KEY=<key> or -e OPENAI_API_KEY=<key> before --.
Docs: https://edgemodders.github.io/EDGEmat/ (changelog: https://edgemodders.github.io/EDGEmat/changelog.html)