Skip to content

Texture Map Adding Guide

KillzXGaming edited this page Jan 22, 2024 · 3 revisions

Until I add a GUI for adding textures, this will be a guide for adding additional texture maps to a material using .json.

First open the .bfres with Track Studio. Expand the model in the tree to get the materials.

Select the material you want to edit.

image

Next export as .json in the file name.

image

Open in a text editor like notepad++. Scroll to "Textures" and add one at the end, make sure to add commas at the end of each one.

image

Next we need to add a sampler which stores the texture info. This is shown like this under Samplers :

      "TexSampler": {
        "ClampX": 2,
        "ClampY": 2,
        "ClampZ": 2,
        "MagFilter": 1,
        "MinFilter": 1,
        "ZFilter": 2,
        "MipFilter": 1,
        "MaxAnisotropicRatio": 0,
        "BorderType": 2,
        "DepthCompareFunc": 0,
        "MinLod": 0.0,
        "MaxLod": 13.0,
        "LodBias": 0.0,
        "DepthCompareEnabled": false
      },
      "Name": "_su0"
    }

Copy this and paste it as the last sampler in the list.

image

Ensure the Name: is the sampler type you want. _su0 for example is for Splatoon 3 TCL maps.

Next is the final step. Scroll down until you get the SamplerAssign section. Ensure the sampler name like _su0 has the proper sampler output next to it. This section determines what shader sampler gets used for the bfres material.

ie "_su0": "_su0"

image

Like the texture list, ensure each item has a comma at the end.

Finally replace the json

image

Then export as .bfmat if you want to use with Switch Toolbox.

Clone this wiki locally