¿ [jit.op @op avg] in OpenGL ?

Aug 23, 2006 at 6:42pm

¿ [jit.op @op avg] in OpenGL ?

#27276
Aug 23, 2006 at 7:43pm

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

#82350
Aug 24, 2006 at 7:22am

I just change blend_mode from 3 7 to 6 1 and run ok.
thanks.

#82351

You must be logged in to reply to this topic.