Jump to content

fade shaders/post effects


DudeAwesome
 Share

Recommended Posts

is there a nice way to fade in/fade out shaders or post effects?

 

 

like in some games e.g.

 

you are nearly dead and everything gets greyscaled.

 

for now it should be possible in this case to toggle the greyscale post effect but I would like to do it a little bit smoother.

 

can I push a dynamic alpha valua to shaders at runtime? I guess not.

It doesn´t work... why? mhmmm It works... why?

Link to comment
Share on other sites

  • 1 month later...
can I push a dynamic alpha valua to shaders at runtime? I guess not.

I discussed that point with Rick some time ago, i don't knwo if it is implemented, but you should be able to pass script values to shaders, i htink there is a way to do that.

 

I've been requesting strength control by code on effects for some time.

It makes sense, as anyone will want to have control and make dynamic full screen effects shader effects from progressive night vision, to damage to progressive coloring etc ...

Stop toying and make games

Link to comment
Share on other sites

You can use a global container class for such values and use them in the postprocess lua file. If no lua file is present you might need create one and modify it to your needs. As an exsample or starting point you can take a look at my pfx manager in the prefab section of the workshop.

  • Upvote 1
  • Windows 10 Pro 64-Bit-Version
  • NVIDIA Geforce 1080 TI
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...