Jump to content

Recommended Posts

Posted

Dynamic shadows are set in the editor. I am not aware of any API changes that allow this via code. It might be an undocumented feature or not supported via API at all.

 

If you set dynamic shadows in the editor, you can save your object as a prefab and load it in as a prefab if you want to load everything by code.

 

post-45-0-18823100-1371901348.png

  • Upvote 1
Posted

there are some undocumented methods in the headers about shadows that i found:

 

virtual void DrawShadow(Camera* camera, const bool recursive);

virtual void SetShadowMode(const int shadowmode);//lua
virtual int GetShadowMode();//lua
virtual void UpdateProjectedShadow();
static void UpdateProjectedShadowCallback(Entity* entity, Object* extra);

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