• Adding shaders via lua.
    3 replies, posted
Hello, I was wonder how one can apply a shader effect to their screen using lua. I want to apply the Sobel shader effect to my screen. Is there a function I'm not seeing that does so? Thanks.
You can check out how the default effect does it and learn how to do it yourself: [url]https://github.com/garrynewman/garrysmod/blob/master/garrysmod/lua/postprocess/sobel.lua[/url]
Or you could just run [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Global/DrawSobel]DrawSobel[/url] (although the thing posted above already has that function in it :P)
Thanks for the fast response appreciate ya.
Sorry, you need to Log In to post a reply to this thread.