Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: fireside on June 24, 2013, 12:24:23 AM

Title: Shadow direction
Post by: fireside on June 24, 2013, 12:24:23 AM
Never mind.  I found SetLightPosition() and the actor3d comments for Trinity.
Title: Re: Shadow direction
Post by: Azrael on June 24, 2013, 06:28:26 AM
Don't know why it can't, but you can create a script that dynamically change the position of the shadow according to a fixed point.

About the shadow color you can use:

Code: WME Script
  1. actor.ShadowColor = MakeRGBA(0, 0, 0, 120);   //or the RGBA you want
Title: Re: Shadow direction
Post by: fireside on June 24, 2013, 11:09:12 AM
Quote
Don't know why it can't, but you can create a script that dynamically change the position of the shadow according to a fixed point.

I edited my original post, sorry, but that's a good idea.  For now, it looks good with a more subtle shadow directly overhead.