Wiki down - bake vertex lighting

Is it just me or is the Unity wiki offline at the moment?

Does anyone have the Bake vertex lighting shader they can post?

I think this is what you’re looking for:

Shader "Vertex Colored" {
Properties {
    _Color ("Main Color", Color) = (1,1,1,1)
    _SpecColor ("Spec Color", Color) = (1,1,1,1)
    _Emission ("Emmisive Color", Color) = (0,0,0,0)
    _Shininess ("Shininess", Range (0.01, 1)) = 0.7
    _MainTex ("Base (RGB)", 2D) = "white" {}
}
 
SubShader {
    Pass {
        Material {
            Shininess [_Shininess]
            Specular [_SpecColor]
            Emission [_Emission]    
        }
        ColorMaterial AmbientAndDiffuse
        Lighting Off
        SeperateSpecular On
        SetTexture [_MainTex] {
            Combine texture * primary, texture * primary
        }
        SetTexture [_MainTex] {
            constantColor [_Color]
            Combine previous * constant DOUBLE, previous * constant
        } 
    }
}
 
Fallback " VertexLit", 1
}

That appears to be the one, cheers

It only seems to take values like (1.0, 0.0, 0.0)
When I give it (0.9, 0.4, 0.0) it gets displayed like (1.0, 0.0, 0.0)

Could you elaborate a bit on what you’re trying to do?

I have a simple model which has vertex colours on it. When I bring it into unity as an fbx file and assign the above material it displays but all the colours appear as primary only, ie combinations of rgb as zero or one, nothing else.

i can work round it in this case by making individual models and assigning different materials to each one, but in a more complex case it would have been nice to know that this method worked.