Author Topic: Fake volumetric lights  (Read 3415 times)

Offline K24A3

  • long
  • ***
  • Posts: 231
    • View Profile
Re: Fake volumetric lights
« Reply #15 on: October 15, 2012, 09:23:29 am »
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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Fake volumetric lights
« Reply #16 on: October 17, 2012, 08:23:33 pm »
It's simple additive blending...yes, you can do this.

Offline robert

  • byte
  • *
  • Posts: 40
    • View Profile
Re: Fake volumetric lights
« Reply #17 on: October 20, 2012, 01:28:00 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!