Jump to content

Recommended Posts

Posted

When I set fog mode to true in editor the effect does not show up in game.. Is this intended? Using c++. Do I have to code it?

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

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

Posted
auto cam = Camera::Create();

cam->SetFOV(60.0f);
cam->SetZoom(1);
cam->SetRange(0.1f, 500.0f);

cam->SetFogColor(0.7f, 0.7f, 0.7f, 1.0f);
cam->SetFogAngle(5.0f, 20.0f);
cam->SetFogMode(true);
cam->SetFogRange(2.0f, 30.0f);

 

Roland Strålberg
Website: https://rstralberg.com

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