Docs/Textures
Texture Editor
A reorderable stack of adjustment layers over one texture: levels, exposure, brightness, saturation, blur, sharpen, gradient map and channel mixer, with crop, spot healing, clone stamp and undo.
Applies non-destructive adjustments to a single texture, with a live preview and histogram, and saves the result as a copy or over the original. The stack runs on the GPU, or on the CPU where compute shaders are not available.
Open it with and pick a texture or drop one on the window. You can also right-click a texture in the Project window and choose BlackCraft > Open in Texture Editor.
Edits count as unsaved when the layers, crop or strokes have changed since the last load or save. Opening another texture over unsaved edits asks first, and closing the window offers to save them as a copy. Don't ask again in that dialog turns off both questions for this tool; brings them back.
Both previews support zoom, pan and channel isolation.
The adjustment stack
The panel on the right is a list of adjustment layers, applied from top to bottom. A new texture opens with Levels, Exposure, Brightness & Contrast and Saturation & Hue, all set to neutral.
+ adds a layer, grouped under Tone, Colour, Blur, Overlay and Detail. You can add the same kind more than once, for example two Levels with a Blur in between. Drag rows to reorder them; order matters, since a Gradient Map above Levels sees the raw brightness and one below sees the corrected brightness. The switch in a layer's header turns it off and keeps its settings.
Each row has a three-dot menu with Duplicate, Reset and Remove, and the list has one of its own with Remove All and Restore Default Layers. Every change is an undo step.
Blending, opacity and masks
Every layer has Opacity, Blend and Mask. They combine the layer's result with the picture that was passed into it.
Blend has Photoshop's modes. The "layer below" is the picture as it was before this layer ran, so a neutral Brightness layer set to Multiply will darken the image. Alpha is not blended: it passes through as the layer left it. Color Overlay and the overlays have channel switches, and channels they do not write are skipped entirely.
Mask stretches a texture over the picture. Read picks which channel to use (white lets the layer through), Invert flips it, and Range firms up a soft mask. Values are read exactly as stored, so 50% grey means half strength.
A layer on Normal at full opacity with no mask adds no extra cost.
The layers
Levels sets black and white points, gamma and output range per channel. Its histogram shows the picture this layer receives, so it reflects every layer above.
Exposure works in stops. Brightness & Contrast is what it says, and Saturation & Hue works in HSL so hue changes keep the tone. Blur and Sharpen have a section of their own below.
Channel Clamp sets a floor and ceiling for each channel and leaves values inside the range alone. Color Overlay fills chosen channels with a flat colour: use Blend to tint, Opacity for a partial effect, or a gradient mask for a graded tint. Pixelate flattens each block to one colour, alpha included.
Stroke draws an outline along the alpha edge, Outside, Inside or Centre, with Edge setting the alpha threshold. It needs a cut-out and is capped at 32 texels, being the most expensive layer. Flip mirrors on either axis, and below full opacity it cross-dissolves the flipped and unflipped picture.
Gradient Map recolours by luminance, using a gradient or a lookup from the Ramp Maker. Channel Mixer builds each output channel from one input channel, luminance or a constant, optionally inverted. Its presets include roughness to smoothness and flip green.
Texture Overlay and Noise Overlay are covered under Overlays.
Reduce to Palette, under Palette in the Add menu, snaps every pixel to the nearest colour of a palette, as the Palette guide describes.
Palette Swap, in the same submenu, maps each colour to a new one. The Palette Swap guide covers it.
Blur and Sharpen
These only touch colour, so cut-out edges stay sharp. Reach is measured in source texels on Photoshop's scale. Borders repeat, which keeps the frame from darkening at the edges. A larger reach makes the preview slower.
| Layer | What it does |
|---|---|
| Gaussian Blur | Smooth softening; Radius is the standard deviation |
| Grainy Blur | Random taps within Radius, keeping a film grain |
| Dither Blur | Taps on an ordered 4x4 pattern; few Samples leaves the pattern visible |
| Directional Blur | Motion blur: Angle, Distance, centred on the pixel |
| Radial Blur | Spin or Zoom about Centre, by Amount |
| Sharpen | Unsharp mask: Amount of detail at Radius, ignoring contrast below Threshold |
Putting Sharpen below a Blur softens the image and then brings back detail at one scale.
Overlays
Both overlays tile, with Tiling 1 fitting the texture exactly. They leave alpha alone unless Write Alpha is on.
Texture Overlay takes any texture. Read chooses luminance or a single channel, which lets you use a packed map as a mask. Multiply adds dirt, Screen lifts, and Overlay does a bit of both.
Noise Overlay generates the Noise Generator's field in place, with Range and Gamma shaping its contrast. It is baked on the CPU, up to 1024 a side. If several textures need to share the same noise, make one file in the Noise Generator.
Tools
Only one of Crop, Heal and Stamp can be active at a time, and Esc puts it away. Their settings appear in the strip under the toolbar.
Crop
Drag out a frame on the adjusted preview. The corners resize it and the frame itself moves. Shape locks an aspect ratio (Original, 1:1, 3:2, 4:3, 16:9 and their portrait versions), and holding Shift keeps whatever ratio you have. Apply Crop (Enter) commits the crop and sets the export size; Cancel (Esc) throws it away.
Heal
Paint over a blemish and it is filled in from its surroundings. Colour is solved from a ring outside the brush so no edge shows, and Detail copies grain from the closest-matching patch nearby. Use 0 Detail on flat areas and more on fabric, bark or skin. Make the brush a little larger than the blemish.
Stamp
Alt+click sets the source and Overlay previews the copied area inside the brush. With Aligned on, the offset to the source is kept from stroke to stroke; with it off, each stroke starts again from the sampled point. Strokes sample the picture as it was when they started, so passing over the source area does not smear it.
The brush
Radius, spacing, hardness and strength are in the strip. Ctrl+scroll, [ and ] change the size. Heal is limited to 96 px and Stamp to 256. Strength works like opacity, so 50% stays at half however many times a stroke crosses the same pixel.
Strokes are painted onto a working copy, and adjustments still apply on top of them. Each stroke is one undo step. A texture that cannot be read cannot be painted, and the console will say so.
Saving
Save As... writes a new file and offers to repoint the materials that used the original. After that, Send To offers the copy to other tools, with Compare With Original at the top of the list. Before any Save As it offers the loaded texture.
Save (Replace) overwrites the source once you confirm. Undo cannot reach back into a file that has been written.
Normal maps are unpacked to plain RGB on load, so the stack works on the actual normals and not on Unity's swizzled copy. Saves write RGB, and a Save As copy is imported as a normal map.
Restore Defaults resets the stack and rewinds the strokes. It can be undone.
