Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Convert AGK sun vector to Shader Light position?

Author
Message
nz0
AGK Developer
17
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 19th Aug 2017 15:09
How can I take the vector used to set the SetSunDirection() AppGameKit function and position a shader light to duplicate this in my scene?
It's not really for lighting the object with global lighting, but to match my shader light with the shadow functions.

Login to post a reply

Server time is: 2024-09-30 07:25:11
Your offset time is: 2024-09-30 07:25:11