onepass bumpmapping

Hello this is my first post.

I’ve got three questions for now.

  1. I must perform such combination using only ARB_texture_env_combine
    in one pass, and the textures haven,t got alpha channel.

((( (aCt1) + bCt2 ) * c*Ct3 ) * Cf)

where a,b,c are constant floats from 0 to 1.

I’m modulating with primary color in the end.
If it is possible please write me a code for this pattern.

  1. Is it possible to perform dot3 bumpmapping and modulate it with
    fragment (calculated by lightning equations) color in one pass. I
    assume that we must use Color buffer for storing LightPos, what with
    the GL_LIGHTING then ???.

  2. This question is similar to the one above. Is it possible to
    perform multilight dot3 bumpmapping in one pass???.

Thanks for replaying.