PDA

View Full Version : onepass bumpmapping



bonzaj
03-14-2003, 01:14 AM
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.

((( (a*Ct1) + b*Ct2 ) * 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.

2. 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 ???.

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

Thanks for replaying.

Bonzaj