Jump to content

shadow distance


Rick
 Share

Recommended Posts

I have a FOV of 15. My terrain is at the default level. I have 1 directional light. My camera is at (1, 75, -57). The models on my terrain aren't casting any shadows and I would like them to do so.

 

After I load my scene I loop through each entity in the scene and set the shadow range to a large number but it doesn't seem to show them still. How can I get the shadows to show in my above situation?

 

 

childCount = CountChildren(scene);
for(i = 1; i <= childCount; i++)
{
entity = GetChild(scene, i);
EntityShadowRange(entity, 50000);
}

Link to comment
Share on other sites

Thanks Athos. SetShadowDistance() is probably the command but when I use it in C++ it doesn't work, but I set it from the editor and it's working now. Clearly doing something wrong on the C++ side, but it works from the editor so all good. Thanks!

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