Jump to content

Recommended Posts

Posted

Hi! Is there a way of fixing fog so that main character can walk out of fog into a clear sunny patch.

  • Like 1

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

  • 4 years later...
Posted

This is an interesting idea. I'm thinking maybe somehow use a PostEffect fog then thin it out or thicken it based on the distance of the cameraposition to the "center" of it. I'm going to try this. Something like:

output = mix(regular screen, foggy screen, distance(cameraposition , self.entity:GetPosition())))

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.

×
×
  • Create New...