B3D brush and texture blend modes (GL equivalents)

BlitzMax Forums/BlitzMax OpenGL Programming/B3D brush and texture blend modes (GL equivalents)

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi!
Dot3:
' glActiveTexture GL_TEXTURE0+Layer
' glBindTexture GL_TEXTURE_2D, MyNormalMap
glTexEnvf GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_COMBINE_EXT
glTexEnvf GL_TEXTURE_ENV, GL_COMBINE_RGB_EXT, GL_DOT3_RGB_EXT

Add:
glTexEnvf GL_TEXTURE_ENV, GL_COMBINE_RGB_EXT, GL_ADD

Modulate:
glTexEnvf GL_TEXTURE_ENV, GL_COMBINE_RGB_EXT, GL_MODULATE

One texture:
glTexEnvf GL_TEXTURE_ENV, GL_COMBINE_RGB_EXT, GL_REPLACE

cu olli