Combining PostFX with OpenB3D

BlitzMax Forums/MiniB3D Module/Combining PostFX with OpenB3D

RustyKristi(Posted 2016) [#1]
Can I just line up the camera shader commands to do postfx on top of the other?

When I try to do that, it only activates the last effect. I think I'm missing a step or something.. :/


markcw(Posted 2016) [#2]
Got a 2-pass shader working now. Note that UpdateWorld must be where it is or it can disable the shaders.

https://github.com/markcwm/openb3d.mod/blob/master/examples/sl_shimmer2.bmx


RustyKristi(Posted 2016) [#3]
Thanks munch! awesome as always :D

Maybe you should rename the bmx as 2pass/multipass or something? I don't know, just for reference.


markcw(Posted 2016) [#4]
Good idea. https://github.com/markcwm/openb3d.mod/blob/master/examples/sl_2pass.bmx