risecreature Posted June 22, 2013 Share Posted June 22, 2013 Can't find this in documentation. Can you please help me ? Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted June 22, 2013 Share Posted June 22, 2013 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. 1 Quote Link to comment Share on other sites More sharing options...
risecreature Posted June 22, 2013 Author Share Posted June 22, 2013 Thank you very much. Quote Link to comment Share on other sites More sharing options...
beo6 Posted June 22, 2013 Share Posted June 22, 2013 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); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.