Port Homeworld Shader to Unity

I am trying to port a Homeworld 2 shader to a unity shader.

Could someone help me with it? Don’t know how to start the right way.

static Texture $diffuse
static Texture $glow

simple base(Texture $diffuse, Texture $glow, Colour $teambase, Colour $teamstripe, Colour $fogColour, Colour $addColour, Colour $shadowColour)
{
    setCap depthBufferCap true
    setCap gouraudCap true
    setCap cullCap true
    setCap texture0Cap true
    setCap lightingCap true

    fillMode solidFill
    cullMode backCull

    material ambient   1 1 1 1
    material diffuse   1 1 1 1
    material specular  1 1 1 1
    material shininess 96 96 96 96
    setVertexColour    1 1 1 1

    textureBind 0 $diffuse
//    textureMode    replaceMode
}

simple light(Texture $diffuse, Texture $glow, Colour $teambase, Colour $teamstripe, Colour $fogColour, Colour $addColour, Colour $shadowColour)
{
    setCap depthBufferCap true
    setCap gouraudCap true
    setCap cullCap true
    setCap texture0Cap false
    setCap texture1Cap false
    setCap lightingCap true
    setCap blendCap true

    srcBlend    destColourBlend
    destBlend    zeroBlend

    fillMode solidFill
    cullMode backCull

    material ambient   1 1 1 1
    material diffuse   1 1 1 1
    material specular  1 1 1 1
    material shininess 96 96 96 96
    setVertexColour    1 1 1 1
}


simple fog(Texture $diffuse, Texture $glow, Colour $teambase, Colour $teamstripe, Colour $fogColour, Colour $addColour, Colour $shadowColour)
{
    setCap depthBufferCap true
    setCap gouraudCap true
    setCap blendCap true
    setCap cullCap        true

    srcBlend srcAlphaBlend
    destBlend invSrcAlphaBlend

    fillMode solidFill
    cullMode backCull

    setVertexColour    $fogColour   
}

compound ship()
{
    addPass base
    //addPass light
    addPass fog
}

This is what I’ve got so far. The easy part:

Shader "Alex/ship" {
    Properties {
        _MainTex ("Diffuse", 2D) = "white" {}
        _GlowTex ("Glow", 2D) = "white" {}
        _Color ("TeamColor", Color) = (1,1,1,1)
        _Color ("TeamStripe", Color) = (1,1,1,1)
        _Color ("FogColor", Color) = (1,1,1,1)
        _Color ("AddColor", Color) = (1,1,1,1)
        _Color ("ShadowColor", Color) = (1,1,1,1)
        _Shininess ("Shininess", Range (1, 100)) = 96
    }
    SubShader {
        Pass {
            Material {
                Diffuse (1,1,1,1)
                Ambient (1,1,1,1)
                Specular (1,1,1,1)
                Shininess [_Shininess]
            }
            Lighting On //LightingCap??
            Cull Back //cullMode backCull
       }
    }
    FallBack "Diffuse"
}

Made it by myself… could be closed