AnthonyPython Posted February 13, 2015 Share Posted February 13, 2015 How do you remove Post Effects from a camera in LUA? need this to remove Post Effects when Sanity is > 25 if self.Sanity >25 then if SanityPostEffect == true then self.camera:ClearPostEffects() if HDR == 1 then self.camera:AddPostEffect("Shaders/PostEffects/06_pp_hdr.lua") end end end or is this a Function and I can just call it to clear the post effect's? as self:ClearPostEffects() Quote OS: Windows 10 Pro CPU: i3-10100 CPU @ 3.60GHz GPU: NVIDIA 2060 Super - 8 GB RAM: 32 GB Link to comment Share on other sites More sharing options...
nick.ace Posted February 13, 2015 Share Posted February 13, 2015 I'm not sure what you are asking as the code block you posted should work, although you should exit the loop somehow. This is not the right syntax though since you need to clear effects from the camera: self:ClearPostEffects() Quote Link to comment Share on other sites More sharing options...
AnthonyPython Posted February 13, 2015 Author Share Posted February 13, 2015 I meant to put SanityPostEffect = false after self.camera:ClearPostEffects() Quote OS: Windows 10 Pro CPU: i3-10100 CPU @ 3.60GHz GPU: NVIDIA 2060 Super - 8 GB RAM: 32 GB Link to comment Share on other sites More sharing options...
AnthonyPython Posted February 13, 2015 Author Share Posted February 13, 2015 I'm not sure what you are asking as the code block you posted should work, although you should exit the loop somehow. This is not the right syntax though since you need to clear effects from the camera: self:ClearPostEffects() never mind it worked now, not sure why it didn't beforehand (maybe I just misspelled it the first time ) Quote OS: Windows 10 Pro CPU: i3-10100 CPU @ 3.60GHz GPU: NVIDIA 2060 Super - 8 GB RAM: 32 GB 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.