Jump to content

Camera PostEffect's


AnthonyPython
 Share

Recommended Posts

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()

OS: Windows 7

Processor: AMD A6-3420M APU integrated Radeon HD Graphics 1.50 GHz

Link to comment
Share on other sites

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 )

OS: Windows 7

Processor: AMD A6-3420M APU integrated Radeon HD Graphics 1.50 GHz

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...