ps.1.0 tex t0 // the specular cubic map texture tex t1 // the color texture mul r0, t0, v0 // modulate the specular cubic map texture by the vertex diffuse color, store result in r0 mul r1, t1, v0 // modulate the color texture by the vertex diffuse color, store result in r1 mad r0, r0, t1.a, r1 // modulate the specular cube map color by the alpha, add it to the color texture