jPCT-AE - a 3d engine for Android > Support

Fake volumetric lights

<< < (4/4)

K24A3:
Yeah that may do the trick, assuming jPCT allows you to change the opacity of the 2nd texture leaving the base texture opaque. Haven't tried it myself but Egon can help you with that.

EgonOlsen:
It's simple additive blending...yes, you can do this.

robert:

--- Quote from: EgonOlsen on October 17, 2012, 08:23:33 pm ---It's simple additive blending...yes, you can do this.

--- End quote ---

Egon, with additive blending you use a black texture with no alpha, right ? Is there any reason I can't do this with alpha blending ? Note that I don't know much about OpenGL so sorry if this question sounds obvious.

Also, what is the correct way of altering the opacity of the texture every frame ?

Thank you!

Navigation

[0] Message Index

[*] Previous page

Go to full version