Jump to content

Is there some way to use the fog shader with a night skybox?


havenphillip
 Share

Recommended Posts

I looked at the script but I'm not a programmer. It looks like gibberish to me. I'm learning slowly and I fiddled with a few of the numbers but couldn't make it do anything and I don't want to break it.

Do you have a link to that Klepto ground fog shader? That's exactly what I want. Just a little mist to give it that eerie feel.

 

Link to comment
Share on other sites

I got something worked out borrowed this script from Yue...

...put this in the FPSPlayer script under the start function. Works pretty good:

    --Add fog to camera
    self.camera:SetFogMode(true)
    self.camera:SetFogRange (0,40)
    self.camera:SetFogColor (0.9,0.9,0.9,0.08)
    self.camera:SetFogAngle (0, 180)
    self.camera:SetClearColor(0.721, 0.352, 0,1)
 

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...