Fake volumetric lights

Started by robert, October 11, 2012, 01:20:46 AM

Previous topic - Next topic

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.

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!