Jump to content

[1.9.x] Textures Unlimited - PBR-Shader, Texture Set, and Model Loading API


Shadowmage

Recommended Posts

Hello, I'm trying to create my own TU configs for a mod but I'm having trouble with Texture switch.

Spoiler

@PART[TyphoonCockpit]:NEEDS[TexturesUnlimited]
{
    @MODULE[KSPTextureSwitch],0
    {        
        textureSet = recolor
    }
}
+KSP_TEXTURE_SET[MWNN_Stock_Paint]:NEEDS[TexturesUnlimited]
{
    @name = recolor
    @MATERIAL
    {
        
        vector = _DiffuseNorm,0.7355,0.7355,0.7355
        vector = _MetalNorm,0.48,0.48,0.48
        vector = _SmoothnessNorm,0.485,0.485,0.485
        
        texture = _MainTex,AirplanePlus/Parts/Command/fighterinlinecockpit/fighterinlinetex
        texture = _MaskTex,TURD/TU_APP_Recolour/Command/FighterInlineCockpit/180_fighterinlinetex_Paint
    }
}

Spoiler

@PART[TyphoonCockpit]:NEEDS[TexturesUnlimited]
{
    MODULE
    {        
        name = KSPTextureSwitch
        sectionName = Appearance
        currentTextureSet = DefaultTexture
        textureSet = DefaultTexture
    }
    %MODULE[SSTURecolorGUI]
    {
        %name = SSTURecolorGUI
    }
}
+KSP_TEXTURE_SET[Stock_Default]:NEEDS[TexturesUnlimited]
{
    @name = DefaultTexture
    @MATERIAL
    {        
        texture = _MainTex,AviationCockpits\Command\Typhoon_texture
    }
}

Top is Recolour, bottom is default. I am using placeholder textures for Recolour.

Link to comment
Share on other sites

  • 5 months later...

Been a couple.

 

It's either on the blizzy toolbar after adding through toolbar controller GUI 

I think it makes custom .cfg based on what you do in the GUI

Or it's the one you have to find the .cfg / write it yourself. I think there a toolbar.

 

 

IIRC

 

Look for the Icon for Blizzy (Yellow Arrow)

Right Click

Add Button

Select the icon for TU

Click the TU button the the Toolbar

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...