Skip to content

Feature: Shader Maps

Aviril edited this page Nov 29, 2024 · 2 revisions

» Usage: Clump Maps

• Compatible Asset-Packs: All model related packs except Scene
  1. Configure your shader-maps' clump config as below structured.
  2. All clump related shader-maps should be located under files/assets/assetType/assetName/map/clump/.
    "shaderMaps": {
        "clump": {
            "yourTextureName1": [
                "clump/upper/tshirt/1.jpg",
                "clump/upper/tshirt/2.jpg",
                "clump/upper/tshirt/3.jpg"
            ],
            "yourTextureName2": [
                "clump/upper/hoody/1.jpg",
                "clump/upper/hoody/2.jpg",
                "clump/upper/hoody/3.jpg"
            ],
            "yourTextureName3": [
                "clump/lower/trouser/1.png"
            ],
            "yourTextureName4": [
                "clump/lower/pant/1.jpg",
                "clump/lower/pant/2.jpg",
                "clump/lower/pant/3.jpg"
            ],
            "yourTextureName5": [
                "clump/shoes/sneakers/1.png",
                "clump/shoes/sneakers/2.png"
            ]
        }
    }

» Usage: Control & Bump Maps

• Compatible Asset-Packs: All model related packs
  1. Configure your shader-maps' control config as below structured.
  2. Incase if you are using multiple control maps per asset texture, layering follows the top -> bottom principle.
  3. Its optional to use omit/use any channel you want to use per control [red, green, blue].
  4. Bump for specified channel/control should be attached under bump.
  5. All control/bump related shader-maps should be located under files/assets/assetType/assetName/map/control/.
    "shaderMaps": {
        "control": {
            "yourTextureName1": [
                {
                    "control": "control/yourTextureName/road/control.png",
                    "bump": "control/yourTextureName/road/bump.png",
                    "red": {"map": "control/texture/grass/2/albedo.jpg", "bump": "control/texture/grass/2/bump.jpg", "scale": 600}
                },
                {
                    "bump": "control/yourTextureName/bump.jpg",
                    "red": {"map": "control/texture/sand/1/albedo_50a.png", "scale": 600},
                    "green": {"map": "control/texture/grass/1/albedo.jpg", "bump": "control/texture/grass/1/bump.jpg", "scale": 600},
                    "blue": {"map": "control/texture/sand/1/albedo_50a.png", "scale": 600}
                }
            ]
        }
    }

Clone this wiki locally