Rick Posted September 18, 2014 Posted September 18, 2014 So is there any fog effects out there? I remember a long time ago shadmar had one that needed to touch every shader in order to work, but is there anything that is more of a post processing effect that wouldn't need to do that? 1 Quote
gamecreator Posted September 18, 2014 Posted September 18, 2014 I have a feeling you'd like this for the Halloween tournament too. Would be great if it was adjustable so you could make it thicker or thinner at will but anything to start would be nice. The only amateur thing I can think of at the moment is drawing a transparent white rectangle over the entire screen, which doesn't look realistic. Quote
tjheldna Posted September 18, 2014 Posted September 18, 2014 Yeah Shadmar did a post fog a while back, it's real nice. http://leadwerks.wikidot.com/wiki:snippets-shader Quote
Rick Posted September 19, 2014 Author Posted September 19, 2014 Nah shadmar's one you linked to, that was the one I was talking about with it needing to be applied to every shader. I thought there was a post processing one out there that doesn't require that? I've used this one before but it has some visual strangeness compared to one that is done on the entire scene after it's drawn (post processing). ah klepto's looks like it's a post processor. Am I correct in thinking that? Quote
Rick Posted September 19, 2014 Author Posted September 19, 2014 How do you use klepto's script there? I set the 50_PP_klepto_fog.lua in the Post Effects, but the Script:Render function doesn't seem to ever get called when I put a break point in it and run the game. I placed the shader in the right spot and Script:Start() gets called fine. [edit] Would love to know the settings you use on this. Quote
Haydenmango Posted September 19, 2014 Posted September 19, 2014 Here are the settings for fog. I found them on the workshop under the post process shaders pack. 50_fog camera:SetKeyValue("fog_fogrange","0,1000") camera:SetKeyValue("fog_fogcolor","0.72,0.73,0.67,1.0") camera:SetKeyValue("fog_fogangle","5,21") Quote Check out my game Rogue Snowboarding- https://haydenmango.itch.io/roguesnowboarding
tjheldna Posted September 19, 2014 Posted September 19, 2014 it's more of a light and cheery fog, however you may be after a more ill tempered and menacing fog. Sorry for the CPP fog->SetFogRange(Vec2(20.0F, 140.0F)); fog->SetFogColor(Vec4(0.7, 0.66F, 0.62F, 0.6F)); Quote
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.