I've been playing around with fog for awhile recently. For technical reasons changing the values of the env_fog_controller in the map doesn't give me the effect I want (since you can change its fog, and not the fog in the skybox, it ends up looking like crap).
Whenever I try to use render.FogEnd (or any of the fog related render. functions) clientside, since they don't work serverside, I get this in my console, "Warning: You're trying to render in the wrong place. This doesn't play nice with multi-core rendering, so we're not going to let you draw here."
When I try to use console commands like fog_endskybox it says I need cheats enabled for it to work. Is there anyway around this? Or a way to get render.FogEnd to work?
The render library is only available in the correct hooks since the last update, use some rendering hook like PostDrawOpaqueRenderables.
I've looked up PostDrawOpaqueRenderables on the wiki, and I'm still not sure how I'd use that hook. Do I use it in conjunction with render.fogend?
[lua]
hook.Add("PostDrawOpaqueRenderables","hurr",function()
--Do fog functions here
end)
[/lua]
Easy as that:v:
Sorry, you need to Log In to post a reply to this thread.