¿ [jit.op @op avg] in OpenGL ?
On Aug 23, 2006, at 11:42 AM, atlas wrote:
>
> How Can I do in openGL ?
> in jitter nonOPENGL: I make a mixture similar to [jit.op @op avg]
> between two matrices. but in openGL I want to do the same between
> two surfaces with textures. the textures in addition have a
> channel alpha that the more black the more is transparent. some
> idea? thanks to all and the translator of google.
You probably can use something like the following set of attributes
to perform alpha blending
@blend_enable 1 (this turns on alpha blending)
@color 1. 1. 1. 0.5 (this gives an alpha value of 0.5)
@depth_enable 0 (this disables depth testing so that it will be
drawn even if occluded by another object closer to camera)
@blend_mode 6 1 (this gives additive rather than crossfaded blending)
-Joshua
I just change blend_mode from 3 7 to 6 1 and run ok.
thanks.