Thread: shader blending
View Single Post
Old 03-19-2006, 08:48 AM   #2
Fracman's Avatar
Join Date: Jan 2003
Location: Germany
Posts: 501
you could do it in different ways...

the easiest - with shader only - is the "add" function,
but this is usually used for glow stages:

blendfunc GL_ONE GL_ONE

The other possibility is to use alpha functions.
The texture you want to blend must be saved as PNG or TGA with an Alpha channel,
which tells regions of the image that are more ore less transparent (depending on the gray value: black: totally opaque, 50% grey: 50% transparent, white: totally transparent - or the inverse).
The transparency degree can be also adjusted by the shader.
Using alpha channels, there are much more possibilities,
but it is also more complex.
You would have to play around with the shader editor.

Dark Forces MOD for Jedi Knight: Jedi Academy

DFMOD Demo for JA released !!!
Fracman is offline   you may: quote & reply,