Skip to content

Advanced Tactics

Spartwo edited this page Oct 25, 2024 · 6 revisions

Override TURD's false coloring

Use zzzzz_000_TU_Restock_000 instead of 000_TU_Restock_000, and zzzzz_999_TU_Restock_Recolour_000 for another one respectively, and add !MODULE[KSPTextureSwitch],* {} to Default file

Like this:

@PART[toroidalAerospike]:FOR[zzzzz_000_TU_Restock_000]:NEEDS[TexturesUnlimited&Restock]
{
    !MODULE[KSPTextureSwitch],* {}
    MODULE
    ...

Spartwo's more-than-one texture set to switch

Copy the @MATERIAL {} and remove @ from the start

  • Default: shader = KSP/Emissive/Bumped Specular
  • Recolour:
shader = TU/Metallic
keyword = TU_RECOLOR

Like this:

@MATERIAL
    {
	... lalala as usual
    }
MATERIAL
    {
	shader = KSP/Emissive/Bumped Specular
		
	... lalala as usual
    }

and

@MATERIAL
    {
	... lalala as usual
    }
MATERIAL
    {
	shader = TU/Metallic
	keyword = TU_RECOLOR

	... lalala as usual
    }
Clone this wiki locally