DudeAwesome Posted March 4, 2014 Share Posted March 4, 2014 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. Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
gamecreator Posted March 4, 2014 Share Posted March 4, 2014 I've been requesting strength control by code on effects for some time. Quote Link to comment Share on other sites More sharing options...
DudeAwesome Posted April 9, 2014 Author Share Posted April 9, 2014 mhmm seems like I´m stuck here and noone have a clue how to solve that problem Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
YouGroove Posted April 9, 2014 Share Posted April 9, 2014 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 ... Quote Stop toying and make games Link to comment Share on other sites More sharing options...
DudeAwesome Posted April 9, 2014 Author Share Posted April 9, 2014 how ? It should be possible with uniform vars but how I can define my own uniform vars ? Like a dynamic Alphavalue calculated with leadwerks and pushed into the shader with uniform qualifier each loop? Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
klepto2 Posted April 9, 2014 Share Posted April 9, 2014 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. 1 Quote Windows 10 Pro 64-Bit-Version NVIDIA Geforce 1080 TI Link to comment Share on other sites More sharing options...
Recommended Posts
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.