yes multiply is good, but which gl blending modes should be used for the blend modes?
currently:
additive: gl.Blending(GL.DST_COLOR,GL.SRC_COLOR)
i once used it in the rain widget and it looked good.
overlay: no mode
subtractive: gl.Blending(GL.ONE_MINUS_DST_COLOR,GL.ONE_MINUS_SRC_COLOR)
i once used a blend mode like this and it had a nice subtraction effect
which are the modes for multiply?
Stupid OpenGL question
Moderator: Moderators
Re: Stupid OpenGL question
i am trying to make it use quads, instead of lines, so textures can be used, it will still use the width to define the trail size.
Re: Stupid OpenGL question
i will make a new screen shot now, that will show those new features i made.
Re: Stupid OpenGL question
here is the screen:

they all use different modes.
does it look good?
they all use different modes.
does it look good?
- Attachments
-
- luaRibbonEffects.jpg
- (82.38 KiB) Downloaded 1463 times
Re: Stupid OpenGL question
the current Unit Def variables are:
Code: Select all
[customParams]
{
usetrail=1; <number,1 or 0>
trailr=0.60; <number>
trailg=0.35; <number>
trailb=0.85; <number>
traila=0.85; <number>
trailwidth=3.00; <number>
trailframes=15.00; <number>
trailblendmode=0; <number, 0, 1 or 2>
trailfadealpha=1; <number, 1 or 0>
traildrawinminimap=1; <number, 1 or 0>
}