ps.1.0 // Version tex t0 // the base (bottom) texture tex t1 // the overlay texture mov r1, t1 lrp r0, r1.a, r1, t0 // r0 is the alpha-blended composite of the two textures mov r0.a, c2 // override r0's alpha with the constant alpha (setup by the engine)