Jump to content

[Sovled]what is the Bloom?


Recommended Posts

When I read fx.lua, I found the function  SetBloomEffectHandle , and then I found the component bloomer.I guess they are about fx spawner.

I am trying to make strong vision effect for my mod , so that  I need an easy way to control the spawning of  fx.

Does anyone know that how to use the function SetBloomEffectHandle and the component  bloomer?

Edited by LongFeiaot
Link to comment
Share on other sites

This is what bloom is: https://en.wikipedia.org/wiki/Bloom_(shader_effect)

This is what bloom looks like: http://imgur.com/oDVwtUY

How do you manipulate those effects? With SetBloomEffectHandle, you choose the shader you want from the shaders folder.

"bloomer" is the component that uses SetBloomEffectHandle to set up the different blooms.

These are the function WX-78 uses:

-- enable bloom
-- source name, fx, priority
-- if you enable multiple blooms, you will see the one with highest priority
inst.components.bloomer:PushBloom("overcharge", "shaders/anim.ksh", 50)

-- disable bloom
-- source name
inst.components.bloomer:PopBloom("overcharge")

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...